File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
src/test/java/com/example/vision Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 63
63
<version >4.13.2</version >
64
64
<scope >test</scope >
65
65
</dependency >
66
+ <dependency >
67
+ <groupId >com.google.cloud</groupId >
68
+ <artifactId >google-cloud-core</artifactId >
69
+ <version >1.94.0</version >
70
+ <scope >test</scope >
71
+ <classifier >tests</classifier >
72
+ </dependency >
66
73
<dependency >
67
74
<groupId >com.google.truth</groupId >
68
75
<artifactId >truth</artifactId >
Original file line number Diff line number Diff line change 23
23
import com .google .cloud .storage .Storage ;
24
24
import com .google .cloud .storage .Storage .BlobListOption ;
25
25
import com .google .cloud .storage .StorageOptions ;
26
+ import com .google .cloud .testing .junit4 .MultipleAttemptsRule ;
26
27
import java .io .ByteArrayOutputStream ;
27
28
import java .io .PrintStream ;
28
29
import java .util .UUID ;
29
30
import org .junit .After ;
30
31
import org .junit .Before ;
32
+ import org .junit .Rule ;
31
33
import org .junit .Test ;
32
34
import org .junit .runner .RunWith ;
33
35
import org .junit .runners .JUnit4 ;
@@ -58,6 +60,9 @@ public void tearDown() {
58
60
System .setOut (originalPrintStream );
59
61
}
60
62
63
+ @ Rule
64
+ public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule (3 );
65
+
61
66
@ Test
62
67
public void testDocumentText () throws Exception {
63
68
// Act
You can’t perform that action at this time.
0 commit comments