ValidateGsmState implements
        InstallServiceValidator,
        UninstallServiceValidator,
        InstallApplicationValidator,
        UninstallApplicationValidator,
        SetServiceInstancesValidator { @Override public void validate(final InstallServiceValidationContext validationContext) throws RestErrorException { validateGsmState(validationContext.getCloud(), validationContext.getAdmin()); }  @Override void validate(final InstallServiceValidationContext validationContext); @Override void validate(final UninstallServiceValidationContext validationContext); @Override void validate(final InstallApplicationValidationContext validationContext); @Override void validate(final UninstallApplicationValidationContext validationContext); @Override void validate(final SetServiceInstancesValidationContext validationContext);  }
@Test public void testGsmStateInstallService() { InstallServiceValidationContext validationContext = new InstallServiceValidationContext(); validationContext.setCloud(cloud); validationContext.setAdmin(adminMock); ValidatorsTestsUtils.validate(validateGsmState, validationContext , ERR_MSG); }
@Test public void testGsmStateUninstallService() { UninstallServiceValidationContext validationContext = new UninstallServiceValidationContext(); validationContext.setCloud(cloud); validationContext.setAdmin(adminMock); ValidatorsTestsUtils.validate(validateGsmState, validationContext , ERR_MSG); }
@Test public void testGsmStateInstallApplication() { InstallApplicationValidationContext validationContext = new InstallApplicationValidationContext(); validationContext.setCloud(cloud); validationContext.setAdmin(adminMock); ValidatorsTestsUtils.validate(validateGsmState, validationContext , ERR_MSG); }
@Test public void testGsmStateUninstallApplication() { UninstallApplicationValidationContext validationContext = new UninstallApplicationValidationContext(); validationContext.setCloud(cloud); validationContext.setAdmin(adminMock); ValidatorsTestsUtils.validate(validateGsmState, validationContext , ERR_MSG); }
@Test public void testGsmStateSetServiceInstances() { SetServiceInstancesValidationContext validationContext = new SetServiceInstancesValidationContext(); validationContext.setCloud(cloud); validationContext.setAdmin(adminMock); ValidatorsTestsUtils.validate(validateGsmState, validationContext , ERR_MSG); }