Skip to content

Commit 858efb1

Browse files
Fixed tests static code checks
1 parent cf8b80f commit 858efb1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/com/magento/idea/magento2plugin/actions/generation/generator/WebApiInterfaceGeneratorTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public void setUp() throws Exception {
6363
/**
6464
* Test generation of web api interface for a service with primitive types.
6565
*/
66+
@SuppressWarnings({"PMD.JUnitTestContainsTooManyAsserts"})
6667
public void testWithPrimitiveTypes() {
6768
final PhpClass service = extractServiceByFqn(FIRST_SERVICE_FQN);
6869
final List<Method> publicMethods = PhpTypeMetadataParserUtil.getPublicMethods(service);
@@ -103,6 +104,7 @@ public void testWithPrimitiveTypes() {
103104
/**
104105
* Test generation of web api interface for a service with Object types.
105106
*/
107+
@SuppressWarnings({"PMD.JUnitTestContainsTooManyAsserts"})
106108
public void testWithObjectTypesAndPhpDocComments() {
107109
final PhpClass service = extractServiceByFqn(SECOND_SERVICE_FQN);
108110
final List<Method> publicMethods = PhpTypeMetadataParserUtil.getPublicMethods(service);
@@ -169,6 +171,7 @@ private void assertServiceMethodsHaveInheritDoc(
169171
* @param service PhpClass
170172
* @param generatedInterfaceName String
171173
*/
174+
@SuppressWarnings({"PMD.CyclomaticComplexity"})
172175
private void assertServiceHasInterfaceReference(
173176
final @NotNull PhpClass service,
174177
final @NotNull String generatedInterfaceName

0 commit comments

Comments
 (0)