From 22a61f19eb8f0e4a6d780415749254f4bdbcb20a Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Fri, 21 Dec 2007 07:43:23 +0000
Subject: [PATCH] This moves the longest unit tests to the slow group and therefore from the precommit target to the testall target of the build.xml.
---
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/server/AggregationTest.java | 12 ++++++------
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java | 16 ++++++++--------
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/GenerationIdTest.java | 4 ++--
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/util/CertificateManagerTestCase.java | 4 ++--
4 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/server/AggregationTest.java b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/server/AggregationTest.java
index 629c525..58695c6 100644
--- a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/server/AggregationTest.java
+++ b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/server/AggregationTest.java
@@ -443,7 +443,7 @@
* @throws Exception
* If the test unexpectedly fails.
*/
- @Test
+ @Test(groups="slow")
public void testAggregationDisabledReference1() throws Exception {
// Add the entry and the connection handler.
TestCaseUtils.addEntry(TEST_CHILD_6);
@@ -504,7 +504,7 @@
* @throws Exception
* If the test unexpectedly fails.
*/
- @Test
+ @Test(groups="slow")
public void testAggregationDisabledReference2() throws Exception {
// Add the entry.
TestCaseUtils.addEntry(TEST_CHILD_7);
@@ -566,7 +566,7 @@
* @throws Exception
* If the test unexpectedly fails.
*/
- @Test
+ @Test(groups="slow")
public void testAggregationDisabledReference3() throws Exception {
// Add the entry.
TestCaseUtils.addEntry(TEST_CHILD_6);
@@ -629,7 +629,7 @@
* @throws Exception
* If the test unexpectedly fails.
*/
- @Test
+ @Test(groups="slow")
public void testAggregationDisabledReference4() throws Exception {
// Add the entry.
TestCaseUtils.addEntry(TEST_CHILD_7);
@@ -745,7 +745,7 @@
* @throws Exception
* If the test unexpectedly fails.
*/
- @Test
+ @Test(groups="slow")
public void testCannotDeleteReferencedComponent() throws Exception {
// Add the entry.
TestCaseUtils.addEntry(TEST_CHILD_7);
@@ -819,7 +819,7 @@
* @throws Exception
* If the test unexpectedly fails.
*/
- @Test
+ @Test(groups="slow")
public void testCannotDisableReferencedComponent() throws Exception {
// Add the entry.
TestCaseUtils.addEntry(TEST_CHILD_7);
diff --git a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/GenerationIdTest.java b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/GenerationIdTest.java
index ae5e626..5ba1a2d 100644
--- a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/GenerationIdTest.java
+++ b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/GenerationIdTest.java
@@ -1241,7 +1241,7 @@
* at the moement when the replication is enabled.
* @throws Exception
*/
- @Test(enabled=false)
+ @Test(enabled=false, groups="slow")
public void testServerStop() throws Exception
{
String testCase = "testServerStop";
@@ -1285,7 +1285,7 @@
debugInfo("Successfully ending " + testCase);
}
}
- @Test(enabled=true)
+ @Test(enabled=true, groups="slow")
public void generationIdTest() throws Exception
{
testSingleRS();
diff --git a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java
index ccdac3c..71c6240 100644
--- a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java
+++ b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java
@@ -705,7 +705,7 @@
/**
* Tests the import side of the Initialize task
*/
- @Test(enabled=true)
+ @Test(enabled=true, groups="slow")
public void initializeImport() throws Exception
{
String testCase = "InitializeImport";
@@ -761,7 +761,7 @@
/**
* Tests the export side of the Initialize task
*/
- @Test(enabled=true)
+ @Test(enabled=true, groups="slow")
public void initializeExport() throws Exception
{
String testCase = "Replication/InitializeExport";
@@ -795,7 +795,7 @@
/**
* Tests the import side of the InitializeTarget task
*/
- @Test(enabled=true)
+ @Test(enabled=true, groups="slow")
public void initializeTargetExport() throws Exception
{
String testCase = "Replication/InitializeTargetExport";
@@ -835,7 +835,7 @@
/**
* Tests the import side of the InitializeTarget task
*/
- @Test(enabled=true)
+ @Test(enabled=true, groups="slow")
public void initializeTargetExportAll() throws Exception
{
String testCase = "Replication/InitializeTargetExportAll";
@@ -880,7 +880,7 @@
/**
* Tests the import side of the InitializeTarget task
*/
- @Test(enabled=true)
+ @Test(enabled=true, groups="slow")
public void initializeTargetImport() throws Exception
{
String testCase = "InitializeTargetImport";
@@ -1063,7 +1063,7 @@
* ReplServerInfoMessage(s) exchanged by the replication
* servers.
*/
- @Test(enabled=true)
+ @Test(enabled=true, groups="slow")
public void testReplServerInfos() throws Exception
{
String testCase = "Replication/TestReplServerInfos";
@@ -1135,7 +1135,7 @@
changelog1 = null;
}
- @Test(enabled=true)
+ @Test(enabled=true, groups="slow")
public void initializeTargetExportMultiSS() throws Exception
{
try
@@ -1185,7 +1185,7 @@
}
}
- @Test(enabled=true)
+ @Test(enabled=true, groups="slow")
public void initializeExportMultiSS() throws Exception
{
String testCase = "Replication/InitializeExportMultiSS";
diff --git a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/util/CertificateManagerTestCase.java b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/util/CertificateManagerTestCase.java
index b08ba9f..179594d 100644
--- a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/util/CertificateManagerTestCase.java
+++ b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/util/CertificateManagerTestCase.java
@@ -829,7 +829,7 @@
*
* @throws Exception If a problem occurs.
*/
- @Test()
+ @Test(groups="slow")
public void testGenerateSelfSignedCertificatePKCS12()
throws Exception
{
@@ -1061,7 +1061,7 @@
*
* @throws Exception If a problem occurs.
*/
- @Test()
+ @Test(groups="slow")
public void testGenerateCSRPKCS12()
throws Exception
{
--
Gitblit v1.10.0