File tree 2 files changed +14
-0
lines changed
src/test/java/com/example/dialogflow
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 44
44
</dependency >
45
45
<!-- [END dialogflow_install_with_bom] -->
46
46
47
+ <dependency >
48
+ <groupId >com.google.cloud</groupId >
49
+ <artifactId >google-cloud-core</artifactId >
50
+ <version >1.94.0</version >
51
+ <scope >test</scope >
52
+ <classifier >tests</classifier >
53
+ </dependency >
54
+
55
+
47
56
<dependency >
48
57
<groupId >junit</groupId >
49
58
<artifactId >junit</artifactId >
Original file line number Diff line number Diff line change 23
23
import com .google .cloud .dialogflow .v2beta1 .KnowledgeBase ;
24
24
import com .google .cloud .dialogflow .v2beta1 .KnowledgeBasesClient ;
25
25
import com .google .cloud .dialogflow .v2beta1 .ProjectName ;
26
+ import com .google .cloud .testing .junit4 .MultipleAttemptsRule ;
26
27
import java .io .ByteArrayOutputStream ;
27
28
import java .io .IOException ;
28
29
import java .io .PrintStream ;
29
30
import java .util .UUID ;
30
31
import org .junit .After ;
31
32
import org .junit .Before ;
32
33
import org .junit .BeforeClass ;
34
+ import org .junit .Rule ;
33
35
import org .junit .Test ;
34
36
import org .junit .runner .RunWith ;
35
37
import org .junit .runners .JUnit4 ;
@@ -84,6 +86,9 @@ public void tearDown() throws IOException {
84
86
System .setOut (null );
85
87
}
86
88
89
+ @ Rule
90
+ public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule (3 );
91
+
87
92
@ Test
88
93
public void testCreateDocument () throws Exception {
89
94
DocumentManagement .createDocument (
You can’t perform that action at this time.
0 commit comments