Category Archives: JUnit

Database Configuration with Spring 3.2 Environment Profiles

Database Configuration with Spring 3.2 Environment Profiles This is a followup to my previous blog Spring 3.1 Environment Profiles Let’s demonstrate how to configure an application to use different databases based on configuration. The code below is using Spring JavaConfig, … Continue reading

Posted in Annotations, Java, JUnit, Spring, Spring Data, Testing | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , | 1 Comment

Spring 3.1 Environment Profiles

Spring 3.1 Environment Profiles Profiles Spring 3.1 now includes support for the long awaited environment aware feature called profiles. Now we can activate profiles in our application, which allows us to define beans by deployment regions, such as “dev”, “qa”, … Continue reading

Posted in JUnit, Spring, Spring Framework, Testing | Tagged , , , , , | 3 Comments

Annotation Reference for Spring Projects

Annotations are available for Spring and Java projects. I was unsuccessful in finding a single consolidated set of the annotations. So, I thought “What a great gap to fill.” However, what I thought would be a fairly simple endeavor, turned … Continue reading

Posted in Annotations, AOP, Hibernate, Java, JMX, JPA, JUnit, REST, SOAP, Spring, Spring AOP, Spring Batch, Spring Framework, Spring Integration, Spring MVC, Spring Roo, Spring Security, Web Flow, Web Services | Tagged , , , , , , , , , , , , , , | 9 Comments

Sending Beans as XML with JmsTemplate

Introduction We often want to send XML via web services. We may already have the schema or annotated JAXB2 classes configured in our application. What if we want to send the same format via JMS? By default Spring JMS is … Continue reading

Posted in ActiveMQ, Jakarta Commons Logging, Java Util Logging, JMS, JUnit, Log4J, LogBack, Logging, Maven, SLF4J, Spring, Spring Framework, Testing | Tagged , , , , , , , , , , , , , , , | 11 Comments

JUnit & Spring – What You Don’t Know

When using JUnit in Spring there are several features added that many developers are not aware of. First, if you are including the Spring Context in your tests, it becomes an Integration Test, no longer a Unit Test. 1. Default … Continue reading

Posted in JUnit, Spring, Testing | Tagged , , , , , | 8 Comments

Simple Spring Social for Twitter Friends

*** Updated 25-Nov-11 for Spring Social 1.0.0 Release *** The Spring Social project provides us developers with an easy way to interact with Twitter, Facebook, LinkedIn & TripIt via the familiar Template objects we have used. Spring has provided Templates … Continue reading

Posted in JUnit, Spring, Spring Social, Testing, Twitter | Tagged , , , | 8 Comments

Why Attend Enterprise Integration with Spring 3 Course?

Are you a Spring Developer? There are a lot of Spring developers out there, many have learned by experimenting, reading documentation and maybe code dives into an existing application or two. So, now you can put Spring Developer on your … Continue reading

Posted in ActiveMQ, Annotations, AOP, Chariot Solutions, Eclipse, Java, JMS, JUnit, LogBack, Logging, Maven, REST, Roo, SLF4J, SOAP, SpEL, Spring, Spring AOP, Spring Batch, Spring Data, Spring Framework, Spring Insight, Spring Integration, Spring MVC, Spring Roo, Spring Security, STS, tcServer, Testing, Tomcat, Training, Web Services | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , | 3 Comments