@@ -0,0 +1,1037 @@
+package com.ikasoa.springboot.autoconfigure;%0A%0Aimport org.junit.Test;%0A%0Aimport com.ikasoa.rpc.IkasoaException;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class TestAutoConfigurationBase extends TestCase %7B%0A%0A%09TestAutoConfiguration testAutoConfiguration = new TestAutoConfiguration();%0A%0A%09private final static String TEST_HOST = %22127.0.0.1%22;%0A%0A%09private final static String TEST_PORT = %2219999%22;%0A%0A%09@Test%0A%09public void testGetHost() %7B%0A%09%09try %7B%0A%09%09%09assertEquals(TEST_HOST, testAutoConfiguration.getHost());%0A%09%09%7D catch (IkasoaException e) %7B%0A%09%09%09fail();%0A%09%09%7D%0A%09%7D%0A%0A%09@Test%0A%09public void testGetPort() %7B%0A%09%09try %7B%0A%09%09%09assertEquals(Integer.parseInt(TEST_PORT), testAutoConfiguration.getPort());%0A%09%09%7D catch (IkasoaException e) %7B%0A%09%09%09fail();%0A%09%09%7D%0A%09%7D%0A%0A%09class TestAutoConfiguration extends AutoConfigurationBase %7B%0A%0A%09%09TestAutoConfiguration() %7B%0A%09%09%09super.host = TEST_HOST;%0A%09%09%09super.port = TEST_PORT;%0A%09%09%7D%0A%0A%09%09public String getHost() throws IkasoaException %7B%0A%09%09%09return super.getHost();%0A%09%09%7D%0A%0A%09%09protected int getPort() throws IkasoaException %7B%0A%09%09%09return super.getPort();%0A%09%09%7D%0A%0A%09%7D%0A%0A%7D%0A

optimize codes