Cleanup use of Guava library
[yangtools.git] / yang / yang-data-codec-xml / src / test / java / org / opendaylight / yangtools / yang / data / codec / xml / Bug5396Test.java
index 75cf4b42eb3c26dc5c75620388c4a0e435ae17bc..53bf016cf0b8e368ce1acdcb4aa59516b52f2a85 100644 (file)
@@ -13,9 +13,9 @@ import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
 
-import com.google.common.base.Optional;
 import java.io.InputStream;
 import java.net.URI;
+import java.util.Optional;
 import javax.xml.stream.XMLInputFactory;
 import javax.xml.stream.XMLStreamReader;
 import org.junit.Before;
@@ -87,7 +87,7 @@ public class Bug5396Test {
 
         Optional<DataContainerChild<? extends PathArgument, ?>> myLeaf = rootContainer.getChild(new NodeIdentifier(
                 QName.create(fooModuleQName, "my-leaf")));
-        assertTrue(myLeaf.orNull() instanceof LeafNode);
+        assertTrue(myLeaf.orElse(null) instanceof LeafNode);
 
         assertEquals(expectedValue, myLeaf.get().getValue());
     }