* @userStory a07B0000000FDWP
*/
public void testCompressionOfAuraJavascriptGroup() throws Exception {
AuraJavascriptGroup js = new AuraJavascriptGroup();
Set<JavascriptGeneratorMode> jsModes = js.getJavascriptGeneratorModes();
DirectiveParser parser = new DirectiveParser(js, js.getStartFile());
parser.parseFile();
StringBuffer errorTxt = new StringBuffer();
// Have to do it for All modes because each mode has specific settings
// for comments and such
for (JavascriptGeneratorMode mode : jsModes) {
if (mode.getJavascriptWriter() != null) {
String jsContents = parser.generate(mode);
List<JavascriptProcessingError> errors = mode.getJavascriptWriter().compress(jsContents,
new StringWriter(), js.getStartFile().getName());
for (JavascriptProcessingError e : errors) {
errorTxt.append(e.toString());
}