View Javadoc

1   /*******************************************************************************
2    * Portions created by Sebastian Thomschke are copyright (c) 2005-2010 Sebastian
3    * Thomschke.
4    * 
5    * All Rights Reserved. This program and the accompanying materials
6    * are made available under the terms of the Eclipse Public License v1.0
7    * which accompanies this distribution, and is available at
8    * http://www.eclipse.org/legal/epl-v10.html
9    * 
10   * Contributors:
11   *     Sebastian Thomschke - initial implementation.
12   *******************************************************************************/
13  package net.sf.oval.test.integration.spring;
14  
15  import junit.framework.TestCase;
16  import net.sf.oval.Validator;
17  import net.sf.oval.test.validator.XMLConfigurationTest;
18  
19  import org.springframework.context.support.ClassPathXmlApplicationContext;
20  
21  public class ValidatorSpringBeanTest extends TestCase
22  {
23  	public void testValidatorSpringBean()
24  	{
25  		final ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("ValidatorSpringBeanTest.xml",
26  				ValidatorSpringBeanTest.class);
27  		final Validator validator = ctx.getBean("validator", Validator.class);
28  
29  		final XMLConfigurationTest test = new XMLConfigurationTest();
30  		test.validateUser(validator);
31  	}
32  }