ClientLibraryResolverRegistryImpl.INSTANCE.register(unCombinableResolver);
assertFalse(clientLibraryService.canCombine(combinableURL));
}
public void testLibraryDefWithUrlCanBeCombinedWithoutUsingResolver() throws Exception {
ClientLibraryDef combinableURL = vendor.makeClientLibraryDef("fooBar",
"js://clientLibraryTest.clientLibraryTest", Type.JS,
null, true, null, null);
assertTrue("ResourceDef should always to combined", clientLibraryService.canCombine(combinableURL));
ClientLibraryDef unCombinableURL = vendor.makeClientLibraryDef("fooBar",
"js://clientLibraryTest.clientLibraryTest", Type.JS,
null, false, null, null);
assertTrue("ResourceDef should always to combined", clientLibraryService.canCombine(unCombinableURL));
// TODO: If a library cannot be resolved, can it still be combined?
ClientLibraryDef blankURL = vendor.makeClientLibraryDef("fooBar", "", Type.JS,
null, true, null, null);
try {
clientLibraryService.canCombine(blankURL);
fail("Client library will blank url and no resolver should throw exception");
} catch (QuickFixException qfe) {