mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-17 18:32:28 +02:00
Apply JUnit4 style test
Change-Id: I16a639dbf5f9dd7f08068cf94312e5d04cb8776a
This commit is contained in:
parent
883354c2a7
commit
8dc81ea90c
@ -16,7 +16,6 @@
|
||||
package org.onosproject.dhcp;
|
||||
|
||||
import com.google.common.testing.EqualsTester;
|
||||
import junit.framework.TestCase;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.onlab.packet.Ip4Address;
|
||||
@ -31,7 +30,7 @@ import static org.junit.Assert.fail;
|
||||
/**
|
||||
* Unit Tests for IPAssignment class.
|
||||
*/
|
||||
public class IpAssignmentTest extends TestCase {
|
||||
public class IpAssignmentTest {
|
||||
|
||||
private final Date dateNow = new Date();
|
||||
|
||||
@ -98,4 +97,4 @@ public class IpAssignmentTest extends TestCase {
|
||||
Assert.assertThat(e.getMessage(), containsString("must be specified"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,6 @@
|
||||
package org.onosproject.store.service;
|
||||
|
||||
import com.google.common.testing.EqualsTester;
|
||||
import junit.framework.TestCase;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
@ -26,7 +25,7 @@ import static org.hamcrest.Matchers.is;
|
||||
* Unit Tests for DatabseUpdate class.
|
||||
*/
|
||||
|
||||
public class DatabaseUpdateTest extends TestCase {
|
||||
public class DatabaseUpdateTest {
|
||||
|
||||
private final DatabaseUpdate stats1 = DatabaseUpdate.newBuilder()
|
||||
.withCurrentValue("1".getBytes())
|
||||
@ -124,4 +123,4 @@ public class DatabaseUpdateTest extends TestCase {
|
||||
assertThat(stats1.toString(), is(stats1.toString()));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,6 @@
|
||||
package org.onosproject.store.service;
|
||||
|
||||
import com.google.common.testing.EqualsTester;
|
||||
import junit.framework.TestCase;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
@ -25,7 +24,7 @@ import static org.hamcrest.Matchers.is;
|
||||
/**
|
||||
* MapEvent unit tests.
|
||||
*/
|
||||
public class MapEventTest extends TestCase {
|
||||
public class MapEventTest {
|
||||
|
||||
private final Versioned<Integer> vStats = new Versioned<>(2, 1);
|
||||
|
||||
@ -58,4 +57,4 @@ public class MapEventTest extends TestCase {
|
||||
.testEquals();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,6 @@
|
||||
package org.onosproject.store.service;
|
||||
|
||||
import com.google.common.testing.EqualsTester;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
@ -31,7 +30,7 @@ import static org.hamcrest.Matchers.notNullValue;
|
||||
/**
|
||||
* MultiValuedTimestamp unit tests.
|
||||
*/
|
||||
public class MultiValuedTimestampTest extends TestCase {
|
||||
public class MultiValuedTimestampTest {
|
||||
|
||||
private final MultiValuedTimestamp<Integer, Integer> stats1 = new MultiValuedTimestamp<>(1, 3);
|
||||
|
||||
@ -91,4 +90,4 @@ public class MultiValuedTimestampTest extends TestCase {
|
||||
Assert.fail("Exception looking up constructors");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,6 @@
|
||||
package org.onosproject.store.service;
|
||||
|
||||
import com.google.common.testing.EqualsTester;
|
||||
import junit.framework.TestCase;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
@ -25,7 +24,7 @@ import static org.hamcrest.Matchers.is;
|
||||
/**
|
||||
* Versioned unit tests.
|
||||
*/
|
||||
public class VersionedTest extends TestCase {
|
||||
public class VersionedTest {
|
||||
|
||||
private final Versioned<Integer> stats1 = new Versioned<>(1, 2, 3);
|
||||
|
||||
|
@ -21,12 +21,14 @@ import com.esotericsoftware.minlog.Log;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
/**
|
||||
* Test of the Hexstring.
|
||||
*
|
||||
*/
|
||||
|
||||
public class HexStringTest extends TestCase {
|
||||
public class HexStringTest {
|
||||
|
||||
@Test
|
||||
public void testMarshalling() throws Exception {
|
||||
|
Loading…
x
Reference in New Issue
Block a user