File tree Expand file tree Collapse file tree 4 files changed +14
-3
lines changed
src/test/java/com/google/cloud/datastore Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 118
118
<type >test-jar</type >
119
119
<scope >test</scope >
120
120
</dependency >
121
+
122
+ <dependency >
123
+ <groupId >com.google.guava</groupId >
124
+ <artifactId >guava-testlib</artifactId >
125
+ <version >33.0.0-jre</version >
126
+ <scope >test</scope >
127
+ </dependency >
121
128
<!-- Need testing utility classes for generated gRPC clients tests -->
122
129
<dependency >
123
130
<groupId >com.google.api</groupId >
Original file line number Diff line number Diff line change 21
21
import static org .junit .Assert .assertFalse ;
22
22
import static org .junit .Assert .assertNotEquals ;
23
23
24
+ import com .google .common .testing .EqualsTester ;
24
25
import java .io .ByteArrayInputStream ;
25
26
import java .io .InputStream ;
26
27
import java .nio .ByteBuffer ;
@@ -46,7 +47,8 @@ public void setUp() {
46
47
47
48
@ Test
48
49
public void testEquals () {
49
- assertEquals (blob1 , blob1 );
50
+ EqualsTester equalsTester = new EqualsTester ();
51
+ equalsTester .addEqualityGroup (blob1 , blob1 ).testEquals ();
50
52
assertEquals (blob1 , Blob .copyFrom (bytes1 ));
51
53
assertNotEquals (blob1 , blob2 );
52
54
}
Original file line number Diff line number Diff line change 19
19
import static org .junit .Assert .assertEquals ;
20
20
import static org .junit .Assert .assertNotEquals ;
21
21
22
+ import com .google .common .testing .EqualsTester ;
22
23
import org .junit .Assert ;
23
24
import org .junit .Test ;
24
25
@@ -40,7 +41,8 @@ public void testLatLng() {
40
41
41
42
@ Test
42
43
public void testEquals () {
43
- assertEquals (gp1 , gp1 );
44
+ EqualsTester equalsTester = new EqualsTester ();
45
+ equalsTester .addEqualityGroup (gp1 , gp1 ).testEquals ();
44
46
assertNotEquals (gp1 , gp2 );
45
47
}
46
48
Original file line number Diff line number Diff line change 143
143
<github .global.server>github</github .global.server>
144
144
<site .installationModule>google-cloud-datastore-parent</site .installationModule>
145
145
<project .javadoc.protobufBaseURL>https://googleapis.dev/java/google-api-grpc/latest</project .javadoc.protobufBaseURL>
146
- <error-prone .version>2.23 .0</error-prone .version>
146
+ <error-prone .version>2.24 .0</error-prone .version>
147
147
</properties >
148
148
149
149
<dependencyManagement >
You can’t perform that action at this time.
0 commit comments