Skip to content

Instantly share code, notes, and snippets.

View in1t5's full-sized avatar

init5 in1t5

  • Blockchain
View GitHub Profile
Customer maxMustermannFromDb = customerDAO.find(1001);
System.out.println("expected: " + maxMustermann);
System.out.println("but was: " + maxMustermannFromDb);
assertTrue(maxMustermann.equals(maxMustermannFromDb));
package reproducer;
import org.springframework.context.MessageSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ResourceBundleMessageSource;
@Configuration
@ComponentScan("reproducer")
package reproducer;
public interface ServiceInterface {
String exec();
}
package reproducer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public abstract class AbstractService implements ServiceInterface {
@Autowired
protected KodiUtils util; // injected successful