public class ReadPreferenceTest extends Object
ReadPreference
class.Constructor and Description |
---|
ReadPreferenceTest() |
public void setUp()
public void tearDown()
public void testClosest()
ReadPreference.closest(DocumentAssignable[])
.public void testEqualsAndHashCode()
ReadPreference.equals(java.lang.Object)
and
ReadPreference.hashCode()
.public void testMatchesEmpty()
ReadPreference.matches(Document)
.public void testMatchesEmptyTags()
ReadPreference.matches(Document)
.public void testMatchesExactElements()
ReadPreference.matches(Document)
.public void testMatchesExactElementsFirst()
ReadPreference.matches(Document)
.public void testMatchesFuzzyNumericDouble()
ReadPreference.matches(Document)
.public void testMatchesFuzzyNumericLong()
ReadPreference.matches(Document)
.public void testMatchesFuzzyNumericLongNoMatch()
ReadPreference.matches(Document)
.public void testMatchesFuzzyString()
ReadPreference.matches(Document)
.public void testMatchesFuzzyStringTag()
ReadPreference.matches(Document)
.public void testMatchesNotOverlapping()
ReadPreference.matches(Document)
.public void testMatchesNull()
ReadPreference.matches(Document)
.public void testMatchesWithMoreElements()
ReadPreference.matches(Document)
.public void testMatchesWrongType()
ReadPreference.matches(Document)
.public void testPreferPrimary()
ReadPreference.preferPrimary(DocumentAssignable[])
.public void testPreferSecondary()
ReadPreference.preferSecondary(DocumentAssignable[])
.public void testPrimary()
ReadPreference.primary()
.public void testReadResolve() throws IOException, ClassNotFoundException
ReadPreference.readResolve()
.IOException
- On a failure.ClassNotFoundException
- On a failure.public void testSecondary()
ReadPreference.secondary(DocumentAssignable[])
.public void testToString()
ReadPreference.toString()
.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.