-
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 ElementValueArrayInitializerElementValueTest
- Loading branch information
nbauma109
committed
May 21, 2023
1 parent
75e629d
commit f1079ee
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
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
31 changes: 31 additions & 0 deletions
31
...g/jd/core/v1/model/javasyntax/reference/ElementValueArrayInitializerElementValueTest.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,31 @@ | ||
package org.jd.core.v1.model.javasyntax.reference; | ||
|
||
import org.junit.Test; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.assertNull; | ||
|
||
public class ElementValueArrayInitializerElementValueTest { | ||
|
||
@Test | ||
public void testElementValueArrayInitializerElementValue() { | ||
// Arrange & Act | ||
ElementValueArrayInitializerElementValue noArgsElementValue = new ElementValueArrayInitializerElementValue(); | ||
|
||
// Assert | ||
assertNull(noArgsElementValue.getElementValueArrayInitializer()); | ||
assertEquals("ElementValueArrayInitializerElementValue{null}", noArgsElementValue.toString()); | ||
|
||
// Act | ||
ElementValueArrayInitializerElementValue elementValueArrayInitializerElementValue = new ElementValueArrayInitializerElementValue(); | ||
|
||
// Assert | ||
assertNull(elementValueArrayInitializerElementValue.getElementValueArrayInitializer()); | ||
assertEquals("ElementValueArrayInitializerElementValue{null}", elementValueArrayInitializerElementValue.toString()); | ||
|
||
// Act & Assert for visitor | ||
TestReferenceVisitor visitor = new TestReferenceVisitor(); | ||
elementValueArrayInitializerElementValue.accept(visitor); | ||
assertEquals(1, visitor.getVisitElementValueArrayInitializerElementValueCount()); | ||
} | ||
} |