aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/test/java/com/yahoo/document/StructDataTypeTestCase.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-04-25 15:26:32 +0200
committerJon Bratseth <bratseth@oath.com>2018-04-25 15:26:32 +0200
commit695bfc1807271a7a1ad1057202d2401e94edace5 (patch)
treeca26395e98ee29dd8c07fbb8a1b45ffcc36af5b9 /document/src/test/java/com/yahoo/document/StructDataTypeTestCase.java
parente2d4b112ef1308ea1e03c22e91e8dae561071f81 (diff)
Remove usage of junit.framework
Diffstat (limited to 'document/src/test/java/com/yahoo/document/StructDataTypeTestCase.java')
-rwxr-xr-xdocument/src/test/java/com/yahoo/document/StructDataTypeTestCase.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/document/src/test/java/com/yahoo/document/StructDataTypeTestCase.java b/document/src/test/java/com/yahoo/document/StructDataTypeTestCase.java
index 07b9512ee32..225aa4afc21 100755
--- a/document/src/test/java/com/yahoo/document/StructDataTypeTestCase.java
+++ b/document/src/test/java/com/yahoo/document/StructDataTypeTestCase.java
@@ -2,11 +2,18 @@
package com.yahoo.document;
import com.yahoo.document.datatypes.Struct;
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
/**
- * @author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
+ * @author Einar M R Rosenvinge
*/
-public class StructDataTypeTestCase extends junit.framework.TestCase {
+public class StructDataTypeTestCase {
+
+ @Test
public void testSimpleInheritance() {
StructDataType personType = new StructDataType("person");
Field firstName = new Field("firstname", DataType.STRING);
@@ -35,6 +42,7 @@ public class StructDataTypeTestCase extends junit.framework.TestCase {
assertEquals("lastname", employeeType.getFields().toArray(new Field[0])[2].getName());
}
+ @Test
public void testCompatibleWith() {
StructDataType personType = new StructDataType("person");
Field firstName = new Field("firstname", DataType.STRING);