Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Dubbo Provider Properties as an alternative for
# Spring XML Bean definition : META-INF/spring/dubbo-annotation-provider.xml

## Service Providers' Placeholders for com.alibaba.dubbo.config.spring.context.annotation.provider.DemoServiceImpl
## Service Providers' Placeholders for org.apache.dubbo.config.spring.context.annotation.provider.DemoServiceImpl

demo.service.application = dubbo-demo-application
demo.service.protocol = dubbo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void testInvokeWithDefault() throws Exception {
RpcInvocation invocation = new RpcInvocation(Constants.$INVOKE, genericInvoke.getParameterTypes(),
new Object[]{"getPerson", new String[]{Person.class.getCanonicalName()}, new Object[]{person}});

URL url = URL.valueOf("test://test:11/com.alibaba.dubbo.rpc.support.DemoService?" +
URL url = URL.valueOf("test://test:11/org.apache.dubbo.rpc.support.DemoService?" +
"accesslog=true&group=dubbo&version=1.1");
Invoker invoker = Mockito.mock(Invoker.class);
when(invoker.invoke(any(Invocation.class))).thenReturn(new RpcResult(new Person("person", 10)));
Expand All @@ -76,7 +76,7 @@ public void testInvokeWithJavaException() throws Exception {
new Object[]{"getPerson", new String[]{Person.class.getCanonicalName()}, new Object[]{person}});
invocation.setAttachment(Constants.GENERIC_KEY, Constants.GENERIC_SERIALIZATION_NATIVE_JAVA);

URL url = URL.valueOf("test://test:11/com.alibaba.dubbo.rpc.support.DemoService?" +
URL url = URL.valueOf("test://test:11/org.apache.dubbo.rpc.support.DemoService?" +
"accesslog=true&group=dubbo&version=1.1");
Invoker invoker = Mockito.mock(Invoker.class);
when(invoker.invoke(any(Invocation.class))).thenReturn(new RpcResult(new Person("person", 10)));
Expand All @@ -99,7 +99,7 @@ public void testInvokeWithJavaException() throws Exception {
RpcInvocation invocation = new RpcInvocation("sayHi", genericInvoke.getParameterTypes()
, new Object[]{"getPerson", new String[]{Person.class.getCanonicalName()}, new Object[]{person}});

URL url = URL.valueOf("test://test:11/com.alibaba.dubbo.rpc.support.DemoService?" +
URL url = URL.valueOf("test://test:11/org.apache.dubbo.rpc.support.DemoService?" +
"accesslog=true&group=dubbo&version=1.1");
Invoker invoker = Mockito.mock(Invoker.class);
when(invoker.invoke(any(Invocation.class))).thenReturn(new RpcResult(new Person("person", 10)));
Expand All @@ -123,7 +123,7 @@ public void testInvokeWithMethodArgumentSizeIsNot3() {
RpcInvocation invocation = new RpcInvocation(Constants.$INVOKE, genericInvoke.getParameterTypes()
, new Object[]{"getPerson", new String[]{Person.class.getCanonicalName()}});

URL url = URL.valueOf("test://test:11/com.alibaba.dubbo.rpc.support.DemoService?" +
URL url = URL.valueOf("test://test:11/org.apache.dubbo.rpc.support.DemoService?" +
"accesslog=true&group=dubbo&version=1.1");
Invoker invoker = Mockito.mock(Invoker.class);
when(invoker.invoke(any(Invocation.class))).thenReturn(new RpcResult(new Person("person", 10)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void testInvoke() throws Exception {
new Class[]{Person.class}, new Object[]{new Person("dubbo", 10)});


URL url = URL.valueOf("test://test:11/com.alibaba.dubbo.rpc.support.DemoService?" +
URL url = URL.valueOf("test://test:11/org.apache.dubbo.rpc.support.DemoService?" +
"accesslog=true&group=dubbo&version=1.1&generic=true");
Invoker invoker = Mockito.mock(Invoker.class);

Expand All @@ -74,7 +74,7 @@ public void testInvokeWithException() throws Exception {
RpcInvocation invocation = new RpcInvocation("getPerson",
new Class[]{Person.class}, new Object[]{new Person("dubbo", 10)});

URL url = URL.valueOf("test://test:11/com.alibaba.dubbo.rpc.support.DemoService?" +
URL url = URL.valueOf("test://test:11/org.apache.dubbo.rpc.support.DemoService?" +
"accesslog=true&group=dubbo&version=1.1&generic=true");
Invoker invoker = Mockito.mock(Invoker.class);

Expand All @@ -100,7 +100,7 @@ public void testInvokeWithException() throws Exception {
RpcInvocation invocation = new RpcInvocation(Constants.$INVOKE, genericInvoke.getParameterTypes(),
new Object[]{"getPerson", new String[]{Person.class.getCanonicalName()}, new Object[]{person}});

URL url = URL.valueOf("test://test:11/com.alibaba.dubbo.rpc.support.DemoService?" +
URL url = URL.valueOf("test://test:11/org.apache.dubbo.rpc.support.DemoService?" +
"accesslog=true&group=dubbo&version=1.1&generic=true");
Invoker invoker = Mockito.mock(Invoker.class);
when(invoker.invoke(any(Invocation.class))).thenReturn(new RpcResult(new Person("person", 10)));
Expand Down