import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
-import java.util.Date;
import java.util.Iterator;
import java.util.Set;
import org.junit.Test;
final QName root = QName.create(NS, REV, "main-container");
final QName choice = QName.create(NS, REV, "test-choice");
final QName testContainerQname = QName.create(NS, REV, "test");
- final Date date = QName.parseRevision("2016-01-01");
- final Module foo = context.findModuleByName("foo", date);
+ final Module foo = context.findModule("foo", QName.parseRevision("2016-01-01")).get();
final ContainerSchemaNode rootContainer = (ContainerSchemaNode) context.getDataChildByName(root);
final ContainerSchemaNode testContainer = (ContainerSchemaNode) rootContainer.getDataChildByName(
testContainerQname);