fix test cases.

This commit is contained in:
Shinsuke Sugaya 2014-02-21 18:36:37 +09:00
parent 0357cc23d5
commit e444a78623
3 changed files with 7 additions and 13 deletions

View file

@ -16,7 +16,7 @@
package jp.sf.fess.helper.impl;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
@ -194,7 +194,7 @@ public class QueryHelperImplTest extends S2TestCase {
queryHelperImpl.roleQueryHelper = new RoleQueryHelper() {
@Override
public Set<String> build() {
final Set<String> list = new HashSet<>();
final Set<String> list = new LinkedHashSet<>();
list.add("guest");
return list;
}
@ -216,7 +216,7 @@ public class QueryHelperImplTest extends S2TestCase {
queryHelperImpl.roleQueryHelper = new RoleQueryHelper() {
@Override
public Set<String> build() {
final Set<String> list = new HashSet<>();
final Set<String> list = new LinkedHashSet<>();
list.add("guest");
list.add("admin");
return list;
@ -248,7 +248,7 @@ public class QueryHelperImplTest extends S2TestCase {
queryHelperImpl.roleQueryHelper = new RoleQueryHelper() {
@Override
public Set<String> build() {
final Set<String> list = new HashSet<>();
final Set<String> list = new LinkedHashSet<>();
list.add("guest");
list.add("admin");
return list;

View file

@ -20,9 +20,8 @@ import java.util.Set;
import javax.servlet.http.Cookie;
import jp.sf.fess.FessSystemException;
import org.codelibs.core.crypto.CachedCipher;
import org.codelibs.core.exception.IllegalBlockSizeRuntimeException;
import org.seasar.extension.unit.S2TestCase;
public class RoleQueryHelperImplTest extends S2TestCase {
@ -72,7 +71,7 @@ public class RoleQueryHelperImplTest extends S2TestCase {
try {
roleSet = roleQueryHelperImpl.buildByParameter(getRequest());
fail();
} catch (final FessSystemException e) {
} catch (final IllegalBlockSizeRuntimeException e) {
// ok
}
@ -134,7 +133,7 @@ public class RoleQueryHelperImplTest extends S2TestCase {
try {
roleSet = roleQueryHelperImpl.buildByHeader(getRequest());
fail();
} catch (final FessSystemException e) {
} catch (final IllegalBlockSizeRuntimeException e) {
// ok
}

View file

@ -23,11 +23,6 @@ import org.seasar.extension.unit.S2TestCase;
public class BoostDocumentRuleTest extends S2TestCase {
@Override
protected String getRootDicon() throws Throwable {
return "jp/sf/fess/crypto/cipher.dicon"; // for ignoring dicon
}
public void test_integer() {
final BoostDocumentRule docRule = new BoostDocumentRule();
docRule.setBoostExpression("10");