KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > packtag > test > IBloomCssPackStrategyTest


1 /**
2  * Project pack:tag >> http://packtag.sf.net
3  *
4  * This software is published under the terms of the LGPL
5  * License version 2.1, a copy of which has been included with this
6  * distribution in the 'lgpl.txt' file.
7  *
8  * Last author: $Author: danielgalan $
9  * Last modified: $Date: 2007/04/22 19:04:23 $
10  * Revision: $Revision: 1.1 $
11  *
12  * $Log: IBloomCssPackStrategyTest.java,v $
13  * Revision 1.1 2007/04/22 19:04:23 danielgalan
14  * pack.tag moved from subversion to good old CVS
15  *
16  */

17 package net.sf.packtag.test;
18
19 import net.sf.packtag.implementation.IBloomCssPackStrategy;
20
21
22
23 /**
24  * Test Case for the CSS algorithm taken from IBloom
25  *
26  * @author Daniel Galán y Martins
27  * @version $Revision: 1.1 $
28  */

29 public class IBloomCssPackStrategyTest extends PackTestCase {
30
31     public void testCompressorOne() throws Exception JavaDoc {
32         IBloomCssPackStrategy strategy = new IBloomCssPackStrategy();
33         String JavaDoc result = strategy.pack(IBloomCssPackStrategyTest.class.getResourceAsStream("resource/css01.css"));
34         String JavaDoc expectedResult = resourceToString(IBloomCssPackStrategyTest.class.getResourceAsStream("resource/css01-ibloom.css"));
35         assertEquals(expectedResult, result);
36     }
37
38 }
39
Popular Tags