Repository navigation
Expand file tree
/
Copy pathOptionalDemoTest.java
More file actions
112 lines (94 loc) · 1.72 KB
/
Copy pathOptionalDemoTest.java
File metadata and controls
112 lines (94 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package com.java8.optional;
import org.junit.Test;
import org.junit.Before;
import org.junit.After;
/**
* optionalDemo Tester.
*
* @author <Authors name>
* @since <pre>03/06/2020</pre>
* @version 1.0
*/
public class OptionalDemoTest {
private OptionalDemo optionalDemo;
@Before
public void before() throws Exception {
optionalDemo=new OptionalDemo();
}
@After
public void after() throws Exception {
}
/**
*
* Method: orElseDemo()
*
*/
@Test
public void testOrElseDemo() throws Exception {
//TODO: Test goes here...
optionalDemo.orElseDemo();
}
/**
*
* Method: ofDemo()
*
*/
@Test
public void testOfDemo() throws Exception {
//TODO: Test goes here...
optionalDemo.ofDemo();
}
@Test
public void testIfPresentDemo() throws Exception {
//TODO: Test goes here...
optionalDemo.ifPresentDemo();
}
/**
*
* Method: tooMuchNull(Worker worker)
*
*/
@Test
public void testTooMuchNull() throws Exception {
//TODO: Test goes here...
}
/**
*
* Method: litteNull()
*
*/
@Test
public void testLitteNull() throws Exception {
//TODO: Test goes here...
}
@Test
public void testIsPresentDemo() throws Exception {
//TODO: Test goes here...
optionalDemo.isPresentDemo();
}
@Test
public void testElseGetDemo() throws Exception {
//TODO: Test goes here...
optionalDemo.ofElseGetDemo();
}
@Test
public void testFilterDemo() throws Exception {
//TODO: Test goes here...
optionalDemo.filterDemo();
}
@Test
public void testOrElseThrow() throws Exception {
//TODO: Test goes here...
optionalDemo.orElseThrowDemo();
}
@Test
public void testMapDemo2() throws Exception {
//TODO: Test goes here...
optionalDemo.mapDemo2();
}
@Test
public void testMapDemo() throws Exception {
//TODO: Test goes here...
optionalDemo.mapDemo();
}
}