@Test public void testDefaultManagedShallBeShownBasedOnVersion() { assertTrue(underTest.isDistroXDisplayed(createBlueprintView(DEFAULT, "7.0.0", null))); assertTrue(underTest.isDistroXDisplayed(createBlueprintView(DEFAULT, "7.1.0", null))); assertFalse("Version is newer than supported", underTest.isDistroXDisplayed(createBlueprintView(DEFAULT, "7.2.0", null))); }
public boolean isDistroXDisplayed(BlueprintView blueprintView) { if (isDatalakeBlueprint(blueprintView)) { return true; } if (ResourceStatus.USER_MANAGED.equals(blueprintView.getStatus())) { return true; } return supportedRuntimes.isSupported(blueprintView.getStackVersion()); }
BlueprintListFilters { public boolean isDistroXDisplayed(BlueprintView blueprintView) { if (isDatalakeBlueprint(blueprintView)) { return true; } if (ResourceStatus.USER_MANAGED.equals(blueprintView.getStatus())) { return true; } return supportedRuntimes.isSupported(blueprintView.getStackVersion()); } }
BlueprintListFilters { public boolean isDistroXDisplayed(BlueprintView blueprintView) { if (isDatalakeBlueprint(blueprintView)) { return true; } if (ResourceStatus.USER_MANAGED.equals(blueprintView.getStatus())) { return true; } return supportedRuntimes.isSupported(blueprintView.getStackVersion()); }  }
BlueprintListFilters { public boolean isDistroXDisplayed(BlueprintView blueprintView) { if (isDatalakeBlueprint(blueprintView)) { return true; } if (ResourceStatus.USER_MANAGED.equals(blueprintView.getStatus())) { return true; } return supportedRuntimes.isSupported(blueprintView.getStackVersion()); }  boolean isDistroXDisplayed(BlueprintView blueprintView); boolean isDatalakeBlueprint(BlueprintView blueprintView); boolean isDatalakeBlueprint(Blueprint blueprint); }
BlueprintListFilters { public boolean isDistroXDisplayed(BlueprintView blueprintView) { if (isDatalakeBlueprint(blueprintView)) { return true; } if (ResourceStatus.USER_MANAGED.equals(blueprintView.getStatus())) { return true; } return supportedRuntimes.isSupported(blueprintView.getStackVersion()); }  boolean isDistroXDisplayed(BlueprintView blueprintView); boolean isDatalakeBlueprint(BlueprintView blueprintView); boolean isDatalakeBlueprint(Blueprint blueprint);  }