File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
src/test/java/com/example/dialogflow Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 4444 </dependency >
4545 <!-- [END dialogflow_install_with_bom] -->
4646
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+
4756 <dependency >
4857 <groupId >junit</groupId >
4958 <artifactId >junit</artifactId >
Original file line number Diff line number Diff line change 2323import com .google .cloud .dialogflow .v2beta1 .KnowledgeBase ;
2424import com .google .cloud .dialogflow .v2beta1 .KnowledgeBasesClient ;
2525import com .google .cloud .dialogflow .v2beta1 .ProjectName ;
26+ import com .google .cloud .testing .junit4 .MultipleAttemptsRule ;
2627import java .io .ByteArrayOutputStream ;
2728import java .io .IOException ;
2829import java .io .PrintStream ;
2930import java .util .UUID ;
3031import org .junit .After ;
3132import org .junit .Before ;
3233import org .junit .BeforeClass ;
34+ import org .junit .Rule ;
3335import org .junit .Test ;
3436import org .junit .runner .RunWith ;
3537import org .junit .runners .JUnit4 ;
@@ -84,6 +86,9 @@ public void tearDown() throws IOException {
8486 System .setOut (null );
8587 }
8688
89+ @ Rule
90+ public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule (3 );
91+
8792 @ Test
8893 public void testCreateDocument () throws Exception {
8994 DocumentManagement .createDocument (
You can’t perform that action at this time.
0 commit comments