Skip to content

Instantly share code, notes, and snippets.

View BorzdeG's full-sized avatar
🏠
Working from home

Viktor Alenkov BorzdeG

🏠
Working from home
View GitHub Profile
package demo;
import org.apache.commons.lang3.text.WordUtils;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
public class CamelCaseTests {
@DataProvider(name = "data")
public static Object[][] data() {
@BorzdeG
BorzdeG / ApplicationContextProvider.java
Created September 25, 2015 10:19
get Application Context in not spring beans
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.core.convert.ConversionService;
import org.springframework.stereotype.Component;
@Component
public class ApplicationContextProvider implements ApplicationContextAware {