@Test public void testMD5Fingerprint() throws Exception { WroManagerFactory factory = new InjectableWroManagerFactoryDecorator( new BaseWroManagerFactory() .setModelFactory(getValidModelFactory()) .setHashBuilder(new MD5HashStrategy())); final WroManager manager = factory.create(); final String path = manager.encodeVersionIntoGroupPath("g3", ResourceType.CSS, true); Assert.assertEquals("42b98f2980dc1366cf1d2677d4891eda/g3.css?minimize=true", path); }
@Test public void testSHA1DefaultHashBuilder() throws Exception { final WroManager manager = managerFactory.create(); final String path = manager.encodeVersionIntoGroupPath("g3", ResourceType.CSS, true); Assert.assertEquals("51e6de8dde498cb0bf082b2cd80323fca19eef5/g3.css?minimize=true", path); }