@Test public void returns_validation_suitable_for_nothing() { ApiVersionValidation validation = factoryToTest.createValidationAccepting(); assertFalse(validation.validate("1.0").isValid()); assertFalse(validation.validate("1.1").isValid()); }
public ApiVersionValidation createValidationAccepting(String ...acceptedVersions) { return new ApiVersionValidationImpl(acceptedVersions); }
ApiVersionValidationFactory { public ApiVersionValidation createValidationAccepting(String ...acceptedVersions) { return new ApiVersionValidationImpl(acceptedVersions); } }
ApiVersionValidationFactory { public ApiVersionValidation createValidationAccepting(String ...acceptedVersions) { return new ApiVersionValidationImpl(acceptedVersions); }  }
ApiVersionValidationFactory { public ApiVersionValidation createValidationAccepting(String ...acceptedVersions) { return new ApiVersionValidationImpl(acceptedVersions); }  ApiVersionValidation createValidationAccepting(String ...acceptedVersions); }
ApiVersionValidationFactory { public ApiVersionValidation createValidationAccepting(String ...acceptedVersions) { return new ApiVersionValidationImpl(acceptedVersions); }  ApiVersionValidation createValidationAccepting(String ...acceptedVersions);  }