Search in sources :

Example 11 with OCBinaryValidator

use of org.jboss.tools.openshift.internal.core.ocbinary.OCBinaryValidator in project jbosstools-openshift by jbosstools.

the class OCBinaryValidatorTest method oc311OnLinuxValidatesOK.

@Test
public void oc311OnLinuxValidatesOK() {
    // given
    OCBinaryValidator validator = new TestableOCBinaryValidator("papa-smurf", Platform.OS_LINUX, false);
    // when
    IStatus status = validator.getStatus(Version.parseVersion("3.11.0"));
    // then
    assertThat(status.isOK()).isTrue();
}
Also used : IStatus(org.eclipse.core.runtime.IStatus) OCBinaryValidator(org.jboss.tools.openshift.internal.core.ocbinary.OCBinaryValidator) Test(org.junit.Test)

Aggregations

OCBinaryValidator (org.jboss.tools.openshift.internal.core.ocbinary.OCBinaryValidator)11 IStatus (org.eclipse.core.runtime.IStatus)10 Test (org.junit.Test)9 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)2 Job (org.eclipse.core.runtime.jobs.Job)2 IBuildConfig (com.openshift.restclient.model.IBuildConfig)1 IProject (com.openshift.restclient.model.IProject)1 IResource (com.openshift.restclient.model.IResource)1 IService (com.openshift.restclient.model.IService)1 IRoute (com.openshift.restclient.model.route.IRoute)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 Collection (java.util.Collection)1 LinkedHashMap (java.util.LinkedHashMap)1 LinkedHashSet (java.util.LinkedHashSet)1 List (java.util.List)1 Map (java.util.Map)1 CoreException (org.eclipse.core.runtime.CoreException)1 IProgressMonitor (org.eclipse.core.runtime.IProgressMonitor)1 IJobChangeEvent (org.eclipse.core.runtime.jobs.IJobChangeEvent)1 JobChangeAdapter (org.eclipse.core.runtime.jobs.JobChangeAdapter)1