List of usage examples for android.test MoreAsserts assertEquals
public static void assertEquals(Set<? extends Object> expected, Set<? extends Object> actual)
From source file:org.uribeacon.beacon.UriBeaconTest.java
public void testEncodeUriWithEmptyString() { MoreAsserts.assertEquals(new byte[] {}, UriBeacon.encodeUri("")); }
From source file:org.uribeacon.beacon.UriBeaconTest.java
public void testEncodeUriWithUrlString() { MoreAsserts.assertEquals(TestData.urlTestByteArray, UriBeacon.encodeUri(TestData.urlTestString)); }
From source file:org.uribeacon.beacon.UriBeaconTest.java
public void testEncodeUriWithUuidString() { MoreAsserts.assertEquals(TestData.uuidTestByteArray, UriBeacon.encodeUri(TestData.uuidTestString)); }
From source file:org.uribeacon.beacon.UriBeaconTest.java
public void testBuilderWithEmptyStringUri() throws URISyntaxException { UriBeacon beacon = new UriBeacon.Builder().uriString("").build(); MoreAsserts.assertEquals(new byte[] {}, beacon.getUriBytes()); assertEquals("", beacon.getUriString()); }
From source file:org.uribeacon.beacon.UriBeaconTest.java
public void testBuilderWithEmptyArrayUri() throws URISyntaxException { UriBeacon beacon = new UriBeacon.Builder().uriString(TestData.emptyTestByteArray).build(); MoreAsserts.assertEquals(new byte[] {}, beacon.getUriBytes()); assertEquals("", beacon.getUriString()); }
From source file:org.uribeacon.beacon.UriBeaconTest.java
public void testBuilderWithUriString() throws URISyntaxException { UriBeacon beacon = new UriBeacon.Builder().uriString(TestData.urlTestString).build(); MoreAsserts.assertEquals(TestData.urlTestByteArray, beacon.getUriBytes()); assertEquals(TestData.urlTestString, beacon.getUriString()); }
From source file:org.uribeacon.beacon.UriBeaconTest.java
public void testBuilderWithUriByteArray() throws URISyntaxException { UriBeacon beacon = new UriBeacon.Builder().uriString(TestData.urlTestByteArray).build(); MoreAsserts.assertEquals(TestData.urlTestByteArray, beacon.getUriBytes()); assertEquals(TestData.urlTestString, beacon.getUriString()); }
From source file:org.uribeacon.beacon.UriBeaconTest.java
public void testBuilderWithLongValidUriString() throws URISyntaxException { UriBeacon beacon = new UriBeacon.Builder().uriString(TestData.longButValidUrlString).build(); assertEquals(TestData.longButValidUrlString, beacon.getUriString()); MoreAsserts.assertEquals(TestData.longButValidUrlByteArray, beacon.getUriBytes()); }
From source file:org.uribeacon.beacon.UriBeaconTest.java
public void testBuilderWithLongValidUriByteArray() throws URISyntaxException { UriBeacon beacon = new UriBeacon.Builder().uriString(TestData.longButValidUrlByteArray).build(); assertEquals(TestData.longButValidUrlString, beacon.getUriString()); MoreAsserts.assertEquals(TestData.longButValidUrlByteArray, beacon.getUriBytes()); }