public abstract class TestSITBaseLayer extends TestSITBase
layersManager, logger, transaction
Constructor and Description |
---|
TestSITBaseLayer() |
Modifier and Type | Method and Description |
---|---|
protected HashMap<String,Object> |
getDefaultFieldsContent() |
protected Filtro |
getFiltroSubset() |
protected List<String> |
getSortFieldsNL() |
protected String |
getTestIDTPNNotPresent() |
protected String |
getTestIDTPNPresent() |
protected abstract LayerTerritorio |
getTestLayer() |
protected int |
getTestPageLength() |
void |
setUp()
Inizializzazione del contesto.
|
void |
tearDown() |
void |
testCercaIDTPN() |
void |
testChiInterseca() |
void |
testCodTPN() |
void |
testConfigPrefix() |
void |
testContiene() |
void |
testCreaNuovoOggettoTerritorio() |
void |
testFiltroPaginatoLeggiDuePagine() |
void |
testFiltroPaginatoOrdinamento() |
void |
testFiltroPaginatoOrdinamentoCresc() |
void |
testFiltroPaginatoOrdinamentoDecresc() |
void |
testFiltroPaginatoSingolaPagina() |
void |
testFiltroPaginatoTuttePagine() |
void |
testGeometryAttribute() |
void |
testGetFiltroVuoto() |
void |
testGetLayerByCodTPN() |
void |
testGetRicerche() |
void |
testLetturaCampiDaNomiCampi() |
void |
testNomiCampi() |
protected void |
utiTestCRUDLayer(LayerTerritorio lay,
OggettoTerritorio oggTerr,
Map<String,Object> campiDaMod)
Test delle operazioni di CRUD.
|
protected OggettoTerritorio |
utiTestLayerGetOggetto(LayerTerritorio lay)
Test creazione nuovo oggetto.
|
protected OggettoTerritorio |
utiTestLayerInsertOggetto(LayerTerritorio lay,
OggettoTerritorio oggTerr)
Test di inserimento oggetto.
|
protected OggettoTerritorio |
utiTestLayerModifyOggetto(LayerTerritorio lay,
OggettoTerritorio oggTerr)
Test di modifica oggetto.
|
protected void |
utiTestLayerRemoveOggetto(LayerTerritorio lay,
OggettoTerritorio oggTerr)
Test di rimozione oggetto.
|
protected void |
utiTestListaUgualeA(List<OggettoTerritorio> actual,
String... idTPNList)
Controlla che gli oggetti contenuti in actual siano uguali a quelli identificati dalle chiavi contenute in idTPNList
Non è necessario che gli oggetti siano nello stesso ordine, ma e' necessario che siano tutti e soli quelli identificati dalle chiavi.
|
protected void |
utiTestUgualeA(List<OggettoTerritorio> actual,
String idTPN)
Test di uguaglianza tra due oggetti.
|
protected void |
utiTestUgualeA(OggettoTerritorio actual,
String idTPN)
Test di uguaglienza tra due oggetti.
|
protected boolean |
utiTestUgualeNoAssert(OggettoTerritorio actual,
String idTPN)
Test di uguaglianza tra due oggetti.
|
getConfigFileName, getLogFileName
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public void setUp() throws Exception
TestSITBase
setUp
in class TestSITBase
Exception
public void tearDown()
tearDown
in class TestSITBase
protected abstract LayerTerritorio getTestLayer()
protected String getTestIDTPNNotPresent()
protected String getTestIDTPNPresent()
protected Filtro getFiltroSubset() throws SITException
SITException
protected int getTestPageLength()
protected void utiTestListaUgualeA(List<OggettoTerritorio> actual, String... idTPNList)
actual
- idTPNList
- protected void utiTestUgualeA(List<OggettoTerritorio> actual, String idTPN)
actual
- idTPN
- TestSITBaseLayer#utiTestUgualeA(OggettoTerritorio actual, String idTPN)}
protected boolean utiTestUgualeNoAssert(OggettoTerritorio actual, String idTPN)
actual
- idTPN
- protected void utiTestUgualeA(OggettoTerritorio actual, String idTPN)
actual
- idTPN
- TestSITBaseLayer#utiTestUgualeNoAssert(OggettoTerritorio actual, String idTPN)}
protected void utiTestLayerRemoveOggetto(LayerTerritorio lay, OggettoTerritorio oggTerr) throws SITException, IOException, SQLException
lay
- oggTerr
- SITException
IOException
SQLException
protected OggettoTerritorio utiTestLayerModifyOggetto(LayerTerritorio lay, OggettoTerritorio oggTerr) throws SITException, IOException, SQLException
lay
- oggTerr
- SITException
IOException
SQLException
protected OggettoTerritorio utiTestLayerInsertOggetto(LayerTerritorio lay, OggettoTerritorio oggTerr) throws SITException, IOException
lay
- oggTerr
- SITException
IOException
protected OggettoTerritorio utiTestLayerGetOggetto(LayerTerritorio lay) throws SITException, IOException
lay
- SITException
IOException
protected void utiTestCRUDLayer(LayerTerritorio lay, OggettoTerritorio oggTerr, Map<String,Object> campiDaMod) throws SITException, IOException
lay
- oggTerr
- campiDaMod
- SITException
IOException
public void testNomiCampi()
public void testLetturaCampiDaNomiCampi() throws SITException
SITException
public void testCodTPN()
public void testConfigPrefix()
public void testCercaIDTPN() throws SITException
SITException
public void testCreaNuovoOggettoTerritorio() throws IOException, SITException
IOException
SITException
public void testGeometryAttribute() throws IOException, SITException
IOException
SITException
public void testGetLayerByCodTPN() throws IOException, SITException
IOException
SITException
public void testChiInterseca() throws IOException, SITException
IOException
SITException
public void testContiene() throws IOException, SITException
IOException
SITException
public void testGetFiltroVuoto() throws IOException, SITException
IOException
SITException
public void testGetRicerche() throws IOException, SITException
IOException
SITException
public void testFiltroPaginatoSingolaPagina() throws IOException, SITException
IOException
SITException
public void testFiltroPaginatoLeggiDuePagine() throws IOException, SITException
IOException
SITException
public void testFiltroPaginatoTuttePagine() throws IOException, SITException
IOException
SITException
public void testFiltroPaginatoOrdinamentoCresc() throws IOException, SITException
IOException
SITException
public void testFiltroPaginatoOrdinamentoDecresc() throws IOException, SITException
IOException
SITException
public void testFiltroPaginatoOrdinamento() throws IOException, SITException
IOException
SITException
Copyright © 2017 Comune di Prato. All rights reserved.