Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding support for enabling many object creation IT with a sytem prop…
…erty, disabled by default
  • Loading branch information
escowles committed Aug 24, 2014
1 parent caaa43e commit 237c4c7
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -136,6 +136,7 @@
*/
public class FedoraNodesIT extends AbstractResourceIT {

private static final String TEST_ACTIVATION_PROPERTY = "RUN_TEST_CREATE_MANY";
private SimpleDateFormat headerFormat;
private SimpleDateFormat tripleFormat;

Expand Down Expand Up @@ -282,6 +283,11 @@ public void testDeleteObject() throws Exception {

@Test
public void testCreateManyObjects() throws Exception {
if (System.getProperty(TEST_ACTIVATION_PROPERTY) == null) {
logger.info("Not running test because system property not set: {}", TEST_ACTIVATION_PROPERTY);
return;
}

final int manyObjects = 2000;
for ( int i = 0; i < manyObjects; i++ ) {
Thread.sleep(10); // needed to prevent overloading
Expand Down

0 comments on commit 237c4c7

Please sign in to comment.