/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
"a", "an", "and", "are", "as", "at", "be", "but", "by",
"for", "if", "in", "into", "is", "it",
"no", "not", "of", "on", "or", "such",
"that", "the", "their", "then", "there", "these",
"they", "this", "to", "was", "will", "with"
};
}
public void testNonZeroOffset() {
// test unmodifiable
}
public void testObjectContains() {
// test unmodifiable
}
public void testClear(){
}
public void testModifyOnUnmodifiable(){
try{
fail("Modified unmodifiable set");
}catch (UnsupportedOperationException e) {
// expected
}
try{
fail("Modified unmodifiable set");
}catch (UnsupportedOperationException e) {
// expected
}
try{
fail("Modified unmodifiable set");
}catch (UnsupportedOperationException e) {
// expected
}
try{
fail("Modified unmodifiable set");
}catch (UnsupportedOperationException e) {
// expected
}
try{
fail("Modified unmodifiable set");
}catch (UnsupportedOperationException e) {
// expected
}
// This test was changed in 3.1, as a contains() call on the given Collection using the "correct" iterator's
// current key (now a char[]) on a Set<String> would not hit any element of the CAS and therefor never call
// remove() on the iterator
try{
fail("Modified unmodifiable set");
}catch (UnsupportedOperationException e) {
// expected
}
try{
fail("Modified unmodifiable set");
}catch (UnsupportedOperationException e) {
// expected
}
try{
fail("Modified unmodifiable set");
}catch (UnsupportedOperationException e) {
// expected
}
}
}
public void testUnmodifiableSet(){
}
try{
fail("can not make null unmodifiable");
}catch (NullPointerException e) {
// expected
}
}
public void testSupplementaryChars() {
// for reference see
// http://unicode.org/cldr/utility/list-unicodeset.jsp?a=[[%3ACase_Sensitive%3DTrue%3A]%26[^[\u0000-\uFFFF]]]&esc=on
"\ud801\udc1c\ud801\udc1cCDE", "A\ud801\udc1cB"};
"\ud801\udc44\ud801\udc44cde", "a\ud801\udc44b"};
}
}
}
}
}
public void testSingleHighSurrogate() {
"\uD800EfG", "\uD800\ud801\udc1cB" };
"\uD800efg", "\uD800\ud801\udc44b" };
.asList(TEST_STOP_WORDS), true);
}
}
false);
}
}
}
/**
* @deprecated remove this test when lucene 3.0 "broken unicode 4" support is
* no longer needed.
*/
public void testSupplementaryCharsBWCompat() {
// for reference see
// http://unicode.org/cldr/utility/list-unicodeset.jsp?a=[[%3ACase_Sensitive%3DTrue%3A]%26[^[\u0000-\uFFFF]]]&esc=on
"\ud801\udc1c\ud801\udc1cCDE", "A\ud801\udc1cB"};
"\ud801\udc44\ud801\udc44cde", "a\ud801\udc44b"};
}
}
}
}
}
/**
* @deprecated remove this test when lucene 3.0 "broken unicode 4" support is
* no longer needed.
*/
public void testSingleHighSurrogateBWComapt() {
"\uD800EfG", "\uD800\ud801\udc1cB" };
"\uD800efg", "\uD800\ud801\udc44b" };
.asList(TEST_STOP_WORDS), true);
}
else
}
false);
}
}
}
@SuppressWarnings("deprecated")
public void testCopyCharArraySetBWCompat() {
}
// This should use the deprecated methods, because it checks a bw compatibility.
}
// test adding terms to the copy
}
// new added terms are not in the source set
}
}
/**
* Test the static #copy() function with a CharArraySet as a source
*/
public void testCopyCharArraySet() {
}
}
// test adding terms to the copy
}
// new added terms are not in the source set
}
}
/**
* Test the static #copy() function with a JDK {@link Set} as a source
*/
public void testCopyJDKSet() {
}
}
}
// new added terms are not in the source set
}
}
/**
* Tests a special case of {@link CharArraySet#copy(Version, Set)} where the
* set to copy is the {@link CharArraySet#EMPTY_SET}
*/
public void testCopyEmptySet() {
}
/**
* Smoketests the static empty set
*/
public void testEmptySet() {
}
}
/**
* Test for NPE
*/
public void testContainsWithNull() {
try {
fail("null value must raise NPE");
} catch (NullPointerException e) {}
try {
fail("null value must raise NPE");
} catch (NullPointerException e) {}
try {
fail("null value must raise NPE");
} catch (NullPointerException e) {}
}
public void testIterator() {
assertTrue("in 3.0 version, iterator should be CharArraySetIterator",
((Iterator) CharArraySet.copy(Version.LUCENE_30, hset).iterator()) instanceof CharArraySet.CharArraySetIterator);
assertFalse("in current version, iterator should not be CharArraySetIterator",
// as the set returns String instances, this must work:
try {
fail("remove() should not work on CharArraySetIterator");
} catch (UnsupportedOperationException uoe) {
// pass
}
}
}
public void testToString() {
}
}