diff options
Diffstat (limited to 'vespajlib/src/test/java/com')
15 files changed, 53 insertions, 53 deletions
diff --git a/vespajlib/src/test/java/com/yahoo/collections/CopyOnWriteHashMapTestCase.java b/vespajlib/src/test/java/com/yahoo/collections/CopyOnWriteHashMapTestCase.java index 4370a9b46b0..a66d9c45893 100644 --- a/vespajlib/src/test/java/com/yahoo/collections/CopyOnWriteHashMapTestCase.java +++ b/vespajlib/src/test/java/com/yahoo/collections/CopyOnWriteHashMapTestCase.java @@ -5,7 +5,7 @@ import org.junit.Test; import static org.junit.Assert.*; /** - * @author <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a> + * @author bratseth */ public class CopyOnWriteHashMapTestCase { diff --git a/vespajlib/src/test/java/com/yahoo/collections/FreezableArrayListListener.java b/vespajlib/src/test/java/com/yahoo/collections/FreezableArrayListListener.java index 762ae9d5b60..5a6c331393f 100644 --- a/vespajlib/src/test/java/com/yahoo/collections/FreezableArrayListListener.java +++ b/vespajlib/src/test/java/com/yahoo/collections/FreezableArrayListListener.java @@ -5,7 +5,7 @@ import org.junit.Test; import static org.junit.Assert.fail; /** - * @author <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a> + * @author bratseth */ public class FreezableArrayListListener { diff --git a/vespajlib/src/test/java/com/yahoo/collections/ListenableArrayListTestCase.java b/vespajlib/src/test/java/com/yahoo/collections/ListenableArrayListTestCase.java index e3fb48c7a0e..0412d9fefe4 100644 --- a/vespajlib/src/test/java/com/yahoo/collections/ListenableArrayListTestCase.java +++ b/vespajlib/src/test/java/com/yahoo/collections/ListenableArrayListTestCase.java @@ -8,7 +8,7 @@ import java.util.Arrays; import java.util.ListIterator; /** - * @author <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a> + * @author bratseth */ public class ListenableArrayListTestCase { diff --git a/vespajlib/src/test/java/com/yahoo/io/IOUtilsTestCase.java b/vespajlib/src/test/java/com/yahoo/io/IOUtilsTestCase.java index 7f89cccc6c8..d4df3478da8 100644 --- a/vespajlib/src/test/java/com/yahoo/io/IOUtilsTestCase.java +++ b/vespajlib/src/test/java/com/yahoo/io/IOUtilsTestCase.java @@ -6,7 +6,7 @@ import java.util.Arrays; import java.util.List; /** - * @author <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a> + * @author bratseth */ public class IOUtilsTestCase extends junit.framework.TestCase { diff --git a/vespajlib/src/test/java/com/yahoo/io/reader/NamedReaderTestCase.java b/vespajlib/src/test/java/com/yahoo/io/reader/NamedReaderTestCase.java index 280d0782bd2..4d6954ca9a8 100644 --- a/vespajlib/src/test/java/com/yahoo/io/reader/NamedReaderTestCase.java +++ b/vespajlib/src/test/java/com/yahoo/io/reader/NamedReaderTestCase.java @@ -13,7 +13,7 @@ import com.yahoo.protect.ClassValidator; /** * Tests all method of NamedReader. * - * @author <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a> + * @author bratseth * @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a> */ public class NamedReaderTestCase extends junit.framework.TestCase { diff --git a/vespajlib/src/test/java/com/yahoo/net/URITestCase.java b/vespajlib/src/test/java/com/yahoo/net/URITestCase.java index 7bb2303d7bb..dc04f42e9d1 100644 --- a/vespajlib/src/test/java/com/yahoo/net/URITestCase.java +++ b/vespajlib/src/test/java/com/yahoo/net/URITestCase.java @@ -1,14 +1,12 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.net; - import java.util.List; - /** * Tests the URI class * - * @author <a href="mailto:bratseth@fast.no">Jon S Bratseth</a> + * @author bratseth */ public class URITestCase extends junit.framework.TestCase { @@ -472,41 +470,43 @@ public class URITestCase extends junit.framework.TestCase { // Error reported int bug #2466528 public void testFileURIEmptyHost() { - URI uri = new URI("file:///C:/Inetpub/wwwroot/DW_SHORTCUTS.htm"); - List<URI.Token> tokens = uri.tokenize(); - URI.Token token; - token = tokens.get(0); - assertEquals("file", token.getToken()); - assertEquals(URI.URLContext.URL_SCHEME, token.getContext()); - - token = tokens.get(1); - assertEquals("localhost", token.getToken()); - assertEquals(URI.URLContext.URL_HOST, token.getContext()); - - token = tokens.get(2); - assertEquals("C", token.getToken()); - assertEquals(URI.URLContext.URL_PATH, token.getContext()); - - token = tokens.get(3); - assertEquals("Inetpub", token.getToken()); - assertEquals(URI.URLContext.URL_PATH, token.getContext()); - - token = tokens.get(4); - assertEquals("wwwroot", token.getToken()); - assertEquals(URI.URLContext.URL_PATH, token.getContext()); - - token = tokens.get(5); - assertEquals("DW_SHORTCUTS", token.getToken()); - assertEquals(URI.URLContext.URL_PATH, token.getContext()); - - token = tokens.get(6); - assertEquals("htm", token.getToken()); - assertEquals(URI.URLContext.URL_PATH, token.getContext()); - - try { - tokens.get(7); - fail(); - } catch (IndexOutOfBoundsException ioobe) { - } + URI uri = new URI("file:///C:/Inetpub/wwwroot/DW_SHORTCUTS.htm"); + List<URI.Token> tokens = uri.tokenize(); + URI.Token token; + token = tokens.get(0); + assertEquals("file", token.getToken()); + assertEquals(URI.URLContext.URL_SCHEME, token.getContext()); + + token = tokens.get(1); + assertEquals("localhost", token.getToken()); + assertEquals(URI.URLContext.URL_HOST, token.getContext()); + + token = tokens.get(2); + assertEquals("C", token.getToken()); + assertEquals(URI.URLContext.URL_PATH, token.getContext()); + + token = tokens.get(3); + assertEquals("Inetpub", token.getToken()); + assertEquals(URI.URLContext.URL_PATH, token.getContext()); + + token = tokens.get(4); + assertEquals("wwwroot", token.getToken()); + assertEquals(URI.URLContext.URL_PATH, token.getContext()); + + token = tokens.get(5); + assertEquals("DW_SHORTCUTS", token.getToken()); + assertEquals(URI.URLContext.URL_PATH, token.getContext()); + + token = tokens.get(6); + assertEquals("htm", token.getToken()); + assertEquals(URI.URLContext.URL_PATH, token.getContext()); + + try { + tokens.get(7); + fail(); + } catch (IndexOutOfBoundsException ioobe) { + // Success + } } + } diff --git a/vespajlib/src/test/java/com/yahoo/protect/TestErrorMessage.java b/vespajlib/src/test/java/com/yahoo/protect/TestErrorMessage.java index fa611d8fd71..3e18df93e47 100644 --- a/vespajlib/src/test/java/com/yahoo/protect/TestErrorMessage.java +++ b/vespajlib/src/test/java/com/yahoo/protect/TestErrorMessage.java @@ -2,7 +2,7 @@ package com.yahoo.protect; /** - * @author <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a> + * @author bratseth */ public class TestErrorMessage extends junit.framework.TestCase { diff --git a/vespajlib/src/test/java/com/yahoo/protect/ValidatorTestCase.java b/vespajlib/src/test/java/com/yahoo/protect/ValidatorTestCase.java index 6acbda729e5..d5de37ef50f 100644 --- a/vespajlib/src/test/java/com/yahoo/protect/ValidatorTestCase.java +++ b/vespajlib/src/test/java/com/yahoo/protect/ValidatorTestCase.java @@ -2,7 +2,7 @@ package com.yahoo.protect; /** - * @author <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a> + * @author bratseth */ public class ValidatorTestCase extends junit.framework.TestCase { diff --git a/vespajlib/src/test/java/com/yahoo/system/ProcessExecuterTestCase.java b/vespajlib/src/test/java/com/yahoo/system/ProcessExecuterTestCase.java index 2bf1d8c094a..97be79c069a 100644 --- a/vespajlib/src/test/java/com/yahoo/system/ProcessExecuterTestCase.java +++ b/vespajlib/src/test/java/com/yahoo/system/ProcessExecuterTestCase.java @@ -8,7 +8,7 @@ import java.io.File; import java.io.IOException; /** - * @author <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a> + * @author bratseth */ public class ProcessExecuterTestCase extends junit.framework.TestCase { diff --git a/vespajlib/src/test/java/com/yahoo/text/JSONTest.java b/vespajlib/src/test/java/com/yahoo/text/JSONTest.java index 53be5a1bda5..2e7e1da65f0 100644 --- a/vespajlib/src/test/java/com/yahoo/text/JSONTest.java +++ b/vespajlib/src/test/java/com/yahoo/text/JSONTest.java @@ -8,7 +8,7 @@ import java.util.LinkedHashMap; import java.util.Map; /** - * @author <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a> + * @author bratseth */ public class JSONTest { diff --git a/vespajlib/src/test/java/com/yahoo/text/JSONWriterTestCase.java b/vespajlib/src/test/java/com/yahoo/text/JSONWriterTestCase.java index 16d9fe65769..cbb0c37cdd9 100644 --- a/vespajlib/src/test/java/com/yahoo/text/JSONWriterTestCase.java +++ b/vespajlib/src/test/java/com/yahoo/text/JSONWriterTestCase.java @@ -12,7 +12,7 @@ import static org.junit.Assert.*; /** * Tests the JSON writer * - * @author <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a> + * @author bratseth */ @SuppressWarnings("deprecation") public class JSONWriterTestCase { diff --git a/vespajlib/src/test/java/com/yahoo/text/MapParserMicroBenchmark.java b/vespajlib/src/test/java/com/yahoo/text/MapParserMicroBenchmark.java index 21ab4fd4309..5b4456f14f4 100644 --- a/vespajlib/src/test/java/com/yahoo/text/MapParserMicroBenchmark.java +++ b/vespajlib/src/test/java/com/yahoo/text/MapParserMicroBenchmark.java @@ -8,7 +8,7 @@ import java.util.Map; * A benchmark of map parsing. * Expected time on Jon's mac: 200 microseconds per 1k size map. * - * @author <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a> + * @author bratseth */ public class MapParserMicroBenchmark { diff --git a/vespajlib/src/test/java/com/yahoo/text/MapParserTestCase.java b/vespajlib/src/test/java/com/yahoo/text/MapParserTestCase.java index 7bf11c277e1..f846c6263d1 100644 --- a/vespajlib/src/test/java/com/yahoo/text/MapParserTestCase.java +++ b/vespajlib/src/test/java/com/yahoo/text/MapParserTestCase.java @@ -6,7 +6,7 @@ import java.util.Map; import static org.junit.Assert.*; /** - * @author <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a> + * @author bratseth */ public class MapParserTestCase { diff --git a/vespajlib/src/test/java/com/yahoo/text/StringAppendMicroBenchmarkTest.java b/vespajlib/src/test/java/com/yahoo/text/StringAppendMicroBenchmarkTest.java index 69d62d59be5..7e62180d88e 100644 --- a/vespajlib/src/test/java/com/yahoo/text/StringAppendMicroBenchmarkTest.java +++ b/vespajlib/src/test/java/com/yahoo/text/StringAppendMicroBenchmarkTest.java @@ -6,7 +6,7 @@ import org.junit.Test; /** * Compares alternative ways of appending strings * - * @author <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a> + * @author bratseth */ public class StringAppendMicroBenchmarkTest { diff --git a/vespajlib/src/test/java/com/yahoo/text/XMLWriterTestCase.java b/vespajlib/src/test/java/com/yahoo/text/XMLWriterTestCase.java index dc3530fdd97..75f6bf64734 100644 --- a/vespajlib/src/test/java/com/yahoo/text/XMLWriterTestCase.java +++ b/vespajlib/src/test/java/com/yahoo/text/XMLWriterTestCase.java @@ -14,7 +14,7 @@ import static org.junit.Assert.assertTrue; /** * This test is currently incomplete. Also much tested in the prelude module though. * - * @author <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a> + * @author bratseth */ @SuppressWarnings("deprecation") public class XMLWriterTestCase { |