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;
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());
}