diff options
author | Arne H Juul <arnej@yahooinc.com> | 2022-06-07 11:29:10 +0000 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2022-06-08 11:45:31 +0200 |
commit | 40cf39429211d66616f8dce58198ecdfe43735eb (patch) | |
tree | 2e2600c7a0203e7c95106402920912238997a6c7 /document/src/test | |
parent | 0b3579b8af74a1bdbab5759a51bd592fdbc11cb8 (diff) |
cleanup some unneccessary cruft
Diffstat (limited to 'document/src/test')
7 files changed, 0 insertions, 44 deletions
diff --git a/document/src/test/java/com/yahoo/document/DataTypeNameTestCase.java b/document/src/test/java/com/yahoo/document/DataTypeNameTestCase.java index 0d6c50e3e4f..efdb37b90d4 100644 --- a/document/src/test/java/com/yahoo/document/DataTypeNameTestCase.java +++ b/document/src/test/java/com/yahoo/document/DataTypeNameTestCase.java @@ -12,7 +12,6 @@ import static org.junit.Assert.assertFalse; public class DataTypeNameTestCase { @Test - @SuppressWarnings("deprecation") public void requireThatAccessorsWork() { DataTypeName name = new DataTypeName("foo"); assertEquals("foo", name.getName()); diff --git a/document/src/test/java/com/yahoo/document/DocumentSerializationTestCase.java b/document/src/test/java/com/yahoo/document/DocumentSerializationTestCase.java index db877bb9712..77b621a3c36 100644 --- a/document/src/test/java/com/yahoo/document/DocumentSerializationTestCase.java +++ b/document/src/test/java/com/yahoo/document/DocumentSerializationTestCase.java @@ -58,7 +58,6 @@ import static org.junit.Assert.assertTrue; public class DocumentSerializationTestCase extends AbstractTypesTest { @Test - @SuppressWarnings("deprecation") public void testSerializationAllVersions() throws IOException { DocumentType docInDocType = new DocumentType("docindoc"); diff --git a/document/src/test/java/com/yahoo/document/DocumentTestCase.java b/document/src/test/java/com/yahoo/document/DocumentTestCase.java index 8d6fe7a8fa1..e2bdd846dd1 100644 --- a/document/src/test/java/com/yahoo/document/DocumentTestCase.java +++ b/document/src/test/java/com/yahoo/document/DocumentTestCase.java @@ -100,7 +100,6 @@ public class DocumentTestCase extends DocumentTestCaseBase { return dcMan; } - @SuppressWarnings("deprecation") public void setUpSertestDocType() { docMan = new DocumentTypeManager(); @@ -748,7 +747,6 @@ public class DocumentTestCase extends DocumentTestCaseBase { } @Test - @SuppressWarnings("deprecation") public void testSerializeDeserialize() { setUpSertestDocType(); Document doc = getSertestDocument(); @@ -878,36 +876,6 @@ public class DocumentTestCase extends DocumentTestCaseBase { doc.setFieldValue("something", testlist); } - @SuppressWarnings("deprecation") - @Test - public void testCompressionConfiguredIsIgnored() { - - int size_uncompressed; - { - DocumentTypeManager docMan = DocumentTypeManager.fromFile("src/tests/data/cppdocument.cfg"); - Document doc = new Document(docMan.getDocumentType("serializetest"), new DocumentId("id:ns:serializetest::test")); - - doc.setFieldValue("stringfield", - "compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me "); - - GrowableByteBuffer data = new GrowableByteBuffer(); - doc.serialize(data); - size_uncompressed = data.position(); - } - - DocumentTypeManager docMan = DocumentTypeManager.fromFile("src/tests/data/compressed.cfg"); - Document doc = new Document(docMan.getDocumentType("serializetest"), new DocumentId("id:ns:serializetest::test")); - - doc.setFieldValue("stringfield", - "compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me compress me "); - - GrowableByteBuffer data = new GrowableByteBuffer(); - doc.serialize(data); - int size_compressed = data.position(); - - assertEquals(size_compressed, size_uncompressed); - } - @Test public void testDocumentDataType() { //use documenttypemanagerconfigurer to read config @@ -1092,7 +1060,6 @@ public class DocumentTestCase extends DocumentTestCaseBase { assertEquals(doc, doc2); } - @SuppressWarnings("deprecation") @Test public void testUnknownFieldsDeserialization() { DocumentTypeManager docTypeManasjer = new DocumentTypeManager(); diff --git a/document/src/test/java/com/yahoo/document/DocumentTypeManagerTestCase.java b/document/src/test/java/com/yahoo/document/DocumentTypeManagerTestCase.java index 5cc4263d037..d85905d5b66 100644 --- a/document/src/test/java/com/yahoo/document/DocumentTypeManagerTestCase.java +++ b/document/src/test/java/com/yahoo/document/DocumentTypeManagerTestCase.java @@ -25,7 +25,6 @@ public class DocumentTypeManagerTestCase { // Verify that we can register and retrieve fields. @Test - @SuppressWarnings("deprecation") public void testRegisterAndGet() { DocumentTypeManager manager = new DocumentTypeManager(); @@ -59,7 +58,6 @@ public class DocumentTypeManagerTestCase { assertSame(DataType.DOUBLE, doubleType); } - @SuppressWarnings("deprecation") @Test public void testRecursiveRegister() { StructDataType struct = new StructDataType("mystruct"); @@ -88,7 +86,6 @@ public class DocumentTypeManagerTestCase { assertEquals(docType2, manager.getDocumentType(new DataTypeName("myotherdoc"))); } - @SuppressWarnings("deprecation") @Test public void testMultipleDocuments() { DocumentType docType1 = new DocumentType("foo0"); @@ -122,7 +119,6 @@ public class DocumentTypeManagerTestCase { assertEquals(manager.getDocumentTypes().get(new DataTypeName("foo1")), docType2); } - @SuppressWarnings("deprecation") @Test public void testReverseMapOrder() { DocumentTypeManager manager = createConfiguredManager("file:src/test/document/documentmanager.map.cfg"); @@ -131,7 +127,6 @@ public class DocumentTypeManagerTestCase { assertNotNull(manager.getDataTypeByCode(1001)); } - @SuppressWarnings("deprecation") @Test public void testConfigure() { DocumentTypeManager manager = createConfiguredManager("file:src/test/document/documentmanager.cfg"); @@ -502,7 +497,6 @@ search annotationsimplicitstruct { assertReferenceTypePresentInManager(manager, 12345678, "referenced_type"); } - @SuppressWarnings("deprecation") private static void assertReferenceTypePresentInManager(DocumentTypeManager manager, int refTypeId, String refTargetTypeName) { DataType type = manager.getDataTypeByCode(refTypeId); diff --git a/document/src/test/java/com/yahoo/document/DocumentUpdateTestCase.java b/document/src/test/java/com/yahoo/document/DocumentUpdateTestCase.java index 9bbc894758b..9733cd41a88 100644 --- a/document/src/test/java/com/yahoo/document/DocumentUpdateTestCase.java +++ b/document/src/test/java/com/yahoo/document/DocumentUpdateTestCase.java @@ -502,7 +502,6 @@ public class DocumentUpdateTestCase { } @Test - @SuppressWarnings("deprecation") public void testFieldUpdatesInDocUp() { DocumentType t1 = new DocumentType("doo"); Field f1 = new Field("field1", DataType.STRING); diff --git a/document/src/test/java/com/yahoo/document/serialization/SerializeAnnotationsTestCase.java b/document/src/test/java/com/yahoo/document/serialization/SerializeAnnotationsTestCase.java index 315bd1d5bd4..321df9e2660 100644 --- a/document/src/test/java/com/yahoo/document/serialization/SerializeAnnotationsTestCase.java +++ b/document/src/test/java/com/yahoo/document/serialization/SerializeAnnotationsTestCase.java @@ -37,7 +37,6 @@ import static org.junit.Assert.assertEquals; * test to fail, so you will need to update the * AnnotationDeserialization component to handle the format changes. */ -@SuppressWarnings("deprecation") public class SerializeAnnotationsTestCase { private static final String PATH = "src/tests/serialization/"; diff --git a/document/src/test/java/com/yahoo/document/serialization/VespaDocumentSerializerTestCase.java b/document/src/test/java/com/yahoo/document/serialization/VespaDocumentSerializerTestCase.java index 9814e765a89..57f9a14d60b 100644 --- a/document/src/test/java/com/yahoo/document/serialization/VespaDocumentSerializerTestCase.java +++ b/document/src/test/java/com/yahoo/document/serialization/VespaDocumentSerializerTestCase.java @@ -18,7 +18,6 @@ import static org.junit.Assert.assertEquals; * @author Simon Thoresen Hult * @author vekterli */ -@SuppressWarnings("deprecation") public class VespaDocumentSerializerTestCase { @Test |