Example usage for android.test MoreAsserts assertEquals

List of usage examples for android.test MoreAsserts assertEquals

Introduction

In this page you can find the example usage for android.test MoreAsserts assertEquals.

Prototype

public static void assertEquals(Set<? extends Object> expected, Set<? extends Object> actual) 

Source Link

Document

Asserts that two sets contain the same elements.

Usage

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());
}