summaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2018-04-05 22:31:40 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2018-04-05 22:47:25 +0200
commit97874347c52fafaf81f5c51f23816fdd99c7436c (patch)
tree66682cfcb4fdac7a08da1b00ca4caf58a4027a42 /container-search/src/test/java/com
parentfcbe9060eb975ac488c665f097d516dec4226811 (diff)
Clean out some unknown debug code.
Diffstat (limited to 'container-search/src/test/java/com')
-rw-r--r--container-search/src/test/java/com/yahoo/search/debug/test/SearchChainTextRepresentationTestCase.java51
1 files changed, 0 insertions, 51 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/debug/test/SearchChainTextRepresentationTestCase.java b/container-search/src/test/java/com/yahoo/search/debug/test/SearchChainTextRepresentationTestCase.java
deleted file mode 100644
index faa9fba033b..00000000000
--- a/container-search/src/test/java/com/yahoo/search/debug/test/SearchChainTextRepresentationTestCase.java
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.search.debug.test;
-
-import junit.framework.TestCase;
-
-import com.yahoo.search.debug.SearchChainTextRepresentation;
-import com.yahoo.search.searchchain.SearchChainRegistry;
-import com.yahoo.search.searchchain.test.SimpleSearchChain;
-
-/**
- * Test of SearchChainTextRepresentation.
- * @author tonytv
- */
-public class SearchChainTextRepresentationTestCase extends TestCase {
-
- public void testTextRepresentation() {
- SearchChainTextRepresentation textRepresentation =
- new SearchChainTextRepresentation(SimpleSearchChain.orderedChain, new SearchChainRegistry());
-
- String[] expected = {
- "test [Searchchain] {",
- " one [Searcher] {",
- " Reason for forwarding to this search chain.",
- " child-chain [Searchchain] {",
- " child-searcher [Searcher]",
- " }",
- " child-chain [Searchchain] {",
- " child-searcher [Searcher]",
- " }",
- " }",
- " two [Searcher] {",
- " Reason for forwarding to this search chain.",
- " child-chain [Searchchain] {",
- " child-searcher [Searcher]",
- " }",
- " child-chain [Searchchain] {",
- " child-searcher [Searcher]",
- " }",
- " }",
- "}"
- };
-
- String[] result = textRepresentation.toString().split("\n");
- assertEquals(expected.length, result.length);
-
- int i = 0;
- for (String line : textRepresentation.toString().split("\n"))
- assertEquals(expected[i++], line);
- }
-
-}