commit | d4ef8d4a190d1ea40accc311821851b14739516d | [log] [tgz] |
---|---|---|
author | TingTing Wang <1922919664@qq.com> | Mon Jun 13 09:32:56 2022 +0800 |
committer | GitHub <noreply@github.com> | Mon Jun 13 09:32:56 2022 +0800 |
tree | 33b5f709253a76c00d3b86aad5e9668d829ccd77 | |
parent | 08c51404400e61fbbed0c768e0573bbffd898766 [diff] |
[SCB-2559] migrate foundation-protobuf module to junit5 (#3058)
diff --git a/foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/compatibility/TestCompatibilityOfImplementations.java b/foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/compatibility/TestCompatibilityOfImplementations.java index 460842f..62fedea 100644 --- a/foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/compatibility/TestCompatibilityOfImplementations.java +++ b/foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/compatibility/TestCompatibilityOfImplementations.java
@@ -30,9 +30,9 @@ import org.junit.jupiter.api.Test; public class TestCompatibilityOfImplementations { - static ProtubufCodecEngine scbWeak = new ScbWeak(); + static final ProtubufCodecEngine scbWeak = new ScbWeak(); - static ProtubufCodecEngine protobuf = new Protobuf(); + static final ProtubufCodecEngine protobuf = new Protobuf(); @Test @SuppressWarnings("unchecked")
diff --git a/foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/internal/schema/TestMapSchema.java b/foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/internal/schema/TestMapSchema.java index cdd9e52..1013f3a 100644 --- a/foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/internal/schema/TestMapSchema.java +++ b/foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/internal/schema/TestMapSchema.java
@@ -21,7 +21,7 @@ import org.apache.servicecomb.foundation.protobuf.internal.TestSchemaBase; import org.apache.servicecomb.foundation.protobuf.internal.model.ProtobufRoot; -import org.junit.Test; +import org.junit.jupiter.api.Test; public class TestMapSchema extends TestSchemaBase { @Test
diff --git a/foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/internal/schema/scalar/TestBytesSchema.java b/foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/internal/schema/scalar/TestBytesSchema.java index 325c2c3..db350e8 100644 --- a/foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/internal/schema/scalar/TestBytesSchema.java +++ b/foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/internal/schema/scalar/TestBytesSchema.java
@@ -20,10 +20,10 @@ import org.apache.servicecomb.foundation.protobuf.internal.TestSchemaBase; import org.apache.servicecomb.foundation.protobuf.internal.model.User; -import org.junit.Test; import com.google.protobuf.ByteString; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class TestBytesSchema extends TestSchemaBase { public TestBytesSchema() {
diff --git a/foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/internal/schema/scalar/TestNumberBaseSchema.java b/foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/internal/schema/scalar/TestNumberBaseSchema.java index c7e85f1..fd9a236 100644 --- a/foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/internal/schema/scalar/TestNumberBaseSchema.java +++ b/foundations/foundation-protobuf/src/test/java/org/apache/servicecomb/foundation/protobuf/internal/schema/scalar/TestNumberBaseSchema.java
@@ -25,14 +25,14 @@ import org.apache.servicecomb.foundation.protobuf.internal.TestSchemaBase; import org.apache.servicecomb.foundation.protobuf.internal.model.ProtobufRoot; import org.apache.servicecomb.foundation.test.scaffolding.model.User; -import org.junit.Ignore; -import org.junit.Test; import io.protostuff.compiler.model.Field; import io.protostuff.compiler.model.Type; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; -@Ignore +@Disabled public abstract class TestNumberBaseSchema extends TestSchemaBase { protected Object minValue;