diff options
Diffstat (limited to 'vespalog/src/test/java/com/yahoo/log/UtilTestCase.java')
-rw-r--r-- | vespalog/src/test/java/com/yahoo/log/UtilTestCase.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vespalog/src/test/java/com/yahoo/log/UtilTestCase.java b/vespalog/src/test/java/com/yahoo/log/UtilTestCase.java new file mode 100644 index 00000000000..3f3da8436bd --- /dev/null +++ b/vespalog/src/test/java/com/yahoo/log/UtilTestCase.java @@ -0,0 +1,22 @@ +// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package com.yahoo.log; + +import org.junit.Test; + +import static org.junit.Assert.*; + +/** + * @author <a href="mailto:borud@yahoo-inc.com">Bjorn Borud</a> + */ +public class UtilTestCase { + + /** + * Just make sure the static getHostName() method returns something + * that looks half sensible. + */ + @Test + public void testSimple () { + String name = Util.getHostName(); + assertNotNull(name); + } +} |