- @Test
- public void test_noticeRouteListener4Add_del_api() {
- try {
- MicroServiceFullInfo microServiceInfo = buildMicroServiceFullInfo4API();
- routeInstance.noticeRouteListener4Add(microServiceInfo);
- Assert.assertNotNull(apiRouteServiceWrapper.getApiRouteInstance("apiTest", "v1", "", "20081", "ip"));
- Assert.assertNotNull(customRouteServiceWrapper.getCustomRouteInstance("/", "apitest-ns", "", "domain"));
-
- routeInstance.noticeRouteListener4Delete(microServiceInfo);
-
- } catch (Exception e) {
- Assert.fail("throw exception means error occured!" + e.getMessage());
- }
-
- try {
- apiRouteServiceWrapper.getApiRouteInstance("apiTest", "v1", "", "20081", "ip");
- Assert.fail("should not process to here.");
- } catch (Exception e) {
- Assert.assertTrue(e instanceof ExtendedNotFoundException);
- }
-
- try {
- apiRouteServiceWrapper.getApiRouteInstance("apiTest", "v1", "apitest-ns", "", "domain");
- Assert.fail("should not process to here.");
- } catch (Exception e) {
- Assert.assertTrue(e instanceof ExtendedNotFoundException);
- }
-
-
- }
+ /*
+ * @Test public void test_noticeRouteListener4Add_del_api() { try { MicroServiceFullInfo
+ * microServiceInfo = buildMicroServiceFullInfo4API();
+ * routeInstance.noticeRouteListener4Add(microServiceInfo);
+ * Assert.assertNotNull(apiRouteServiceWrapper.getApiRouteInstance("apiTest", "v1", "", "20081",
+ * "ip")); Assert.assertNotNull(customRouteServiceWrapper.getCustomRouteInstance("/",
+ * "apitest-ns", "", "domain"));
+ *
+ * routeInstance.noticeRouteListener4Delete(microServiceInfo);
+ *
+ * } catch (Exception e) { Assert.fail("throw exception means error occured!" + e.getMessage());
+ * }
+ *
+ * try { apiRouteServiceWrapper.getApiRouteInstance("apiTest", "v1", "", "20081", "ip");
+ * Assert.fail("should not process to here."); } catch (Exception e) { Assert.assertTrue(e
+ * instanceof ExtendedNotFoundException); }
+ *
+ * try { apiRouteServiceWrapper.getApiRouteInstance("apiTest", "v1", "apitest-ns", "",
+ * "domain"); Assert.fail("should not process to here."); } catch (Exception e) {
+ * Assert.assertTrue(e instanceof ExtendedNotFoundException); }
+ *
+ *
+ * }
+ */