net.sf.gridarta.model.index
public class MapsIndexTest extends Object
MapsIndex
.Modifier and Type | Class and Description |
---|---|
private static class |
MapsIndexTest.Listener
An
IndexListener that records a text representation of all
generated events. |
Constructor and Description |
---|
MapsIndexTest() |
Modifier and Type | Method and Description |
---|---|
private static String |
findPartialName(Index<File> index,
String name)
Calls
Index.findPartialName(String) on the given Index
and name and returns a string representation of the result. |
private static String |
format(Collection<File> files)
Returns a text representation of a
Collection . |
private static String |
getPending(Index<File> index)
Returns all pending values of a
MapsIndex . |
void |
test1()
Checks that values are correctly marked as pending.
|
void |
testFind1()
Checks that
Index.findPartialName(String) works as expected. |
void |
testListener()
Checks that listeners are notified.
|
void |
testTransaction()
Checks that
Index.beginUpdate() and Index.endUpdate()
works as expected. |
public MapsIndexTest()
public void test1()
public void testFind1()
Index.findPartialName(String)
works as expected.public void testTransaction()
Index.beginUpdate()
and Index.endUpdate()
works as expected.public void testListener()
@NotNull private static String getPending(@NotNull Index<File> index)
MapsIndex
. Afterwards the pending
entries have been removed from the index.index
- the index@NotNull private static String findPartialName(@NotNull Index<File> index, @NotNull String name)
Index.findPartialName(String)
on the given Index
and name and returns a string representation of the result.index
- the indexname
- the name@NotNull private static String format(@NotNull Collection<File> files)
Collection
.files
- the collectionFeedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.