From 1bbd3685a3bd141173b0e84fed61e7a026b85338 Mon Sep 17 00:00:00 2001 From: ddunne Date: Mon, 20 Jun 2011 15:47:35 -0700 Subject: refactor: Cleanup and fix production tests --- .../artifact/search/ArtifactQueryPerformanceTests.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'plugins/org.eclipse.osee.framework.skynet.core.test') diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactQueryPerformanceTests.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactQueryPerformanceTests.java index 99ce4d5f5d3..078ce641a78 100644 --- a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactQueryPerformanceTests.java +++ b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactQueryPerformanceTests.java @@ -14,11 +14,9 @@ import static org.eclipse.osee.framework.core.enums.DeletionFlag.EXCLUDE_DELETED import static org.eclipse.osee.framework.core.enums.DeletionFlag.INCLUDE_DELETED; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; - import java.util.ArrayList; import java.util.Arrays; import java.util.List; - import org.eclipse.osee.framework.core.data.IArtifactType; import org.eclipse.osee.framework.core.enums.CoreArtifactTypes; import org.eclipse.osee.framework.core.exception.OseeCoreException; @@ -78,8 +76,10 @@ public class ArtifactQueryPerformanceTests { long elapsedTime = System.currentTimeMillis() - startTime; System.out.println(String.format("testGetArtifactsByHRID took %dms for %d artifacts", elapsedTime, result.size())); assertTrue("No artifacts found", result.size() > 0); - assertTrue(String.format("Elapsed time for artifact by hrid query took %dms. It should take less than 180ms.", - elapsedTime), elapsedTime < 180); + assertTrue( + String.format( + "WAIT FOR LBA9 MIGRATION - Elapsed time for artifact by hrid query took %dms. It should take less than 180ms.", + elapsedTime), elapsedTime < 180); } @org.junit.Test @@ -97,8 +97,10 @@ public class ArtifactQueryPerformanceTests { System.out.println(String.format("testGetArtifactsByHRIDNoDeleted took %dms for %d artifacts", elapsedTime, result.size())); assertTrue("No artifacts found", result.size() > 0); - assertTrue(String.format("Elapsed time for artifact by hrid query took %dms. It should take less than 130ms.", - elapsedTime), elapsedTime < 130); + assertTrue( + String.format( + "WAIT FOR LBA9 MIGRATION - Elapsed time for artifact by hrid query took %dms. It should take less than 130ms.", + elapsedTime), elapsedTime < 130); } @org.junit.Test -- cgit v1.2.3