Skip to content

Commit 2a7d784

Browse files
committed
Ignore warnings of test resources
1 parent f25ead5 commit 2a7d784

10 files changed

+10
-0
lines changed

plugin/etc/assertj-templates/assertion_class_template.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ${imports}
44
* {@link ${class_to_assert}} specific assertions - Generated by CustomAssertionGenerator.
55
*/
66
@edu.hm.hafner.util.Generated(value="assertj-assertions-generator")
7+
@SuppressWarnings({"rawtypes", "static"})
78
public class ${custom_assertion_class} extends AbstractObjectAssert<${custom_assertion_class}, ${class_to_assert}> {
89

910
/**

plugin/etc/assertj-templates/assertions_entry_point_method_template.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* @return the created assertion object.
66
*/
77
@org.assertj.core.annotation.CheckReturnValue
8+
@SuppressWarnings("rawtypes")
89
public static ${custom_assertion_class} assertThat(${class_to_assert} actual) {
910
return new ${custom_assertion_class}(actual);
1011
}

plugin/etc/assertj-templates/has_assertion_template_for_primitive_wrapper.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* @return this assertion object.
66
* @throws AssertionError - if the actual ${class_to_assert}'s ${property} is not equal to the given one.${throws_javadoc}
77
*/
8+
@SuppressWarnings("rawtypes")
89
public ${self_type} has${Property}(${propertyType} ${property_safe}) ${throws}{
910
// check that actual ${class_to_assert} we want to make assertions on is not null.
1011
isNotNull();

plugin/etc/assertj-templates/soft_assertions_entry_point_class_template.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package ${package};
44
* Entry point for soft assertions of different data types.
55
*/
66
@edu.hm.hafner.util.Generated(value="assertj-assertions-generator")
7+
@SuppressWarnings("rawtypes")
78
public class SoftAssertions extends org.assertj.core.api.AutoCloseableSoftAssertions {
89
${all_assertions_entry_points}
910
}

plugin/etc/assertj-templates/soft_assertions_entry_point_method_template.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* @return the created "soft" assertion object.
66
*/
77
@org.assertj.core.annotation.CheckReturnValue
8+
@SuppressWarnings("rawtypes")
89
public ${custom_assertion_class} assertThat(${class_to_assert} actual) {
910
return proxy(${custom_assertion_class}.class, ${class_to_assert}.class, actual);
1011
}

ui-tests/etc/assertj-templates/assertion_class_template.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ${imports}
44
* {@link ${class_to_assert}} specific assertions - Generated by CustomAssertionGenerator.
55
*/
66
@edu.hm.hafner.util.Generated(value="assertj-assertions-generator")
7+
@SuppressWarnings({"rawtypes", "static"})
78
public class ${custom_assertion_class} extends AbstractObjectAssert<${custom_assertion_class}, ${class_to_assert}> {
89

910
/**

ui-tests/etc/assertj-templates/assertions_entry_point_method_template.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* @return the created assertion object.
66
*/
77
@org.assertj.core.annotation.CheckReturnValue
8+
@SuppressWarnings("rawtypes")
89
public static ${custom_assertion_class} assertThat(${class_to_assert} actual) {
910
return new ${custom_assertion_class}(actual);
1011
}

ui-tests/etc/assertj-templates/has_assertion_template_for_primitive_wrapper.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* @return this assertion object.
66
* @throws AssertionError - if the actual ${class_to_assert}'s ${property} is not equal to the given one.${throws_javadoc}
77
*/
8+
@SuppressWarnings("rawtypes")
89
public ${self_type} has${Property}(${propertyType} ${property_safe}) ${throws}{
910
// check that actual ${class_to_assert} we want to make assertions on is not null.
1011
isNotNull();

ui-tests/etc/assertj-templates/soft_assertions_entry_point_class_template.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package ${package};
44
* Entry point for soft assertions of different data types.
55
*/
66
@edu.hm.hafner.util.Generated(value="assertj-assertions-generator")
7+
@SuppressWarnings("rawtypes")
78
public class SoftAssertions extends org.assertj.core.api.AutoCloseableSoftAssertions {
89
${all_assertions_entry_points}
910
}

ui-tests/etc/assertj-templates/soft_assertions_entry_point_method_template.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* @return the created "soft" assertion object.
66
*/
77
@org.assertj.core.annotation.CheckReturnValue
8+
@SuppressWarnings("rawtypes")
89
public ${custom_assertion_class} assertThat(${class_to_assert} actual) {
910
return proxy(${custom_assertion_class}.class, ${class_to_assert}.class, actual);
1011
}

0 commit comments

Comments
 (0)