Remove calls to deprecated public intent data constructor
Change-Id: Ic77c1d2cfb3e954bc0b7ee6a8a66d9c4b8167872
diff --git a/core/net/src/test/java/org/onosproject/net/intent/impl/InstallCoordinatorTest.java b/core/net/src/test/java/org/onosproject/net/intent/impl/InstallCoordinatorTest.java
index 7d1273b..58af6d7 100644
--- a/core/net/src/test/java/org/onosproject/net/intent/impl/InstallCoordinatorTest.java
+++ b/core/net/src/test/java/org/onosproject/net/intent/impl/InstallCoordinatorTest.java
@@ -87,7 +87,7 @@
IntStream.range(0, 10).forEach(val -> {
intents.add(new TestInstallableIntent(val));
});
- toInstall = new IntentData(toInstall, intents);
+ toInstall = IntentData.compiled(toInstall, intents);
installCoordinator.installIntents(Optional.empty(), Optional.of(toInstall));
Intent toInstallIntent = toInstall.intent();
TestTools.assertAfter(INSTALL_DELAY, INSTALL_DURATION, () -> {
@@ -112,7 +112,7 @@
intents.add(new TestInstallableIntent(val));
});
- toUninstall = new IntentData(toUninstall, intents);
+ toUninstall = IntentData.compiled(toUninstall, intents);
installCoordinator.installIntents(Optional.of(toUninstall), Optional.empty());
Intent toUninstallIntent = toUninstall.intent();
@@ -147,8 +147,8 @@
intentsToInstall.add(new TestInstallableIntent(val));
});
- toUninstall = new IntentData(toUninstall, intentsToUninstall);
- toInstall = new IntentData(toInstall, intentsToInstall);
+ toUninstall = IntentData.compiled(toUninstall, intentsToUninstall);
+ toInstall = IntentData.compiled(toInstall, intentsToInstall);
installCoordinator.installIntents(Optional.of(toUninstall), Optional.of(toInstall));
Intent toInstallIntent = toInstall.intent();
@@ -194,8 +194,8 @@
intentsToInstall.add(new TestInstallableIntent(val));
});
- toUninstall = new IntentData(toUninstall, intentsToUninstall);
- toInstall = new IntentData(toInstall, intentsToInstall);
+ toUninstall = IntentData.compiled(toUninstall, intentsToUninstall);
+ toInstall = IntentData.compiled(toInstall, intentsToInstall);
installCoordinator.installIntents(Optional.of(toUninstall), Optional.of(toInstall));