use of org.parosproxy.paros.model.SiteNode in project zaproxy by zaproxy.
the class StructuralSiteNodeUnitTest method shouldConstructWithNonNullNode.
@Test
void shouldConstructWithNonNullNode() {
// Given
SiteNode node = mock(SiteNode.class);
// When / Then
assertDoesNotThrow(() -> new StructuralSiteNode(node));
}
use of org.parosproxy.paros.model.SiteNode in project zaproxy by zaproxy.
the class StructuralSiteNodeUnitTest method shouldNotAllowToConstructWithNullNode.
@Test
void shouldNotAllowToConstructWithNullNode() {
// Given
SiteNode node = null;
// When / Then
assertThrows(NullPointerException.class, () -> new StructuralSiteNode(node));
}
use of org.parosproxy.paros.model.SiteNode in project zaproxy by zaproxy.
the class TargetUnitTest method shouldNotSetNullStartSiteNode.
@Test
void shouldNotSetNullStartSiteNode() {
// Given
SiteNode siteNode = null;
Target target = new Target();
// When
target.setStartNode(siteNode);
// Then
assertThat(target.getStartNode(), is(nullValue()));
assertThat(target.getStartNodes(), is(nullValue()));
}
Aggregations