@Override protected void setUp() throws Exception { super.setUp(); FeatureTypeBuilder sftb = new FeatureTypeBuilder(); sftb.setName(dataStore.getNamespaceURI(), PERSON); sftb.add( new DefaultName(dataStore.getNamespaceURI(), ID), Integer.class, 1, 1, false, FeatureTypeBuilder.PRIMARY_KEY); sftb.add(new DefaultName(dataStore.getNamespaceURI(), NAME), String.class, 1, 1, true, null); sftb.add(new DefaultName(dataStore.getNamespaceURI(), AGE), Integer.class, 1, 1, true, null); personSchema = sftb.buildSimpleFeatureType(); sftb.reset(); sftb.setName(dataStore.getNamespaceURI(), ZIPCODE); sftb.add( new DefaultName(dataStore.getNamespaceURI(), ID), Integer.class, 1, 1, false, FeatureTypeBuilder.PRIMARY_KEY); sftb.add(new DefaultName(dataStore.getNamespaceURI(), CODE), String.class, 1, 1, true, null); zipCodeSchema = sftb.buildSimpleFeatureType(); }
@Override protected void setUpInternal() throws Exception { super.setUpInternal(); visited = false; }