Skip to content

Instantly share code, notes, and snippets.

View btegenbosch's full-sized avatar

Bart Tegenbosch btegenbosch

  • Bart Tegenbosch
  • Nederland
View GitHub Profile
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Import(FeatureConfiguration.class)
public @interface EnableFeature {}
@Configuration
public class FeatureConfiguration {
@Bean
@btegenbosch
btegenbosch / VelocityEngineUtilsTest.java
Last active March 17, 2019 10:10
Test for VelocityEngineUtils.mergeTemplateIntoString
package velocity.test;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import junit.framework.Assert;
import org.junit.Test;