This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @WatcherTest.java 1.0 Nov 4, 2013 Sistema Integral de Gestion Hospitalaria | |
*/ | |
package py.una.med.base.test.test.replication.watchers; | |
import static org.hamcrest.CoreMatchers.is; | |
import static org.junit.Assert.assertFalse; | |
import static org.junit.Assert.assertThat; | |
import static org.junit.Assert.assertTrue; | |
import liquibase.change.Change; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ContextConfiguration(loader = AnnotationConfigContextLoader.class) | |
public class RegisterServicesTest extends BaseTest { | |
@Configuration | |
static class ContextConfiguration extends BaseTestConfiguration { | |
@Bean | |
public ServiceDefinitionRegister serviceDefinitionRegister() { | |
return new ServiceDefinitionRegister(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ServiceDefinitionRegister implements BeanFactoryPostProcessor { | |
Logger logger = LoggerFactory.getLogger(ServiceDefinitionRegister.class); | |
@Override | |
public void postProcessBeanFactory(ConfigurableListableBeanFactory bf) | |
throws BeansException { | |
Map<String, Object> beans = bf.getBeansWithAnnotation(WebService.class); | |
for (Entry<String, Object> entry : beans.entrySet()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.assertNotNull; | |
import static org.junit.Assert.assertSame; | |
import static org.junit.Assert.assertTrue; | |
import java.math.BigDecimal; | |
import java.text.ParseException; | |
import java.util.Calendar; | |
import java.util.Date; | |
import java.util.GregorianCalendar; | |
import org.apache.commons.lang3.time.DateUtils; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.math.BigDecimal; | |
import java.text.DecimalFormat; | |
import java.text.DecimalFormatSymbols; | |
import java.text.NumberFormat; | |
import java.text.ParseException; | |
import java.text.ParsePosition; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import java.util.HashMap; | |
import java.util.Locale; |
NewerOlder