File tree 2 files changed +3
-5
lines changed
main/java/de/sstoehr/harreader/model
test/java/de/sstoehr/harreader/model
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,9 @@ public void setCreator(HarCreatorBrowser creator) {
59
59
}
60
60
61
61
/**
62
- * @return Information about the browser used.
62
+ * @return Information about the browser used, may be null .
63
63
*/
64
64
public HarCreatorBrowser getBrowser () {
65
- if (browser == null ) {
66
- browser = new HarCreatorBrowser ();
67
- }
68
65
return browser ;
69
66
}
70
67
Original file line number Diff line number Diff line change 4
4
5
5
import static org .junit .jupiter .api .Assertions .assertEquals ;
6
6
import static org .junit .jupiter .api .Assertions .assertNotNull ;
7
+ import static org .junit .jupiter .api .Assertions .assertNull ;
7
8
8
9
import java .util .ArrayList ;
9
10
import java .util .List ;
@@ -63,7 +64,7 @@ void testCreatorNull() {
63
64
void testBrowserNull () {
64
65
HarLog log = new HarLog ();
65
66
log .setBrowser (null );
66
- assertNotNull (log .getBrowser ());
67
+ assertNull (log .getBrowser ());
67
68
}
68
69
69
70
@ Override
You can’t perform that action at this time.
0 commit comments