cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject [2/2] cayenne git commit: Cleanup deprecation warnings in tests
Date Fri, 28 Apr 2017 07:46:48 GMT
Cleanup deprecation warnings in tests


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/87c9c8f4
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/87c9c8f4
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/87c9c8f4

Branch: refs/heads/master
Commit: 87c9c8f4b080f28b09f7b1ea65a89d3e3c2a5748
Parents: 231069a
Author: Nikita Timofeev <stariy95@gmail.com>
Authored: Fri Apr 28 10:41:32 2017 +0300
Committer: Nikita Timofeev <stariy95@gmail.com>
Committed: Fri Apr 28 10:41:32 2017 +0300

----------------------------------------------------------------------
 .../java/org/apache/cayenne/CayenneContextWithDataContextIT.java    | 1 +
 .../java/org/apache/cayenne/access/ClientServerChannelQueryIT.java  | 1 +
 .../apache/cayenne/configuration/rop/client/ClientModuleTest.java   | 1 +
 .../apache/cayenne/configuration/rop/client/ClientRuntimeTest.java  | 1 +
 .../java/org/apache/cayenne/lifecycle/audit/AuditableFilterIT.java  | 1 +
 .../org/apache/cayenne/lifecycle/audit/AuditableFilterTest.java     | 1 +
 .../cayenne/lifecycle/sort/WeightedAshwoodEntitySorterTest.java     | 1 +
 .../test/java/org/apache/cayenne/query/SelectQueryCacheKeyIT.java   | 1 +
 8 files changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/87c9c8f4/cayenne-client/src/test/java/org/apache/cayenne/CayenneContextWithDataContextIT.java
----------------------------------------------------------------------
diff --git a/cayenne-client/src/test/java/org/apache/cayenne/CayenneContextWithDataContextIT.java
b/cayenne-client/src/test/java/org/apache/cayenne/CayenneContextWithDataContextIT.java
index 25a636c..5449531 100644
--- a/cayenne-client/src/test/java/org/apache/cayenne/CayenneContextWithDataContextIT.java
+++ b/cayenne-client/src/test/java/org/apache/cayenne/CayenneContextWithDataContextIT.java
@@ -97,6 +97,7 @@ public class CayenneContextWithDataContextIT extends ClientCase {
         }
     }
 
+    @SuppressWarnings("deprecation")
     @Test
     public void testLocalCacheStaysLocal() {
 

http://git-wip-us.apache.org/repos/asf/cayenne/blob/87c9c8f4/cayenne-client/src/test/java/org/apache/cayenne/access/ClientServerChannelQueryIT.java
----------------------------------------------------------------------
diff --git a/cayenne-client/src/test/java/org/apache/cayenne/access/ClientServerChannelQueryIT.java
b/cayenne-client/src/test/java/org/apache/cayenne/access/ClientServerChannelQueryIT.java
index ff91c1a..967d679 100644
--- a/cayenne-client/src/test/java/org/apache/cayenne/access/ClientServerChannelQueryIT.java
+++ b/cayenne-client/src/test/java/org/apache/cayenne/access/ClientServerChannelQueryIT.java
@@ -83,6 +83,7 @@ public class ClientServerChannelQueryIT extends ClientCase {
         tMtTable2.insert(2, 1, "g2");
     }
 
+    @SuppressWarnings("deprecation")
     @Test
     public void testPaginatedQueryServerCacheOverflow() throws Exception {
         createSevenMtTable1sDataSet();

http://git-wip-us.apache.org/repos/asf/cayenne/blob/87c9c8f4/cayenne-client/src/test/java/org/apache/cayenne/configuration/rop/client/ClientModuleTest.java
----------------------------------------------------------------------
diff --git a/cayenne-client/src/test/java/org/apache/cayenne/configuration/rop/client/ClientModuleTest.java
b/cayenne-client/src/test/java/org/apache/cayenne/configuration/rop/client/ClientModuleTest.java
index acf77c4..04ceafe 100644
--- a/cayenne-client/src/test/java/org/apache/cayenne/configuration/rop/client/ClientModuleTest.java
+++ b/cayenne-client/src/test/java/org/apache/cayenne/configuration/rop/client/ClientModuleTest.java
@@ -39,6 +39,7 @@ import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertSame;
 import static org.junit.Assert.assertTrue;
 
+@SuppressWarnings("deprecation")
 public class ClientModuleTest {
 
     @Test

http://git-wip-us.apache.org/repos/asf/cayenne/blob/87c9c8f4/cayenne-client/src/test/java/org/apache/cayenne/configuration/rop/client/ClientRuntimeTest.java
----------------------------------------------------------------------
diff --git a/cayenne-client/src/test/java/org/apache/cayenne/configuration/rop/client/ClientRuntimeTest.java
b/cayenne-client/src/test/java/org/apache/cayenne/configuration/rop/client/ClientRuntimeTest.java
index 2156299..30f3c8a 100644
--- a/cayenne-client/src/test/java/org/apache/cayenne/configuration/rop/client/ClientRuntimeTest.java
+++ b/cayenne-client/src/test/java/org/apache/cayenne/configuration/rop/client/ClientRuntimeTest.java
@@ -43,6 +43,7 @@ import static org.junit.Assert.assertNotSame;
 import static org.junit.Assert.assertSame;
 import static org.junit.Assert.assertTrue;
 
+@SuppressWarnings("deprecation")
 public class ClientRuntimeTest {
 
     @Test

http://git-wip-us.apache.org/repos/asf/cayenne/blob/87c9c8f4/cayenne-lifecycle/src/test/java/org/apache/cayenne/lifecycle/audit/AuditableFilterIT.java
----------------------------------------------------------------------
diff --git a/cayenne-lifecycle/src/test/java/org/apache/cayenne/lifecycle/audit/AuditableFilterIT.java
b/cayenne-lifecycle/src/test/java/org/apache/cayenne/lifecycle/audit/AuditableFilterIT.java
index 121526c..730f51b 100644
--- a/cayenne-lifecycle/src/test/java/org/apache/cayenne/lifecycle/audit/AuditableFilterIT.java
+++ b/cayenne-lifecycle/src/test/java/org/apache/cayenne/lifecycle/audit/AuditableFilterIT.java
@@ -43,6 +43,7 @@ import org.apache.cayenne.lifecycle.relationship.ObjectIdRelationshipHandler;
 import org.apache.cayenne.lifecycle.unit.AuditableServerCase;
 import org.junit.Test;
 
+@Deprecated
 public class AuditableFilterIT extends AuditableServerCase {
 
 	@Test

http://git-wip-us.apache.org/repos/asf/cayenne/blob/87c9c8f4/cayenne-lifecycle/src/test/java/org/apache/cayenne/lifecycle/audit/AuditableFilterTest.java
----------------------------------------------------------------------
diff --git a/cayenne-lifecycle/src/test/java/org/apache/cayenne/lifecycle/audit/AuditableFilterTest.java
b/cayenne-lifecycle/src/test/java/org/apache/cayenne/lifecycle/audit/AuditableFilterTest.java
index 4a8b251..228ef65 100644
--- a/cayenne-lifecycle/src/test/java/org/apache/cayenne/lifecycle/audit/AuditableFilterTest.java
+++ b/cayenne-lifecycle/src/test/java/org/apache/cayenne/lifecycle/audit/AuditableFilterTest.java
@@ -44,6 +44,7 @@ import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
 
+@Deprecated
 public class AuditableFilterTest {
 
     private AuditableProcessor processor;

http://git-wip-us.apache.org/repos/asf/cayenne/blob/87c9c8f4/cayenne-lifecycle/src/test/java/org/apache/cayenne/lifecycle/sort/WeightedAshwoodEntitySorterTest.java
----------------------------------------------------------------------
diff --git a/cayenne-lifecycle/src/test/java/org/apache/cayenne/lifecycle/sort/WeightedAshwoodEntitySorterTest.java
b/cayenne-lifecycle/src/test/java/org/apache/cayenne/lifecycle/sort/WeightedAshwoodEntitySorterTest.java
index 5a94b84..4d54caf 100644
--- a/cayenne-lifecycle/src/test/java/org/apache/cayenne/lifecycle/sort/WeightedAshwoodEntitySorterTest.java
+++ b/cayenne-lifecycle/src/test/java/org/apache/cayenne/lifecycle/sort/WeightedAshwoodEntitySorterTest.java
@@ -30,6 +30,7 @@ import java.util.List;
 
 import static org.junit.Assert.assertEquals;
 
+@Deprecated
 public class WeightedAshwoodEntitySorterTest {
 
     private ServerRuntime runtime;

http://git-wip-us.apache.org/repos/asf/cayenne/blob/87c9c8f4/cayenne-server/src/test/java/org/apache/cayenne/query/SelectQueryCacheKeyIT.java
----------------------------------------------------------------------
diff --git a/cayenne-server/src/test/java/org/apache/cayenne/query/SelectQueryCacheKeyIT.java
b/cayenne-server/src/test/java/org/apache/cayenne/query/SelectQueryCacheKeyIT.java
index 701ca7b..5b4bc94 100644
--- a/cayenne-server/src/test/java/org/apache/cayenne/query/SelectQueryCacheKeyIT.java
+++ b/cayenne-server/src/test/java/org/apache/cayenne/query/SelectQueryCacheKeyIT.java
@@ -34,6 +34,7 @@ import static org.junit.Assert.assertNotEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
 
+@SuppressWarnings("deprecation")
 @UseServerRuntime(CayenneProjects.TESTMAP_PROJECT)
 public class SelectQueryCacheKeyIT extends ServerCase {
 


Mime
View raw message