import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
import org.opendaylight.yangtools.yang.stmt.StmtTestUtils;
+@Deprecated(since = "8.0.4", forRemoval = true)
public class OpenconfigVersionImportTest {
private static final YangParserConfiguration SEMVER = YangParserConfiguration.builder()
.importResolutionMode(ImportResolutionMode.OPENCONFIG_SEMVER)
public void importInvalidDeprecatedTest1() {
ReactorException ex = assertThrows(ReactorException.class,
() -> StmtTestUtils.parseYangSources("/openconfig-version/import/import-invalid-deprecated-1", SEMVER));
- assertThat(ex.getCause().getCause().getMessage(), startsWith(
+ assertThat(ex.getCause().getMessage(), startsWith(
"Unable to find module compatible with requested import [openconfig-extensions(1.0.0)]."));
}
public void importInvalidDeprecatedTest2() {
ReactorException ex = assertThrows(ReactorException.class,
() -> StmtTestUtils.parseYangSources("/openconfig-version/import/import-invalid-deprecated-2", SEMVER));
- assertThat(ex.getCause().getCause().getMessage(), startsWith(
+ assertThat(ex.getCause().getMessage(), startsWith(
"Unable to find module compatible with requested import [openconfig-extensions(0.9.9)]."));
}
public void importInvalidNotsufficientTest1() {
ReactorException ex = assertThrows(ReactorException.class,
() -> StmtTestUtils.parseYangSources("/openconfig-version/import/import-invalid-notsufficient-1", SEMVER));
- assertThat(ex.getCause().getCause().getMessage(), startsWith(
+ assertThat(ex.getCause().getMessage(), startsWith(
"Unable to find module compatible with requested import [openconfig-extensions(2.0.0)]."));
}
public void importInvalidNotsufficientTest2() {
ReactorException ex = assertThrows(ReactorException.class,
() -> StmtTestUtils.parseYangSources("/openconfig-version/import/import-invalid-notsufficient-2", SEMVER));
- assertThat(ex.getCause().getCause().getMessage(), startsWith(
+ assertThat(ex.getCause().getMessage(), startsWith(
"Unable to find module compatible with requested import [openconfig-extensions(2.0.5)]."));
}
}