Skip to content

Instantly share code, notes, and snippets.

@denispeyrusaubes
Created April 17, 2018 23:25
Show Gist options
  • Select an option

  • Save denispeyrusaubes/7b8d158bedcf9cee14b380323324825f to your computer and use it in GitHub Desktop.

Select an option

Save denispeyrusaubes/7b8d158bedcf9cee14b380323324825f to your computer and use it in GitHub Desktop.
import com.retengr.model.Client;
import com.retengr.model.Compte;
import com.retengr.service.BanqueService;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import java.util.Arrays;
import java.util.List;
public class SpringContextTest {
private static ApplicationContext ctx;
@BeforeClass
public static void init() {
// TODO : Initialisez le contexte Spring
ctx = <TOCOMPLETE>
}
@Test
public void testNombreDeBean() {
// TODO : Vérifiez que 3 beans sont bien déclarés dans le contexte
<TOCOMPLETE>
// TODO : Affichez le nom de ces 3 beans
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment