mardi 28 février 2017

Spring testing plugin without context

I have a plugin for my application which has only one class:

@Configuration public class AppConfig {

@Bean
public Supplier messageSupplier(){
    return () -> "plugin";
}

}

I use it in other application but I want to test this class. I want to test it, but I don't know what is context of this application.

Aucun commentaire:

Enregistrer un commentaire