@Test public void hasOnlyPrivateConstructors() { assertThat(TestUtils.hasOnlyPrivateConstructors(TestUtils.class)).isTrue(); assertThat(TestUtils.hasOnlyPrivateConstructors(OnlyPrivateConstructors.class)).isTrue(); assertThat(TestUtils.hasOnlyPrivateConstructors(MixOfPublicAndPrivateConstructors.class)).isFalse(); try { TestUtils.hasOnlyPrivateConstructors(FailToInstantiate.class); fail(); } catch (IllegalStateException e) { // ok } }
@Test public void only_private_constructors() { assertThat(hasOnlyPrivateConstructors(PermissionTemplateDtoToPermissionTemplateResponse.class)).isTrue(); } }
@Test public void wonderful_test_to_verify_that_this_class_is_an_helper_class() { assertThat(TestUtils.hasOnlyPrivateConstructors(CommonRuleKeys.class)).isTrue(); } }
@Test public void only_statics() { assertThat(TestUtils.hasOnlyPrivateConstructors(SvgFormatter.class)).isTrue(); } }
@Test public void private_constructor() { assertThat(TestUtils.hasOnlyPrivateConstructors(LogInterceptors.class)).isTrue(); } }
@Test public void constructor_is_private() { TestUtils.hasOnlyPrivateConstructors(Uuids.class); } }
@Test public void only_static_methods() { assertThat(TestUtils.hasOnlyPrivateConstructors(ConsoleFormatter.class)).isTrue(); } }
@Test public void not_instantiable() { // only static methods. Bad pattern, should be improved. TestUtils.hasOnlyPrivateConstructors(KeyValueFormat.class); }
@Test public void only_statics() { assertThat(TestUtils.hasOnlyPrivateConstructors(PathUtils.class)).isTrue(); } }
@Test public void only_statics() { TestUtils.hasOnlyPrivateConstructors(DefaultIndexSettings.class); } }
@Test public void private_constructor() { assertThat(hasOnlyPrivateConstructors(ComponentValidator.class)).isTrue(); } }
@Test public void private_constructor() { assertThat(TestUtils.hasOnlyPrivateConstructors(ProcessProperties.class)).isTrue(); } }
@Test public void only_statics() { assertThat(TestUtils.hasOnlyPrivateConstructors(MediaTypes.class)).isTrue(); } }
@Test public void only_statics() { assertThat(TestUtils.hasOnlyPrivateConstructors(RuleTagsToTypeConverter.class)).isTrue(); } }
@Test public void private_method() { assertThat(hasOnlyPrivateConstructors(PullRequestsWsParameters.class)).isTrue(); } }
@Test public void only_static_methods() { assertThat(TestUtils.hasOnlyPrivateConstructors(InvocationUtils.class)).isTrue(); } }
@Test public void private_constructor() { assertThat(TestUtils.hasOnlyPrivateConstructors(ConfigurationUtils.class)).isTrue(); } }
@Test public void constructor_is_private() { assertThat(TestUtils.hasOnlyPrivateConstructors(ProtobufJsonFormat.class)).isTrue(); } }
@Test public void constructor_is_private() { TestUtils.hasOnlyPrivateConstructors(MigrationNumber.class); }
@Test public void only_utils() { assertThat(TestUtils.hasOnlyPrivateConstructors(Protobuf.class)).isTrue(); }