Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.context.bean.override.mockito.MockitoBean;
import org.springframework.http.MediaType;
import org.springframework.test.web.servlet.MockMvc;

Expand All @@ -30,7 +30,7 @@ class StatementControllerTest {
@Autowired
private MockMvc mvc;

@MockBean
@MockitoBean
private StatementService statementService;

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class LanguageMap extends LinkedHashMap<Locale, String> {
/**
* Cached undefined locale instance to avoid repeated object creation.
*/
private static final Locale UNDEFINED_LOCALE = new Locale("und");
private static final Locale UNDEFINED_LOCALE = Locale.forLanguageTag("und");

/**
* Constructs an empty LanguageMap.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void givenUsAndUndKeyWhenGettingGermanValueThenValueIsUnd() {

// Given US And UND Key
languageMap.put(Locale.US, "Color");
languageMap.put(new Locale("und"), "Colour");
languageMap.put(Locale.forLanguageTag("und"), "Colour");

// When Getting German Value
final var value = languageMap.get(LanguageRange.parse("de"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void givenVerbIsConstructedWithIdAndNameWhenGettingDisplayForLocaleUNDThenResult
final var verb = new Verb("http://adlnet.gov/expapi/verbs/answered", "answered");

// When Getting Display For Locale UND
final var result = verb.getDisplay().get(Locale.forLanguageTag("UND"));
final var result = verb.getDisplay().get(Locale.forLanguageTag("und"));

// Then Result Is Expected
assertThat(result, is("answered"));
Expand Down
Loading