Skip to content
Snippets Groups Projects
Commit 55fdffbb authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed errors in UnitTests caused by #326

parent 3da1605c
Branches
Tags
No related merge requests found
Pipeline #230 passed
...@@ -22,12 +22,25 @@ import java.util.Locale; ...@@ -22,12 +22,25 @@ import java.util.Locale;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
public class DatabaseParser_v3Test implements LocalizationDelegate public class DatabaseParser_v3Test
{ {
@Before @Before
public void before() public void before()
{ {
Localization.setDelegate(this); Localization.setDelegate(new LocalizationDelegate()
{
@Override
public Locale getLocale()
{
return Locale.ENGLISH;
}
@Override
public String getBaseResource()
{
return "languages/";
}
});
Localization.load(); Localization.load();
} }
...@@ -163,16 +176,4 @@ public class DatabaseParser_v3Test implements LocalizationDelegate ...@@ -163,16 +176,4 @@ public class DatabaseParser_v3Test implements LocalizationDelegate
e.printStackTrace(); e.printStackTrace();
} }
} }
@Override
public Locale getLocale()
{
return Locale.ENGLISH;
}
@Override
public String getBaseResource()
{
return "language/";
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment