Skip to content

Commit 1022415

Browse files
jerrick-zhubeiwei30
authored andcommitted
optimize unit test for serialization hession2/jdk/kryo (apache#1726)
1 parent e42d8e0 commit 1022415

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

dubbo-serialization/dubbo-serialization-hessian2/src/test/java/com/alibaba/dubbo/common/serialize/serialization/AbstractSerializationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
public abstract class AbstractSerializationTest {
6565
static Random random = new Random();
6666
Serialization serialization;
67-
URL url = new URL("protocl", "1.1.1.1", 1234);
67+
URL url = new URL("protocol", "1.1.1.1", 1234);
6868
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
6969

7070
// ================ Primitive Type ================

dubbo-serialization/dubbo-serialization-jdk/src/test/java/com/alibaba/dubbo/common/serialize/serialization/AbstractSerializationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
public abstract class AbstractSerializationTest {
6565
static Random random = new Random();
6666
Serialization serialization;
67-
URL url = new URL("protocl", "1.1.1.1", 1234);
67+
URL url = new URL("protocol", "1.1.1.1", 1234);
6868
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
6969

7070
// ================ Primitive Type ================
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
package com.alibaba.dubbo.common.serialize.serialization;
18+
19+
import com.alibaba.dubbo.common.serialize.nativejava.NativeJavaSerialization;
20+
21+
public class NativeJavaSerializationTest extends AbstractSerializationPersionFailTest {
22+
{
23+
serialization = new NativeJavaSerialization();
24+
}
25+
}

dubbo-serialization/dubbo-serialization-kryo/src/test/java/com/alibaba/dubbo/common/serialize/serialization/AbstractSerializationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
public abstract class AbstractSerializationTest {
6565
static Random random = new Random();
6666
Serialization serialization;
67-
URL url = new URL("protocl", "1.1.1.1", 1234);
67+
URL url = new URL("protocol", "1.1.1.1", 1234);
6868
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
6969

7070
// ================ Primitive Type ================

0 commit comments

Comments
 (0)