Skip to content
Permalink
Browse files
remove unused code
  • Loading branch information
EarthChen committed Sep 9, 2021
1 parent 390aa66 commit b31e589eb0f96e9e174cdce5b15d63034dda6d3d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 48 deletions.
@@ -21,35 +21,6 @@ public abstract class BasePbConsumerTest {
protected static PbGreeter delegate;

protected static PbGreeterManual delegateManual;
//
// @BeforeClass
// public static void init() {
// ReferenceConfig<PbGreeter> ref = new ReferenceConfig<>();
// ref.setInterface(PbGreeter.class);
// ref.setCheck(false);
// ref.setUrl(TriSampleConstants.DEFAULT_ADDRESS);
// ref.setProtocol(CommonConstants.TRIPLE);
// ref.setLazy(true);
// ref.setTimeout(10000);
//
// ReferenceConfig<PbGreeterManual> ref2 = new ReferenceConfig<>();
// ref2.setInterface(PbGreeterManual.class);
// ref2.setCheck(false);
// ref2.setUrl(TriSampleConstants.DEFAULT_ADDRESS);
// ref2.setProtocol(CommonConstants.TRIPLE);
// ref2.setLazy(true);
// ref2.setTimeout(10000);
//
// DubboBootstrap bootstrap = DubboBootstrap.getInstance();
// bootstrap.application(new ApplicationConfig("demo-consumer"))
//// .registry(new RegistryConfig("zookeeper://127.0.0.1:2181"))
// .reference(ref)
// .reference(ref2)
// .start();
//
// delegate = ref.get();
// delegateManual = ref2.get();
// }

@Test
public void serverStream() throws InterruptedException {
@@ -14,23 +14,6 @@ public class BaseTriWrapConsumerTest {

protected static WrapGreeter delegate;

// @BeforeClass
// public static void initStub() {
// ReferenceConfig<WrapGreeter> ref = new ReferenceConfig<>();
// ref.setInterface(WrapGreeter.class);
// ref.setCheck(false);
// ref.setTimeout(3000);
// ref.setProtocol(CommonConstants.TRIPLE);
// ref.setLazy(true);
//
// DubboBootstrap bootstrap = DubboBootstrap.getInstance();
// bootstrap.application(new ApplicationConfig("demo-consumer"))
// .registry(new RegistryConfig(TriSampleConstants.ZK_ADDRESS))
// .reference(ref)
// .start();
// delegate = ref.get();
// }

@Test
public void sayHelloUnaryRequestVoid() {
Assert.assertEquals("hello!void", delegate.sayHelloRequestVoid());
@@ -28,7 +28,6 @@ public static void main(String[] args) {
wrapService.setInterface(WrapGreeter.class);
wrapService.setRef(new WrapGreeterImpl());


DubboBootstrap bootstrap = DubboBootstrap.getInstance();
bootstrap.application(new ApplicationConfig("demo-provider"))
.registry(new RegistryConfig(TriSampleConstants.ZK_ADDRESS))
@@ -19,7 +19,6 @@ public static void initStub() {
ref.setInterface(WrapGreeter.class);
ref.setCheck(false);
ref.setTimeout(3000);
ref.setUrl(TriSampleConstants.DEFAULT_ADDRESS);
ref.setProtocol(CommonConstants.TRIPLE);
ref.setLazy(true);

0 comments on commit b31e589

Please sign in to comment.