File tree 2 files changed +10
-24
lines changed
storage/xml-api/cmdline-sample
2 files changed +10
-24
lines changed Original file line number Diff line number Diff line change 65
65
<scope >test</scope >
66
66
</dependency >
67
67
<dependency >
68
- <groupId >org.hamcrest </groupId >
69
- <artifactId >hamcrest-core </artifactId >
70
- <version >1.3 </version >
68
+ <groupId >com.google.truth </groupId >
69
+ <artifactId >truth </artifactId >
70
+ <version >0.28 </version >
71
71
<scope >test</scope >
72
72
</dependency >
73
- <dependency >
74
- <groupId >org.hamcrest</groupId >
75
- <artifactId >hamcrest-library</artifactId >
76
- <version >1.3</version >
77
- <scope >test</scope >
78
- </dependency >
79
- <dependency >
80
- <groupId >com.jcabi</groupId >
81
- <artifactId >jcabi-matchers</artifactId >
82
- <version >1.3</version >
83
- </dependency >
84
73
</dependencies >
85
74
<properties >
86
75
<project .http.version>1.20.0</project .http.version>
Original file line number Diff line number Diff line change 1
- /**
1
+ /*
2
2
* Copyright 2015 Google Inc. All Rights Reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
15
15
*/
16
16
17
17
// [START StorageSampleTest]
18
-
19
- import static com .jcabi .matchers .RegexMatchers .*;
20
- import static org .junit .Assert .assertThat ;
18
+ import static com .google .common .truth .Truth .assertThat ;
21
19
22
20
import org .junit .Test ;
23
21
24
- import java .util .regex .Pattern ;
25
-
26
22
public class StorageSampleTest {
27
23
@ Test
28
24
public void testListBucket () throws Exception {
29
25
String listing = StorageSample .listBucket ("cloud-samples-tests" );
30
- assertThat (listing , matchesPattern (
31
- ".*<ListBucketResult.*"
32
- + "<Name>cloud-samples-tests</Name>.*"
33
- + "</ListBucketResult>.*" ));
26
+ assertThat (listing )
27
+ .containsMatch (
28
+ ".*<ListBucketResult.*"
29
+ + "<Name>cloud-samples-tests</Name>.*"
30
+ + "</ListBucketResult>.*" );
34
31
}
35
32
}
36
33
You can’t perform that action at this time.
0 commit comments