Merge pull request #939 from wonwoo

* gh-939:
  Reduce visibility of test class and its methods

Closes gh-939
This commit is contained in:
Andy Wilkinson 2019-07-04 09:57:21 +01:00
commit 66e871f2c9

View File

@ -38,14 +38,14 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
* @author Stephane Nicoll
* @author HaiTao Zhang
*/
public class ProjectRequestToDescriptionConverterTests {
class ProjectRequestToDescriptionConverterTests {
private InitializrMetadata metadata = InitializrMetadataTestBuilder.withDefaults().build();
private final ProjectRequestToDescriptionConverter converter = new ProjectRequestToDescriptionConverter();
@Test
public void convertWhenTypeIsInvalidShouldThrowException() {
void convertWhenTypeIsInvalidShouldThrowException() {
ProjectRequest request = createProjectRequest();
request.setType("foo-build");
assertThatExceptionOfType(InvalidProjectRequestException.class)
@ -54,7 +54,7 @@ public class ProjectRequestToDescriptionConverterTests {
}
@Test
public void convertWhenTypeDoesNotDefineBuildTagShouldThrowException() {
void convertWhenTypeDoesNotDefineBuildTagShouldThrowException() {
Type type = new Type();
type.setId("example-project");
InitializrMetadata testMetadata = InitializrMetadataTestBuilder.withDefaults().addType(type).build();
@ -75,7 +75,7 @@ public class ProjectRequestToDescriptionConverterTests {
}
@Test
public void convertWhenPackagingIsInvalidShouldThrowException() {
void convertWhenPackagingIsInvalidShouldThrowException() {
ProjectRequest request = createProjectRequest();
request.setPackaging("star");
assertThatExceptionOfType(InvalidProjectRequestException.class)
@ -84,7 +84,7 @@ public class ProjectRequestToDescriptionConverterTests {
}
@Test
public void convertWhenLanguageIsInvalidShouldThrowException() {
void convertWhenLanguageIsInvalidShouldThrowException() {
ProjectRequest request = createProjectRequest();
request.setLanguage("english");
assertThatExceptionOfType(InvalidProjectRequestException.class)