Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit 21f48c6

Browse files
committed
fix: revert changes in generated files
1 parent e539a41 commit 21f48c6

3 files changed

Lines changed: 14 additions & 22 deletions

File tree

google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@
106106
import java.util.UUID;
107107
import java.util.concurrent.ExecutionException;
108108
import javax.annotation.Generated;
109-
import org.junit.AfterClass;
110109
import org.junit.After;
110+
import org.junit.AfterClass;
111111
import org.junit.Assert;
112-
import org.junit.BeforeClass;
113112
import org.junit.Before;
113+
import org.junit.BeforeClass;
114114
import org.junit.Test;
115115

116116
@Generated("by gapic-generator-java")
@@ -499,8 +499,7 @@ public void createBucketAsyncExceptionTest() throws Exception {
499499
} catch (ExecutionException e) {
500500
Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
501501
InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
502-
Assert.assertEquals(
503-
StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
502+
Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
504503
}
505504
}
506505

@@ -574,8 +573,7 @@ public void updateBucketAsyncExceptionTest() throws Exception {
574573
} catch (ExecutionException e) {
575574
Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
576575
InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
577-
Assert.assertEquals(
578-
StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
576+
Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
579577
}
580578
}
581579

@@ -1951,8 +1949,7 @@ public void createLinkExceptionTest() throws Exception {
19511949
} catch (ExecutionException e) {
19521950
Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
19531951
InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
1954-
Assert.assertEquals(
1955-
StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
1952+
Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
19561953
}
19571954
}
19581955

@@ -2011,8 +2008,7 @@ public void createLinkExceptionTest2() throws Exception {
20112008
} catch (ExecutionException e) {
20122009
Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
20132010
InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
2014-
Assert.assertEquals(
2015-
StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
2011+
Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
20162012
}
20172013
}
20182014

@@ -2056,8 +2052,7 @@ public void deleteLinkExceptionTest() throws Exception {
20562052
} catch (ExecutionException e) {
20572053
Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
20582054
InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
2059-
Assert.assertEquals(
2060-
StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
2055+
Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
20612056
}
20622057
}
20632058

@@ -2099,8 +2094,7 @@ public void deleteLinkExceptionTest2() throws Exception {
20992094
} catch (ExecutionException e) {
21002095
Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
21012096
InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
2102-
Assert.assertEquals(
2103-
StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
2097+
Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
21042098
}
21052099
}
21062100

@@ -3269,8 +3263,7 @@ public void copyLogEntriesExceptionTest() throws Exception {
32693263
} catch (ExecutionException e) {
32703264
Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
32713265
InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
3272-
Assert.assertEquals(
3273-
StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
3266+
Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
32743267
}
32753268
}
32763269
}

google-cloud-logging/src/test/java/com/google/cloud/logging/v2/LoggingClientTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@
6464
import java.util.UUID;
6565
import java.util.concurrent.ExecutionException;
6666
import javax.annotation.Generated;
67-
import org.junit.AfterClass;
6867
import org.junit.After;
68+
import org.junit.AfterClass;
6969
import org.junit.Assert;
70-
import org.junit.BeforeClass;
7170
import org.junit.Before;
71+
import org.junit.BeforeClass;
7272
import org.junit.Test;
7373

7474
@Generated("by gapic-generator-java")
@@ -650,8 +650,7 @@ public void tailLogEntriesExceptionTest() throws Exception {
650650
} catch (ExecutionException e) {
651651
Assert.assertTrue(e.getCause() instanceof InvalidArgumentException);
652652
InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
653-
Assert.assertEquals(
654-
StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
653+
Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
655654
}
656655
}
657656
}

google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
import java.util.List;
4848
import java.util.UUID;
4949
import javax.annotation.Generated;
50-
import org.junit.AfterClass;
5150
import org.junit.After;
51+
import org.junit.AfterClass;
5252
import org.junit.Assert;
53-
import org.junit.BeforeClass;
5453
import org.junit.Before;
54+
import org.junit.BeforeClass;
5555
import org.junit.Test;
5656

5757
@Generated("by gapic-generator-java")

0 commit comments

Comments
 (0)