assertEquals(list.get(1), "js\\test=1,benchmarks");
assertEquals(list.get(2), "js/test=2,benchmarks");
}
public void testOptionsAdding() {
CompressorSettings settings = getSettings("");
settings.setJsCompressMethod(CompressorSettings.CLOSURE_COMPILER_VALUE);
try {
String tagOptions=CompressorSettings.CLOSURE_ADD_PATH_KEY.replace(CompressorSettings.CLOSURE_COMPILER_VALUE+".", "") + "=\"js/My Samples2=\"";
String preparedOptions = (new OptionsHandler()).handle(tagOptions, settings.getJsCompressMethod());
settings.setOptions(preparedOptions);
} catch (JSCompileException e) {
// shouldn't happen as it in the memory
throw new RuntimeException(e);
}
List<String> list = settings.getClosurePathes();
assertEquals(list.get(0), "js/My Samples2=");
}