|
Gridarta Editor
|
Regression tests for MapsIndex. More...
Collaboration diagram for net.sf.gridarta.model.index.MapsIndexTest:Classes | |
| class | Listener |
| An IndexListener that records a text representation of all generated events. More... | |
Public Member Functions | |
| void | test1 () |
| Checks that values are correctly marked as pending. More... | |
| void | testFind1 () |
| Checks that Index#findPartialName(String) works as expected. More... | |
| void | testListener () |
| Checks that listeners are notified. More... | |
| void | testTransaction () |
| Checks that Index#beginUpdate() and Index#endUpdate() works as expected. More... | |
Static Private Member Functions | |
| static String | findPartialName (@NotNull final Index< File > index, @NotNull final String name) |
| Calls Index#findPartialName(String) on the given Index and name and returns a string representation of the result. More... | |
| static String | format (@NotNull final Collection< File > files) |
| Returns a text representation of a Collection. More... | |
| static String | getPending (@NotNull final Index< File > index) |
| Returns all pending values of a MapsIndex. More... | |
| static Index< File > | newIndex () |
| Returns a new Index instance. More... | |
Regression tests for MapsIndex.
Definition at line 35 of file MapsIndexTest.java.
|
staticprivate |
Calls Index#findPartialName(String) on the given Index and name and returns a string representation of the result.
| index | the index |
| name | the name |
Definition at line 179 of file MapsIndexTest.java.
References net.sf.gridarta.model.index.MapsIndexTest.format().
Referenced by net.sf.gridarta.model.index.MapsIndexTest.testFind1(), and net.sf.gridarta.model.index.MapsIndexTest.testTransaction().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Returns a text representation of a Collection.
| files | the collection |
Definition at line 189 of file MapsIndexTest.java.
Referenced by net.sf.gridarta.model.index.MapsIndexTest.findPartialName(), and net.sf.gridarta.model.index.MapsIndexTest.getPending().
Here is the caller graph for this function:
|
staticprivate |
Returns all pending values of a MapsIndex.
Afterwards the pending entries have been removed from the index.
| index | the index |
Definition at line 159 of file MapsIndexTest.java.
References net.sf.gridarta.model.index.MapsIndexTest.format().
Referenced by net.sf.gridarta.model.index.MapsIndexTest.test1().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Returns a new Index instance.
Definition at line 70 of file MapsIndexTest.java.
Referenced by net.sf.gridarta.model.index.MapsIndexTest.test1(), net.sf.gridarta.model.index.MapsIndexTest.testFind1(), net.sf.gridarta.model.index.MapsIndexTest.testListener(), and net.sf.gridarta.model.index.MapsIndexTest.testTransaction().
Here is the caller graph for this function:| void net.sf.gridarta.model.index.MapsIndexTest.test1 | ( | ) |
Checks that values are correctly marked as pending.
Definition at line 41 of file MapsIndexTest.java.
References net.sf.gridarta.model.index.Index< V >.add(), net.sf.gridarta.model.index.MapsIndexTest.getPending(), net.sf.gridarta.model.index.MapsIndexTest.newIndex(), net.sf.gridarta.model.index.Index< V >.remove(), and net.sf.gridarta.model.index.Index< V >.setPending().
Here is the call graph for this function:| void net.sf.gridarta.model.index.MapsIndexTest.testFind1 | ( | ) |
Checks that Index#findPartialName(String) works as expected.
Definition at line 81 of file MapsIndexTest.java.
References net.sf.gridarta.model.index.Index< V >.add(), net.sf.gridarta.model.index.MapsIndexTest.findPartialName(), net.sf.gridarta.model.index.MapsIndexTest.newIndex(), and net.sf.gridarta.model.index.Index< V >.setName().
Here is the call graph for this function:| void net.sf.gridarta.model.index.MapsIndexTest.testListener | ( | ) |
Checks that listeners are notified.
Definition at line 125 of file MapsIndexTest.java.
References net.sf.gridarta.model.index.Index< V >.add(), net.sf.gridarta.model.index.Index< V >.addIndexListener(), net.sf.gridarta.model.index.MapsIndexTest.Listener.getAndClearEvents(), net.sf.gridarta.model.index.MapsIndexTest.newIndex(), net.sf.gridarta.model.index.Index< V >.remove(), and net.sf.gridarta.model.index.Index< V >.setName().
Here is the call graph for this function:| void net.sf.gridarta.model.index.MapsIndexTest.testTransaction | ( | ) |
Checks that Index#beginUpdate() and Index#endUpdate() works as expected.
Definition at line 102 of file MapsIndexTest.java.
References net.sf.gridarta.model.index.Index< V >.add(), net.sf.gridarta.model.index.Index< V >.beginUpdate(), net.sf.gridarta.model.index.Index< V >.endUpdate(), net.sf.gridarta.model.index.MapsIndexTest.findPartialName(), net.sf.gridarta.model.index.MapsIndexTest.newIndex(), and net.sf.gridarta.model.index.Index< V >.setName().
Here is the call graph for this function: