WroManager implements WroConfigurationChangeListener { public final String encodeVersionIntoGroupPath(final String groupName, final ResourceType resourceType, final boolean minimize) { final CacheKey key = new CacheKey(groupName, resourceType, minimize); final CacheValue cacheValue = cacheStrategy.get(key); final String groupUrl = groupExtractor.encodeGroupUrl(groupName, resourceType, minimize); return formatVersionedResource(cacheValue.getHash(), groupUrl); } private  WroManager(final Builder builder); final void process(); final String encodeVersionIntoGroupPath(final String groupName, final ResourceType resourceType,
      final boolean minimize); @Override final void onCachePeriodChanged(final long period); @Override final void onModelPeriodChanged(final long period); final void destroy(); final HashStrategy getHashStrategy(); final WroModelFactory getModelFactory(); final ProcessorsFactory getProcessorsFactory(); final CacheStrategy<CacheKey, CacheValue> getCacheStrategy(); final UriLocatorFactory getUriLocatorFactory(); final NamingStrategy getNamingStrategy(); final GroupExtractor getGroupExtractor(); CacheKeyFactory getCacheKeyFactory(); MetaDataFactory getMetaDataFactory(); ResourceWatcher getResourceWatcher(); final void registerCallback(final ObjectFactory<LifecycleCallback> callbackFactory); LifecycleCallbackRegistry getCallbackRegistry(); ResourceAuthorizationManager getResourceAuthorizationManager();  }
@Ignore("This pass on Unix and fails on Windows") @Test public void testCRC32Fingerprint() throws Exception { final WroManagerFactory factory = new BaseWroManagerFactory().setModelFactory(getValidModelFactory()).setHashStrategy( new CRC32HashStrategy()); final WroManager manager = factory.create(); final String path = manager.encodeVersionIntoGroupPath("g3", ResourceType.CSS, true); assertEquals("1d62dbaf/g3.css?minimize=true", path); }
@Ignore("This pass on Unix and fails on Windows") @Test public void testMD5Fingerprint() throws Exception { final WroManagerFactory factory = new BaseWroManagerFactory().setModelFactory(getValidModelFactory()).setHashStrategy( new MD5HashStrategy()); final WroManager manager = factory.create(); final String path = manager.encodeVersionIntoGroupPath("g3", ResourceType.CSS, true); assertEquals("9394d6cdd0a75a5f695c84eda410103f/g3.css?minimize=true", path); }
@Ignore("This pass on Unix and fails on Windows") @Test public void testSHA1DefaultHashBuilder() throws Exception { final WroManager manager = managerFactory.create(); final String path = manager.encodeVersionIntoGroupPath("g3", ResourceType.CSS, true); assertEquals("aebaedcdec8131230d47259be7a628b5dfeff6ba/g3.css?minimize=true", path); }