File tree 3 files changed +5
-8
lines changed
addOns/client/src/test/java/org/zaproxy/addon/client
3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -295,8 +295,6 @@ void shouldAddSiteLevelFragmentNodes() {
295
295
assertThat (root .getChildAt (0 ).getChildAt (2 ).getChildCount (), is (1 ));
296
296
assertThat (
297
297
root .getChildAt (0 ).getChildAt (2 ).getChildAt (0 ).getUserObject ().getName (), is ("#" ));
298
- System .out .println (root .getChildAt (0 ).getChildAt (2 ).getChildAt (0 ).getUserObject ().getUrl ());
299
- System .out .println ("https://www.example.com/?p2=v3&p1=v4#/" );
300
298
assertThat (
301
299
root .getChildAt (0 ).getChildAt (2 ).getChildAt (0 ).getUserObject ().getUrl (),
302
300
is ("https://www.example.com/?p2=v3&p1=v4#" ));
Original file line number Diff line number Diff line change 23
23
import static org .hamcrest .Matchers .contains ;
24
24
import static org .hamcrest .Matchers .hasSize ;
25
25
26
- import java .util .Locale ;
27
26
import org .junit .jupiter .api .BeforeAll ;
28
27
import org .junit .jupiter .api .BeforeEach ;
29
28
import org .junit .jupiter .api .Test ;
30
- import org .parosproxy . paros . Constant ;
31
- import org .zaproxy .zap .utils . I18N ;
29
+ import org .zaproxy . addon . client . ExtensionClientIntegration ;
30
+ import org .zaproxy .zap .testutils . TestUtils ;
32
31
33
32
/** Unit test for {@link UrlTableModel}. */
34
- class UrlTableModelUnitTest {
33
+ class UrlTableModelUnitTest extends TestUtils {
35
34
36
35
private UrlTableModel model ;
37
36
38
37
@ BeforeAll
39
38
static void setupAll () {
40
- Constant . messages = new I18N ( Locale . ROOT );
39
+ mockMessages ( new ExtensionClientIntegration () );
41
40
}
42
41
43
42
@ BeforeEach
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class ExtensionClientZestTest {
45
45
void setUp () {
46
46
extensionLoader =
47
47
mock (ExtensionLoader .class , withSettings ().strictness (Strictness .LENIENT ));
48
- Control .initSingletonForTesting (Model .getSingleton ( ), extensionLoader );
48
+ Control .initSingletonForTesting (mock ( Model .class ), extensionLoader );
49
49
50
50
ExtensionZest extensionZest = mock (ExtensionZest .class );
51
51
given (extensionLoader .getExtension (ExtensionZest .class )).willReturn (extensionZest );
You can’t perform that action at this time.
0 commit comments