You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by rw...@apache.org on 2012/11/15 12:47:48 UTC
svn commit: r1409744 -
/stanbol/trunk/cmsadapter/core/src/test/java/org/apache/stanbol/cmsadapter/core/repository/OfflineAccessTest.java
Author: rwesten
Date: Thu Nov 15 11:47:47 2012
New Revision: 1409744
URL: http://svn.apache.org/viewvc?rev=1409744&view=rev
Log:
STANBOL-620: as junit 4.11 does not fix the unit test ordering problem this now executes the @Test initialising the OffileAccess within the @BeforeClass.
Modified:
stanbol/trunk/cmsadapter/core/src/test/java/org/apache/stanbol/cmsadapter/core/repository/OfflineAccessTest.java
Modified: stanbol/trunk/cmsadapter/core/src/test/java/org/apache/stanbol/cmsadapter/core/repository/OfflineAccessTest.java
URL: http://svn.apache.org/viewvc/stanbol/trunk/cmsadapter/core/src/test/java/org/apache/stanbol/cmsadapter/core/repository/OfflineAccessTest.java?rev=1409744&r1=1409743&r2=1409744&view=diff
==============================================================================
--- stanbol/trunk/cmsadapter/core/src/test/java/org/apache/stanbol/cmsadapter/core/repository/OfflineAccessTest.java (original)
+++ stanbol/trunk/cmsadapter/core/src/test/java/org/apache/stanbol/cmsadapter/core/repository/OfflineAccessTest.java Thu Nov 15 11:47:47 2012
@@ -113,10 +113,13 @@ public class OfflineAccessTest {
repository.addAll(Arrays.asList(new Object[] {root, child11, child12, child13, child21, type1, type2,
type3, pd1, pd2}));
+ initOfflineAccess();
}
-
- @Test
- public void testOfflineAccess() {
+
+ /**
+ * no longer a test ... as it needs to run before all others
+ */
+ private static void initOfflineAccess() {
try {
offlineAccess = new OfflineAccess(repository);
} catch (Exception e) {