@Ignore("This class was not being run and when I ran it this test did not pass. Not familiar enough to enable it.") @Test public void testGetJsContentWithGoogSymbolExports() throws Exception { realOptionsMock = mockRealJsCompilerOptions(true); // with compiler = newClosureJsCompiler(null, realOptionsMock, compilerMock, cacheMock); FeatureBundle bundle = mockBundle(EXPORTS); Iterable<JsContent> actual = compiler.getJsContent(mockJsUri(false), bundle); assertEquals(EXPORT_COMPILER_STRING + "goog.exportSymbol('bar', bar);\n" + "goog.exportSymbol('foo', foo);\n", getContent(actual)); }
@Ignore("This class was not being run and when I ran it this test did not pass. Not familiar enough to enable it.") @Test public void testGetJsContentWithGoogSymbolExports() throws Exception { realOptionsMock = mockRealJsCompilerOptions(true); // with compiler = newClosureJsCompiler(null, realOptionsMock, compilerMock, cacheMock); FeatureBundle bundle = mockBundle(EXPORTS); Iterable<JsContent> actual = compiler.getJsContent(mockJsUri(false), bundle); assertEquals(EXPORT_COMPILER_STRING + "goog.exportSymbol('bar', bar);\n" + "goog.exportSymbol('foo', foo);\n", getContent(actual)); }
@Ignore("This class was not being run and when I ran it this test did not pass. Not familiar enough to enable it.") @Test public void testGetJsContentWithoutGoogSymbolExports() throws Exception { realOptionsMock = mockRealJsCompilerOptions(false); // without compiler = newClosureJsCompiler(null, realOptionsMock, compilerMock, cacheMock); FeatureBundle bundle = mockBundle(EXPORTS); Iterable<JsContent> actual = compiler.getJsContent(mockJsUri(false), bundle); assertEquals(EXPORT_COMPILER_STRING, getContent(actual)); }
@Ignore("This class was not being run and when I ran it this test did not pass. Not familiar enough to enable it.") @Test public void testGetJsContentWithoutGoogSymbolExports() throws Exception { realOptionsMock = mockRealJsCompilerOptions(false); // without compiler = newClosureJsCompiler(null, realOptionsMock, compilerMock, cacheMock); FeatureBundle bundle = mockBundle(EXPORTS); Iterable<JsContent> actual = compiler.getJsContent(mockJsUri(false), bundle); assertEquals(EXPORT_COMPILER_STRING, getContent(actual)); }