*/
package org.opendaylight.controller.yang.model.parser.util;
-import static org.hamcrest.core.AnyOf.*;
-import static org.hamcrest.core.Is.*;
-import static org.junit.Assert.*;
-import static org.junit.matchers.JUnitMatchers.*;
+import static org.hamcrest.core.AnyOf.anyOf;
+import static org.hamcrest.core.Is.is;
+import static org.junit.Assert.assertThat;
+import static org.junit.matchers.JUnitMatchers.containsString;
import static org.mockito.Mockito.*;
import java.util.Date;
import org.junit.Test;
import org.opendaylight.controller.yang.model.api.ModuleImport;
import org.opendaylight.controller.yang.model.parser.builder.impl.ModuleBuilder;
-import org.opendaylight.controller.yang.model.parser.impl.YangModelParserListenerImpl;
+import org.opendaylight.controller.yang.model.parser.impl.YangParserListenerImpl;
import org.opendaylight.controller.yang.model.parser.util.ModuleDependencySort.ModuleNodeImpl;
import org.opendaylight.controller.yang.model.parser.util.ModuleDependencySort.ModuleSimple;
import org.opendaylight.controller.yang.model.parser.util.TopologicalSort.Edge;
} catch (YangValidationException e) {
assertThat(e.getMessage(),
containsString("Module:b imported twice with different revisions:default, "
- + YangModelParserListenerImpl.simpleDateFormat
+ + YangParserListenerImpl.simpleDateFormat
.format(date)));
throw e;
}
new ModuleDependencySort(builders);
} catch (YangValidationException e) {
assertThat(e.getMessage(), containsString("Module:a with revision:"
- + YangModelParserListenerImpl.simpleDateFormat.format(rev)
+ + YangParserListenerImpl.simpleDateFormat.format(rev)
+ " declared twice"));
throw e;
}