Revision 30754 branches/v2_0_0_prep/extensions/org.gvsig.symbology/src/test/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/TestDrawFills.java
TestDrawFills.java | ||
---|---|---|
64 | 64 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
65 | 65 |
import org.gvsig.symbology.fmap.mapcontext.rendering.AllTests; |
66 | 66 |
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol; |
67 |
import org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase; |
|
67 | 68 |
import org.slf4j.Logger; |
68 | 69 |
import org.slf4j.LoggerFactory; |
69 | 70 |
|
... | ... | |
74 | 75 |
* |
75 | 76 |
* @author jaume dominguez faus - jaume.dominguez@iver.es |
76 | 77 |
*/ |
77 |
public class TestDrawFills extends TestCase { |
|
78 |
private static final GeometryManager geomManager = GeometryLocator.getGeometryManager();
|
|
78 |
public class TestDrawFills extends AbstractLibraryAutoInitTestCase {
|
|
79 |
private GeometryManager geomManager;
|
|
79 | 80 |
private static final Logger logger = LoggerFactory.getLogger(TestDrawFills.class); |
80 | 81 |
private final Dimension sz = new Dimension(400, 400); |
81 | 82 |
private org.gvsig.fmap.geom.primitive.Point centerP = null; |
... | ... | |
124 | 125 |
getClassesToTest().add(symbolClass); |
125 | 126 |
} |
126 | 127 |
|
127 |
|
|
128 |
protected void setUp() throws Exception { |
|
129 |
// get all the symbols in the Test Suite |
|
130 |
super.setUp(); |
|
131 |
centerP = geomManager.createPoint(sz.width/2, sz.height/2, SUBTYPES.GEOM2D); |
|
128 |
protected void doSetUp() throws Exception { |
|
129 |
geomManager = GeometryLocator.getGeometryManager(); |
|
130 |
centerP = geomManager.createPoint(sz.width/2, sz.height/2, SUBTYPES.GEOM2D); |
|
132 | 131 |
|
133 | 132 |
this.drawFillSymbols = new IDrawFillSymbol[getClassesToTest().size()]; |
134 | 133 |
|
... | ... | |
136 | 135 |
drawFillSymbols[i] = (IDrawFillSymbol) ((Class) getClassesToTest().get(i)).newInstance(); |
137 | 136 |
} |
138 | 137 |
|
139 |
|
|
138 |
TestISymbol.addSymbols(); |
|
140 | 139 |
ISymbol[] allSymbols = TestISymbol.getNewSymbolInstances(); |
141 | 140 |
// Filter the marker ones |
142 | 141 |
ArrayList symbols = new ArrayList(); |
Also available in: Unified diff