syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ashaki...@apache.org
Subject svn commit: r1438003 - /syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/
Date Thu, 24 Jan 2013 14:05:39 GMT
Author: ashakirin
Date: Thu Jan 24 14:05:38 2013
New Revision: 1438003

URL: http://svn.apache.org/viewvc?rev=1438003&view=rev
Log:
[SYNCOPE-289] Fixed skipping tests

Modified:
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AuthenticationTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ConfigurationTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ConnInstanceTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/DerivedSchemaTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/LoggerTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/NotificationTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/PolicyTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ReportTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ResourceTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/SchemaTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/SearchTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserRequestTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/VirtualSchemaTestITCase.java
    syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/WorkflowTestITCase.java

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java (original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java Thu Jan
24 14:05:38 2013
@@ -133,6 +133,10 @@ public abstract class AbstractTest {
 
     protected PolicyService policyService;
     
+    public AbstractTest(final String contentType) {
+        this.contentType = contentType;
+    }
+    
     private void setupContext() throws Exception {
         this.testContextManager = new TestContextManager(getClass());
         this.testContextManager.prepareTestInstance(this);
@@ -273,7 +277,7 @@ public abstract class AbstractTest {
 
     @Parameters
     public static Collection<Object[]> data() {
-      Object[][] data = new Object[][]{};
+      Object[][] data = new Object[][]{{"application/json"}};
       return Arrays.asList(data);
     }
 }

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AuthenticationTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AuthenticationTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AuthenticationTestITCase.java
(original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AuthenticationTestITCase.java
Thu Jan 24 14:05:38 2013
@@ -53,6 +53,11 @@ import org.springframework.web.client.Ht
 @FixMethodOrder(MethodSorters.JVM)
 public class AuthenticationTestITCase extends AbstractTest {
 
+    // Enable running test more than once with parameters
+    public AuthenticationTestITCase(String contentType) {
+        super(contentType);
+     }
+
     @Test
     public void testAdminEntitlements() {
         // 1. as anonymous, read all available entitlements

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ConfigurationTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ConfigurationTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ConfigurationTestITCase.java
(original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ConfigurationTestITCase.java
Thu Jan 24 14:05:38 2013
@@ -36,6 +36,11 @@ import org.springframework.web.client.Ht
 @FixMethodOrder(MethodSorters.JVM)
 public class ConfigurationTestITCase extends AbstractTest {
 
+    // Enable running test more than once with parameters
+    public ConfigurationTestITCase(String contentType) {
+        super(contentType);
+     }
+
     @Test
     public void create() {
         ConfigurationTO configurationTO = new ConfigurationTO();

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ConnInstanceTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ConnInstanceTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ConnInstanceTestITCase.java
(original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ConnInstanceTestITCase.java
Thu Jan 24 14:05:38 2013
@@ -57,6 +57,11 @@ public class ConnInstanceTestITCase exte
 
     private static String bundlesDirectory;
 
+    // Enable running test more than once with parameters
+    public ConnInstanceTestITCase(String contentType) {
+        super(contentType);
+    }
+
     @BeforeClass
     public static void init()
             throws IOException {

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/DerivedSchemaTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/DerivedSchemaTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/DerivedSchemaTestITCase.java
(original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/DerivedSchemaTestITCase.java
Thu Jan 24 14:05:38 2013
@@ -39,6 +39,11 @@ import org.junit.runners.MethodSorters;
 @FixMethodOrder(MethodSorters.JVM)
 public class DerivedSchemaTestITCase extends AbstractTest {
 
+    // Enable running test more than once with parameters
+    public DerivedSchemaTestITCase(String contentType) {
+        super(contentType);
+    }
+
     @Test
     public void list() {
         @SuppressWarnings("unchecked")

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/LoggerTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/LoggerTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/LoggerTestITCase.java (original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/LoggerTestITCase.java Thu
Jan 24 14:05:38 2013
@@ -38,6 +38,11 @@ import ch.qos.logback.classic.Level;
 @FixMethodOrder(MethodSorters.JVM)
 public class LoggerTestITCase extends AbstractTest {
 
+    // Enable running test more than once with parameters
+    public LoggerTestITCase(String contentType) {
+        super(contentType);
+    }
+
     @Test
     public void listLogs() {
         List<LoggerTO> loggers = loggerService.listLogs();

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/NotificationTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/NotificationTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/NotificationTestITCase.java
(original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/NotificationTestITCase.java
Thu Jan 24 14:05:38 2013
@@ -43,6 +43,11 @@ import org.junit.runners.MethodSorters;
 @FixMethodOrder(MethodSorters.JVM)
 public class NotificationTestITCase extends AbstractTest {
 
+    // Enable running test more than once with parameters
+    public NotificationTestITCase(String contentType) {
+        super(contentType);
+    }
+
     @Test
     public void read() {
         NotificationTO notificationTO = notificationService.read(100L);

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/PolicyTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/PolicyTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/PolicyTestITCase.java (original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/PolicyTestITCase.java Thu
Jan 24 14:05:38 2013
@@ -42,6 +42,11 @@ import org.junit.runners.MethodSorters;
 @FixMethodOrder(MethodSorters.JVM)
 public class PolicyTestITCase extends AbstractTest {
 
+    // Enable running test more than once with parameters
+    public PolicyTestITCase(String contentType) {
+        super(contentType);
+    }
+
     @Test
     public void listByType() {
         List<SyncPolicyTO> policyTOs = policyService.list(PolicyType.SYNC);

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ReportTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ReportTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ReportTestITCase.java (original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ReportTestITCase.java Thu
Jan 24 14:05:38 2013
@@ -44,6 +44,11 @@ import org.springframework.web.client.Ht
 @FixMethodOrder(MethodSorters.JVM)
 public class ReportTestITCase extends AbstractTest {
 
+    // Enable running test more than once with parameters
+    public ReportTestITCase(String contentType) {
+        super(contentType);
+    }
+
     @Test
     public void getReportletClasses() {
         List<String> reportletClasses = reportService.getReportletConfClasses();

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ResourceTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ResourceTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ResourceTestITCase.java
(original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/ResourceTestITCase.java
Thu Jan 24 14:05:38 2013
@@ -48,6 +48,11 @@ import org.springframework.web.client.Ht
 @FixMethodOrder(MethodSorters.JVM)
 public class ResourceTestITCase extends AbstractTest {
 
+    // Enable running test more than once with parameters
+    public ResourceTestITCase(String contentType) {
+        super(contentType);
+    }
+
     @Test
     public void getPropagationActionsClasses() {
         Set<String> actions = resourceService.getPropagationActionsClasses();

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java (original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java Thu
Jan 24 14:05:38 2013
@@ -44,6 +44,11 @@ import org.springframework.web.client.Ht
 @FixMethodOrder(MethodSorters.JVM)
 public class RoleTestITCase extends AbstractTest {
 
+    // Enable running test more than once with parameters
+    public RoleTestITCase(String contentType) {
+        super(contentType);
+    }
+
     private RoleTO buildBasicRoleTO(final String name) {
         RoleTO roleTO = new RoleTO();
         roleTO.setName(name + getUUIDString());

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/SchemaTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/SchemaTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/SchemaTestITCase.java (original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/SchemaTestITCase.java Thu
Jan 24 14:05:38 2013
@@ -50,6 +50,11 @@ import org.springframework.web.client.Ht
 @FixMethodOrder(MethodSorters.JVM)
 public class SchemaTestITCase extends AbstractTest {
 
+    // Enable running test more than once with parameters
+    public SchemaTestITCase(String contentType) {
+        super(contentType);
+    }
+
     @Test
     public void create() {
         SchemaTO schemaTO = buildSchemaTO("testAttribute", SchemaType.String);

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/SearchTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/SearchTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/SearchTestITCase.java (original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/SearchTestITCase.java Thu
Jan 24 14:05:38 2013
@@ -41,6 +41,11 @@ import org.junit.runners.MethodSorters;
 @FixMethodOrder(MethodSorters.JVM)
 public class SearchTestITCase extends AbstractTest {
 
+    // Enable running test more than once with parameters
+    public SearchTestITCase(String contentType) {
+        super(contentType);
+    }
+
     @Test
     public void searchUser() {
         // LIKE

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java (original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java Thu
Jan 24 14:05:38 2013
@@ -66,6 +66,11 @@ public class TaskTestITCase extends Abst
 
     private static final Long SYNC_TASK_ID = 4L;
 
+    // Enable running test more than once with parameters
+    public TaskTestITCase(String contentType) {
+        super(contentType);
+    }
+
     @Test
     public void getJobClasses() {
         Set<String> jobClasses = taskService.getJobClasses();

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserRequestTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserRequestTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserRequestTestITCase.java
(original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserRequestTestITCase.java
Thu Jan 24 14:05:38 2013
@@ -46,6 +46,11 @@ import org.springframework.web.client.Ht
 @FixMethodOrder(MethodSorters.JVM)
 public class UserRequestTestITCase extends AbstractTest {
 
+    // Enable running test more than once with parameters
+    public UserRequestTestITCase(String contentType) {
+        super(contentType);
+    }
+
     @Test
     public void create() {
         // 1. set create request not allowed

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java (original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java Thu
Jan 24 14:05:38 2013
@@ -74,6 +74,11 @@ import org.springframework.web.client.Ht
 @FixMethodOrder(MethodSorters.JVM)
 public class UserTestITCase extends AbstractTest {
 
+    // Enable running test more than once with parameters
+    public UserTestITCase(String contentType) {
+        super(contentType);
+    }
+
     private ConnObjectTO readUserConnObj(final String resourceName, final String userId)
{
         return resourceService.getConnector(resourceName, AttributableType.USER, userId);
     }

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/VirtualSchemaTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/VirtualSchemaTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/VirtualSchemaTestITCase.java
(original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/VirtualSchemaTestITCase.java
Thu Jan 24 14:05:38 2013
@@ -37,6 +37,11 @@ import org.junit.runners.MethodSorters;
 @FixMethodOrder(MethodSorters.JVM)
 public class VirtualSchemaTestITCase extends AbstractTest {
 
+    // Enable running test more than once with parameters
+    public VirtualSchemaTestITCase(String contentType) {
+        super(contentType);
+    }
+
     @Test
     public void list() {
         @SuppressWarnings("unchecked")

Modified: syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/WorkflowTestITCase.java
URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/WorkflowTestITCase.java?rev=1438003&r1=1438002&r2=1438003&view=diff
==============================================================================
--- syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/WorkflowTestITCase.java
(original)
+++ syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/WorkflowTestITCase.java
Thu Jan 24 14:05:38 2013
@@ -34,6 +34,11 @@ public class WorkflowTestITCase extends 
 
     public static final String USER_TYPE = "user";
 
+    // Enable running test more than once with parameters
+    public WorkflowTestITCase(String contentType) {
+        super(contentType);
+    }
+
     @Test //TODO TestCase needs to be extended
     public void testGetUserDefinition() {
         WorkflowDefinitionTO definition = workflowService.getDefinition(USER_TYPE);



Mime
View raw message