This is an automated email from the ASF dual-hosted git repository.
carryxyh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new f27c5a7 typo in junit: simle -> simple (#2465)
f27c5a7 is described below
commit f27c5a7383784188ecc6f6a04c414521279e1bfc
Author: 张皮皮 <[email protected]>
AuthorDate: Fri Sep 7 16:53:47 2018 +0800
typo in junit: simle -> simple (#2465)
---
.../java/org/apache/dubbo/common/compiler/support/JavaCodeTest.java | 6 +++---
.../apache/dubbo/common/compiler/support/JavassistCompilerTest.java | 4 ++--
.../org/apache/dubbo/common/compiler/support/JdkCompilerTest.java | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git
a/dubbo-common/src/test/java/org/apache/dubbo/common/compiler/support/JavaCodeTest.java
b/dubbo-common/src/test/java/org/apache/dubbo/common/compiler/support/JavaCodeTest.java
index 851141b..9d150d3 100644
---
a/dubbo-common/src/test/java/org/apache/dubbo/common/compiler/support/JavaCodeTest.java
+++
b/dubbo-common/src/test/java/org/apache/dubbo/common/compiler/support/JavaCodeTest.java
@@ -34,7 +34,7 @@ public class JavaCodeTest {
return code.toString();
}
- String getSimleCodeWithoutPackage(){
+ String getSimpleCodeWithoutPackage(){
StringBuilder code = new StringBuilder();
code.append("public class HelloServiceImpl" + SUBFIX.getAndIncrement()
+ "implements
org.apache.dubbo.common.compiler.support.HelloService.HelloService {");
code.append(" public String sayHello() { ");
@@ -44,7 +44,7 @@ public class JavaCodeTest {
return code.toString();
}
- String getSimleCodeWithSyntax(){
+ String getSimpleCodeWithSyntax(){
StringBuilder code = new StringBuilder();
code.append("package org.apache.dubbo.common.compiler.support;");
@@ -57,7 +57,7 @@ public class JavaCodeTest {
}
// only used for javassist
- String getSimleCodeWithSyntax0(){
+ String getSimpleCodeWithSyntax0(){
StringBuilder code = new StringBuilder();
code.append("package org.apache.dubbo.common.compiler.support;");
diff --git
a/dubbo-common/src/test/java/org/apache/dubbo/common/compiler/support/JavassistCompilerTest.java
b/dubbo-common/src/test/java/org/apache/dubbo/common/compiler/support/JavassistCompilerTest.java
index c4c166c..ac626ba 100644
---
a/dubbo-common/src/test/java/org/apache/dubbo/common/compiler/support/JavassistCompilerTest.java
+++
b/dubbo-common/src/test/java/org/apache/dubbo/common/compiler/support/JavassistCompilerTest.java
@@ -39,7 +39,7 @@ public class JavassistCompilerTest extends JavaCodeTest {
@Test
public void testCompileJavaClass0() throws Exception {
JavassistCompiler compiler = new JavassistCompiler();
- Class<?> clazz = compiler.compile(getSimleCodeWithoutPackage(),
JavassistCompiler.class.getClassLoader());
+ Class<?> clazz = compiler.compile(getSimpleCodeWithoutPackage(),
JavassistCompiler.class.getClassLoader());
Object instance = clazz.newInstance();
Method sayHello = instance.getClass().getMethod("sayHello");
Assert.assertEquals("Hello world!", sayHello.invoke(instance));
@@ -48,7 +48,7 @@ public class JavassistCompilerTest extends JavaCodeTest {
@Test(expected = IllegalStateException.class)
public void testCompileJavaClass1() throws Exception {
JavassistCompiler compiler = new JavassistCompiler();
- Class<?> clazz = compiler.compile(getSimleCodeWithSyntax0(),
JavassistCompiler.class.getClassLoader());
+ Class<?> clazz = compiler.compile(getSimpleCodeWithSyntax0(),
JavassistCompiler.class.getClassLoader());
Object instance = clazz.newInstance();
Method sayHello = instance.getClass().getMethod("sayHello");
Assert.assertEquals("Hello world!", sayHello.invoke(instance));
diff --git
a/dubbo-common/src/test/java/org/apache/dubbo/common/compiler/support/JdkCompilerTest.java
b/dubbo-common/src/test/java/org/apache/dubbo/common/compiler/support/JdkCompilerTest.java
index 1d5af2b..dd0c399 100644
---
a/dubbo-common/src/test/java/org/apache/dubbo/common/compiler/support/JdkCompilerTest.java
+++
b/dubbo-common/src/test/java/org/apache/dubbo/common/compiler/support/JdkCompilerTest.java
@@ -35,7 +35,7 @@ public class JdkCompilerTest extends JavaCodeTest{
@Test(expected = IllegalStateException.class)
public void test_compileJavaClass0() throws Exception {
JdkCompiler compiler = new JdkCompiler();
- Class<?> clazz = compiler.compile(getSimleCodeWithoutPackage(),
JdkCompiler.class.getClassLoader());
+ Class<?> clazz = compiler.compile(getSimpleCodeWithoutPackage(),
JdkCompiler.class.getClassLoader());
Object instance = clazz.newInstance();
Method sayHello = instance.getClass().getMethod("sayHello");
Assert.assertEquals("Hello world!", sayHello.invoke(instance));
@@ -44,7 +44,7 @@ public class JdkCompilerTest extends JavaCodeTest{
@Test(expected = IllegalStateException.class)
public void test_compileJavaClass1() throws Exception {
JdkCompiler compiler = new JdkCompiler();
- Class<?> clazz = compiler.compile(getSimleCodeWithSyntax(),
JdkCompiler.class.getClassLoader());
+ Class<?> clazz = compiler.compile(getSimpleCodeWithSyntax(),
JdkCompiler.class.getClassLoader());
Object instance = clazz.newInstance();
Method sayHello = instance.getClass().getMethod("sayHello");
Assert.assertEquals("Hello world!", sayHello.invoke(instance));