Java tutorial
/* * Copyright 2012 Sebastian Ho <mail@shoss.de> * This work is free. You can redistribute it and/or modify it under the * terms of the Do What The Fuck You Want To Public License, Version 2, * as published by Sam Hocevar. See http://www.wtfpl.net/ for more details. */ package com.github.sebhoss.contract.example; import org.junit.Before; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import com.github.sebhoss.warnings.CompilerWarnings; /** * Test cases for a UEL {@link InsuranceCompany}. */ public class SpringUELInsuranceCompanyTest extends InsuranceCompanyTest { /** * Creates a new insurance company for each test. */ @Before @SuppressWarnings(CompilerWarnings.RESOURCE) public void createCompany() { final ApplicationContext context = new AnnotationConfigApplicationContext(SpringUelConfiguration.class); setInsuranceCompany(context.getBean(InsuranceCompany.class)); } }