File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sigstore-java/src/test/java/dev/sigstore/timestamp/client Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
22
import static org .junit .jupiter .api .Assertions .assertTrue ;
23
23
24
24
import com .google .common .io .Resources ;
25
- import com .google .protobuf .util .JsonFormat ;
26
25
import dev .sigstore .json .ProtoJson ;
27
26
import dev .sigstore .proto .trustroot .v1 .TrustedRoot ;
28
27
import dev .sigstore .trustroot .SigstoreTrustedRoot ;
@@ -46,7 +45,6 @@ public class TimestampVerifierTest {
46
45
47
46
@ BeforeAll
48
47
public static void loadResources () throws Exception {
49
-
50
48
artifact = "test\n " .getBytes (StandardCharsets .UTF_8 );
51
49
52
50
try (var is =
@@ -107,8 +105,9 @@ public static void initTrustRoot() throws Exception {
107
105
Resources .getResource ("dev/sigstore/trustroot/staging_trusted_root_with_one_tsa.json" ),
108
106
StandardCharsets .UTF_8 );
109
107
builder = TrustedRoot .newBuilder ();
110
- JsonFormat .parser ().merge (json , builder );
108
+ ProtoJson .parser ().merge (json , builder );
111
109
110
+ trustedRootWithOneTsa = SigstoreTrustedRoot .from (builder .build ());
112
111
trustedRootWithOneTsa = SigstoreTrustedRoot .from (builder .build ());
113
112
114
113
json =
@@ -120,6 +119,7 @@ public static void initTrustRoot() throws Exception {
120
119
ProtoJson .parser ().merge (json , builder );
121
120
122
121
trustedRootWithOutdatedTsa = SigstoreTrustedRoot .from (builder .build ());
122
+ trustedRootWithOutdatedTsa = SigstoreTrustedRoot .from (builder .build ());
123
123
}
124
124
125
125
@ Test
You can’t perform that action at this time.
0 commit comments