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, getLogFileNameassertEquals, 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, toStringpublic void setUp()
throws Exception
TestSITBasesetUp in class TestSITBaseExceptionpublic void tearDown()
tearDown in class TestSITBaseprotected abstract LayerTerritorio getTestLayer()
protected String getTestIDTPNNotPresent()
protected String getTestIDTPNPresent()
protected Filtro getFiltroSubset() throws SITException
SITExceptionprotected 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 - SITExceptionIOExceptionSQLExceptionprotected OggettoTerritorio utiTestLayerModifyOggetto(LayerTerritorio lay, OggettoTerritorio oggTerr) throws SITException, IOException, SQLException
lay - oggTerr - SITExceptionIOExceptionSQLExceptionprotected OggettoTerritorio utiTestLayerInsertOggetto(LayerTerritorio lay, OggettoTerritorio oggTerr) throws SITException, IOException
lay - oggTerr - SITExceptionIOExceptionprotected OggettoTerritorio utiTestLayerGetOggetto(LayerTerritorio lay) throws SITException, IOException
lay - SITExceptionIOExceptionprotected void utiTestCRUDLayer(LayerTerritorio lay, OggettoTerritorio oggTerr, Map<String,Object> campiDaMod) throws SITException, IOException
lay - oggTerr - campiDaMod - SITExceptionIOExceptionpublic void testNomiCampi()
public void testLetturaCampiDaNomiCampi()
throws SITException
SITExceptionpublic void testCodTPN()
public void testConfigPrefix()
public void testCercaIDTPN()
throws SITException
SITExceptionpublic void testCreaNuovoOggettoTerritorio()
throws IOException,
SITException
IOExceptionSITExceptionpublic void testGeometryAttribute()
throws IOException,
SITException
IOExceptionSITExceptionpublic void testGetLayerByCodTPN()
throws IOException,
SITException
IOExceptionSITExceptionpublic void testChiInterseca()
throws IOException,
SITException
IOExceptionSITExceptionpublic void testContiene()
throws IOException,
SITException
IOExceptionSITExceptionpublic void testGetFiltroVuoto()
throws IOException,
SITException
IOExceptionSITExceptionpublic void testGetRicerche()
throws IOException,
SITException
IOExceptionSITExceptionpublic void testFiltroPaginatoSingolaPagina()
throws IOException,
SITException
IOExceptionSITExceptionpublic void testFiltroPaginatoLeggiDuePagine()
throws IOException,
SITException
IOExceptionSITExceptionpublic void testFiltroPaginatoTuttePagine()
throws IOException,
SITException
IOExceptionSITExceptionpublic void testFiltroPaginatoOrdinamentoCresc()
throws IOException,
SITException
IOExceptionSITExceptionpublic void testFiltroPaginatoOrdinamentoDecresc()
throws IOException,
SITException
IOExceptionSITExceptionpublic void testFiltroPaginatoOrdinamento()
throws IOException,
SITException
IOExceptionSITExceptionCopyright © 2017 Comune di Prato. All rights reserved.