Skip to content

Commit

Permalink
added TypeDeclarationStatementTest, TypeDeclarationsTest
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauma109 committed May 26, 2023
1 parent 3e58888 commit b2f2a34
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
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());
}
}
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());
}
}

0 comments on commit b2f2a34

Please sign in to comment.