File tree 5 files changed +21
-0
lines changed
src/test/java/com/example/spanner
5 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 147
147
<artifactId >maven-failsafe-plugin</artifactId >
148
148
<version >3.5.2</version >
149
149
<configuration >
150
+ <forkCount >10</forkCount >
151
+ <reuseForks >false</reuseForks >
150
152
<systemPropertyVariables >
151
153
<spanner .test.instance>java-sample-integration-tests</spanner .test.instance>
152
154
<spanner .test.instance.mr>java-client-mr-integration-tests</spanner .test.instance.mr>
157
159
<spanner .sample.database>mysample</spanner .sample.database>
158
160
<spanner .quickstart.database>quick-db</spanner .quickstart.database>
159
161
</systemPropertyVariables >
162
+ <excludes >
163
+ <exclude >**/SpannerSampleIT.java</exclude >
164
+ </excludes >
160
165
</configuration >
161
166
</plugin >
162
167
</plugins >
Original file line number Diff line number Diff line change 146
146
<artifactId >maven-failsafe-plugin</artifactId >
147
147
<version >3.5.2</version >
148
148
<configuration >
149
+ <forkCount >10</forkCount >
150
+ <reuseForks >false</reuseForks >
149
151
<systemPropertyVariables >
150
152
<spanner .test.instance>java-sample-integration-tests</spanner .test.instance>
151
153
<spanner .test.instance.mr>java-client-mr-integration-tests</spanner .test.instance.mr>
157
159
<spanner .sample.instance>mysample-instance</spanner .sample.instance>
158
160
<spanner .quickstart.database>quick-db</spanner .quickstart.database>
159
161
</systemPropertyVariables >
162
+ <excludes >
163
+ <exclude >**/SpannerSampleIT.java</exclude >
164
+ </excludes >
160
165
</configuration >
161
166
</plugin >
162
167
</plugins >
Original file line number Diff line number Diff line change 177
177
<artifactId >maven-failsafe-plugin</artifactId >
178
178
<version >3.5.2</version >
179
179
<configuration >
180
+ <forkCount >10</forkCount >
181
+ <reuseForks >false</reuseForks >
180
182
<systemPropertyVariables >
181
183
<spanner .test.instance>java-sample-integration-tests</spanner .test.instance>
182
184
<spanner .test.instance.mr>java-client-mr-integration-tests</spanner .test.instance.mr>
187
189
<spanner .sample.database>mysample</spanner .sample.database>
188
190
<spanner .quickstart.database>quick-db</spanner .quickstart.database>
189
191
</systemPropertyVariables >
192
+ <excludes >
193
+ <exclude >**/SpannerSampleIT.java</exclude >
194
+ </excludes >
190
195
</configuration >
191
196
</plugin >
192
197
<plugin >
Original file line number Diff line number Diff line change 19
19
import static com .google .common .truth .Truth .assertThat ;
20
20
import static org .junit .Assert .assertTrue ;
21
21
22
+ import com .example .spanner .helper .SlowTest ;
22
23
import com .google .cloud .Timestamp ;
23
24
import com .google .cloud .spanner .DatabaseId ;
24
25
import com .google .cloud .spanner .ErrorCode ;
51
52
import org .junit .Assert ;
52
53
import org .junit .BeforeClass ;
53
54
import org .junit .Test ;
55
+ import org .junit .experimental .categories .Category ;
54
56
import org .junit .runner .RunWith ;
55
57
import org .junit .runners .JUnit4 ;
56
58
57
59
/** Unit tests for {@code SpannerSample} */
58
60
@ RunWith (JUnit4 .class )
59
61
@ SuppressWarnings ("checkstyle:abbreviationaswordinname" )
62
+ @ Category (SlowTest .class )
60
63
public class SpannerSampleIT extends SampleTestBaseV2 {
61
64
62
65
private static final int DBID_LENGTH = 20 ;
Original file line number Diff line number Diff line change 20
20
import static org .junit .Assert .assertTrue ;
21
21
22
22
import com .example .spanner .SampleRunner ;
23
+ import com .example .spanner .helper .SlowTest ;
23
24
import com .google .cloud .Timestamp ;
24
25
import com .google .cloud .spanner .Backup ;
25
26
import com .google .cloud .spanner .BackupId ;
48
49
import org .junit .AfterClass ;
49
50
import org .junit .BeforeClass ;
50
51
import org .junit .Test ;
52
+ import org .junit .experimental .categories .Category ;
51
53
import org .junit .runner .RunWith ;
52
54
import org .junit .runners .JUnit4 ;
53
55
import org .threeten .bp .LocalDate ;
56
58
/** Unit tests for {@code SpannerSample} */
57
59
@ RunWith (JUnit4 .class )
58
60
@ SuppressWarnings ("checkstyle:abbreviationaswordinname" )
61
+ @ Category (SlowTest .class )
59
62
public class SpannerSampleIT {
60
63
private static final int DBID_LENGTH = 20 ;
61
64
// The instance needs to exist for tests to pass.
You can’t perform that action at this time.
0 commit comments