usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [40/50] [abbrv] git commit: Fixes for all the export tests
Date Fri, 13 Jun 2014 18:54:19 GMT
Fixes for all the export tests


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/df918f85
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/df918f85
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/df918f85

Branch: refs/pull/200/merge
Commit: df918f85477fd0888088a10a99ee6bb9ac3082d8
Parents: e77e935
Author: grey <greyes@apigee.com>
Authored: Thu Jun 12 12:38:12 2014 -0700
Committer: grey <greyes@apigee.com>
Committed: Thu Jun 12 12:38:12 2014 -0700

----------------------------------------------------------------------
 .../usergrid/management/cassandra/ExportServiceIT.java   | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/df918f85/stack/services/src/test/java/org/apache/usergrid/management/cassandra/ExportServiceIT.java
----------------------------------------------------------------------
diff --git a/stack/services/src/test/java/org/apache/usergrid/management/cassandra/ExportServiceIT.java
b/stack/services/src/test/java/org/apache/usergrid/management/cassandra/ExportServiceIT.java
index e992903..12d4e2d 100644
--- a/stack/services/src/test/java/org/apache/usergrid/management/cassandra/ExportServiceIT.java
+++ b/stack/services/src/test/java/org/apache/usergrid/management/cassandra/ExportServiceIT.java
@@ -430,12 +430,13 @@ public class ExportServiceIT {
         JobExecution jobExecution = mock( JobExecution.class );
         when( jobExecution.getJobData() ).thenReturn( jobData );
 
+        Thread.sleep( 1000 );
+
         exportService.doExport( jobExecution );
 
         JSONParser parser = new JSONParser();
 
         org.json.simple.JSONArray a = ( org.json.simple.JSONArray ) parser.parse( new FileReader(
f ) );
-
         assertEquals( 1, a.size() );
         for ( int i = 0; i < a.size(); i++ ) {
             org.json.simple.JSONObject data = ( org.json.simple.JSONObject ) a.get( i );
@@ -491,6 +492,8 @@ public class ExportServiceIT {
         JobExecution jobExecution = mock( JobExecution.class );
         when( jobExecution.getJobData() ).thenReturn( jobData );
 
+        Thread.sleep( 1000 );
+
         exportService.doExport( jobExecution );
 
         JSONParser parser = new JSONParser();
@@ -548,6 +551,8 @@ public class ExportServiceIT {
         JobExecution jobExecution = mock( JobExecution.class );
         when( jobExecution.getJobData() ).thenReturn( jobData );
 
+        Thread.sleep( 1000 );
+
         exportService.doExport( jobExecution );
 
         JSONParser parser = new JSONParser();
@@ -560,7 +565,7 @@ public class ExportServiceIT {
 
 
     //@Ignore("file created won't be deleted when running tests")
-    @Ignore
+    @Test
     public void testExportOneOrganization() throws Exception {
 
         //File f = new File( "exportOneOrganization.json" );
@@ -625,6 +630,8 @@ public class ExportServiceIT {
         JobExecution jobExecution = mock( JobExecution.class );
         when( jobExecution.getJobData() ).thenReturn( jobData );
 
+        Thread.sleep( 1000 );
+
         exportService.doExport( jobExecution );
 
         JSONParser parser = new JSONParser();


Mime
View raw message