You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/08/06 10:10:26 UTC

[GitHub] diecui1202 closed pull request #2192: fix ut unstable

diecui1202 closed pull request #2192: fix ut unstable
URL: https://github.com/apache/incubator-dubbo/pull/2192
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/dubbo-config/dubbo-config-api/src/test/java/com/alibaba/dubbo/config/AbstractConfigTest.java b/dubbo-config/dubbo-config-api/src/test/java/com/alibaba/dubbo/config/AbstractConfigTest.java
index 5366b90910..765c429b8a 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/com/alibaba/dubbo/config/AbstractConfigTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/com/alibaba/dubbo/config/AbstractConfigTest.java
@@ -21,6 +21,7 @@
 import com.alibaba.dubbo.config.api.Greeting;
 import com.alibaba.dubbo.config.support.Parameter;
 import junit.framework.TestCase;
+import org.hamcrest.Matchers;
 import org.junit.Test;
 
 import java.lang.annotation.ElementType;
@@ -32,6 +33,8 @@
 import java.util.Map;
 import java.util.Properties;
 
+import static org.junit.Assert.assertThat;
+
 public class AbstractConfigTest {
 
     @Test
@@ -267,8 +270,8 @@ public void appendAnnotation() throws Exception {
         TestCase.assertEquals(2, annotationConfig.getParameters().size());
         TestCase.assertEquals("v1", annotationConfig.getParameters().get("k1"));
         TestCase.assertEquals("v2", annotationConfig.getParameters().get("k2"));
-        TestCase.assertEquals("<dubbo:annotation filter=\"f1, f2\" listener=\"l1, l2\" />",
-                annotationConfig.toString());
+        assertThat(annotationConfig.toString(), Matchers.containsString("filter=\"f1, f2\" "));
+        assertThat(annotationConfig.toString(), Matchers.containsString("listener=\"l1, l2\" "));
     }
 
     private static class PropertiesConfig extends AbstractConfig {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org