Skip to content

Commit

Permalink
Minor formatting and removes un-used imports
Browse files Browse the repository at this point in the history
  • Loading branch information
blongho committed Feb 29, 2020
1 parent 438d510 commit 448fbad
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import static org.junit.Assert.assertEquals;

import androidx.test.platform.app.InstrumentationRegistry;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand All @@ -37,8 +36,9 @@
public class CountryTest {

private static Country sweden;

@BeforeClass
public static void setUp(){
public static void setUp() {
World.init(InstrumentationRegistry.getInstrumentation().getContext());
sweden = World.getCountryFrom("se");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ public static void init() {
World.init(InstrumentationRegistry.getInstrumentation().getContext());
}

private static void log(final String message) {
Log.i(TAG, "display: --> " + message);

}

@Test
public void getFlagOf() {
final int flagFromISO2 = World.getFlagOf("se");
Expand All @@ -64,7 +69,6 @@ public void getFlagOf() {
+ flagFromNumericCode + "]");
}


@Test
public void getCountryFrom() {
final Country sweden2 = World.getCountryFrom("se");
Expand All @@ -91,9 +95,4 @@ public void getAllCurrencies() {
assertNotNull(currencies.get(0));
log("Currency list size= " + currencies.size());
}

private static void log(final String message) {
Log.i(TAG, "display: --> " + message);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@
class AssetsReader {

static final String TAG = "AssetsReader";

private AssetsReader() {
}

/**
* Read contents from a file in the raw directory
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
package com.blongho.country_data;

import androidx.annotation.DrawableRes;
import java.text.NumberFormat;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
Expand All @@ -45,7 +44,8 @@
* @since 2020-02-29
**/

public class Country{
public class Country {

private final static Map<String, String> CONTINENTS = Collections
.unmodifiableMap(new HashMap<String, String>() {
{
Expand Down
3 changes: 1 addition & 2 deletions country_data/src/main/res/values/ic_ad_background.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ MIT License
~
~ Copyright (c) 2019 Bernard Che Longho
Expand Down
3 changes: 1 addition & 2 deletions country_data/src/main/res/values/ic_ae_background.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ MIT License
~
~ Copyright (c) 2019 Bernard Che Longho
Expand Down
3 changes: 1 addition & 2 deletions country_data/src/main/res/values/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ MIT License
~
~ Copyright (c) 2019 Bernard Che Longho
Expand Down

0 comments on commit 448fbad

Please sign in to comment.