summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2020-07-17 11:46:25 +0200
committerJon Bratseth <bratseth@gmail.com>2020-07-17 11:46:25 +0200
commit961792ac50ff3ebf0f54409e284bc85eba998990 (patch)
treedbf86f648d90f5140811e6e1d2aa61b435fb0281
parent667eedc92b4c9c81c3872e000a8f26779b9bf131 (diff)
Remove temporary test
-rw-r--r--container-search/src/test/java/com/yahoo/search/query/profile/config/test/XmlReadingTestCase.java32
1 files changed, 0 insertions, 32 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/query/profile/config/test/XmlReadingTestCase.java b/container-search/src/test/java/com/yahoo/search/query/profile/config/test/XmlReadingTestCase.java
index bd14efb4dfa..445073ced3a 100644
--- a/container-search/src/test/java/com/yahoo/search/query/profile/config/test/XmlReadingTestCase.java
+++ b/container-search/src/test/java/com/yahoo/search/query/profile/config/test/XmlReadingTestCase.java
@@ -14,7 +14,6 @@ import com.yahoo.search.query.profile.compiled.CompiledQueryProfileRegistry;
import com.yahoo.search.query.profile.config.QueryProfileXMLReader;
import com.yahoo.search.query.profile.types.FieldDescription;
import com.yahoo.search.query.profile.types.QueryProfileType;
-import org.junit.Ignore;
import org.junit.Test;
import java.util.HashMap;
@@ -32,37 +31,6 @@ import static org.junit.Assert.fail;
public class XmlReadingTestCase {
@Test
- @Ignore
- public void testTmp() {
- QueryProfileRegistry registry =
- new QueryProfileXMLReader().read("/Users/bratseth/development/slingstone/massmedia_serving/homerun/src/main/application/search/flattened");
- long startTime = System.currentTimeMillis();
- System.out.println("Compiling ...");
- CompiledQueryProfileRegistry cRegistry = registry.compile();
- System.out.println("Done in " + (( System.currentTimeMillis() - startTime) / 1000) + " seconds");
- System.out.println("");
- CompiledQueryProfile cProfile = cRegistry.getComponent("megastream_unified");
-
- Query q = new Query("?debug=true&clientId=default&langReg=en-US&format=xml&tracelevel=4&" +
- "trace.timestamps=true&site=frontpage&streamBucketId=ga&configId=default&" +
- "queryProfile=megastream_unified&lang=ENGLISH&region=US&", cProfile);
- q.properties().listProperties();
-
- // About 60 ms with tracelevel=4, a few ms with tracelevel=0
- startTime = System.currentTimeMillis();
- System.out.println("Creating query ...");
- new Query("?debug=true&clientId=default&langReg=en-US&format=xml&tracelevel=0&" +
- "trace.timestamps=true&site=frontpage&streamBucketId=ga&configId=default&" +
- "queryProfile=megastream_unified&lang=ENGLISH&region=US&", cProfile);
- System.out.println("Done in " + (System.currentTimeMillis() - startTime) + " ms");
-
- startTime = System.currentTimeMillis();
- System.out.println("listProperties() ...");
- q.properties().listProperties().forEach((k, v) -> System.out.println(" " + k + "=" + v));
- System.out.println("Done in " + (System.currentTimeMillis() - startTime) + " ms");
- }
-
- @Test
public void testInheritance() {
QueryProfileRegistry registry =
new QueryProfileXMLReader().read("src/test/java/com/yahoo/search/query/profile/config/test/inheritance");