2424import com .google .protobuf .util .Timestamps ;
2525import com .google .testing .junit .testparameterinjector .TestParameterInjector ;
2626import dev .cel .common .CelDescriptorUtil ;
27- import dev .cel .common .CelOptions ;
2827import dev .cel .common .CelRuntimeException ;
2928import dev .cel .common .internal .CelDescriptorPool ;
3029import dev .cel .common .internal .DefaultDescriptorPool ;
@@ -56,7 +55,7 @@ public class ProtoMessageValueProviderTest {
5655 @ Test
5756 public void newValue_createEmptyProtoMessage () {
5857 ProtoMessageValueProvider protoMessageValueProvider =
59- ProtoMessageValueProvider .newInstance (DYNAMIC_PROTO , CelOptions . DEFAULT );
58+ ProtoMessageValueProvider .newInstance (DYNAMIC_PROTO );
6059
6160 ProtoMessageValue protoMessageValue =
6261 (ProtoMessageValue )
@@ -70,7 +69,7 @@ public void newValue_createEmptyProtoMessage() {
7069 @ Test
7170 public void newValue_createProtoMessage_fieldsPopulated () {
7271 ProtoMessageValueProvider protoMessageValueProvider =
73- ProtoMessageValueProvider .newInstance (DYNAMIC_PROTO , CelOptions . DEFAULT );
72+ ProtoMessageValueProvider .newInstance (DYNAMIC_PROTO );
7473
7574 ProtoMessageValue protoMessageValue =
7675 (ProtoMessageValue )
@@ -104,9 +103,9 @@ public void newValue_createProtoMessage_fieldsPopulated() {
104103 assertThat (protoMessageValue .select (StringValue .create ("single_int64" )))
105104 .isEqualTo (IntValue .create (2L ));
106105 assertThat (protoMessageValue .select (StringValue .create ("single_uint32" )))
107- .isEqualTo (UintValue .create (3L , true ));
106+ .isEqualTo (UintValue .create (3L ));
108107 assertThat (protoMessageValue .select (StringValue .create ("single_uint64" )))
109- .isEqualTo (UintValue .create (4L , true ));
108+ .isEqualTo (UintValue .create (4L ));
110109 assertThat (protoMessageValue .select (StringValue .create ("single_double" )))
111110 .isEqualTo (DoubleValue .create (5.5d ));
112111 assertThat (protoMessageValue .select (StringValue .create ("single_bool" )))
@@ -122,7 +121,7 @@ public void newValue_createProtoMessage_fieldsPopulated() {
122121 @ Test
123122 public void newValue_createProtoMessage_unsignedLongFieldsPopulated () {
124123 ProtoMessageValueProvider protoMessageValueProvider =
125- ProtoMessageValueProvider .newInstance (DYNAMIC_PROTO , CelOptions . current (). build () );
124+ ProtoMessageValueProvider .newInstance (DYNAMIC_PROTO );
126125
127126 ProtoMessageValue protoMessageValue =
128127 (ProtoMessageValue )
@@ -143,7 +142,7 @@ public void newValue_createProtoMessage_unsignedLongFieldsPopulated() {
143142 @ Test
144143 public void newValue_createProtoMessage_wrappersPopulated () {
145144 ProtoMessageValueProvider protoMessageValueProvider =
146- ProtoMessageValueProvider .newInstance (DYNAMIC_PROTO , CelOptions . DEFAULT );
145+ ProtoMessageValueProvider .newInstance (DYNAMIC_PROTO );
147146
148147 ProtoMessageValue protoMessageValue =
149148 (ProtoMessageValue )
@@ -189,7 +188,7 @@ public void newValue_createProtoMessage_wrappersPopulated() {
189188 @ Test
190189 public void newValue_createProtoMessage_extensionFieldsPopulated () {
191190 ProtoMessageValueProvider protoMessageValueProvider =
192- ProtoMessageValueProvider .newInstance (DYNAMIC_PROTO , CelOptions . DEFAULT );
191+ ProtoMessageValueProvider .newInstance (DYNAMIC_PROTO );
193192
194193 ProtoMessageValue protoMessageValue =
195194 (ProtoMessageValue )
@@ -210,7 +209,7 @@ public void newValue_createProtoMessage_extensionFieldsPopulated() {
210209 @ Test
211210 public void newValue_invalidMessageName_throws () {
212211 ProtoMessageValueProvider protoMessageValueProvider =
213- ProtoMessageValueProvider .newInstance (DYNAMIC_PROTO , CelOptions . DEFAULT );
212+ ProtoMessageValueProvider .newInstance (DYNAMIC_PROTO );
214213
215214 CelRuntimeException e =
216215 assertThrows (
@@ -225,7 +224,7 @@ public void newValue_invalidMessageName_throws() {
225224 @ Test
226225 public void newValue_invalidField_throws () {
227226 ProtoMessageValueProvider protoMessageValueProvider =
228- ProtoMessageValueProvider .newInstance (DYNAMIC_PROTO , CelOptions . DEFAULT );
227+ ProtoMessageValueProvider .newInstance (DYNAMIC_PROTO );
229228
230229 IllegalArgumentException e =
231230 assertThrows (
@@ -245,7 +244,7 @@ public void newValue_invalidField_throws() {
245244 public void newValue_onCombinedProvider () {
246245 CelValueProvider celValueProvider = (structType , fields ) -> Optional .empty ();
247246 ProtoMessageValueProvider protoMessageValueProvider =
248- ProtoMessageValueProvider .newInstance (DYNAMIC_PROTO , CelOptions . DEFAULT );
247+ ProtoMessageValueProvider .newInstance (DYNAMIC_PROTO );
249248 CelValueProvider combinedProvider =
250249 new CombinedCelValueProvider (celValueProvider , protoMessageValueProvider );
251250
0 commit comments