-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added TypeDeclarationStatementTest, TypeDeclarationsTest
- Loading branch information
nbauma109
committed
May 26, 2023
1 parent
3e58888
commit b2f2a34
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/test/java/org/jd/core/v1/model/javasyntax/declaration/TypeDeclarationsTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.jd.core.v1.model.javasyntax.declaration; | ||
|
||
import org.jd.core.v1.service.converter.classfiletojavasyntax.visitor.TestDeclarationVisitor; | ||
import org.junit.Test; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
|
||
public class TypeDeclarationsTest { | ||
|
||
@Test | ||
public void test() throws Exception { | ||
TypeDeclarations typeDeclarations = new TypeDeclarations(); | ||
TestDeclarationVisitor declarationVisitor = new TestDeclarationVisitor(); | ||
typeDeclarations.accept(declarationVisitor); | ||
assertEquals(1, declarationVisitor.getTypeDeclarationsCount()); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/test/java/org/jd/core/v1/model/javasyntax/statement/TypeDeclarationStatementTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.jd.core.v1.model.javasyntax.statement; | ||
|
||
import org.jd.core.v1.service.converter.classfiletojavasyntax.visitor.TestVisitor; | ||
import org.junit.Test; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
|
||
public class TypeDeclarationStatementTest { | ||
|
||
@Test | ||
public void test() throws Exception { | ||
TypeDeclarationStatement typeDeclarationStatement = new TypeDeclarationStatement(null); | ||
TestVisitor visitor = new TestVisitor(); | ||
typeDeclarationStatement.accept(visitor); | ||
assertEquals(1, visitor.getTypeDeclarationStatementCount()); | ||
} | ||
} |