hexsha
stringlengths 40
40
| size
int64 8
1.04M
| content
stringlengths 8
1.04M
| avg_line_length
float64 2.24
100
| max_line_length
int64 4
1k
| alphanum_fraction
float64 0.25
0.97
|
---|---|---|---|---|---|
47ca16e397c59253d41db9f1050165790f4af59d | 2,966 | package org.ovirt.engine.core.common.validation;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.Spy;
import org.mockito.runners.MockitoJUnitRunner;
import org.ovirt.engine.core.common.errors.VdcBllMessages;
import javax.validation.ConstraintValidatorContext;
import javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder;
import javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext;
@RunWith(MockitoJUnitRunner.class)
public class MaskConstraintTest {
private final String TEST_MASK = "TEST_MASK";
@Spy
private MaskConstraint underTest;
@Mock
private MaskValidator mockMaskValidator;
@Mock
private ConstraintValidatorContext contextMock;
@Mock
private ConstraintViolationBuilder mockConstraintViolationBuilder;
@Mock
private NodeBuilderDefinedContext mockNodeBuilderDefinedContext;
@Before
public void setup() {
Mockito.doReturn(mockMaskValidator).when(underTest).getMaskValidator();
}
@Test
public void checkMaskFormatValidation() {
runSetup(TEST_MASK, false, false, VdcBllMessages.UPDATE_NETWORK_ADDR_IN_SUBNET_BAD_FORMAT.name());
runVerify(TEST_MASK, VdcBllMessages.UPDATE_NETWORK_ADDR_IN_SUBNET_BAD_FORMAT.name());
}
@Test
public void checkMaskNetworkAddressValidation() {
runSetup(TEST_MASK, true, false, VdcBllMessages.UPDATE_NETWORK_ADDR_IN_SUBNET_BAD_VALUE.name());
runVerify(TEST_MASK, VdcBllMessages.UPDATE_NETWORK_ADDR_IN_SUBNET_BAD_VALUE.name());
}
@Test
public void checkValidMask() {
runSetup(TEST_MASK, true, true, "");
Assert.assertTrue(underTest.isValid(TEST_MASK, contextMock));
Mockito.verifyZeroInteractions(contextMock);
}
private void runSetup(String testMask, boolean isValidFormat, boolean isMaskValidValue, String errorMessage) {
Mockito.when(mockMaskValidator.isValidNetmaskFormat(testMask)).thenReturn(isValidFormat);
Mockito.when(mockMaskValidator.isPrefixValid(testMask)).thenReturn(isMaskValidValue);
Mockito.when(contextMock.buildConstraintViolationWithTemplate(errorMessage))
.thenReturn(mockConstraintViolationBuilder);
Mockito.when(mockConstraintViolationBuilder.addNode(Mockito.anyString()))
.thenReturn(mockNodeBuilderDefinedContext);
}
private void runVerify(String testMask, String errorMessage) {
Assert.assertFalse(underTest.isValid(testMask, contextMock));
Mockito.verify(contextMock).disableDefaultConstraintViolation();
Mockito.verify(contextMock).buildConstraintViolationWithTemplate(errorMessage);
Mockito.verify(mockConstraintViolationBuilder).addNode("mask");
Mockito.verify(mockNodeBuilderDefinedContext).addConstraintViolation();
}
}
| 37.544304 | 114 | 0.772084 |
22f9984e1f4215c1a7d699b625e405a993aae83b | 5,136 | package io.crnk.reactive.internal.adapter;
import io.crnk.core.engine.dispatcher.RepositoryRequestSpec;
import io.crnk.core.engine.http.HttpMethod;
import io.crnk.core.engine.information.repository.RelationshipRepositoryInformation;
import io.crnk.core.engine.information.resource.ResourceField;
import io.crnk.core.engine.internal.repository.RelationshipRepositoryAdapter;
import io.crnk.core.engine.internal.repository.RepositoryRequestSpecImpl;
import io.crnk.core.engine.query.QueryAdapter;
import io.crnk.core.engine.result.Result;
import io.crnk.core.module.ModuleRegistry;
import io.crnk.core.queryspec.QuerySpec;
import io.crnk.core.repository.response.JsonApiResponse;
import io.crnk.reactive.repository.ReactiveManyRelationshipRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import reactor.core.publisher.Mono;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Map;
public class ReactiveManyRelationshipRepositoryAdapter extends ReactiveRepositoryAdapterBase implements RelationshipRepositoryAdapter {
private static final Logger LOGGER = LoggerFactory.getLogger(ReactiveManyRelationshipRepository.class);
private final ReactiveManyRelationshipRepository repository;
private final ResourceField field;
public ReactiveManyRelationshipRepositoryAdapter(ResourceField field, RelationshipRepositoryInformation repositoryInformation, ModuleRegistry moduleRegistry,
ReactiveManyRelationshipRepository repository) {
super(moduleRegistry);
this.repository = repository;
this.field = field;
}
@Override
public Result<JsonApiResponse> setRelation(Object source, Object targetId, ResourceField field, QueryAdapter queryAdapter) {
throw new UnsupportedOperationException();
}
@Override
public Result<JsonApiResponse> setRelations(Object source, Collection targetIds, ResourceField field, QueryAdapter
queryAdapter) {
RepositoryRequestSpec requestSpec =
RepositoryRequestSpecImpl.forRelation(moduleRegistry, HttpMethod.PATCH, source, queryAdapter, targetIds, field);
LOGGER.debug("setRelations for {} on {} with {}", targetIds, field, repository);
Mono result = repository.setRelations(source, targetIds, field);
return toResponse(result, requestSpec);
}
@Override
public Result<JsonApiResponse> addRelations(Object source, Collection targetIds, ResourceField field, QueryAdapter
queryAdapter) {
RepositoryRequestSpec requestSpec =
RepositoryRequestSpecImpl.forRelation(moduleRegistry, HttpMethod.POST, source, queryAdapter, targetIds, field);
LOGGER.debug("addRelations for {} on {} with {}", targetIds, field, repository);
Mono result = repository.addRelations(source, targetIds, field);
return toResponse(result, requestSpec);
}
@Override
public Result<JsonApiResponse> removeRelations(Object source, Collection targetIds, ResourceField field,
QueryAdapter queryAdapter) {
LOGGER.debug("removeRelations for {} on {} with {}", targetIds, field, repository);
RepositoryRequestSpec requestSpec =
RepositoryRequestSpecImpl.forRelation(moduleRegistry, HttpMethod.DELETE, source, queryAdapter, targetIds, field);
Mono result = repository.removeRelations(source, targetIds, field);
return toResponse(result, requestSpec);
}
@Override
public Result<JsonApiResponse> findOneRelations(Object sourceId, ResourceField field, QueryAdapter queryAdapter) {
throw new UnsupportedOperationException();
}
@Override
public Result<JsonApiResponse> findManyRelations(Object sourceId, ResourceField field, QueryAdapter queryAdapter) {
LOGGER.debug("findManyRelations for sourceId={} on {} with {}",sourceId, field, repository);
RepositoryRequestSpec requestSpec =
RepositoryRequestSpecImpl.forFindTarget(moduleRegistry, queryAdapter, Arrays.asList(sourceId), field);
QuerySpec querySpec = queryAdapter.toQuerySpec();
Mono result = repository.findManyTargets(Arrays.asList(sourceId), field, querySpec);
Result<Map<Object, JsonApiResponse>> responses = toResponses(result, true, queryAdapter, field, HttpMethod.GET, requestSpec);
return responses.map(this::toSingleResult);
}
@Override
public Result<Map<Object, JsonApiResponse>> findBulkManyTargets(Collection sourceIds, ResourceField field,
QueryAdapter queryAdapter) {
LOGGER.debug("findManyRelations for sourceIds={} on {} with {}",sourceIds, field, repository);
RepositoryRequestSpec requestSpec = RepositoryRequestSpecImpl.forFindTarget(moduleRegistry, queryAdapter, new ArrayList<>(sourceIds), field);
QuerySpec querySpec = queryAdapter.toQuerySpec();
Mono<Map> result = repository.findManyTargets(sourceIds, field, querySpec);
return toResponses(result, false, queryAdapter, field, HttpMethod.GET, requestSpec);
}
@Override
public Result<Map<Object, JsonApiResponse>> findBulkOneTargets(Collection sourceIds, ResourceField field, QueryAdapter
queryAdapter) {
throw new UnsupportedOperationException();
}
@Override
public Object getImplementation() {
return repository;
}
@Override
public ResourceField getResourceField() {
return field;
}
}
| 42.098361 | 158 | 0.804128 |
b9043f1a4fde3e50f0749aa3385c878a08396dbb | 1,654 | package dynamicProgramming.unboundedKnapsack;
public class CoinChangeProblem {
//choice of including the coin from coin arrays
//so knapsack pattern
//in knapsack we are given 2 properties for of the item ie, wt array and value array, here we are given only one
//array, so ignore the value array of knapsack and consider coin array == wt array of knapsack, W -->Sum
//its unbounded becoz infinite supply of coins are there.
//coin array == wt array of knapsack, sumOfSubset -->SumOfCoin
// try taking any the values of array 2 times, if its allowing u to take it 2 times, then it is unbounded knapsack
//excatly same as CountOfSubset sum+unbounded knapsack
public static int ccp(int[] coinArray, int sum) {
int n = coinArray.length;
int[][] T = new int[n + 1][sum + 1];
//this is possible by empty subset.
for (int i = 0; i < n + 1; i++) {
T[i][0] = 1;
}
for (int j = 1; j < sum + 1; j++) {
T[0][j] = 0;
}
for (int i = 1; i < n + 1; i++) {
for (int j = 1; j < sum + 1; j++) {
if (coinArray[i - 1] <= j) {
//T[i][j] = T[i][j - coinArray[i - 1]] + T[i - 1][j];
//T[i][j] =Math.min(T[i][j - coinArray[i - 1]] , T[i - 1][j]);
} else {
T[i][j] = T[i - 1][j];
}
}
}
return T[n][sum];
}
public static void main(String[] args) {
int[] coinArray = new int[]{1,2,3};
int sum = 5;
System.out.println(CoinChangeProblem.ccp(coinArray, sum));
}
}
| 30.072727 | 118 | 0.521161 |
8ad07ea410528cce694336ac73104215e8cb9f7c | 1,765 | package com.shenjiahuan.eBook.util;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.shenjiahuan.eBook.entity.CartItem;
import com.shenjiahuan.eBook.entity.Order;
import com.shenjiahuan.eBook.entity.OrderItem;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class Format {
public static Order orderFromJsonStr(String str, int uid) {
BigDecimal payTime = new BigDecimal(new Date().getTime() / 1000.0);
JsonParser parser = new JsonParser();
JsonArray orderItemJson = parser.parse(str).getAsJsonObject().getAsJsonArray("orders");
Order order = new Order(uid, payTime);
List<OrderItem> orderItemList = new ArrayList<>();
for (JsonElement elem : orderItemJson) {
JsonObject orderJsonObject = elem.getAsJsonObject();
int bookId = orderJsonObject.get("id").getAsInt();
int count = orderJsonObject.get("count").getAsInt();
OrderItem orderItem = new OrderItem(bookId, count);
orderItem.setOrder(order);
orderItemList.add(orderItem);
}
order.setItems(orderItemList);
return order;
}
public static CartItem cartItemFromJsonStr(String str, int uid) {
BigDecimal addTime = new BigDecimal(new Date().getTime() / 1000.0);
JsonParser parser = new JsonParser();
JsonObject cartItemJson = parser.parse(str).getAsJsonObject().getAsJsonObject("cartItem");
int bookId = cartItemJson.get("id").getAsInt();
int count = cartItemJson.get("count").getAsInt();
return new CartItem(bookId, count, uid, addTime);
}
}
| 39.222222 | 98 | 0.687819 |
17218ec892a01efa62ff92af52d28ee5b3387d72 | 3,205 | package com.howietian.chenyan;
import android.content.ClipboardManager;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Main3Activity extends AppCompatActivity {
private WebView webView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main3);
webView = (WebView) findViewById(R.id.webView);
webView.loadUrl("https://mp.weixin.qq.com/s?__biz=MjM5NDgxNTQwNQ==&mid=2650721478&idx=1&sn=52e42e90377057bb4b70132f183b171f&chksm=be88600489ffe9121def4bcc880999473479ce7eacaf21ccfe3868873c06e0837479f7533ac1&mpshare=1&scene=23&srcid=0204naMtmqVWSN5sezs3xwJT#rd");
}
// public void test() {
// /**
// * 设置剪贴板的内容
// */
// ClipboardManager cbm = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
// cbm.setText("http://howietian.top/2018/03/23/nginx-%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86%E9%85%8D%E7%BD%AE%E4%BA%8C%E7%BA%A7%E5%9F%9F%E5%90%8D/");
//
//
// /**
// * 获取剪贴板的内容
// */
// String content = (String) cbm.getText();
//
// String url1 = "http://www.xx.com";
// String url2 = "w.xx.com";
// String url3 = "http://w.xx.com";
// String url4 = "ssss";
// Pattern pattern = Pattern
// .compile("^([hH][tT]{2}[pP]://|[hH][tT]{2}[pP][sS]://)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~\\/])+$");
// System.out.println(pattern.matcher(url1).matches());
// System.out.println(pattern.matcher(url2).matches());
// System.out.println(pattern.matcher(url3).matches());
// System.out.println(pattern.matcher(url4).matches());
//
// // 获取页面内容
// view.loadUrl("javascript:window.java_obj.showSource("
// + "document.getElementsByTagName('html')[0].innerHTML);");
//
// }
//
//}
//
// private void button1_Click(object sender, EventArgs e) {
// string s1 = this.textBox1.Text;
// //正则表达式内容
// String match1 = "^(http|https|ftp)\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9\-\._\?\,\'/\\\+&%\$#\=~])*$";
// String match2 = "[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9\-\._\?\,\'/\\\+&%\$#\=~])*$";
// String match3 = "[a-zA-z]+://[^\s]*";
//
//
// //初始化正则表达式实例
// Regex reg = new Regex(match);
// //开始验证
// bool HasValidate = reg.IsMatch(s1);
//
// if (HasValidate) {
// //MessageBox.Show("这是网站有效URL格式。");
// try {
// string tmp = GetHtml(s1);
// string tmpend = StripHTML(tmp);
//
// } catch (Exception) {
// //MessageBox.Show("3.该网站只能手动查询!");
// }
// }
//
// String HTMLSource = null;
// String regMatchTag = "<[^>]*>";
// String regMatchEnter = "\\s*|\t|\r|\n";
// Pattern p = Pattern.compile(regMatchEnter);
// Matcher m = p.matcher(HTMLSource);
// HTMLSource = m.replaceAll("");
// }
}
| 36.011236 | 270 | 0.563807 |
5467e198b2d8607513c8facdd9bb34a5c4814ee9 | 398 | package org.develnext.jphp.core.tokenizer.token.stmt;
import org.develnext.jphp.core.tokenizer.TokenType;
import org.develnext.jphp.core.tokenizer.TokenMeta;
public class EndifStmtToken extends EndStmtToken {
public EndifStmtToken(TokenMeta meta, TokenType type) {
super(meta, type);
}
public EndifStmtToken(TokenMeta meta) {
super(meta, TokenType.T_ENDIF);
}
}
| 24.875 | 59 | 0.738693 |
72818d34bb1871fc2eb550cc36b91ffe0b230bef | 427 | package com.siinus.simpleGrafixShader;
import com.siinus.simpleGrafix.gfx.Image;
public class ShaderImage extends Image implements IShaderImage {
private int lightBlock = 0;
public ShaderImage(String path) {
super(path);
}
public void setLightBlock(int lightBlock) {
this.lightBlock = lightBlock;
}
public int getLightBlock() {
return lightBlock;
}
}
| 21.35 | 65 | 0.655738 |
1c7735e0158e3d08c9e53183d102f67c482f7b46 | 787 | package com.learn.aop.dynamicproxy.muiltcglibproxy;
import java.util.List;
/**
* @Author fengjie
* @Description 代理链
* @Date Created in 2018/10/17
* @Time 15:14
*/
public class Chain {
private List<ProxyInterface> list;
private int index = -1;
private Object beProxied;
public Chain(List<ProxyInterface> list, Object beProxied) {
this.list = list;
this.beProxied = beProxied;
}
public Object processd(){
Object result;
if (++index == list.size()) {
result = (beProxied.toString());
System.err.println("Target Method invoke result : " + result);
} else {
ProxyInterface point = list.get(index);
result = point.processed(this);
}
return result;
}
}
| 23.848485 | 74 | 0.598475 |
18ed81b1660137ceb0c7e4b422d320e97bd53b19 | 767 | package org.dd4t.test.models;
import org.dd4t.databind.annotations.ViewModel;
import org.dd4t.databind.annotations.ViewModelProperty;
import org.dd4t.databind.viewmodel.base.TridionViewModelBase;
@ViewModel (rootElementNames = {"paragraph"})
public class EmbeddedParagraph extends TridionViewModelBase {
@ViewModelProperty (entityFieldName = "subtitle")
private String subTitle;
@ViewModelProperty
private String paragraph;
public String getSubTitle() {
return subTitle;
}
public void setSubTitle(String subTitle) {
this.subTitle = subTitle;
}
public String getParagraph() {
return this.paragraph;
}
public void setParagraph(String paragraph) {
this.paragraph = paragraph;
}
}
| 22.558824 | 61 | 0.718383 |
7bf5680a82d8a374a43bc41be0d024b9ac38ed3a | 3,621 | package com.jihan.mini_core.app;
import android.app.Activity;
import android.os.Handler;
import com.jihan.mini_core.delegates.web.event.Event;
import com.jihan.mini_core.delegates.web.event.EventManager;
import com.joanzapata.iconify.IconFontDescriptor;
import com.joanzapata.iconify.Iconify;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import okhttp3.Interceptor;
/**
* Created by Jihan on 2019/8/8
*/
public class Configurator {
private static final HashMap<String, Object> MINI_CONFIGS = new HashMap<>();
private static final ArrayList<IconFontDescriptor> ICONS = new ArrayList<>();
private static final ArrayList<Interceptor> INTERCEPTORS = new ArrayList<>();
private static final Handler HANDLER = new Handler();
private Configurator() {
MINI_CONFIGS.put(ConfigType.CONFIG_READY.name(), false);
MINI_CONFIGS.put(ConfigType.HANDLER.name(),HANDLER);
}
private static class Holder {
private static final Configurator INSTANCE = new Configurator();
}
public static Configurator getInstance() {
return Holder.INSTANCE;
}
public HashMap<String, Object> getMiniConfigs() {
return MINI_CONFIGS;
}
public Configurator withApiHost(String host) {
MINI_CONFIGS.put(ConfigType.API_HOST.name(), host);
return this;
}
public final Configurator withWeChatAppId(String appId) {
MINI_CONFIGS.put(ConfigType.WE_CHAT_APP_ID.name(), appId);
return this;
}
public final Configurator withWeChatAppSecret(String appSecret) {
MINI_CONFIGS.put(ConfigType.WE_CHAT_APP_SECRET.name(), appSecret);
return this;
}
public final Configurator withActivity(Activity activity) {
MINI_CONFIGS.put(ConfigType.ACTIVITY.name(), activity);
return this;
}
public final Configurator withJavaScriptInterface(String name){
MINI_CONFIGS.put(ConfigType.JAVASCRIPT_INTERFACE.name(),name);
return this;
}
public final Configurator withWebEvent(String name, Event event){
EventManager.getInstance().addEvent(name,event);
return this;
}
public final Configurator withWebHost(String url){
MINI_CONFIGS.put(ConfigType.WEB_HOST.name(),url);
return this;
}
private void initIcon() {
if (ICONS.size() > 0) {
Iconify.IconifyInitializer initializer = Iconify.with(ICONS.get(0));
for (int i = 1; i < ICONS.size(); i++) {
initializer.with(ICONS.get(i));
}
}
}
public Configurator withIcon(IconFontDescriptor descriptor) {
ICONS.add(descriptor);
return this;
}
public Configurator withInterceptor(Interceptor interceptor) {
INTERCEPTORS.add(interceptor);
MINI_CONFIGS.put(ConfigType.INTERCEPTOR.name(), INTERCEPTORS);
return this;
}
public Configurator withInterceptor(List<Interceptor> interceptor) {
INTERCEPTORS.addAll(interceptor);
MINI_CONFIGS.put(ConfigType.INTERCEPTOR.name(), INTERCEPTORS);
return this;
}
protected <T> T getMiniConfigs(Enum<ConfigType> key) {
checkFinish();
return (T) MINI_CONFIGS.get(key.name());
}
public void finish() {
initIcon();
MINI_CONFIGS.put(ConfigType.CONFIG_READY.name(), true);
}
private void checkFinish() {
final boolean isReady = (boolean) MINI_CONFIGS.get(ConfigType.CONFIG_READY.name());
if (!isReady) {
throw new RuntimeException("Config is not ready");
}
}
}
| 29.680328 | 91 | 0.673019 |
4e0d9d4a9f68782c104cd0e3578a16121ffc04b2 | 2,039 | package Data.world;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import util.Constants;
import authoring.gameObjects.ItemData;
import authoring.gameObjects.ShopkeeperData;
import authoring.gameObjects.WorldData;
import engine.gridobject.GridObject;
import engine.gridobject.person.ShopKeeper;
import engine.item.Item;
/**
* @author Sanmay Jain
*/
public class ShopkeeperTransformer implements Transformer {
ShopKeeper myShopkeeper;
ShopkeeperData myShopkeeperData;
WorldUtil myWorldUtil;
List<ItemData> myItemDataList;
public ShopkeeperTransformer(GridObject g) {
myShopkeeper = (ShopKeeper) g;
myShopkeeperData = null;
myWorldUtil = new WorldUtil();
myItemDataList = new ArrayList<ItemData>();
}
@Override
public void transform() {
String[] sAnimImages = myShopkeeper.getAnimImages();
Map<String,Integer> attributeValues1 = new HashMap<String,Integer>();
for (String key : myShopkeeper.getStatsMap().keySet()) {
attributeValues1.put(key, myShopkeeper.getStatsMap().get(key).getValue());
}
Set<Item> items = myShopkeeper.getItemSet();
List<String> itemNames = myWorldUtil.getItemNamesList(items);
System.out.println(itemNames);
String spriteName = myWorldUtil.getSpriteName( myShopkeeper.getImageFile());
myShopkeeperData = new ShopkeeperData(myShopkeeper.getX()/Constants.TILE_SIZE,
myShopkeeper.getY()/Constants.TILE_SIZE,
myShopkeeper.getWidth()/Constants.TILE_SIZE,
myShopkeeper.getHeight()/Constants.TILE_SIZE,
spriteName,
itemNames);
for (Item i : items) {
if (i == null) {
continue;
}
ItemTransformer itemTrans = new ItemTransformer(i);
itemTrans.transform();
ItemData itemData = itemTrans.getTransformedData();
if (itemData != null) {
myItemDataList.add(itemData);
}
}
}
public ShopkeeperData getTransformedData() {
return myShopkeeperData;
}
public List<ItemData> getItemDataList() {
return myItemDataList;
}
}
| 25.810127 | 80 | 0.742521 |
0ff27f56f3878cae2bac490f9dc9a0a62e7a4f4e | 818 | package org.pdxfinder.services;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.pdxfinder.BaseTest;
import org.pdxfinder.rdbms.repositories.MappingEntityRepository;
import static org.mockito.Mockito.*;
public class MappingServiceTest extends BaseTest {
@Mock
private MappingEntityRepository mappingEntityRepository;
@InjectMocks
private MappingService mappingService;
@Before
public void setup() {
doNothing().when(this.mappingEntityRepository).deleteAll();
}
@Test
public void given_When_PurgeMappingDatabaseInvoked_Then_MappingsDeleted() {
// When
mappingService.purgeMappingDatabase();
// Then
verify(mappingEntityRepository, atLeast(1)).deleteAll();
}
}
| 21.526316 | 79 | 0.737164 |
cb4daf74decccfdf52e13f15e583929b794cfe33 | 8,217 | package lmr.randomizer.randomization.data;
public enum CustomBlockEnum {
DefaultShopBlock,
CustomXelpudIntro,
HalloweenNoCandyConversationBlock,
HalloweenNoCandyReferenceBlock_DracuetWaitForNightfall,
HalloweenNoCandyReferenceBlock_DracuetBackInTime,
HalloweenNoCandyReferenceBlock_DracuetHugeCasket,
HalloweenNoCandyReferenceBlock_DracuetHTUnlocked,
HalloweenCandyConversationBlock_FormerMekuriMaster,
HalloweenCandyReferenceBlock_FormerMekuriMaster,
HalloweenCandyConversationBlock_MrSlushfund,
HalloweenCandyReferenceBlock_MrSlushfund,
HalloweenCandyConversationBlock_PriestAlest,
HalloweenCandyReferenceBlock_PriestAlest,
HalloweenCandyConversationBlock_PhilosopherFobos,
HalloweenCandyReferenceBlock_PhilosopherFobos,
HalloweenCandyConversationBlock_8bitFairy,
HalloweenCandyReferenceBlock_8bitFairy,
HalloweenCandyConversationBlock_NightSurfaceFairy,
HalloweenCandyReferenceBlock_NightSurfaceFairy,
HalloweenCandyConversationBlock_Hiner,
HalloweenCandyReferenceBlock_Hiner,
HalloweenCandyConversationBlock_Moger,
HalloweenCandyReferenceBlock_Moger,
HalloweenCandyConversationBlock_PriestZarnac,
HalloweenCandyReferenceBlock_PriestZarnac,
HalloweenCandyConversationBlock_PriestXanado,
HalloweenCandyReferenceBlock_PriestXanado,
HalloweenCandyConversationBlock_PhilosopherGiltoriyo,
HalloweenCandyReferenceBlock_PhilosopherGiltoriyo,
HalloweenCandyConversationBlock_PriestHidlyda,
HalloweenCandyReferenceBlock_PriestHidlyda,
HalloweenCandyConversationBlock_PriestRomancis,
HalloweenCandyReferenceBlock_PriestRomancis,
HalloweenCandyConversationBlock_PriestAramo,
HalloweenCandyReferenceBlock_PriestAramo,
HalloweenCandyConversationBlock_PriestTriton,
HalloweenCandyReferenceBlock_PriestTriton,
HalloweenCandyConversationBlock_PriestJaguarfiv,
HalloweenCandyReferenceBlock_PriestJaguarfiv,
HalloweenCandyConversationBlock_StrayFairy,
HalloweenCandyReferenceBlock_StrayFairy,
HalloweenCandyConversationBlock_GiantThexde,
HalloweenCandyReferenceBlock_GiantThexde,
HalloweenCandyConversationBlock_PhilosopherAlsedana,
HalloweenCandyReferenceBlock_PhilosopherAlsedana,
HalloweenCandyConversationBlock_PhilosopherSamaranta,
HalloweenCandyReferenceBlock_PhilosopherSamaranta,
HalloweenCandyConversationBlock_PriestLaydoc,
HalloweenCandyReferenceBlock_PriestLaydoc,
HalloweenCandyConversationBlock_PriestAshgine,
HalloweenCandyReferenceBlock_PriestAshgine,
HalloweenCandyConversationBlock_8BitElder,
HalloweenCandyReferenceBlock_8BitElder,
HalloweenCandyConversationBlock_duplex,
HalloweenCandyReferenceBlock_duplex,
HalloweenCandyConversationBlock_Samieru,
HalloweenCandyReferenceBlock_Samieru,
HalloweenCandyConversationBlock_Naramura,
HalloweenCandyReferenceBlock_Naramura,
HalloweenCandyConversationBlock_PriestMadomono,
HalloweenCandyReferenceBlock_PriestMadomono,
HalloweenCandyConversationBlock_PriestGailious,
HalloweenCandyReferenceBlock_PriestGailious,
HalloweenConversationBlock_NpcCount0,
HalloweenConversationBlock_NpcCount1,
HalloweenConversationBlock_NpcCount2,
HalloweenConversationBlock_NpcCount3,
HalloweenConversationBlock_NpcCount4,
HalloweenConversationBlock_NpcCount5,
HalloweenConversationBlock_NpcCount6,
HalloweenConversationBlock_NpcCount7,
HalloweenConversationBlock_NpcCount8,
HalloweenConversationBlock_NpcCount9,
HalloweenConversationBlock_NpcCount10,
HalloweenConversationBlock_NpcCount11,
HalloweenConversationBlock_NpcCount12,
HalloweenConversationBlock_NpcCount13,
HalloweenConversationBlock_NpcCount14,
HalloweenConversationBlock_NpcCount15,
HalloweenConversationBlock_NpcCount16,
HalloweenConversationBlock_NpcCount17,
HalloweenConversationBlock_NpcCount18,
HalloweenConversationBlock_NpcCount19,
HalloweenConversationBlock_NpcCount20,
HalloweenConversationBlock_NpcCount21,
HalloweenConversationBlock_NpcCount22,
HalloweenConversationBlock_NpcCount23,
HalloweenConversationBlock_NpcCount24,
HalloweenConversationBlock_NpcCount25,
HalloweenConversationBlock_NpcCount26,
HalloweenConversationBlock_NpcCount27,
HalloweenConversationBlock_NpcCount28,
HalloweenConversationBlock_AllNpcs,
HalloweenConversationBlock_Mulbruk_HT,
HalloweenConversationBlock_Flag_NpcHint1,
HalloweenConversationBlock_Flag_NpcHint2,
HalloweenConversationBlock_Flag_NpcHint3,
HalloweenConversationBlock_Flag_NpcHint4,
HalloweenConversationBlock_Flag_NpcHint5,
HalloweenConversationBlock_Flag_NpcHint6,
HalloweenConversationBlock_Flag_NpcHint7,
HalloweenConversationBlock_Flag_NpcHint8,
HalloweenConversationBlock_Flag_NpcHint9,
HalloweenConversationBlock_Flag_NpcHint10,
HalloweenConversationBlock_Flag_NpcHint11,
HalloweenConversationBlock_Flag_NpcHint12,
HalloweenConversationBlock_Flag_NpcHint13,
HalloweenConversationBlock_Flag_NpcHint14,
HalloweenConversationBlock_Flag_NpcHint15,
HalloweenConversationBlock_Flag_NpcHint16,
HalloweenConversationBlock_Flag_NpcHint17,
HalloweenConversationBlock_Flag_DevRoomHint,
HalloweenConversationBlock_Random_NpcHint1,
HalloweenConversationBlock_Random_NpcHint2,
HalloweenConversationBlock_Random_NpcHint3,
HalloweenConversationBlock_Random_NpcHint4,
HalloweenConversationBlock_Random_NpcHint5,
HalloweenConversationBlock_Random_NpcHint6,
HalloweenConversationBlock_Random_NpcHint7,
HalloweenConversationBlock_Random_NpcHint8,
HalloweenConversationBlock_Random_NpcHint9,
HalloweenConversationBlock_Random_NpcHint10,
HalloweenConversationBlock_Random_NpcHint11,
HalloweenConversationBlock_Random_NpcHint12,
HalloweenConversationBlock_Random_NpcHint13,
HalloweenConversationBlock_Random_NpcHint14,
HalloweenConversationBlock_Random_NpcHint15,
HalloweenConversationBlock_Random_NpcHint16,
HalloweenConversationBlock_Random_NpcHint17,
HalloweenConversationBlock_Random_DevRoomHint,
HalloweenSecretShopBlock,
HalloweenDanceBlock,
HalloweenHTSkip,
HalloweenHTGrailWarning,
Fools2020ConversationBlock_MulbrukEarlyExit,
Fools2020ConversationBlock_MulbrukEarlyExitPrompt,
Fools2020ReferenceBlock_MulbrukBookOfTheDead,
Fools2020ReferenceBlock_MulbrukEarlyExitPrompt,
TransformedShopBlock_Default,
TransformedShopBlock_Sidro,
TransformedShopBlock_Modro,
TransformedShopBlock_Penadventofghost,
TransformedShopBlock_GreedyCharlie,
TransformedShopBlock_ShalomIII,
TransformedShopBlock_UsasVI,
TransformedShopBlock_KingvalleyI,
TransformedShopBlock_MrFishmanOriginal,
TransformedShopBlock_MrFishmanAlt,
TransformedShopBlock_OperatorCombaker,
TransformedShopBlock_YiegahKungfu,
TransformedShopBlock_ArrogantMetagear,
TransformedShopBlock_ArrogantSturdySnake,
TransformedShopBlock_YiearKungfu,
TransformedShopBlock_AffectedKnimare,
TransformedShopBlock_MoverAthleland,
TransformedShopBlock_GiantMopiran,
TransformedShopBlock_KingvalleyII,
TransformedShopBlock_EnergeticBelmont,
TransformedShopBlock_MechanicalEfspi,
TransformedShopBlock_MudManQubert,
TransformedShopBlock_HotbloodedNemesistwo,
TransformedShopBlock_TailorDracuet,
XelpudConversationBlock_MapCount0,
XelpudConversationBlock_MapCount1,
XelpudConversationBlock_MapCount2,
XelpudConversationBlock_MapCount3,
XelpudConversationBlock_MapCount4,
XelpudConversationBlock_MapCount5,
XelpudConversationBlock_MapCount6,
XelpudConversationBlock_MapCount7,
XelpudConversationBlock_MapCount8,
XelpudConversationBlock_MapCount9,
XelpudConversationBlock_MapCount10,
XelpudConversationBlock_MapCount11,
XelpudConversationBlock_MapCount12,
XelpudConversationBlock_MapCount13,
XelpudConversationBlock_MapCount14,
XelpudConversationBlock_MapCount15,
XelpudConversationBlock_MapCount16,
XelpudConversationBlock_MapCount17,
Halloween2021ConversationBlock_ExtraCandy1,
Halloween2021ConversationBlock_ExtraCandy2;
}
| 43.941176 | 59 | 0.865401 |
23b95318d46ee6fd0287ae444e5ebc9d6c26f9a9 | 527 | package leetcode.Medium;
import org.junit.Test;
import static org.junit.Assert.*;
public class IsSubsequenceSp1Test {
@Test
public void isSubsequence() throws Exception {
assertTrue(new IsSubsequence().isSubsequence("ace", "abcde"));
assertFalse(new IsSubsequence().isSubsequence("axe", "abcde"));
assertTrue(new IsSubsequence().isSubsequence("abc", "ahbgdc"));
assertTrue(new IsSubsequence().isSubsequence("leetcode", "yyyyyyyyyyylyyeyyeyyytycyyoydyyyyyyyyyyeyyyyyyyyyy"));
}
} | 31 | 120 | 0.717268 |
6abbd24b6757814cf2b634dd69a65b9a57cef8be | 1,800 | package me.joesvart.commandnode.bukkit;
import me.joesvart.commandnode.bukkit.annotation.Command;
import me.joesvart.commandnode.bukkit.data.impl.BaseCommandData;
import lombok.Getter;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.*;
import java.util.stream.Collectors;
public abstract class CommandHandler {
@Getter
private static CommandHandler commandHandler;
private final List<BaseCommandData> commands = new ArrayList<>();
public CommandHandler() {
commandHandler = this;
}
/**
* Register a command to the me.joesvart.commandnode.discord.handler
*
* @param object the object to get the command data from
*/
public void registerCommand(Object object) {
final List<Method> commands = this.getMethods(Command.class, object);
for (Method command : commands) {
this.register(new BaseCommandData(object, command));
}
}
/**
* Register the command to the {@link CommandHandler#commands} list.
*
* @param data the command to register
*/
public void register(BaseCommandData data) {
this.commands.add(data);
}
/**
* Get all methods annotated with a {@link Annotation} in an object
*
* @param annotation the annotation which the method must be annotated with
* @param object the object with the methods
* @param <T> the type of the annontation
* @return the list of methods
*/
private <T extends Annotation> List<Method> getMethods(Class<T> annotation, Object object) {
return Arrays.stream(object.getClass().getMethods())
.filter(method -> method.getAnnotation(annotation) != null)
.collect(Collectors.toList());
}
} | 31.034483 | 96 | 0.671111 |
d0311fa0424380945d40f87f35a5e1d4f674f9b5 | 2,011 | package at.newmedialab.lmf.util.geonames.builder;
import static org.junit.Assert.assertEquals;
import static org.junit.Assume.assumeNotNull;
import org.apache.http.impl.client.DefaultHttpClient;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import at.newmedialab.lmf.util.geonames.builder.GeoLookupBuilder;
import at.newmedialab.lmf.util.geonames.builder.GeoLookupImpl;
public class GeoLookupImplTest {
private GeoLookupImpl lookup;
private DefaultHttpClient http;
@Before
public void setUp() throws Exception {
http = new DefaultHttpClient();
lookup = new GeoLookupImpl(http, GeoLookupBuilder.GEONAMES_LEGACY, null, null, 0, 0);
}
@After
public void tearDown() throws Exception {
if (http != null)
http.getConnectionManager().shutdown();
}
@Test
public void testResolveBerlin() {
final String uri = lookup.resolvePlace("Berlin");
assumeNotNull(uri);
assertEquals("http://sws.geonames.org/2950159/", uri);
}
@Test
public void testResolveParisWithCountryBias() {
lookup.setCountryBias("us");
final String uri = lookup.resolvePlace("Paris");
assumeNotNull(uri);
assertEquals("http://sws.geonames.org/4717560/", uri);
}
@Test
public void testResolveParisWithCountry() {
lookup.setCountry("us");
final String uri = lookup.resolvePlace("Paris");
assumeNotNull(uri);
assertEquals("http://sws.geonames.org/4717560/", uri);
}
@Test
public void testContinent() {
lookup.setContinentCode("NA");
final String uri = lookup.resolvePlace("Sydney");
assumeNotNull(uri);
assertEquals("http://sws.geonames.org/6354908/", uri);
}
@Test
public void testResolveParisWithoutCountryBias() {
final String uri = lookup.resolvePlace("Paris");
assumeNotNull(uri);
assertEquals("http://sws.geonames.org/2988507/", uri);
}
}
| 29.144928 | 93 | 0.668821 |
9ae04ad18c5454ccd699eb4406b5aabb29d5b300 | 184 | package com.pochub.ms.dto.policy.groups;
import java.util.List;
import lombok.Data;
@Data
public class UserDepartments {
public boolean exclude;
public List<Object> departments;
} | 16.727273 | 40 | 0.782609 |
f63e4351c8cf2e23d08bb06066e9fee178bcf9be | 4,069 | /*
* Copyright (c) 2018 - 2020, Thales DIS CPL Canada, Inc
*
* Licensed 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*
*/
package com.thales.chaos.swagger;
import com.thales.chaos.admin.AdminController;
import com.thales.chaos.experiment.ExperimentController;
import com.thales.chaos.logging.LoggingController;
import com.thales.chaos.platform.PlatformController;
import com.thales.chaos.refresh.RefreshController;
import com.thales.chaos.security.impl.ChaosLoginEndpoints;
import io.swagger.v3.oas.annotations.ExternalDocumentation;
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.enums.SecuritySchemeIn;
import io.swagger.v3.oas.annotations.enums.SecuritySchemeType;
import io.swagger.v3.oas.annotations.info.Contact;
import io.swagger.v3.oas.annotations.info.Info;
import io.swagger.v3.oas.annotations.info.License;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.security.SecurityScheme;
import io.swagger.v3.oas.annotations.servers.Server;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.context.annotation.Configuration;
import static com.thales.chaos.swagger.OpenApiConfig.*;
@Configuration
@SecurityScheme(name = JSESSIONID, type = SecuritySchemeType.APIKEY, in = SecuritySchemeIn.COOKIE)
@OpenAPIDefinition(info = @Info(title = OPENAPI_TITLE,
description = OPENAPI_DESCRIPTION,
license = @License(name = OPENAPI_LICENSE_NAME, url = OPENAPI_LICENSE_VERSION),
version = API_VERSION,
contact = @Contact(name = CONTACT_NAME, url = CONTACT_URL)),
security = @SecurityRequirement(name = JSESSIONID),
tags = {
@Tag(name = AdminController.ADMIN, description = "Controls the administrative state of the Chaos Engine"),
@Tag(name = ExperimentController.EXPERIMENT, description = "Create or retrieve information about Chaos Experiments"),
@Tag(name = LoggingController.LOGGING, description = "Control the real time logging level of Chaos Engine classes"),
@Tag(name = PlatformController.PLATFORM, description = "Retrieve information about platforms include for Chaos Experiments"),
@Tag(name = RefreshController.REFRESH, description = "Refresh Spring Beans based on new information in Vault"),
@Tag(name = ChaosLoginEndpoints.SECURITY, description = "Provide endpoints for controlling User Session for security")
},
servers = @Server(),
externalDocs = @ExternalDocumentation(description = "Packaged Help Documentation", url = "/help/"))
public class OpenApiConfig {
static final String OPENAPI_TITLE = "Chaos Engine API";
static final String OPENAPI_DESCRIPTION = "Controls experiment execution framework and configuration";
static final String OPENAPI_LICENSE_NAME = "Apache License, Version 2.0";
static final String OPENAPI_LICENSE_VERSION = "https://www.apache.org/licenses/LICENSE-2.0.txt";
static final String API_VERSION = "1.2";
static final String CONTACT_NAME = "Thales Digital Identity and Security Cloud Platform Licensing Chaos Engineering Team";
static final String CONTACT_URL = "https://github.com/thalesgroup/chaos-engine";
static final String JSESSIONID = "JSESSIONID";
}
| 58.971014 | 152 | 0.71074 |
d699e464aed3388bffba66d5cd3519351dff5154 | 1,087 | package practice.search;
import java.util.ArrayList;
import java.util.List;
/**
* Created by sharanya.p on 10/29/2018.
*/
public class SNT {
SN root;
public static void main(String[] args) {
}
}
class SN {
SN children[] = new SN[256];
List<Integer> indexes;
public SN() {
for (int i = 0; i < 256; i++)
children[i] = null;
indexes = new ArrayList<>();
}
public void insert(String str, int index) {
indexes.add(index);
if (index < str.length()) {
// Find the first character
char cIndex = str.charAt(0);
if (children[cIndex] == null) {
children[cIndex] = new SN();
}
children[index].insert(str.substring(1), index + 1);
}
}
public List<Integer> search(String str) {
if (str.length() == 0)
return indexes;
char cIndex = str.charAt(0);
if (children[cIndex] != null)
return children[cIndex].search(str.substring(1));
else
return null;
}
}
| 20.903846 | 64 | 0.522539 |
416b3cd45a80d6526e4f05417686e1ed265a23f5 | 12,800 | package top.niunaijun.blackbox.fake.service;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.ProviderInfo;
import android.content.pm.ResolveInfo;
import android.content.pm.ServiceInfo;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import black.android.app.BRActivityThread;
import black.android.app.BRContextImpl;
import top.niunaijun.blackbox.BlackBoxCore;
import top.niunaijun.blackbox.app.BActivityThread;
import top.niunaijun.blackbox.core.env.AppSystemEnv;
import top.niunaijun.blackbox.fake.hook.BinderInvocationStub;
import top.niunaijun.blackbox.fake.hook.MethodHook;
import top.niunaijun.blackbox.fake.hook.ProxyMethod;
import top.niunaijun.blackbox.utils.MethodParameterUtils;
import top.niunaijun.blackbox.utils.Reflector;
import top.niunaijun.blackbox.utils.Slog;
import top.niunaijun.blackbox.utils.compat.ParceledListSliceCompat;
/**
* Created by Milk on 3/30/21.
* * ∧_∧
* (`・ω・∥
* 丶 つ0
* しーJ
* 此处无Bug
*/
public class IPackageManagerProxy extends BinderInvocationStub {
public static final String TAG = "PackageManagerStub";
public IPackageManagerProxy() {
super(BRActivityThread.get().sPackageManager().asBinder());
}
@Override
protected Object getWho() {
return BRActivityThread.get().sPackageManager();
}
@Override
protected void inject(Object baseInvocation, Object proxyInvocation) {
BRActivityThread.get()._set_sPackageManager(proxyInvocation);
replaceSystemService("package");
Object systemContext = BRActivityThread.get(BlackBoxCore.mainThread()).getSystemContext();
PackageManager packageManager = BRContextImpl.get(systemContext).mPackageManager();
if (packageManager != null) {
try {
Reflector.on("android.app.ApplicationPackageManager")
.field("mPM")
.set(packageManager, proxyInvocation);
} catch (Exception e) {
e.printStackTrace();
}
}
}
@Override
public boolean isBadEnv() {
return false;
}
@ProxyMethod("resolveIntent")
public static class ResolveIntent extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
Intent intent = (Intent) args[0];
String resolvedType = (String) args[1];
int flags = (int) args[2];
ResolveInfo resolveInfo = BlackBoxCore.getBPackageManager().resolveIntent(intent, resolvedType, flags, BActivityThread.getUserId());
if (resolveInfo != null) {
return resolveInfo;
}
return method.invoke(who, args);
}
}
@ProxyMethod("resolveService")
public static class ResolveService extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
Intent intent = (Intent) args[0];
String resolvedType = (String) args[1];
int flags = (int) args[2];
ResolveInfo resolveInfo = BlackBoxCore.getBPackageManager().resolveService(intent, flags, resolvedType, BActivityThread.getUserId());
if (resolveInfo != null) {
return resolveInfo;
}
return method.invoke(who, args);
}
}
@ProxyMethod("setComponentEnabledSetting")
public static class SetComponentEnabledSetting extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
return 0;
}
}
@ProxyMethod("getPackageInfo")
public static class GetPackageInfo extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
String packageName = (String) args[0];
int flag = (int) args[1];
// if (ClientSystemEnv.isFakePackage(packageName)) {
// packageName = BlackBoxCore.getHostPkg();
// }
PackageInfo packageInfo = BlackBoxCore.getBPackageManager().getPackageInfo(packageName, flag, BActivityThread.getUserId());
if (packageInfo != null) {
return packageInfo;
}
if (AppSystemEnv.isOpenPackage(packageName)) {
return method.invoke(who, args);
}
return null;
}
}
@ProxyMethod("getPackageUid")
public static class GetPackageUid extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
MethodParameterUtils.replaceFirstAppPkg(args);
return method.invoke(who, args);
}
}
@ProxyMethod("getProviderInfo")
public static class GetProviderInfo extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
ComponentName componentName = (ComponentName) args[0];
int flags = (int) args[1];
ProviderInfo providerInfo = BlackBoxCore.getBPackageManager().getProviderInfo(componentName, flags, BActivityThread.getUserId());
if (providerInfo != null)
return providerInfo;
if (AppSystemEnv.isOpenPackage(componentName)) {
return method.invoke(who, args);
}
return null;
}
}
@ProxyMethod("getReceiverInfo")
public static class GetReceiverInfo extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
ComponentName componentName = (ComponentName) args[0];
int flags = (int) args[1];
ActivityInfo receiverInfo = BlackBoxCore.getBPackageManager().getReceiverInfo(componentName, flags, BActivityThread.getUserId());
if (receiverInfo != null)
return receiverInfo;
if (AppSystemEnv.isOpenPackage(componentName)) {
return method.invoke(who, args);
}
return null;
}
}
@ProxyMethod("getActivityInfo")
public static class GetActivityInfo extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
ComponentName componentName = (ComponentName) args[0];
int flags = (int) args[1];
ActivityInfo activityInfo = BlackBoxCore.getBPackageManager().getActivityInfo(componentName, flags, BActivityThread.getUserId());
if (activityInfo != null)
return activityInfo;
if (AppSystemEnv.isOpenPackage(componentName)) {
return method.invoke(who, args);
}
return null;
}
}
@ProxyMethod("getServiceInfo")
public static class GetServiceInfo extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
ComponentName componentName = (ComponentName) args[0];
int flags = (int) args[1];
ServiceInfo serviceInfo = BlackBoxCore.getBPackageManager().getServiceInfo(componentName, flags, BActivityThread.getUserId());
if (serviceInfo != null)
return serviceInfo;
if (AppSystemEnv.isOpenPackage(componentName)) {
return method.invoke(who, args);
}
return null;
}
}
@ProxyMethod("getInstalledApplications")
public static class GetInstalledApplications extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
int flags = (int) args[0];
List<ApplicationInfo> installedApplications = BlackBoxCore.getBPackageManager().getInstalledApplications(flags, BActivityThread.getUserId());
return ParceledListSliceCompat.create(installedApplications);
}
}
@ProxyMethod("getInstalledPackages")
public static class GetInstalledPackages extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
int flags = (int) args[0];
List<PackageInfo> installedPackages = BlackBoxCore.getBPackageManager().getInstalledPackages(flags, BActivityThread.getUserId());
return ParceledListSliceCompat.create(installedPackages);
}
}
@ProxyMethod("getApplicationInfo")
public static class GetApplicationInfo extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
String packageName = (String) args[0];
int flags = (int) args[1];
// if (ClientSystemEnv.isFakePackage(packageName)) {
// packageName = BlackBoxCore.getHostPkg();
// }
ApplicationInfo applicationInfo = BlackBoxCore.getBPackageManager().getApplicationInfo(packageName, flags, BActivityThread.getUserId());
if (applicationInfo != null) {
return applicationInfo;
}
if (AppSystemEnv.isOpenPackage(packageName)) {
return method.invoke(who, args);
}
return null;
}
}
@ProxyMethod("queryContentProviders")
public static class QueryContentProviders extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
int flags = (int) args[2];
List<ProviderInfo> providers = BlackBoxCore.getBPackageManager().
queryContentProviders(BActivityThread.getAppProcessName(), BActivityThread.getBUid(), flags, BActivityThread.getUserId());
return ParceledListSliceCompat.create(providers);
}
}
@ProxyMethod("resolveContentProvider")
public static class ResolveContentProvider extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
String authority = (String) args[0];
int flags = (int) args[1];
ProviderInfo providerInfo = BlackBoxCore.getBPackageManager().resolveContentProvider(authority, flags, BActivityThread.getUserId());
if (providerInfo == null) {
return method.invoke(who, args);
}
return providerInfo;
}
}
@ProxyMethod("canRequestPackageInstalls")
public static class CanRequestPackageInstalls extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
MethodParameterUtils.replaceFirstAppPkg(args);
return method.invoke(who, args);
}
}
@ProxyMethod("getPackagesForUid")
public static class GetPackagesForUid extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
int uid = (Integer) args[0];
if (uid == BlackBoxCore.getHostUid()) {
args[0] = BActivityThread.getBUid();
uid = (int) args[0];
}
String[] packagesForUid = BlackBoxCore.getBPackageManager().getPackagesForUid(uid);
Slog.d(TAG, args[0] + " , " + BActivityThread.getAppProcessName() + " GetPackagesForUid: " + Arrays.toString(packagesForUid));
return packagesForUid;
}
}
@ProxyMethod("getInstallerPackageName")
public static class GetInstallerPackageName extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
// fake google play
return "com.android.vending";
}
}
@ProxyMethod("getSharedLibraries")
public static class GetSharedLibraries extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
// todo
return ParceledListSliceCompat.create(new ArrayList<>());
}
}
@ProxyMethod("getComponentEnabledSetting")
public static class getComponentEnabledSetting extends MethodHook {
@Override
protected Object hook(Object who, Method method, Object[] args) throws Throwable {
return PackageManager.COMPONENT_ENABLED_STATE_DEFAULT;
}
}
}
| 39.751553 | 153 | 0.647578 |
a191e15ed5ed910e6a9b7e874ffc412a23bcc2c8 | 4,353 | package de.tudarmstadt.awesome.erclaerung.precomputation;
/**
* Represents a step in a transformation
*
* @author Manuel
*
*/
public class LevenshteinStep implements Comparable<LevenshteinStep> {
private int index;
// private int indexOfString2;
private Operation op;
private char letter;
private char letter2;
public LevenshteinStep(int position, Operation operation, char letter) {
this.index = position;
this.op = operation;
this.letter = letter;
}
public LevenshteinStep(int position, Operation operation, char letter, char letter2) {
this(position, operation, letter);
this.letter2 = letter2;
}
public static enum Operation {
INSERT, DELETE, SUBSTITUTION, NONOP
}
/**
* Returns the operation in string form
*
* @param op
* The operation
* @return Insert, Delete, Substitution or Non-Op
*/
private String operationToString(Operation op) {
switch (op) {
case INSERT:
return "Insert";
case DELETE:
return "Delete";
case SUBSTITUTION:
return "Substitution";
case NONOP:
return "Non-Op";
default:
return "Case not set.";
}
}
/**
* Returns the adjusted string after the operation was done on the source string
*
* @param source
* The string in its current step
* @param modifier
* Number of already done inserts minus the number of already done deletes
* @return The adjusted string after the operation was completed.
*/
public String getAdjustedString(String source, int modifier) {
switch (op) {
case INSERT:
if (this.index == 0)
return this.letter + source;
else
return source.substring(0, this.index + modifier) + this.letter
+ source.substring(this.index + modifier);
case DELETE:
if (this.index == 0)
return source.substring(1);
else
return source.substring(0, this.index + modifier) + source.substring(index + 1 + modifier);
case SUBSTITUTION:
if (this.index + modifier == 0)
return this.letter + source.substring(1);
else
return source.substring(0, this.index + modifier) + this.letter
+ source.substring(this.index + 1 + modifier);
case NONOP:
return source;
default:
return "Case not set.";
}
}
@Override
public String toString() {
if (op == Operation.SUBSTITUTION)
return operationToString(op) + ": " + letter + " at " + index + " substituting " + this.letter2;
return operationToString(op) + ": " + letter + " at " + index;
}
public int compareTo(LevenshteinStep o) {
int comIndex = Integer.compare(this.index, o.index);
if (comIndex == 0) {
int comOp = this.getOp().compareTo(o.getOp());
if (comOp == 0) {
int comChar1 = Character.compare(this.getLetter(), o.getLetter());
if (comChar1 == 0)
return Character.compare(this.letter2, o.letter2);
}
return comOp;
}
return comIndex;
}
/**
* Returns the operation.
*
* @return The operation
*/
public Operation getOp() {
return op;
}
/**
* Always returns the position of the operation in relation to the original word.
*
* @return
*/
public int getIndex() {
return index;
}
/**
* For an insert operation the inserted letter, for a substitution the inserted letter, for a deletion the delteted
* letter and for a non-op the letter at that position.
*
* @return The letter of the operation
*/
public char getLetter() {
return letter;
}
/**
* Returns the second letter of a substitution else the default char.
*
* @return The second letter of a substitution else the default char.
*/
public char getLetter2() {
return letter2;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + index;
result = prime * result + letter;
result = prime * result + letter2;
result = prime * result + ((op == null) ? 0 : op.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
LevenshteinStep other = (LevenshteinStep) obj;
if (index != other.index)
return false;
if (letter != other.letter)
return false;
if (letter2 != other.letter2)
return false;
if (op != other.op)
return false;
return true;
}
}
| 24.183333 | 116 | 0.654261 |
e9c17f8e7946e7ba23cd73f144d7a235aadbf4f4 | 18,894 | /*
* Copyright 2014 Red Hat, Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* The Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php
*
* You may elect to redistribute this code under either of these licenses.
*/
/**
* = Vert.x MongoDB Client
*
* A Vert.x client allowing applications to interact with a MongoDB instance, whether that's
* saving, retrieving, searching, or deleting documents. Mongo is a great match for persisting data in a Vert.x application
* as it natively handles JSON (BSON) documents.
*
* *Features*
*
* * Completely non-blocking
* * Custom codec to support fast serialization to/from Vert.x JSON
* * Supports a majority of the configuration options from the MongoDB Java Driver
*
* This client is based on the
* http://mongodb.github.io/mongo-java-driver/3.2/driver-async/getting-started[MongoDB Async Driver].
*
* == Using Vert.x MongoDB Client
*
* To use this project, add the following dependency to the _dependencies_ section of your build descriptor:
*
* * Maven (in your `pom.xml`):
*
* [source,xml,subs="+attributes"]
* ----
* <dependency>
* <groupId>${maven.groupId}</groupId>
* <artifactId>${maven.artifactId}</artifactId>
* <version>${maven.version}</version>
* </dependency>
* ----
*
* * Gradle (in your `build.gradle` file):
*
* [source,groovy,subs="+attributes"]
* ----
* compile '${maven.groupId}:${maven.artifactId}:${maven.version}'
* ----
*
*
* == Creating a client
*
* You can create a client in several ways:
*
* === Using the default shared pool
*
* In most cases you will want to share a pool between different client instances.
*
* E.g. you scale your application by deploying multiple instances of your verticle and you want each verticle instance
* to share the same pool so you don't end up with multiple pools
*
* The simplest way to do this is as follows:
*
* [source,$lang]
* ----
* {@link examples.Examples#exampleCreateDefault}
* ----
*
* The first call to {@link io.vertx.ext.mongo.MongoClient#createShared(io.vertx.core.Vertx, io.vertx.core.json.JsonObject)}
* will actually create the pool, and the specified config will be used.
*
* Subsequent calls will return a new client instance that uses the same pool, so the configuration won't be used.
*
* === Specifying a pool source name
*
* You can create a client specifying a pool source name as follows
*
* [source,$lang]
* ----
* {@link examples.Examples#exampleCreatePoolName}
* ----
*
* If different clients are created using the same Vert.x instance and specifying the same pool name, they will
* share the same pool.
*
* The first call to {@link io.vertx.ext.mongo.MongoClient#createShared(io.vertx.core.Vertx, io.vertx.core.json.JsonObject)}
* will actually create the pool, and the specified config will be used.
*
* Subsequent calls will return a new client instance that uses the same pool, so the configuration won't be used.
*
* Use this way of creating if you wish different groups of clients to have different pools, e.g. they're
* interacting with different databases.
*
* === Creating a client with a non shared data pool
*
* In most cases you will want to share a pool between different client instances.
* However, it's possible you want to create a client instance that doesn't share its pool with any other client.
*
* In that case you can use {@link io.vertx.ext.mongo.MongoClient#createNonShared(io.vertx.core.Vertx, io.vertx.core.json.JsonObject)}.
*
* [source,$lang]
* ----
* {@link examples.Examples#exampleCreateNonShared}
* ----
*
* This is equivalent to calling {@link io.vertx.ext.mongo.MongoClient#createShared(io.vertx.core.Vertx, io.vertx.core.json.JsonObject, String)}
* with a unique pool name each time.
*
*
* == Using the API
*
* The client API is represented by {@link io.vertx.ext.mongo.MongoClient}.
*
* === Saving documents
*
* To save a document you use {@link io.vertx.ext.mongo.MongoClient#save}.
*
* If the document has no `\_id` field, it is inserted, otherwise, it is _upserted_. Upserted means it is inserted
* if it doesn't already exist, otherwise it is updated.
*
* If the document is inserted and has no id, then the id field generated will be returned to the result handler.
*
* Here's an example of saving a document and getting the id back
*
* [source,$lang]
* ----
* {@link examples.Examples#example1}
* ----
*
* And here's an example of saving a document which already has an id.
*
* [source,$lang]
* ----
* {@link examples.Examples#example2}
* ----
*
* === Inserting documents
*
* To insert a document you use {@link io.vertx.ext.mongo.MongoClient#insert}.
*
* If the document is inserted and has no id, then the id field generated will be returned to the result handler.
*
* [source,$lang]
* ----
* {@link examples.Examples#example3}
* ----
*
* If a document is inserted with an id, and a document with that id already eists, the insert will fail:
*
* [source,$lang]
* ----
* {@link examples.Examples#example4}
* ----
*
* === Updating documents
*
* To update a documents you use {@link io.vertx.ext.mongo.MongoClient#update}.
*
* This updates one or multiple documents in a collection. The json object that is passed in the `update`
* parameter must contain http://docs.mongodb.org/manual/reference/operator/update-field/[Update Operators] and determines
* how the object is updated.
*
* The json object specified in the query parameter determines which documents in the collection will be updated.
*
* Here's an example of updating a document in the books collection:
*
* [source,$lang]
* ----
* {@link examples.Examples#example5}
* ----
*
* To specify if the update should upsert or update multiple documents, use {@link io.vertx.ext.mongo.MongoClient#updateWithOptions}
* and pass in an instance of {@link io.vertx.ext.mongo.UpdateOptions}.
*
* This has the following fields:
*
* `multi`:: set to true to update multiple documents
* `upsert`:: set to true to insert the document if the query doesn't match
* `writeConcern`:: the write concern for this operation
*
* [source,$lang]
* ----
* {@link examples.Examples#example6}
* ----
*
* === Replacing documents
*
* To replace documents you use {@link io.vertx.ext.mongo.MongoClient#replace}.
*
* This is similar to the update operation, however it does not take any update operators like `update`.
* Instead it replaces the entire document with the one provided.
*
* Here's an example of replacing a document in the books collection
*
* [source,$lang]
* ----
* {@link examples.Examples#example7}
* ----
*
* === Finding documents
*
* To find documents you use {@link io.vertx.ext.mongo.MongoClient#find}.
*
* The `query` parameter is used to match the documents in the collection.
*
* Here's a simple example with an empty query that will match all books:
*
* [source,$lang]
* ----
* {@link examples.Examples#example8}
* ----
*
* Here's another example that will match all books by Tolkien:
*
* [source,$lang]
* ----
* {@link examples.Examples#example9}
* ----
*
* The matching documents are returned as a list of json objects in the result handler.
*
* To specify things like what fields to return, how many results to return, etc use {@link io.vertx.ext.mongo.MongoClient#findWithOptions}
* and pass in the an instance of {@link io.vertx.ext.mongo.FindOptions}.
*
* This has the following fields:
*
* `fields`:: The fields to return in the results. Defaults to `null`, meaning all fields will be returned
* `sort`:: The fields to sort by. Defaults to `null`.
* `limit`:: The limit of the number of results to return. Default to `-1`, meaning all results will be returned.
* `skip`:: The number of documents to skip before returning the results. Defaults to `0`.
*
* ----
* {@link examples.Examples#example9_1}
* ----
*
* The matching documents are returned unitary in the result handler.
*
* === Finding a single document
*
* To find a single document you use {@link io.vertx.ext.mongo.MongoClient#findOne}.
*
* This works just like {@link io.vertx.ext.mongo.MongoClient#find} but it returns just the first matching document.
*
* === Removing documents
*
* To remove documents use {@link io.vertx.ext.mongo.MongoClient#removeDocuments}.
*
* The `query` parameter is used to match the documents in the collection to determine which ones to remove.
*
* Here's an example of removing all Tolkien books:
*
* [source,$lang]
* ----
* {@link examples.Examples#example10}
* ----
*
* === Removing a single document
*
* To remove a single document you use {@link io.vertx.ext.mongo.MongoClient#removeDocument}.
*
* This works just like {@link io.vertx.ext.mongo.MongoClient#removeDocuments} but it removes just the first matching document.
*
* === Counting documents
*
* To count documents use {@link io.vertx.ext.mongo.MongoClient#count}.
*
* Here's an example that counts the number of Tolkien books. The number is passed to the result handler.
*
* [source,$lang]
* ----
* {@link examples.Examples#example11}
* ----
*
* === Managing MongoDB collections
*
* All MongoDB documents are stored in collections.
*
* To get a list of all collections you can use {@link io.vertx.ext.mongo.MongoClient#getCollections}
*
* [source,$lang]
* ----
* {@link examples.Examples#example11_1}
* ----
*
* To create a new collection you can use {@link io.vertx.ext.mongo.MongoClient#createCollection}
*
* [source,$lang]
* ----
* {@link examples.Examples#example11_2}
* ----
*
* To drop a collection you can use {@link io.vertx.ext.mongo.MongoClient#dropCollection}
*
* NOTE: Dropping a collection will delete all documents within it!
*
* [source,$lang]
* ----
* {@link examples.Examples#example11_3}
* ----
*
*
* === Running other MongoDB commands
*
* You can run arbitrary MongoDB commands with {@link io.vertx.ext.mongo.MongoClient#runCommand}.
*
* Commands can be used to run more advanced mongoDB features, such as using MapReduce.
* For more information see the mongo docs for supported http://docs.mongodb.org/manual/reference/command[Commands].
*
* Here's an example of running an aggregate command. Note that the command name must be specified as a parameter
* and also be contained in the JSON that represents the command. This is because JSON is not ordered but BSON is
* ordered and MongoDB expects the first BSON entry to be the name of the command. In order for us to know which
* of the entries in the JSON is the command name it must be specified as a parameter.
*
* [source,$lang]
* ----
* {@link examples.Examples#example12}
* ----
*
* === MongoDB Extended JSON support
*
* For now, only date, oid and binary types are supported (cf http://docs.mongodb.org/manual/reference/mongodb-extended-json )
*
* Here's an example of inserting a document with a date field
*
* [source,$lang]
* ----
* {@link examples.Examples#example13_0}
* ----
*
* Here's an example (in Java) of inserting a document with a binary field and reading it back
*
* [source,$lang]
* ----
* {@link examples.Examples#example14_01_dl}
* ----
*
* Here's an example of inserting a base 64 encoded string, typing it as binary a binary field, and reading it back
*
* [source,$lang]
* ----
* {@link examples.Examples#example14_02_dl}
* ----
* Here's an example of inserting an object ID and reading it back
*
* [source,$lang]
* ----
* {@link examples.Examples#example15_dl}
* ----
* Here's an example of getting disting value
*
* [source,$lang]
* ----
* {@link examples.Examples#example16}
* ----
* Here's an example of getting distinct value in batch mode
*
* [source,$lang]
* ----
* {@link examples.Examples#example16_d1}
* ----
*
* == Configuring the client
*
* The client is configured with a json object.
*
* The following configuration is supported by the mongo client:
*
*
* `db_name`:: Name of the database in the mongoDB instance to use. Defaults to `default_db`
* `useObjectId`:: Toggle this option to support persisting and retrieving ObjectId's as strings. If `true`, hex-strings will
* be saved as native Mongodb ObjectId types in the document collection. This will allow the sorting of documents based on creation
* time. You can also derive the creation time from the hex-string using ObjectId::getDate(). Set to `false` for other types of your choosing.
* If set to false, or left to default, hex strings will be generated as the document _id if the _id is omitted from the document.
* Defaults to `false`.
*
* The mongo client tries to support most options that are allowed by the driver. There are two ways to configure mongo
* for use by the driver, either by a connection string or by separate configuration options.
*
* NOTE: If the connection string is used the mongo client will ignore any driver configuration options.
*
* `connection_string`:: The connection string the driver uses to create the client. E.g. `mongodb://localhost:27017`.
* For more information on the format of the connection string please consult the driver documentation.
*
* *Specific driver configuration options*
*
* ----
* {
* // Single Cluster Settings
* "host" : "127.0.0.1", // string
* "port" : 27017, // int
*
* // Multiple Cluster Settings
* "hosts" : [
* {
* "host" : "cluster1", // string
* "port" : 27000 // int
* },
* {
* "host" : "cluster2", // string
* "port" : 28000 // int
* },
* ...
* ],
* "replicaSet" : "foo", // string
* "serverSelectionTimeoutMS" : 30000, // long
*
* // Connection Pool Settings
* "maxPoolSize" : 50, // int
* "minPoolSize" : 25, // int
* "maxIdleTimeMS" : 300000, // long
* "maxLifeTimeMS" : 3600000, // long
* "waitQueueMultiple" : 10, // int
* "waitQueueTimeoutMS" : 10000, // long
* "maintenanceFrequencyMS" : 2000, // long
* "maintenanceInitialDelayMS" : 500, // long
*
* // Credentials / Auth
* "username" : "john", // string
* "password" : "passw0rd", // string
* "authSource" : "some.db" // string
* // Auth mechanism
* "authMechanism" : "GSSAPI", // string
* "gssapiServiceName" : "myservicename", // string
*
* // Socket Settings
* "connectTimeoutMS" : 300000, // int
* "socketTimeoutMS" : 100000, // int
* "sendBufferSize" : 8192, // int
* "receiveBufferSize" : 8192, // int
* "keepAlive" : true // boolean
*
* // Heartbeat socket settings
* "heartbeat.socket" : {
* "connectTimeoutMS" : 300000, // int
* "socketTimeoutMS" : 100000, // int
* "sendBufferSize" : 8192, // int
* "receiveBufferSize" : 8192, // int
* "keepAlive" : true // boolean
* }
*
* // Server Settings
* "heartbeatFrequencyMS" : 1000 // long
* "minHeartbeatFrequencyMS" : 500 // long
* }
* ----
*
* *Driver option descriptions*
*
* `host`:: The host the mongoDB instance is running. Defaults to `127.0.0.1`. This is ignored if `hosts` is specified
* `port`:: The port the mongoDB instance is listening on. Defaults to `27017`. This is ignored if `hosts` is specified
* `hosts`:: An array representing the hosts and ports to support a mongoDB cluster (sharding / replication)
* `host`:: A host in the cluster
* `port`:: The port a host in the cluster is listening on
* `replicaSet`:: The name of the replica set, if the mongoDB instance is a member of a replica set
* `serverSelectionTimeoutMS`:: The time in milliseconds that the mongo driver will wait to select a server for an operation before raising an error.
* `maxPoolSize`:: The maximum number of connections in the connection pool. The default value is `100`
* `minPoolSize`:: The minimum number of connections in the connection pool. The default value is `0`
* `maxIdleTimeMS`:: The maximum idle time of a pooled connection. The default value is `0` which means there is no limit
* `maxLifeTimeMS`:: The maximum time a pooled connection can live for. The default value is `0` which means there is no limit
* `waitQueueMultiple`:: The maximum number of waiters for a connection to become available from the pool. Default value is `500`
* `waitQueueTimeoutMS`:: The maximum time that a thread may wait for a connection to become available. Default value is `120000` (2 minutes)
* `maintenanceFrequencyMS`:: The time period between runs of the maintenance job. Default is `0`.
* `maintenanceInitialDelayMS`:: The period of time to wait before running the first maintenance job on the connection pool. Default is `0`.
* `username`:: The username to authenticate. Default is `null` (meaning no authentication required)
* `password`:: The password to use to authenticate.
* `authSource`:: The database name associated with the user's credentials. Default value is the `db_name` value.
* `authMechanism`:: The authentication mechanism to use. See [Authentication](http://docs.mongodb.org/manual/core/authentication/) for more details.
* `gssapiServiceName`:: The Kerberos service name if `GSSAPI` is specified as the `authMechanism`.
* `connectTimeoutMS`:: The time in milliseconds to attempt a connection before timing out. Default is `10000` (10 seconds)
* `socketTimeoutMS`:: The time in milliseconds to attempt a send or receive on a socket before the attempt times out. Default is `0` meaning there is no timeout
* `sendBufferSize`:: Sets the send buffer size (SO_SNDBUF) for the socket. Default is `0`, meaning it will use the OS default for this option.
* `receiveBufferSize`:: Sets the receive buffer size (SO_RCVBUF) for the socket. Default is `0`, meaning it will use the OS default for this option.
* `keepAlive`:: Sets the keep alive (SO_KEEPALIVE) for the socket. Default is `false`
* `heartbeat.socket`:: Configures the socket settings for the cluster monitor of the MongoDB java driver.
* `heartbeatFrequencyMS`:: The frequency that the cluster monitor attempts to reach each server. Default is `5000` (5 seconds)
* `minHeartbeatFrequencyMS`:: The minimum heartbeat frequency. The default value is `1000` (1 second)
*
* NOTE: Most of the default values listed above use the default values of the MongoDB Java Driver.
* Please consult the driver documentation for up to date information.
*/
@Document(fileName = "index.adoc")
@ModuleGen(name = "vertx-mongo", groupPackage = "io.vertx")
package io.vertx.ext.mongo;
import io.vertx.codegen.annotations.ModuleGen;
import io.vertx.docgen.Document;
| 38.402439 | 161 | 0.694983 |
17733331db4bf4d4615cf7da55b1b991316c9b1d | 1,197 | package pro.sisit.unit9.service;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import pro.sisit.unit9.data.BuyingBookRepository;
import pro.sisit.unit9.entity.Book;
import pro.sisit.unit9.entity.Buyer;
import pro.sisit.unit9.entity.BuyingBook;
import javax.transaction.Transactional;
import java.math.BigDecimal;
@Service
@RequiredArgsConstructor
public class Seller {
private final BuyingBookRepository buyingBookRepository;
public void sellBook(Book book, Buyer buyer, BigDecimal cost){
BuyingBook buyingBook = new BuyingBook();
buyingBook.setBook(book);
buyingBook.setBuyer(buyer);
buyingBook.setCost(cost);
buyingBookRepository.save(buyingBook);
}
public BigDecimal bookTotalCost (Book book) {
return buyingBookRepository.findByBook(book).stream()
.map(BuyingBook::getCost)
.reduce(BigDecimal.ZERO,BigDecimal::add);
}
public BigDecimal buyerTotalCost (Buyer buyer) {
return buyingBookRepository.findByBuyer(buyer).stream()
.map(BuyingBook::getCost)
.reduce(BigDecimal.ZERO,BigDecimal::add);
}
}
| 28.5 | 66 | 0.715957 |
04f0a8771c4c3a5a99c4b7da15120e9c032c0b1c | 849 | package com.ilusons.ref.threading;
import com.ilusons.harmony.ref.threading.UiRelatedTask;
import static org.junit.Assert.assertEquals;
public class TestUiRelatedTask extends UiRelatedTask<Integer> {
private static final Integer RESULT = 42;
private boolean mDidRun;
private Thread mWorkThread;
private Thread mUiThread;
@Override
protected Integer doWork() {
mWorkThread = Thread.currentThread();
return RESULT;
}
@Override
protected void thenDoUiRelatedWork(Integer result) {
assertEquals(RESULT, result);
mUiThread = Thread.currentThread();
mDidRun = true;
}
public boolean didRun() {
return mDidRun;
}
public Thread getWorkThread() {
return mWorkThread;
}
public Thread getUiThread() {
return mUiThread;
}
}
| 21.769231 | 63 | 0.671378 |
5f38b81d12749007dce188587968545caf2efe73 | 4,407 | /*******************************************************************************
* Open Behavioral Health Information Technology Architecture (OBHITA.org)
* <p>
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the <organization> nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
* <p>
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
******************************************************************************/
package gov.samhsa.c2s.pcm.service.reference;
import gov.samhsa.c2s.vss.service.dto.AddConsentFieldsDto;
import gov.samhsa.c2s.pcm.domain.reference.ClinicalDocumentTypeCode;
import gov.samhsa.c2s.pcm.domain.reference.ClinicalDocumentTypeCodeRepository;
import gov.samhsa.c2s.pcm.service.dto.LookupDto;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList;
import java.util.List;
/**
* The Class ClinicalDocumentTypeCodeServiceImpl.
*/
@Transactional
@Service
public class ClinicalDocumentTypeCodeServiceImpl implements
ClinicalDocumentTypeCodeService {
/** The clinical document type code repository. */
@Autowired
private ClinicalDocumentTypeCodeRepository clinicalDocumentTypeCodeRepository;
/** The model mapper. */
@Autowired
private ModelMapper modelMapper;
/*
* (non-Javadoc)
*
* @see
* gov.samhsa.consent2share.service.reference.ClinicalDocumentTypeCodeService
* #findAllClinicalDocumentTypeCodes()
*/
@Override
public List<LookupDto> findAllClinicalDocumentTypeCodes() {
List<LookupDto> lookups = new ArrayList<LookupDto>();
List<ClinicalDocumentTypeCode> clinicalDocumentTypeCodeList = clinicalDocumentTypeCodeRepository
.findAll();
for (ClinicalDocumentTypeCode entity : clinicalDocumentTypeCodeList) {
lookups.add(modelMapper.map(entity, LookupDto.class));
}
return lookups;
}
/*
* (non-Javadoc)
*
* @see
* gov.samhsa.consent2share.service.reference.ClinicalDocumentTypeCodeService
* #findAllClinicalDocumentTypeCodesAddConsentFieldsDto()
*/
@Override
public List<AddConsentFieldsDto> findAllClinicalDocumentTypeCodesAddConsentFieldsDto() {
List<AddConsentFieldsDto> clinicalDocumentTypeDto = new ArrayList<AddConsentFieldsDto>();
List<ClinicalDocumentTypeCode> clinicalDocumentTypeCodeList = clinicalDocumentTypeCodeRepository
.findAll();
for (ClinicalDocumentTypeCode clinicalDocumentTypeCode : clinicalDocumentTypeCodeList) {
AddConsentFieldsDto clinicalDocumentTypeItem = new AddConsentFieldsDto();
clinicalDocumentTypeItem
.setCode(clinicalDocumentTypeCode.getCode());
clinicalDocumentTypeItem.setDisplayName(clinicalDocumentTypeCode
.getDisplayName());
clinicalDocumentTypeDto.add(clinicalDocumentTypeItem);
}
return clinicalDocumentTypeDto;
}
}
| 44.515152 | 104 | 0.726798 |
50c21870d72f4fea848f5ea5e17edcd117f3180a | 2,434 | package com.ykbjson.app.simplepermission;
import android.Manifest;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
import com.ykbjson.lib.simplepermission.ano.PermissionNotify;
import com.ykbjson.lib.simplepermission.ano.PermissionRequest;
@PermissionNotify
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
private TextView mTextMessage;
private BottomNavigationView.OnNavigationItemSelectedListener mOnNavigationItemSelectedListener
= new BottomNavigationView.OnNavigationItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
switch (item.getItemId()) {
case R.id.navigation_home:
mTextMessage.setText(R.string.title_home);
return true;
case R.id.navigation_dashboard:
mTextMessage.setText(R.string.title_dashboard);
return true;
case R.id.navigation_notifications:
mTextMessage.setText(R.string.title_notifications);
return true;
}
return false;
}
};
@Override
protected void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mTextMessage = (TextView) findViewById(R.id.message);
BottomNavigationView navigation = (BottomNavigationView) findViewById(R.id.navigation);
navigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener);
mTextMessage.setOnClickListener(this);
}
@PermissionRequest(
requestCode = 10010,
requestPermissions = {Manifest.permission.ACCESS_FINE_LOCATION,
Manifest.permission.ACCESS_COARSE_LOCATION,
Manifest.permission.READ_CONTACTS}
,needReCall = true
)
private void setText(final String text) {
startActivity(new Intent(this,SecondActivity.class).putExtra("text",text));
}
@Override
public void onClick(View v) {
setText("哈哈哈哈哈哈");
}
}
| 35.275362 | 99 | 0.686935 |
caa15661965d91692b8f6d591ab729543929a7e7 | 9,127 | package cn.mulanbay.pms.web.controller;
import cn.mulanbay.common.util.BeanCopy;
import cn.mulanbay.common.util.DateUtil;
import cn.mulanbay.persistent.query.PageRequest;
import cn.mulanbay.persistent.query.PageResult;
import cn.mulanbay.persistent.query.Sort;
import cn.mulanbay.pms.persistent.domain.Account;
import cn.mulanbay.pms.persistent.domain.Income;
import cn.mulanbay.pms.persistent.dto.IncomeDateStat;
import cn.mulanbay.pms.persistent.dto.IncomeTypeStat;
import cn.mulanbay.pms.persistent.enums.DateGroupType;
import cn.mulanbay.pms.persistent.enums.IncomeType;
import cn.mulanbay.pms.persistent.service.DataService;
import cn.mulanbay.pms.persistent.service.IncomeService;
import cn.mulanbay.pms.util.ChartUtil;
import cn.mulanbay.pms.web.bean.request.CommonBeanDeleteRequest;
import cn.mulanbay.pms.web.bean.request.CommonBeanGetRequest;
import cn.mulanbay.pms.web.bean.request.fund.IncomeDateStatSearch;
import cn.mulanbay.pms.web.bean.request.fund.IncomeFormRequest;
import cn.mulanbay.pms.web.bean.request.fund.IncomeSearch;
import cn.mulanbay.pms.web.bean.request.fund.IncomeStatSearch;
import cn.mulanbay.pms.web.bean.response.chart.*;
import cn.mulanbay.web.bean.response.ResultBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.validation.Valid;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
* 收入
*
* @author fenghong
* @create 2017-07-10 21:44
*/
@RestController
@RequestMapping("/income")
public class IncomeController extends BaseController {
private static Class<Income> beanClass = Income.class;
@Autowired
IncomeService incomeService;
@Autowired
DataService dataService;
/**
* 获取列表数据
*
* @return
*/
@RequestMapping(value = "/getData", method = RequestMethod.GET)
public ResultBean getData(IncomeSearch sf) {
return callbackDataGrid(this.getIncomeResult(sf));
}
private PageResult<Income> getIncomeResult(IncomeSearch sf) {
PageRequest pr = sf.buildQuery();
pr.setBeanClass(beanClass);
pr.addSort(new Sort("occurTime", Sort.DESC));
PageResult<Income> qr = baseService.getBeanResult(pr);
return qr;
}
/**
* 创建
*
* @return
*/
@RequestMapping(value = "/create", method = RequestMethod.POST)
public ResultBean create(@RequestBody @Valid IncomeFormRequest bean) {
Income income = new Income();
BeanCopy.copyProperties(bean, income);
income.setCreatedTime(new Date());
if (bean.getAccountId() != null) {
Account account = this.getUserEntity(Account.class, bean.getAccountId(), bean.getUserId());
income.setAccount(account);
}
baseService.saveObject(income);
return callback(income);
}
/**
* 获取详情
*
* @return
*/
@RequestMapping(value = "/get", method = RequestMethod.GET)
public ResultBean get(@Valid CommonBeanGetRequest gr) {
Income income = this.getUserEntity(beanClass, gr.getId(), gr.getUserId());
return callback(income);
}
/**
* 修改
*
* @return
*/
@RequestMapping(value = "/edit", method = RequestMethod.POST)
public ResultBean edit(@RequestBody @Valid IncomeFormRequest bean) {
Income income = this.getUserEntity(beanClass, bean.getId(), bean.getUserId());
BeanCopy.copyProperties(bean, income);
income.setLastModifyTime(new Date());
if (bean.getAccountId() != null) {
Account account = this.getUserEntity(Account.class, bean.getAccountId(), bean.getUserId());
income.setAccount(account);
}
baseService.updateObject(income);
return callback(income);
}
/**
* 删除
*
* @return
*/
@RequestMapping(value = "/delete", method = RequestMethod.POST)
public ResultBean delete(@RequestBody @Valid CommonBeanDeleteRequest deleteRequest) {
this.deleteUserEntity(beanClass,deleteRequest.getIds(),Long.class,deleteRequest.getUserId());
return callback(null);
}
/**
* 按照日期统计
*
* @return
*/
@RequestMapping(value = "/dateStat")
public ResultBean dateStat(IncomeDateStatSearch sf) {
switch (sf.getDateGroupType()){
case DAYCALENDAR :
//日历
List<IncomeDateStat> list = incomeService.statDateIncome(sf);
ChartCalendarData calendarData = ChartUtil.createChartCalendarData("收入统计", "金额", "元", sf, list);
calendarData.setTop(3);
return callback(calendarData);
case HOURMINUTE :
//散点图
PageRequest pr = sf.buildQuery();
pr.setBeanClass(beanClass);
List<Date> dateList = dataService.getDateList(pr,"occurTime");
return callback(this.createHMChartData(dateList,"收入分析","收入时间点"));
default:
break;
}
List<IncomeDateStat> list = incomeService.statDateIncome(sf);
ChartData chartData = new ChartData();
chartData.setTitle(getChartTitle(sf.getAccountId(), sf.getUserId()));
chartData.setLegendData(new String[]{"收入(元)","次数"});
//混合图形下使用
chartData.addYAxis("收入(元)","元");
chartData.addYAxis("次数","次");
ChartYData yData1 = new ChartYData();
yData1.setName("次数");
ChartYData yData2 = new ChartYData();
yData2.setName("收入(元)");
//总的值
BigDecimal totalCount = new BigDecimal(0);
BigDecimal totalValue = new BigDecimal(0);
int year = DateUtil.getYear(sf.getEndDate() == null ? new Date() : sf.getEndDate());
for (IncomeDateStat bean : list) {
chartData.getIntXData().add(bean.getIndexValue());
if (sf.getDateGroupType() == DateGroupType.MONTH) {
chartData.getXdata().add(bean.getIndexValue() + "月份");
int days = DateUtil.getDayOfMonth(year, bean.getIndexValue() - 1);
} else if (sf.getDateGroupType() == DateGroupType.YEAR) {
chartData.getXdata().add(bean.getIndexValue() + "年");
} else if (sf.getDateGroupType() == DateGroupType.WEEK) {
chartData.getXdata().add("第" + bean.getIndexValue() + "周");
} else {
chartData.getXdata().add(bean.getIndexValue().toString());
}
yData1.getData().add(bean.getTotalCount());
yData2.getData().add(bean.getTotalAmount().doubleValue());
totalCount = totalCount.add(new BigDecimal(bean.getTotalCount()));
totalValue = totalValue.add(bean.getTotalAmount());
}
chartData.getYdata().add(yData2);
chartData.getYdata().add(yData1);
String totalString = totalCount.longValue() + "(次)," + totalValue.doubleValue() + "(元)";
chartData.setSubTitle(this.getDateTitle(sf, totalString));
chartData = ChartUtil.completeDate(chartData, sf);
return callback(chartData);
}
/**
* 获取统计图表的表头
*
* @param accountId
* @return
*/
private String getChartTitle(Long accountId, Long userId) {
if (accountId == null) {
return "账户统计";
} else {
Account account = this.getUserEntity(Account.class, accountId, userId);
return "[" + account.getName() + "]账户统计";
}
}
/**
* 总的概要统计
*
* @return
*/
@RequestMapping(value = "/stat", method = RequestMethod.GET)
public ResultBean stat(IncomeStatSearch sf) {
List<IncomeTypeStat> list = incomeService.statIncome(sf);
ChartPieData chartPieData = this.createStatPieData(sf, list);
return callback(chartPieData);
}
private ChartPieData createStatPieData(IncomeStatSearch sf, List<IncomeTypeStat> list) {
ChartPieData chartPieData = new ChartPieData();
chartPieData.setTitle("收入分析");
chartPieData.setUnit("元");
ChartPieSerieData serieData = new ChartPieSerieData();
serieData.setName("分析");
//总的值
BigDecimal totalValue = new BigDecimal(0);
for (IncomeTypeStat bean : list) {
IncomeType it = IncomeType.getIncomeType(bean.getIndexValue().intValue());
chartPieData.getXdata().add(it.getName());
ChartPieSerieDetailData dataDetail = new ChartPieSerieDetailData();
dataDetail.setName(it.getName());
dataDetail.setValue(bean.getTotalAmount());
serieData.getData().add(dataDetail);
totalValue = totalValue.add(bean.getTotalAmount());
}
String subTitle = this.getDateTitle(sf, String.valueOf(totalValue.intValue()) + "元");
chartPieData.setSubTitle(subTitle);
chartPieData.getDetailData().add(serieData);
return chartPieData;
}
}
| 37.253061 | 112 | 0.648296 |
b99a5fd5d94ef24d1d6e522b368c6107b3775728 | 17,104 | /*
* Copyright (c) 2017 Carbon Security Ltd. <[email protected]>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
package com.enterprisepasswordsafe.engine.database;
import java.io.UnsupportedEncodingException;
import java.security.GeneralSecurityException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import com.enterprisepasswordsafe.engine.AccessControlDecryptor;
import com.enterprisepasswordsafe.engine.utils.Constants;
import com.enterprisepasswordsafe.engine.utils.DatabaseConnectionUtils;
import com.enterprisepasswordsafe.engine.utils.KeyUtils;
import com.enterprisepasswordsafe.proguard.JavaBean;
/**
* Base class providing functionality common to Group and User access controls.
*/
public abstract class AccessControl
implements Comparable<AccessControl>, JavaBean {
/**
* The key size for the second level AES key in bits.
*/
public static final int AES_KEY_SIZE_IN_BITS = 128;
/**
* The number of bits in a byte as used by the JCE provider.
*/
private static final int JCE_PROVIDER_BITS_PER_BYTE = 8;
/**
* The number of columns from a ResultSet needed to create this object.
*/
public static final int ACCESS_CONTROL_FIELD_COUNT = 3;
/**
* The first level encryption algorithm
*/
private static final String FIRST_LEVEL_ENCRYPTION_ALGORITHM = "RSA";
/**
* The encryption algorithm used for second level encryption.
*/
private static final String SECOND_LEVEL_ENCRYPTION_ALGORITHM = "AES";
/**
* SQL to get the item IDs a user has access to via a uac.
*/
private static final String GET_UAC_ACCESSIBLE_ITEMS =
"SELECT item_id "
+ " FROM user_access_control "
+ " WHERE user_id = ? "
+ " AND rkey IS NOT NULL";
/**
* SQL to get the item IDs a user has access to via a uac.
*/
private static final String GET_GAC_ACCESSIBLE_ITEMS =
"SELECT gac.item_id "
+ " FROM group_access_control gac, "
+ " membership mem, "
+ " group g "
+ " WHERE mem.user_id = ? "
+ " AND mem.group_id = g.group_id "
+ " AND (g.enabled is null OR g.enabled = 'Y') "
+ " AND gac.group_id = mem.group_id "
+ " AND gac.rkey IS NOT NULL";
public static final String READ_PERMISSION = "R";
public static final String MODIFY_PERMISSION = "RM";
/**
* The ID of the accessing entity.
*/
private String accessorId;
/**
* The ID of the item this access control is for.
*/
private String itemId;
/**
* The modification key object.
*/
private PrivateKey modifyKey;
/**
* The read key object.
*/
private PublicKey readKey;
/**
* Null constructor. Useful for creating re-usable objects.
*/
public AccessControl() {
super();
}
/**
* Constructor. Stores information passed to it.
*
* @param newItemId The ID of the item this AC is for.
* @param newModifyKey The modification key.
* @param newReadKey The read key.
*/
public AccessControl(final String newItemId, final String newAccessorId,
final PrivateKey newModifyKey, final PublicKey newReadKey) {
itemId = newItemId;
accessorId = newAccessorId;
modifyKey = newModifyKey;
readKey = newReadKey;
}
/**
* Constructor. Extracts the necessary information from a ResultSet
*
* @param rs The ResultSet to extract the data from.
* @param startIdx The index in the ResultSet where the data starts.
* @param decryptor The decryptor used to decrypt the access keys.
*
* @throws SQLException Thrown if there is a problem accessing the data.
* @throws GeneralSecurityException Thrown if there is a problem decrypting the data.
* @throws UnsupportedEncodingException
*/
public AccessControl(final ResultSet rs, final int startIdx, final AccessControlDecryptor decryptor)
throws SQLException, GeneralSecurityException, UnsupportedEncodingException {
int currentIdx = startIdx;
itemId = rs.getString(currentIdx++);
byte[] keyBytes = rs.getBytes(currentIdx++);
if(!rs.wasNull()) {
modifyKey = KeyUtils.decryptPrivateKey(keyBytes, decryptor.getKeyDecrypter());
}
keyBytes = rs.getBytes(currentIdx++);
if(!rs.wasNull()) {
readKey = KeyUtils.decryptPublicKey(keyBytes, decryptor.getKeyDecrypter());
}
accessorId = rs.getString(currentIdx);
}
/**
* Encodes some data using the modify key.
*
* @param data The data to encrypt.
*
* @return The encrypted data.
*
* @throws GeneralSecurityException Thrown if there is a problem during encryption.
* @throws UnsupportedEncodingException
*/
public final byte[] encrypt(final String data)
throws GeneralSecurityException, UnsupportedEncodingException {
if( data == null ) {
return null;
}
return encryptToBinary(data);
}
/**
* Encodes some data using the modify key.
*
* @param data The data to encrypt.
*
* @return The encrypted data.
*
* @throws GeneralSecurityException Thrown if there is a problem during encryption.
* @throws UnsupportedEncodingException
*/
public final byte[] encryptToBinary(final String data)
throws GeneralSecurityException, UnsupportedEncodingException {
if (modifyKey == null) {
throw new GeneralSecurityException("Illegal attempt to update an object");
}
// Decrypt the data
Cipher cipher = Cipher.getInstance(FIRST_LEVEL_ENCRYPTION_ALGORITHM);
cipher.init(Cipher.ENCRYPT_MODE, modifyKey);
// Convert it into a string
byte[] secondLevelKey = generateSecondLevelKey();
byte[] encryptedKey = cipher.doFinal(secondLevelKey);
// Encrypt the data.
byte[] encryptedData = secondLevelEncrypt(secondLevelKey, data);
// Combine the two blocks into one
byte[] finalData = new byte[encryptedKey.length + encryptedData.length];
System.arraycopy(encryptedKey, 0, finalData, 0, encryptedKey.length);
System.arraycopy(encryptedData, 0, finalData, encryptedKey.length, encryptedData.length);
return finalData;
}
/**
* Generates the second level encryption key.
*
* @return The second level encryption key.
*
* @throws NoSuchAlgorithmException Thrown if the encryption algorithm is unavailable.
*/
private byte[] generateSecondLevelKey()
throws NoSuchAlgorithmException {
KeyGenerator kgen = KeyGenerator.getInstance(SECOND_LEVEL_ENCRYPTION_ALGORITHM);
kgen.init(AES_KEY_SIZE_IN_BITS); // 192 and 256 bits may not be available
SecretKey skey = kgen.generateKey();
return skey.getEncoded();
}
/**
* Encodes some data using the users access key.
*
* @param accessKey The key to encrypt the data with.
* @param data The data to encrypt.
*
* @return The encrypted data.
*
* @throws GeneralSecurityException Thrown if there is a problem during encryption.
* @throws UnsupportedEncodingException
*/
private byte[] secondLevelEncrypt(final byte[] accessKey, final String data)
throws GeneralSecurityException, UnsupportedEncodingException {
if (data == null) {
return null;
}
SecretKeySpec skeySpec = new SecretKeySpec(accessKey, SECOND_LEVEL_ENCRYPTION_ALGORITHM);
Cipher cipher = Cipher.getInstance(SECOND_LEVEL_ENCRYPTION_ALGORITHM);
cipher.init(Cipher.ENCRYPT_MODE, skeySpec);
byte[] encrypted = cipher.doFinal(data.getBytes(Constants.STRING_CODING_FORMAT));
return encrypted;
}
/**
* Decrypts some data using the read key.
*
* @param data The data to decrypt.
*
* @return The decrypted data.
*
* @throws GeneralSecurityException Thrown if tehre is a problem during decrytpion.
* @throws UnsupportedEncodingException
*/
public final String decrypt(final byte[] data)
throws GeneralSecurityException, UnsupportedEncodingException {
if( data == null) {
return null;
}
return decryptFromBinary(data);
}
/**
* Decrypts some data using the read key.
*
* @param data The data to decrypt.
*
* @return The decrypted data.
*
* @throws GeneralSecurityException Thrown if tehre is a problem during decrytpion.
* @throws UnsupportedEncodingException
*/
public final String decryptFromBinary(final byte[] data)
throws GeneralSecurityException, UnsupportedEncodingException {
byte[] decryptedData = decryptVersionTwoData(data);
return new String(decryptedData, Constants.STRING_CODING_FORMAT);
}
/**
* Decrypts some data using the read key.
*
* @param data The data to decrypt.
*
* @return The decrypted data.
*
* @throws GeneralSecurityException Thrown if tehre is a problem during decrytpion.
*/
private byte[] decryptVersionTwoData(final byte[] data)
throws GeneralSecurityException {
if (readKey == null) {
throw new GeneralSecurityException("Illegal attempt to read an object");
}
// Extract the second level key and decode it.
byte[] keyData = decryptVersionOneData(data, 0, AES_KEY_SIZE_IN_BITS);
// This is needed because the bouncy castle provider drops leading zeros.
int encryptionKeySizeByes = AES_KEY_SIZE_IN_BITS / JCE_PROVIDER_BITS_PER_BYTE;
int missingBytes = encryptionKeySizeByes - keyData.length;
if (missingBytes != 0) {
byte[] oldkeyData = keyData;
keyData = new byte[encryptionKeySizeByes];
int i = 0;
for (; i < missingBytes; i++) {
keyData[i] = 0;
}
System.arraycopy(oldkeyData, 0, keyData, i, oldkeyData.length);
}
SecretKeySpec skeySpec = new SecretKeySpec(keyData, SECOND_LEVEL_ENCRYPTION_ALGORITHM);
// Decrypt the remaining data
Cipher cipher = AccessControl.getVersionTwoCipher();
cipher.init(Cipher.DECRYPT_MODE, skeySpec);
return cipher.doFinal(data, AES_KEY_SIZE_IN_BITS, (data.length - AES_KEY_SIZE_IN_BITS));
}
/**
* Decrypts some data using the read key.
*
* @param data The data to decrypt.
* @param start The start byte in the array to start decryption at.
* @param length The number of bytes in the array to decrypt.
*
* @return The decrypted data.
*
* @throws GeneralSecurityException Thrown if there is a problem decrypting the data.
*/
private byte[] decryptVersionOneData(final byte[] data, final int start, final int length)
throws GeneralSecurityException {
if (readKey == null) {
throw new GeneralSecurityException("Illegal attempt to read an object");
}
// Decrypt the data
Cipher cipher = AccessControl.getVersionOneCipher();
cipher.init(Cipher.DECRYPT_MODE, readKey);
// Convert it into a string
byte[] original = cipher.doFinal(data, start, length);
return original;
}
/**
* Gets the list of item IDs a user has access to.
*
* @param conn The connection to the database.
* @param userId The ID of the user to fetch the item IDs for.
*
* @return The List of item IDs
*
* @throws SQLException Thrown if there is a problem accessing the database.
*/
public static List<String> getAccessibleItemIDs(final Connection conn, final String userId)
throws SQLException {
List<String> ids = new ArrayList<String>();
getData(conn, userId, ids, AccessControl.GET_UAC_ACCESSIBLE_ITEMS);
getData(conn, userId, ids, AccessControl.GET_GAC_ACCESSIBLE_ITEMS);
return ids;
}
/**
* Adds the IDs of the items returned by the specified query to a
* specified List.
*
* @param conn The connection to the database.
* @param userId The ID to get the data for.
* @param list The list to store the data into.
* @param statement The SQL to execute.
*
* @throws SQLException Thrown if there is a problem accessing the data.
*/
private static void getData(final Connection conn, final String userId,
final List<String> list, final String statement)
throws SQLException {
PreparedStatement ps = conn.prepareStatement(statement);
ResultSet rs = null;
try {
ps.setString(1, userId);
rs = ps.executeQuery();
while (rs.next()) {
list.add(rs.getString(1));
}
} finally {
DatabaseConnectionUtils.close(rs);
DatabaseConnectionUtils.close(ps);
}
}
/**
* Get the item ID this access control relates to.
*
* @return the item ID.
*/
public final String getItemId() {
return itemId;
}
/**
* Get the read key for this access control.
*
* @return The read key.
*/
public final PublicKey getReadKey() {
return readKey;
}
/**
* Set the read key for this access control.
*
* @param newKey The new read key.
*/
public final void setReadKey(final PublicKey newKey) {
readKey = newKey;
}
/**
* Get the modify key for this access control.
*
* @return The modify key.
*/
public final PrivateKey getModifyKey() {
return modifyKey;
}
/**
* Set the modify key for this access control.
*
* @param newKey The modify key.
*/
public final void setModifyKey(final PrivateKey newKey) {
modifyKey = newKey;
}
/**
* Compare this access control to another object.
*
* @param otherObject The other object.
*
* @return A comparison of their equality.
*/
@Override
public int compareTo(final AccessControl otherAc) {
int itemIdComparison = itemId.compareTo(otherAc.itemId);
if( itemIdComparison != 0 ) {
return itemIdComparison;
}
if( modifyKey == null ) {
if( otherAc.modifyKey != null ) {
return Integer.MIN_VALUE;
}
} else {
if( otherAc.modifyKey == null ) {
return Integer.MAX_VALUE;
}
}
if( readKey == null ) {
if(otherAc.readKey != null) {
return Integer.MIN_VALUE;
}
} else {
if(otherAc.readKey == null) {
return Integer.MAX_VALUE;
}
}
return 0;
}
public String getAccessorId() {
return accessorId;
}
public void setAccessorId(String accessorId) {
this.accessorId = accessorId;
}
public void setItemId(String itemId) {
this.itemId = itemId;
}
/**
* ThreadLocal storing cipher instance for version two decryption.
*/
private static ThreadLocal<Cipher> versionTwoCipher = new ThreadLocal<Cipher>();
protected static Cipher getVersionTwoCipher() throws NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException {
Cipher cipher = versionTwoCipher.get();
if( cipher == null ) {
cipher = Cipher.getInstance(SECOND_LEVEL_ENCRYPTION_ALGORITHM);
versionTwoCipher.set(cipher);
}
return cipher;
}
/**
* ThreadLocal storing cipher instance for version one decryption.
*/
private static ThreadLocal<Cipher> versionOneCipher = new ThreadLocal<Cipher>();
protected static Cipher getVersionOneCipher() throws NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException {
Cipher cipher = versionOneCipher.get();
if( cipher == null ) {
cipher = Cipher.getInstance(FIRST_LEVEL_ENCRYPTION_ALGORITHM);
versionOneCipher.set(cipher);
}
return cipher;
}
}
| 30.597496 | 129 | 0.661483 |
8f969222e27683032e1b2914d9c1080f763bab36 | 5,672 | /*
* Copyright (c) 2010 WiYun Inc.
* Author: luma([email protected])
*
* For all entities this program is free software; you can redistribute
* it and/or modify it under the terms of the 'WiEngine' license with
* the additional provision that 'WiEngine' must be credited in a manner
* that can be be observed by end users, for example, in the credits or during
* start up. (please find WiEngine logo in sdk's logo folder)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.wiyun.engine.tests.box2d;
import com.wiyun.engine.WiEngineTestActivity;
import com.wiyun.engine.box2d.collision.CircleShape;
import com.wiyun.engine.box2d.collision.EdgeShape;
import com.wiyun.engine.box2d.dynamics.Body;
import com.wiyun.engine.box2d.dynamics.BodyDef;
import com.wiyun.engine.box2d.dynamics.Fixture;
import com.wiyun.engine.box2d.dynamics.FixtureDef;
import com.wiyun.engine.box2d.dynamics.World.IContactListener;
import com.wiyun.engine.box2d.dynamics.contacts.Contact;
import com.wiyun.engine.nodes.Director;
import com.wiyun.engine.nodes.Layer;
import com.wiyun.engine.types.WYPoint;
import com.wiyun.engine.types.WYSize;
import com.wiyun.engine.utils.TargetSelector;
public class SensorTest extends WiEngineTestActivity {
@Override
protected Layer createLayer() {
return new MyLayer();
}
class MyLayer extends Box2DLayer implements IContactListener {
int e_count = 7;
Fixture m_sensor;
Body[] m_bodies = new Body[e_count];
boolean[] m_touching = new boolean[e_count];
public MyLayer() {
WYSize s = Director.getInstance().getWindowSize();
// set gravity
mWorld.setGravity(0, -10);
// place box2d to center of bottom edge
mBox2D.setPosition(s.width / 2, 0);
// add contact listener
mWorld.setContactListener(this);
{
BodyDef bd = BodyDef.make();
Body ground = mWorld.createBody(bd);
bd.destroy();
{
EdgeShape shape = EdgeShape.make();
shape.setEndpoints(-40.0f, 0.0f, 40.0f, 0.0f);
ground.createFixture(shape, 0.0f);
}
{
CircleShape shape = CircleShape.make();
shape.setRadius(5.0f);
shape.setPosition(0.0f, 10.0f);
FixtureDef fd = FixtureDef.make();
fd.setShape(shape);
fd.setSensor(true);
m_sensor = ground.createFixture(fd);
fd.destroy();
}
}
{
CircleShape shape = CircleShape.make();
shape.setRadius(1.0f);
for (int i = 0; i < e_count; ++i)
{
BodyDef bd = BodyDef.make();
bd.setType(Body.TYPE_DYNAMIC);
bd.setPosition(-10.0f + 3.0f * i, 20.0f);
bd.setUserData(i);
m_touching[i] = false;
m_bodies[i] = mWorld.createBody(bd);
m_bodies[i].createFixture(shape, 1.0f);
bd.destroy();
}
}
schedule(new TargetSelector(this, "update(float)", new Object[] { 0f }));
}
public void beginContact(int contactPointer) {
Contact contact = Contact.from(contactPointer);
Fixture fixtureA = contact.getFixtureA();
Fixture fixtureB = contact.getFixtureB();
if (fixtureA.equals(m_sensor))
{
int i = (Integer)fixtureB.getBody().getUserData();
m_touching[i] = true;
}
if (fixtureB.equals(m_sensor))
{
int i = (Integer)fixtureA.getBody().getUserData();
m_touching[i] = true;
}
}
public void endContact(int contactPointer) {
Contact contact = Contact.from(contactPointer);
Fixture fixtureA = contact.getFixtureA();
Fixture fixtureB = contact.getFixtureB();
if (fixtureA.equals(m_sensor))
{
int i = (Integer)fixtureB.getBody().getUserData();
m_touching[i] = false;
}
if (fixtureB.equals(m_sensor))
{
int i = (Integer)fixtureA.getBody().getUserData();
m_touching[i] = false;
}
}
public void postSolve(int contactPointer, int impulsePointer) {
}
public void preSolve(int contactPointer, int oldManifoldPointer) {
}
@Override
public void update(float delta) {
super.update(delta);
// Traverse the contact results. Apply a force on shapes
// that overlap the sensor.
for (int i = 0; i < e_count; ++i)
{
if (m_touching[i] == false)
{
continue;
}
Body body = m_bodies[i];
Body ground = m_sensor.getBody();
CircleShape circle = CircleShape.from(m_sensor.getShape());
WYPoint center = ground.getWorldPoint(circle.getPosition());
WYPoint position = body.getPosition();
WYPoint d = WYPoint.sub(center, position);
if (WYPoint.lengthsq(d) < Math.E * Math.E)
{
continue;
}
d = WYPoint.normalize(d);
WYPoint F = WYPoint.mul(d, 100.f);
body.applyForce(F, position);
}
}
}
}
| 29.541667 | 80 | 0.686883 |
b029bd8ae475f0cf4443cdaaf1d6c4fd7beb905b | 994 | package com.learn.mytodo.collection;
import java.util.UUID;
public class CollectionItem {
public String id;
public String title;
public int nums;
public String createAt;
public CollectionItem(String title, int nums) {
this.id = UUID.randomUUID().toString();
title = title;
nums = nums;
}
public CollectionItem(String title) {
this.id = UUID.randomUUID().toString();
this.title = title;
}
public CollectionItem(String id, String title, String createAt) {
this.id = id;
this.title = title;
this.createAt = createAt;
}
public CollectionItem(String id, String title, String createAt, int nums) {
this.id = id;
this.title = title;
this.createAt = createAt;
this.nums = nums;
}
public String getId() {
return id;
}
public String getTitle() {
return title;
}
public int getNums() {
return nums;
}
}
| 20.708333 | 79 | 0.589537 |
97c3c3e4b379aad65ba637ed6cf86ca3c4c32e93 | 1,453 | package com.zgrannan.crewandroid;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
public class ViewDiagram extends Activity {
CustomDrawableView diagram;
// This class allows the viewing of a diagram of a set piece
@Override
public void onCreate(Bundle savedInstanceState) {
Context context = getBaseContext();
// UI stuff
super.onCreate(savedInstanceState);
setContentView(R.layout.diagram);
diagram = (CustomDrawableView) findViewById(R.id.diagram);
TextView diagramText = (TextView) findViewById(R.id.diagram_textview);
// Load the set piece from the intent
Intent intent = getIntent();
Buildable setpiece = (Buildable) intent
.getSerializableExtra("setpiece");
setpiece.make(context);
// Set the title with the name of the set piece
diagramText.setText(getString(R.string.diagram) + ": "
+ setpiece.getName(context));
// Load the set piece into the drawable view
diagram.setDrawable(setpiece);
// Allow the user to go back with this button
final Button goBack_button = (Button) findViewById(R.id.goback_button);
goBack_button.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
}
}
| 29.06 | 74 | 0.726772 |
877235b4643cf06b477197651c63f0041435da6d | 409 | package edu.wisc.library.ocfl.api.exception;
public class OverwriteException extends RuntimeException {
public OverwriteException() {
}
public OverwriteException(String message) {
super(message);
}
public OverwriteException(String message, Throwable cause) {
super(message, cause);
}
public OverwriteException(Throwable cause) {
super(cause);
}
}
| 19.47619 | 64 | 0.679707 |
09b8c7ad280edde004438d24b5398aa0457862a4 | 4,911 | /**
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package org.apache.metron.api.helper.service;
import org.apache.commons.cli.BasicParser;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
import org.apache.commons.configuration.ConfigurationUtils;
import org.apache.log4j.PropertyConfigurator;
public class PcapServiceCli {
private String[] args = null;
private Options options = new Options();
int port = 8081;
String uri = "/pcapGetter";
String pcapHdfsPath= "/apps/metron/pcap";
String queryHdfsPath = "/apps/metron/pcap_query";
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
public String getUri() {
return uri;
}
public void setUri(String uri) {
this.uri = uri;
}
public String getPcapHdfsPath() {
return pcapHdfsPath;
}
public String getQueryHdfsPath() {
return queryHdfsPath;
}
public PcapServiceCli(String[] args) {
this.args = args;
Option help = new Option("h", "Display help menu");
options.addOption(help);
options.addOption(
"port",
true,
"OPTIONAL ARGUMENT [portnumber] If this argument sets the port for starting the service. If this argument is not set the port will start on defaut port 8081");
options.addOption(
"endpoint_uri",
true,
"OPTIONAL ARGUMENT [/uri/to/service] This sets the URI for the service to be hosted. The default URI is /pcapGetter");
options.addOption(
"query_hdfs_path",
true,
"[query_hdfs_loc] The location in HDFS to temporarily store query results. They will be cleaned up after the query is returned."
);
options.addOption(
"pcap_hdfs_path",
true,
"[pcap_hdfs_path] The location in HDFS where PCAP raw data is stored in sequence files."
);
options.addOption(
"log4j",
true,
"OPTIONAL ARGUMENT [log4j] The log4j properties."
);
}
public void parse() {
CommandLineParser parser = new BasicParser();
CommandLine cmd = null;
try {
cmd = parser.parse(options, args);
} catch (ParseException e1) {
e1.printStackTrace();
}
if (cmd.hasOption("h")) {
help();
}
if(cmd.hasOption("log4j")) {
PropertyConfigurator.configure(cmd.getOptionValue("log4j"));
}
if (cmd.hasOption("port")) {
try {
port = Integer.parseInt(cmd.getOptionValue("port").trim());
} catch (Exception e) {
System.out.println("[Metron] Invalid value for port entered");
help();
}
}
if(cmd.hasOption("pcap_hdfs_path")) {
pcapHdfsPath = cmd.getOptionValue("pcap_hdfs_path");
}
else {
throw new IllegalStateException("You must specify the pcap hdfs path");
}
if(cmd.hasOption("query_hdfs_path")) {
queryHdfsPath = cmd.getOptionValue("query_hdfs_path");
}
else {
throw new IllegalStateException("You must specify the query temp hdfs path");
}
if (cmd.hasOption("endpoint_uri")) {
try {
if (uri == null || uri.equals(""))
throw new Exception("invalid uri");
uri = cmd.getOptionValue("uri").trim();
if (uri.charAt(0) != '/')
uri = "/" + uri;
if (uri.charAt(uri.length()) == '/')
uri = uri.substring(0, uri.length() - 1);
} catch (Exception e) {
System.out.println("[Metron] Invalid URI entered");
help();
}
}
}
private void help() {
// This prints out some help
HelpFormatter formater = new HelpFormatter();
formater.printHelp("Topology Options:", options);
// System.out
// .println("[Metron] Example usage: \n storm jar Metron-Topologies-0.3BETA-SNAPSHOT.jar org.apache.metron.topology.Bro -local_mode true -config_path Metron_Configs/ -generator_spout true");
System.exit(0);
}
}
| 28.888235 | 194 | 0.651191 |
bb59e32e63f50f184dd8a6de39e700f22291b9ea | 7,477 | package com.sebastian_daschner.jaxrs_hypermedia.siren_siren4javaee.business;
import com.sebastian_daschner.jaxrs_hypermedia.siren_siren4javaee.business.books.entity.Book;
import com.sebastian_daschner.jaxrs_hypermedia.siren_siren4javaee.business.cart.entity.BookSelection;
import com.sebastian_daschner.jaxrs_hypermedia.siren_siren4javaee.business.cart.entity.ShoppingCartSelection;
import com.sebastian_daschner.jaxrs_hypermedia.siren_siren4javaee.business.orders.entity.Order;
import com.sebastian_daschner.siren4javaee.FieldType;
import javax.inject.Inject;
import javax.json.JsonObject;
import javax.ws.rs.HttpMethod;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.UriInfo;
import java.util.List;
import static com.sebastian_daschner.siren4javaee.Siren.createActionBuilder;
import static com.sebastian_daschner.siren4javaee.Siren.createEntityBuilder;
public class EntityBuilder {
@Inject
LinkBuilder linkBuilder;
public JsonObject buildRootDocument(UriInfo uriInfo) {
return createEntityBuilder()
.addLink(linkBuilder.forBooks(uriInfo), "books")
.addLink(linkBuilder.forShoppingCart(uriInfo), "shopping-cart")
.addLink(linkBuilder.forOrders(uriInfo), "orders").build();
}
public JsonObject buildBooks(List<Book> books, UriInfo uriInfo) {
final com.sebastian_daschner.siren4javaee.EntityBuilder entityBuilder = createEntityBuilder()
.addClass("books")
.addLink(linkBuilder.forBooks(uriInfo), "self");
books.stream().map(b -> buildBookTeaser(b, uriInfo)).forEach(entityBuilder::addEntity);
return entityBuilder.build();
}
private JsonObject buildBookTeaser(Book book, UriInfo uriInfo) {
return createEntityBuilder()
.addSubEntityRel("item")
.addProperty("name", book.getName())
.addProperty("author", book.getAuthor())
.addLink(linkBuilder.forBook(book, uriInfo), "self")
.build();
}
public JsonObject buildBook(Book book, boolean addToCartActionIncluded, UriInfo uriInfo) {
final com.sebastian_daschner.siren4javaee.EntityBuilder entityBuilder = createEntityBuilder()
.addClass("book")
.addProperty("isbn", book.getIsbn())
.addProperty("name", book.getName())
.addProperty("author", book.getAuthor())
.addProperty("availability", book.getAvailability().toString())
.addProperty("price", book.getPrice())
.addLink(linkBuilder.forBook(book, uriInfo), "self");
if (addToCartActionIncluded)
entityBuilder.addAction(createActionBuilder()
.setName("add-to-cart")
.setTitle("Add book to cart")
.setMethod(HttpMethod.POST)
.setHref(linkBuilder.forShoppingCart(uriInfo))
.setType(MediaType.APPLICATION_JSON)
.addField("isbn", FieldType.TEXT)
.addField("quantity", FieldType.NUMBER));
return entityBuilder.build();
}
public JsonObject buildShoppingCart(ShoppingCartSelection cart, UriInfo uriInfo) {
final com.sebastian_daschner.siren4javaee.EntityBuilder entityBuilder = createEntityBuilder()
.addClass("shopping-cart")
.addProperty("price", cart.getPrice())
.addAction(createActionBuilder()
.setName("checkout")
.setTitle("Checkout shopping cart")
.setMethod(HttpMethod.POST)
.setHref(linkBuilder.forOrders(uriInfo)))
.addLink(linkBuilder.forShoppingCart(uriInfo), "self");
cart.getSelections().stream().map(s -> buildBookSelection(s, uriInfo, true, true)).forEach(entityBuilder::addEntity);
return entityBuilder.build();
}
public JsonObject buildShoppingCartSelection(BookSelection selection, UriInfo uriInfo) {
return buildBookSelection(selection, uriInfo, true, false);
}
public JsonObject buildOrders(List<Order> orders, UriInfo uriInfo) {
final com.sebastian_daschner.siren4javaee.EntityBuilder entityBuilder = createEntityBuilder()
.addClass("orders")
.addLink(linkBuilder.forOrders(uriInfo), "self");
orders.stream().map(o -> buildOrderTeaser(o, uriInfo)).forEach(entityBuilder::addEntity);
return entityBuilder.build();
}
private JsonObject buildOrderTeaser(Order order, UriInfo uriInfo) {
return createPreparedOrderBuilder(order, uriInfo).addSubEntityRel("item").build();
}
public JsonObject buildOrder(Order order, UriInfo uriInfo) {
final com.sebastian_daschner.siren4javaee.EntityBuilder entityBuilder = createPreparedOrderBuilder(order, uriInfo).addClass("order");
order.getSelections().stream().map(s -> buildBookSelection(s, uriInfo, false, true)).forEach(entityBuilder::addEntity);
return entityBuilder.build();
}
private com.sebastian_daschner.siren4javaee.EntityBuilder createPreparedOrderBuilder(final Order order, final UriInfo uriInfo) {
return createEntityBuilder()
.addProperty("date", order.getDate().toString())
.addProperty("price", order.getPrice())
.addProperty("status", order.getStatus().toString())
.addLink(linkBuilder.forOrder(order, uriInfo), "self");
}
private JsonObject buildBookSelection(BookSelection selection, UriInfo uriInfo, boolean hypertextIncluded, boolean asSubEntity) {
final Book book = selection.getBook();
final com.sebastian_daschner.siren4javaee.EntityBuilder entityBuilder = createEntityBuilder()
.addClass("book-selection")
.addProperty("quantity", selection.getQuantity())
.addProperty("price", selection.getPrice())
.addEntity(createEntityBuilder()
.addClass("book")
.addSubEntityRel("item")
.addProperty("isbn", book.getIsbn())
.addProperty("name", book.getName())
.addProperty("price", book.getPrice())
.addLink(linkBuilder.forBook(book, uriInfo), "self"));
if (asSubEntity)
entityBuilder.addSubEntityRel("item");
if (hypertextIncluded) {
entityBuilder
.addAction(createActionBuilder()
.setName("modify-book-selection")
.setTitle("Modify book cart selection")
.setMethod(HttpMethod.PUT)
.setHref(linkBuilder.forBookSelection(selection, uriInfo))
.setType(MediaType.APPLICATION_JSON)
.addField("quantity", FieldType.NUMBER))
.addAction(createActionBuilder()
.setName("delete-book-selection")
.setTitle("Delete book cart selection")
.setMethod(HttpMethod.DELETE)
.setHref(linkBuilder.forBookSelection(selection, uriInfo)))
.addLink(linkBuilder.forBookSelection(selection, uriInfo), "self");
}
return entityBuilder.build();
}
}
| 46.440994 | 141 | 0.637823 |
4c64bf7ac793cfbd6fdc95032dc0c210f8b24eeb | 3,101 | /*
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 *
http://www.apache.org/licenses/LICENSE-2.0 *
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. */
package org.apache.streams.util.oauth.tokens.tokenmanager.impl;
import org.apache.streams.util.oauth.tokens.AbstractOauthToken;
import org.apache.streams.util.oauth.tokens.tokenmanager.SimpleTokenManager;
import java.util.ArrayList;
import java.util.Collection;
/**
* Manages a pool of tokens the most basic possible way. If all tokens are added to the manager before {@link BasicTokenManger#getNextAvailableToken() getNextAvailableToken}
* is called tokens are issued in the order they were added to the manager, FIFO. The BasicTokenManager acts as a circular queue
* of tokens. Once the manager issues all available tokens it will cycle back to the first token and start issuing tokens again.
*
* When adding tokens to the pool of available tokens, the manager will not add tokens that are already in the pool.
*
* The manager class is thread safe.
*/
public class BasicTokenManger<T> implements SimpleTokenManager<T>{
private ArrayList<T> availableTokens;
private int nextToken;
public BasicTokenManger() {
this(null);
}
public BasicTokenManger(Collection<T> tokens) {
if(tokens != null) {
this.availableTokens = new ArrayList<T>(tokens.size());
this.addAllTokensToPool(tokens);
} else {
this.availableTokens = new ArrayList<T>();
}
this.nextToken = 0;
}
@Override
public synchronized boolean addTokenToPool(T token) {
if(token == null || this.availableTokens.contains(token))
return false;
else
return this.availableTokens.add(token);
}
@Override
public synchronized boolean addAllTokensToPool(Collection<T> tokens) {
int startSize = this.availableTokens.size();
for(T token : tokens) {
this.addTokenToPool(token);
}
return startSize < this.availableTokens.size();
}
@Override
public synchronized T getNextAvailableToken() {
T token = null;
if(this.availableTokens.size() == 0) {
return token;
} else {
token = this.availableTokens.get(nextToken++);
if(nextToken == this.availableTokens.size()) {
nextToken = 0;
}
return token;
}
}
@Override
public synchronized int numAvailableTokens() {
return this.availableTokens.size();
}
}
| 35.643678 | 174 | 0.692357 |
f87eafd981e3a61cf2c53f925f3978172c6974ad | 458 | package cl.uchile.dcc.scrabble.model.hidden_layer.hidden_types.interfaces;
import cl.uchile.dcc.scrabble.model.types.TypeFloat;
/**
* An interface to represent a HiddenFloat or a HiddenNull
*
* @author Francisco Muñoz Guajardo
* @create 2021/07/23 19:35
*/
public interface HFloat extends HNumber {
/**
* Returns the value as a {@code TypeFloat}
*
* @return the value as a {@code TypeFloat}
*/
TypeFloat asTypeFloat();
}
| 21.809524 | 74 | 0.694323 |
e7d41ad5c2bf0da76c65abb386eee4a447bc4858 | 4,041 | package frc.util.math;
public final class Convert {
// #region encoders
public static enum Encoder {
VersaPlanetaryIntegrated(1024.0),
TalonFXIntegrated(2048.0),
CTREMagEncoder(4096.0);
public final double ticksPerRevolution;
Encoder(double ticksPerRevolution) {
this.ticksPerRevolution = ticksPerRevolution;
}
}
public static double encoderPosToRevolutions(
double sensorUnits, double gearRatio, Encoder encoder) {
return sensorUnits / encoder.ticksPerRevolution * gearRatio;
}
public static double revolutionsToEncoderPos(
double revolutions, double gearRatio, Encoder encoder) {
return revolutions / gearRatio * encoder.ticksPerRevolution;
}
public static double encoderPosToAngle(double sensorUnits, double gearRatio, Encoder encoder) {
return encoderPosToRevolutions(sensorUnits, gearRatio, encoder) * 360.0;
}
public static double angleToEncoderPos(double angle, double gearRatio, Encoder encoder) {
return revolutionsToEncoderPos(angle / 360.0, gearRatio, encoder);
}
/** @return distance (meters) that a winch would pull or wheel would travel */
public static double encoderPosToDistance(
double sensorUnits, double gearRatio, double diameter, Encoder encoder) {
return encoderPosToRevolutions(sensorUnits, gearRatio, encoder) * (diameter * Math.PI);
}
public static double distanceToEncoderPos(
double distance, double gearRatio, double diameter, Encoder encoder) {
return revolutionsToEncoderPos(distance / (diameter * Math.PI), gearRatio, encoder);
}
public static double encoderVelToRevsPerSec(
double sensorUnits, double gearRatio, Encoder encoder) {
return sensorUnits * 10.0 / encoder.ticksPerRevolution * gearRatio;
}
public static double revsPerSecToEncoderVel(
double revsPerSec, double gearRatio, Encoder encoder) {
return revsPerSec / gearRatio * encoder.ticksPerRevolution / 10.0;
}
/** @return encoder ticks per 100ms */
public static double rpmToEncoderVel(double rpm, double gearRatio, Encoder encoder) {
return revsPerSecToEncoderVel(rpm / 60.0, gearRatio, encoder);
}
public static double encoderVelToRpm(
double sensorUnitsPer100ms, double gearRatio, Encoder encoder) {
return encoderVelToRevsPerSec(sensorUnitsPer100ms, gearRatio, encoder) * 60.0;
}
/** @return encoder ticks per 100ms */
public static double angularVelToEncoderVel(double degPerSec, double gearRatio, Encoder encoder) {
return revsPerSecToEncoderVel(degPerSec / 360.0, gearRatio, encoder);
}
public static double encoderVelToAngularVel(
double sensorUnitsPer100ms, double gearRatio, Encoder encoder) {
return encoderVelToRevsPerSec(sensorUnitsPer100ms, gearRatio, encoder) * 360.0;
}
/** @return (encoder ticks per 100ms) per second */
public static double angularAccelToEncoderAccel(
double degPerSecPerSec, double gearRatio, Encoder encoder) {
return revsPerSecToEncoderVel(degPerSecPerSec / 360.0, gearRatio, encoder);
}
public static double encoderVelToSpeed(
double sensorUnitsPer100ms, double gearRatio, double diameter, Encoder encoder) {
return encoderVelToRevsPerSec(sensorUnitsPer100ms, gearRatio, encoder) * (diameter * Math.PI);
}
public static double speedToEncoderVel(
double speed, double gearRatio, double diameter, Encoder encoder) {
return revsPerSecToEncoderVel(speed / (diameter * Math.PI), gearRatio, encoder);
}
public static double accelToEncoderAccel(
double accel, double gearRatio, double diameter, Encoder encoder) {
return speedToEncoderVel(accel, gearRatio, diameter, encoder);
}
// #endregion
// #region units
public static final double inchesToMeters(double inches) {
return inches * 0.0254;
}
public static final double feetToMeters(double feet, double inches) {
return inchesToMeters((feet * 12) + inches);
}
public static final double metersToInches(double meters) {
return meters / 0.0254;
}
// #endregion
}
| 34.245763 | 100 | 0.744865 |
671c1f9e160197dcb3b6b3aa6344556a555ab03f | 12,861 | /*******************************************************************************
* PathVisio, a tool for data visualization and analysis using biological pathways
* Copyright 2006-2021 BiGCaT Bioinformatics, WikiPathways
*
* Licensed 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
******************************************************************************/
package org.pathvisio.model;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.List;
import org.bridgedb.Xref;
import org.pathvisio.events.PathwayObjectEvent;
import org.pathvisio.model.DataNode.State;
import org.pathvisio.model.type.GroupType;
import org.pathvisio.props.StaticProperty;
import org.pathvisio.util.Utils;
/**
* This class stores all information relevant to a Group pathway element.
*
* @author finterly
*/
public class Group extends ShapedElement {
private GroupType type = GroupType.GROUP;
private String textLabel; // optional
private Xref xref; // optional
/* list of pathway elements which belong to the group. */
private List<Groupable> pathwayElements; // should have at least one pathway element
// ================================================================================
// Constructors
// ================================================================================
/**
* Instantiates a Group given all required parameters and xref.
*
* @param type the type of the group.
* @param xref the group Xref.
*/
public Group(GroupType type, Xref xref) {
super();
this.type = type;
this.xref = xref;
this.pathwayElements = new ArrayList<Groupable>();
}
/**
* Instantiates a Group given all required parameters.
*/
public Group(GroupType type) {
this(type, null);
}
// ================================================================================
// Accessors
// ================================================================================
/**
* Returns the list of pathway element members of the group.
*
* @return pathwayElements the list of pathway elements belonging to the group.
*/
public List<Groupable> getPathwayElements() {
return pathwayElements;
}
/**
* Checks whether pathwayElements has the given pathwayElement.
*
* @param pathwayElement the pathway element to look for.
* @return true if has pathwayElement, false otherwise.
*/
public boolean hasPathwayElement(Groupable pathwayElement) {
return pathwayElements.contains(pathwayElement);
}
/**
* Adds the given pathway element to pathwayElements list of this group. Checks
* if pathway element is valid. Sets groupRef of pathway element to this group
* if necessary.
*
* NB: States are not added to group pathway elements lists. States appear
* outside of groups in the view.
*
* @param pathwayElement the given pathwayElement to add.
*/
public void addPathwayElement(Groupable pathwayElement) {
if (pathwayElement == null) {
throw new IllegalArgumentException("Cannot add invalid pathway element to group " + getElementId());
}
if (getPathwayModel() != pathwayElement.getPathwayModel()) {
throw new IllegalArgumentException("Group can only add pathway elements of the same pathway model");
}
// do not add if pathway element is a state
if (pathwayElement.getClass() != State.class) {
// set groupRef for pathway element if necessary
if (pathwayElement.getGroupRef() == null || pathwayElement.getGroupRef() != this)
pathwayElement.setGroupRefTo(this);
// add pathway element to this group
if (pathwayElement.getGroupRef() == this && !hasPathwayElement(pathwayElement))
pathwayElements.add(pathwayElement);
}
}
/**
* Removes the given pathway element from pathwayElements list of the group.
* Checks if pathway element is valid. Unsets groupRef of pathway element from
* this group if necessary.
*
* @param pathwayElement the given pathwayElement to remove.
*/
public void removePathwayElement(Groupable pathwayElement) {
if (pathwayElement != null) {
pathwayElement.unsetGroupRef();
pathwayElements.remove(pathwayElement);
}
// remove group if its empty, and refers to and belongs to the pathway model
if (pathwayElements.isEmpty() && pathwayModel != null && pathwayModel.hasPathwayObject(this)) {
pathwayModel.removeGroup(this);
}
}
/**
* Adds the given list of pathway elements to pathwayElements list of this
* group.
*
* @param pathwayElements the given list of pathwayElement to add.
*/
public void addPathwayElements(List<? extends Groupable> pathwayElements) {
for (Groupable pathwayElement : pathwayElements) {
addPathwayElement(pathwayElement);
}
}
/**
* Removes all pathway elements from the pathwayElements list.
*/
public void removePathwayElements() {
for (int i = pathwayElements.size() - 1; i >= 0; i--) {
removePathwayElement(pathwayElements.get(i));
}
}
/**
* Returns GroupType. GroupType is GROUP by default.
*
* @return type the type of group, e.g. complex.
*/
public GroupType getType() {
return type;
}
/**
* Sets GroupType to the given groupType.
*
* @param v the type to set for this group, e.g. complex.
*/
public void setType(GroupType v) {
if (type != v && v != null) {
type = v;
fireObjectModifiedEvent(PathwayObjectEvent.createSinglePropertyEvent(this, StaticProperty.GROUPTYPE));
}
}
/**
* Returns the text of of this group.
*
* @return textLabel the text of of this group.
*
*/
@Override
public String getTextLabel() {
return textLabel;
}
/**
* Sets the text of this shaped pathway element.
*
* @param v the text to set.
*/
@Override
public void setTextLabel(String v) {
if (v != null && !Utils.stringEquals(textLabel, v)) {
textLabel = v;
fireObjectModifiedEvent(PathwayObjectEvent.createSinglePropertyEvent(this, StaticProperty.TEXTLABEL));
}
}
/**
* Returns the Xref for the group.
*
* @return xref the xref of this group
*/
public Xref getXref() {
return xref;
}
/**
* Sets the Xref for this group.
*
* @param v the xref to set for this group.
*/
public void setXref(Xref v) {
if (v != null) {
xref = v;
// TODO
fireObjectModifiedEvent(PathwayObjectEvent.createSinglePropertyEvent(this, StaticProperty.XREF));
}
}
// ================================================================================
// Special Methods
// ================================================================================
/**
* Creates and returns an Alias data node for this group. TODO
*/
public DataNode createAlias(String textLabel) {
if (pathwayModel != null) {
DataNode alias = new DataNode(textLabel, this);
return alias;
}
System.out.println("Cannot create an alias for group without valid pathway model.");
return null;
}
/**
* Terminates this group. The pathway model and pathway elements, if any, are
* unset or removed from this group. Links to all annotationRefs, citationRefs,
* and evidenceRefs are removed from this group.
*/
@Override
protected void terminate() {
removePathwayElements();
super.terminate();
}
// ================================================================================
// Bounds Methods
// ================================================================================
/**
* Default margins for group bounding-box in GPML2013a. Makes the bounds
* slightly larger than the summed bounds of the containing elements.
*/
public static final double DEFAULT_M_MARGIN = 8;
public static final double COMPLEX_M_MARGIN = 12;
/**
* Returns margin for group bounding-box around contained elements depending on
* group type, as specified in GPML2013a.
*
* @return the margin for group.
*/
public double getMargin() {
if (type == GroupType.COMPLEX) {
return COMPLEX_M_MARGIN;
} else {
return DEFAULT_M_MARGIN;
}
}
/**
* Center x of the group bounds
*/
@Override
public double getCenterX() {
return getRotatedBounds().getCenterX();
}
/**
* Center y of the group bounds
*/
@Override
public double getCenterY() {
return getRotatedBounds().getCenterY();
}
/**
* Width of the group bounds
*/
@Override
public double getWidth() {
return getRotatedBounds().getWidth();
}
/**
* Height of the group bounds
*/
@Override
public double getHeight() {
return getRotatedBounds().getHeight();
}
/**
* Left of the group bounds
*/
@Override
public double getLeft() {
return getRotatedBounds().getX();
}
/**
* Top of the group bounds
*/
@Override
public double getTop() {
return getRotatedBounds().getY();
}
@Override
public void setCenterX(double v) {
double d = v - getRotatedBounds().getCenterX();
for (Groupable e : pathwayElements) {
e.setCenterX(e.getCenterX() + d); // TODO PROBLEM!
}
}
@Override
public void setCenterY(double v) {
double d = v - getRotatedBounds().getCenterY();
for (Groupable e : pathwayElements) {
e.setCenterY(e.getCenterY() + d); // TODO PROBLEM!
}
}
@Override
public void setWidth(double v) {
double d = v - getRotatedBounds().getWidth();
for (Groupable e : pathwayElements) {
if (e instanceof ShapedElement) {
((ShapedElement) e).setWidth(e.getWidth() + d); //// TODO PROBLEM!
}
}
}
@Override
public void setHeight(double v) {
double d = v - getRotatedBounds().getHeight();
for (Groupable e : pathwayElements) {
if (e instanceof ShapedElement) {
((ShapedElement) e).setHeight(e.getHeight() + d);
} //// TODO PROBLEM!
}
}
@Override
public void setLeft(double v) {
double d = v - getRotatedBounds().getX();
for (Groupable e : pathwayElements) {
e.setLeft(e.getLeft() + d); //// TODO PROBLEM!
}
}
@Override
public void setTop(double v) {
double d = v - getRotatedBounds().getY();
for (Groupable e : pathwayElements) {
e.setTop(e.getTop() + d); //// TODO PROBLEM!
}
}
/**
* Iterates over all group elements to find the total rectangular bounds, taking
* into account rotation of the nested elements
*
* @return the rectangular bounds for this group with rotation taken into
* account.
*/
@Override
public Rectangle2D getRotatedBounds() {
Rectangle2D bounds = null;
for (Groupable e : pathwayElements) {
if (e == this) {
continue; // To prevent recursion error
}
if (bounds == null) {
bounds = e.getRotatedBounds();
} else {
bounds.add(e.getRotatedBounds());
}
}
if (bounds != null) {
double margin = getMargin();
return new Rectangle2D.Double(bounds.getX() - margin, bounds.getY() - margin,
bounds.getWidth() + 2 * margin, bounds.getHeight() + 2 * margin);
} else {
return new Rectangle2D.Double();
}
}
/**
* Iterates over all group elements to find the total rectangular bounds. Note:
* doesn't include rotation of the nested elements. If you want to include
* rotation, use {@link #getRotatedBounds()} instead.
*
* @return the rectangular bounds for this group.
*/
@Override
public Rectangle2D getBounds() {
Rectangle2D bounds = null;
for (Groupable e : pathwayElements) {
if (e == this) {
continue; // To prevent recursion error
}
if (bounds == null) {
bounds = e.getBounds();
} else {
bounds.add(e.getBounds());
}
}
if (bounds != null) {
double margin = getMargin();
return new Rectangle2D.Double(bounds.getX() - margin, bounds.getY() - margin,
bounds.getWidth() + 2 * margin, bounds.getHeight() + 2 * margin);
} else {
return new Rectangle2D.Double();
}
}
// ================================================================================
// Copy Methods
// ================================================================================
/**
* Note: doesn't change parent, only fields
*
* Used by UndoAction.
*
* @param src
*/
public void copyValuesFrom(Group src) { // TODO
super.copyValuesFrom(src);
textLabel = src.textLabel;
type = src.type;
xref = src.xref;
fireObjectModifiedEvent(PathwayObjectEvent.createAllPropertiesEvent(this));
}
/**
* Copy Object. The object will not be part of the same Pathway object, it's
* parent will be set to null.
*
* No events will be sent to the parent of the original.
*/
public Group copy() {
Group result = new Group(type); // TODO
result.copyValuesFrom(this);
return result;
}
}
| 27.837662 | 105 | 0.636109 |
f1820b723ab048530c1f8708baa6e914cbb61612 | 1,220 | package com.elegion.tracktor.util;
import android.arch.lifecycle.ViewModel;
import android.arch.lifecycle.ViewModelProvider;
import android.support.annotation.NonNull;
import com.elegion.tracktor.App;
import com.elegion.tracktor.data.IRepository;
import com.elegion.tracktor.data.RealmRepository;
import com.elegion.tracktor.data.model.Track;
import com.elegion.tracktor.ui.map.MainViewModel;
import com.elegion.tracktor.ui.results.ResultsViewModel;
import javax.inject.Inject;
import toothpick.Toothpick;
/**
* @author Azret Magometov
*/
public class CustomViewModelFactory extends ViewModelProvider.NewInstanceFactory {
@Inject
IRepository<Track> mRepository;
public CustomViewModelFactory() {
Toothpick.inject(this, App.getAppScope());
}
@NonNull
@Override
//новая реализауия
public <T extends ViewModel> T create(@NonNull Class<T> modelClass) {
if(modelClass.isAssignableFrom(ResultsViewModel.class)){
return (T) new ResultsViewModel();
}
if(modelClass.isAssignableFrom(MainViewModel.class)){
return (T) new MainViewModel();
}
throw new IllegalArgumentException("Wrong ViewModel class");
}
}
| 24.897959 | 82 | 0.734426 |
b11a96312d1b0aa2b7b90f8d23825100874cc919 | 232 | import javax.swing.JFrame;
public class Main {
public static void main(String[] args) {
// Afficher la fenêtre d'accueil
User user = new User();
user.setVisible(true); //On la rend visible
}
}
| 14.5 | 51 | 0.603448 |
691083b39a810ce5d6796ea92c87742344367d2a | 1,412 | /*
*
* Copyright (c) 2006-2020, Speedment, Inc. All Rights Reserved.
*
* Licensed 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:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package com.speedment.runtime.compute.trait;
import static org.junit.jupiter.api.Assertions.*;
import com.speedment.runtime.compute.ToBooleanNullable;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
final class ToNullableTest {
private final ToBooleanNullable<String> instance = string -> string == null ?
null : string.length() > 2;
@Test
void isNull() {
assertNotNull(instance.isNull());
assertTrue(instance.isNull(null));
}
@ParameterizedTest
@ValueSource(strings = {"a", "bc", "foo", "test"})
void isNotNull(String input) {
assertNotNull(instance.isNotNull());
assertTrue(instance.isNotNull(input));
}
}
| 32.090909 | 81 | 0.713881 |
87775af5c4c31903a0885e0017d90741c0a97648 | 330 | public class M_Pedir_Fich extends Mensaje{
private String fich;
private String user;
public M_Pedir_Fich(String fich, String user){
super(4);
this.fich=fich;
this.user = user;
}
public String getFich() {
return fich;
}
public String getUser() {
return user;
}
}
| 15.714286 | 50 | 0.59697 |
71d930c6164ac52978ed66c3cba7141af8140fb1 | 3,309 | package com.blamejared.crafttweaker.impl.util.text;
import com.blamejared.crafttweaker.api.annotations.*;
import com.blamejared.crafttweaker_annotations.annotations.*;
import net.minecraft.util.text.*;
import org.openzen.zencode.java.*;
@ZenRegister
@ZenCodeType.Name("crafttweaker.api.util.text.MCStyle")
@Document("vanilla/api/util/text/MCStyle")
@ZenWrapper(wrappedClass = "net.minecraft.util.text.Style", conversionMethodFormat = "%s.getInternal()", displayStringFormat = "%s.toString()")
public class MCStyle {
private final Style internal;
public MCStyle(Style internal) {
this.internal = internal;
}
@ZenCodeType.Constructor
public MCStyle() {
this(Style.EMPTY);
}
public Style getInternal() {
return this.internal;
}
/**
* Whether or not this style is empty (inherits everything from the parent).
*/
@ZenCodeType.Method
public boolean isEmpty() {
return internal.isEmpty();
}
@ZenCodeType.Method
public boolean getBold() {
return internal.getBold();
}
@ZenCodeType.Method
public MCStyle setBold(Boolean boldIn) {
Style set = internal.setBold(boldIn);
return set == internal ? this : new MCStyle(set);
}
@ZenCodeType.Method
public int hashCode() {
return internal.hashCode();
}
@ZenCodeType.Method
public boolean getObfuscated() {
return internal.getObfuscated();
}
@ZenCodeType.Method
public MCStyle setObfuscated(Boolean obfuscated) {
Style set = internal.setObfuscated(obfuscated);
return set == internal ? this : new MCStyle(set);
}
@ZenCodeType.Method
public boolean equals(Object other) {
return other instanceof MCStyle && internal.equals(other);
}
@ZenCodeType.Method
public boolean getItalic() {
return internal.getItalic();
}
@ZenCodeType.Method
public MCStyle setItalic(Boolean italic) {
Style set = internal.setItalic(italic);
return set == internal ? this : new MCStyle(set);
}
@ZenCodeType.Method
public String toString() {
return internal.toString();
}
@ZenCodeType.Method
public boolean getStrikethrough() {
return internal.getStrikethrough();
}
@ZenCodeType.Method
public MCStyle setStrikethrough(Boolean strikethrough) {
Style set = internal.setStrikethrough(strikethrough);
return set == internal ? this : new MCStyle(set);
}
@ZenCodeType.Method
public boolean getUnderlined() {
return internal.getUnderlined();
}
@ZenCodeType.Method
public MCStyle setUnderlined(Boolean underlined) {
Style set = internal.setUnderlined(underlined);
return set == internal ? this : new MCStyle(set);
}
@ZenCodeType.Method
public String getInsertion() {
return internal.getInsertion();
}
/**
* Set a text to be inserted into Chat when the component is shift-clicked
*/
@ZenCodeType.Method
public MCStyle setInsertion(String insertion) {
Style set = internal.setInsertion(insertion);
return set == internal ? this : new MCStyle(set);
}
}
| 26.902439 | 143 | 0.643095 |
fbd3ddf99c45bf4bfaed0efe033bd3cb9c90ac1d | 7,952 | /*
* Copyright 2019 Miroslav Pokorny (github.com/mP1)
*
* Licensed 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*
*/
package walkingkooka.j2cl.java.text;
/**
* Represents the different states when parsing a number pattern, except for escaped/quoted character literals.
*/
enum DecimalFormatPatternParserNumberMode {
/**
* Handles parsing the integer portion of a pattern
*/
PREFIX {
@Override
void decimalSeparator(final DecimalFormatPatternParserNumber parser) {
parser.decimalSeparator();
parser.setMode(FRACTION);
}
@Override
void exponent(final DecimalFormatPatternParserNumber parser) {
this.nonSpecialChar(DecimalFormat.EXPONENT, parser);
}
@Override
void groupingSeparator(final DecimalFormatPatternParserNumber parser) {
parser.failInvalidCharacter();
}
@Override
void hash(final DecimalFormatPatternParserNumber parser) {
parser.setMode(INTEGER);
parser.hash();
}
@Override
void nonSpecialChar(final char c,
final DecimalFormatPatternParserNumber parser) {
parser.prefix.add(DecimalFormatPatternComponent.characterLiteral(c));
}
@Override
void subPatternSeparator(final DecimalFormatPatternParserNumber parser) {
parser.failInvalidCharacter();
}
@Override
void zero(final DecimalFormatPatternParserNumber parser) {
parser.setMode(INTEGER);
parser.zero();
}
},
/**
* Handles parsing the integer portion of a pattern
*/
INTEGER {
@Override
void decimalSeparator(final DecimalFormatPatternParserNumber parser) {
parser.decimalSeparator();
parser.setMode(FRACTION);
}
@Override
void exponent(final DecimalFormatPatternParserNumber parser) {
parser.exponent();
parser.setMode(EXPONENT);
}
@Override
void groupingSeparator(final DecimalFormatPatternParserNumber parser) {
parser.groupingSeparator();
}
@Override
void hash(final DecimalFormatPatternParserNumber parser) {
parser.hash();
}
@Override
void nonSpecialChar(final char c,
final DecimalFormatPatternParserNumber parser) {
parser.addCharacterLiteral(c);
}
@Override
void subPatternSeparator(final DecimalFormatPatternParserNumber parser) {
parser.subPatternSeparator();
}
@Override
void zero(final DecimalFormatPatternParserNumber parser) {
parser.zero();
}
},
FRACTION {
@Override
void decimalSeparator(final DecimalFormatPatternParserNumber parser) {
parser.failInvalidCharacter();
}
@Override
void exponent(final DecimalFormatPatternParserNumber parser) {
parser.exponent();
}
@Override
void groupingSeparator(final DecimalFormatPatternParserNumber parser) {
parser.failInvalidCharacter();
}
@Override
void hash(final DecimalFormatPatternParserNumber parser) {
parser.hash();
parser.fractionHash = true;
}
@Override
void nonSpecialChar(final char c,
final DecimalFormatPatternParserNumber parser) {
parser.addCharacterLiteral(c);
}
@Override
void subPatternSeparator(final DecimalFormatPatternParserNumber parser) {
parser.subPatternSeparator();
}
@Override
void zero(final DecimalFormatPatternParserNumber parser) {
// fraction then zeroes after hash hashes fails
if (parser.fractionHash) {
parser.failInvalidCharacter();
}
parser.zero();
}
},
EXPONENT {
@Override
void decimalSeparator(final DecimalFormatPatternParserNumber parser) {
parser.failInvalidCharacter();
}
@Override
void exponent(final DecimalFormatPatternParserNumber parser) {
parser.failInvalidCharacter();
}
@Override
void groupingSeparator(final DecimalFormatPatternParserNumber parser) {
parser.failInvalidCharacter();
}
@Override
void hash(final DecimalFormatPatternParserNumber parser) {
parser.failInvalidCharacter();
}
@Override
void nonSpecialChar(final char c,
final DecimalFormatPatternParserNumber parser) {
parser.failInvalidCharacter();
}
@Override
void subPatternSeparator(final DecimalFormatPatternParserNumber parser) {
parser.subPatternSeparator();
}
@Override
void zero(final DecimalFormatPatternParserNumber parser) {
parser.zero();
}
};
final void handle(final char c, final DecimalFormatPatternParserNumber parser) {
switch (c) {
case DecimalFormat.CURRENCY:
this.currency(parser);
break;
case DecimalFormat.DECIMAL_SEPARATOR:
this.decimalSeparator(parser);
break;
case DecimalFormat.EXPONENT:
this.exponent(parser);
break;
case DecimalFormat.GROUPING_SEPARATOR:
this.groupingSeparator(parser);
break;
case DecimalFormat.HASH:
this.hash(parser);
break;
case DecimalFormat.MINUS_SIGN:
this.minusSign(parser);
break;
case DecimalFormat.PERCENT:
this.percent(parser);
break;
case DecimalFormat.PER_MILLE:
this.perMille(parser);
break;
case DecimalFormat.SUB_PATTERN_SEPARATOR:
this.subPatternSeparator(parser);
break;
case DecimalFormat.ZERO:
this.zero(parser);
break;
default:
this.nonSpecialChar(c, parser);
break;
}
}
final void currency(final DecimalFormatPatternParserNumber parser) {
parser.currency();
}
abstract void decimalSeparator(final DecimalFormatPatternParserNumber parser);
abstract void exponent(final DecimalFormatPatternParserNumber parser);
abstract void groupingSeparator(final DecimalFormatPatternParserNumber parser);
abstract void hash(final DecimalFormatPatternParserNumber parser);
final void minusSign(final DecimalFormatPatternParserNumber parser) {
parser.minusSign();
}
abstract void nonSpecialChar(final char c,
final DecimalFormatPatternParserNumber parser);
final void percent(final DecimalFormatPatternParserNumber parser) {
parser.percent();
}
final void perMille(final DecimalFormatPatternParserNumber parser) {
parser.perMille();
}
abstract void subPatternSeparator(final DecimalFormatPatternParserNumber parser);
abstract void zero(final DecimalFormatPatternParserNumber parser);
}
| 30.467433 | 111 | 0.61494 |
63c1fa8703652c1875316d394d1abaad401ec825 | 1,111 | /*
* Copyright (c) 2021. Enrico Daga and Luca Panziera
*
* MLicensed 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package io.github.basilapi.basil.swagger;
import org.junit.Assert;
import org.junit.Test;
import java.net.URI;
import java.net.URISyntaxException;
public class SwaggerUIBuilderTest {
@Test
public void test() throws URISyntaxException {
String response = SwaggerUIBuilder.build(new URI("http://127.0.0.1:8080/basil/5134r243t/api-docs"));
Assert.assertTrue(response.contains("\"/basil/5134r243t/api-docs\""));
// System.err.println(response);
}
}
| 32.676471 | 108 | 0.721872 |
23ce9ad8c38ef5fdd063ec1d2dff540c6b279e0a | 395 | package com.packt.spring.acl;
import java.util.List;
public interface BookService {
public enum Permission {
READ, WRITE
}
public void createBook(Book book);
public Book findBookById(long id);
public List<Book> findAllBooks();
public void updateBook(Book book);
public void grantPermission(String principal, Book book,
Permission[] permissions);
}
| 17.954545 | 61 | 0.698734 |
e3663b1ceac09e811e7a9b61348541e85058eadb | 1,302 | package rocks.cleanstone.endpoint.minecraft.bedrock.net.packet.outbound;
import rocks.cleanstone.endpoint.minecraft.bedrock.net.packet.BedrockOutboundPacketType;
import rocks.cleanstone.endpoint.minecraft.bedrock.net.packet.data.ResourcePackIdVersions;
import rocks.cleanstone.net.packet.Packet;
import rocks.cleanstone.net.packet.PacketType;
public class ResourcePackStackPacket implements Packet {
private final boolean mustAccept;
private final ResourcePackIdVersions behaviorPackIdVersions;
private final ResourcePackIdVersions resourcePackIdVersions;
public ResourcePackStackPacket(boolean mustAccept, ResourcePackIdVersions behaviorPackIdVersions, ResourcePackIdVersions resourcePackIdVersions) {
this.mustAccept = mustAccept;
this.behaviorPackIdVersions = behaviorPackIdVersions;
this.resourcePackIdVersions = resourcePackIdVersions;
}
public boolean getMustAccept() {
return mustAccept;
}
public ResourcePackIdVersions getBehaviorPackIdVersions() {
return behaviorPackIdVersions;
}
public ResourcePackIdVersions getResourcePackIdVersions() {
return resourcePackIdVersions;
}
@Override
public PacketType getType() {
return BedrockOutboundPacketType.RESOURCE_PACK_STACK;
}
}
| 34.263158 | 150 | 0.789555 |
2e672b18aa9668611d083109074d8dd8211b2262 | 2,342 | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
/**
* CROpenItemProcedureControlOutputModel
*/
public class CROpenItemProcedureControlOutputModel {
private String openItemProcedureControlActionTaskReference = null;
private Object openItemProcedureControlActionTaskRecord = null;
private String openItemProcedureControlActionResponse = null;
/**
* `status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::ISO20022andUNCEFACT::Identifier general-info: Reference to a Open Item Procedure instance control processing service call
* @return openItemProcedureControlActionTaskReference
**/
public String getOpenItemProcedureControlActionTaskReference() {
return openItemProcedureControlActionTaskReference;
}
public void setOpenItemProcedureControlActionTaskReference(String openItemProcedureControlActionTaskReference) {
this.openItemProcedureControlActionTaskReference = openItemProcedureControlActionTaskReference;
}
/**
* `status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Binary general-info: The processing control service call consolidated processing record
* @return openItemProcedureControlActionTaskRecord
**/
public Object getOpenItemProcedureControlActionTaskRecord() {
return openItemProcedureControlActionTaskRecord;
}
public void setOpenItemProcedureControlActionTaskRecord(Object openItemProcedureControlActionTaskRecord) {
this.openItemProcedureControlActionTaskRecord = openItemProcedureControlActionTaskRecord;
}
/**
* `status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Text general-info: Details of the control action service response
* @return openItemProcedureControlActionResponse
**/
public String getOpenItemProcedureControlActionResponse() {
return openItemProcedureControlActionResponse;
}
public void setOpenItemProcedureControlActionResponse(String openItemProcedureControlActionResponse) {
this.openItemProcedureControlActionResponse = openItemProcedureControlActionResponse;
}
}
| 36.030769 | 215 | 0.821947 |
3fc13b861bc727d5d8f6812c096e6b1688dd8787 | 364 | package br.com.zupacademy.transacao;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;
@Component
public class TransacaoService {
@KafkaListener(topics = "transacoes")
public void ouvir(Transacao eventoDeTransacao) {
System.out.println("TRANSACAO -------> "+eventoDeTransacao);
}
}
| 24.266667 | 68 | 0.752747 |
cbda95d80645085fb4b67df8c4a2961b91981ac1 | 281 | package org.apache.spark.metrics;
/**
* This is an interface so we can have multiple implementation of metrics that "finish". Currently
* we just use read metrics but eventually will support write metrics also.
*/
public interface MetricsUpdate {
Long finish(String name);
}
| 28.1 | 98 | 0.761566 |
cfeb22c9b987b7e46251e70b1843bf7ea32b1735 | 5,833 | package com.joymain.jecs.fi.model;
// Generated 2015-10-12 9:35:15 by Hibernate Tools 3.1.0.beta4
import java.math.BigDecimal;
import java.util.Date;
/**
* @struts.form include-all="true" extends="BaseForm"
* @hibernate.class
* table="JFI_INVOICE_DEPOSIT"
*
*/
public class JfiInvoiceDeposit extends com.joymain.jecs.model.BaseObject implements java.io.Serializable {
// Fields
private Long id;
private Long invoiceId;
private Long depositId;
private BigDecimal invoiceMoney;
private String createNo;
private Date createTime;
// Constructors
/** default constructor */
public JfiInvoiceDeposit() {
}
/** full constructor */
public JfiInvoiceDeposit(Long invoiceId, Long depositId, BigDecimal invoiceMoney, String createNo, Date createTime) {
this.invoiceId = invoiceId;
this.depositId = depositId;
this.invoiceMoney = invoiceMoney;
this.createNo = createNo;
this.createTime = createTime;
}
// Property accessors
/**
* * @hibernate.id
* generator-class="sequence"
* type="java.lang.Long"
* column="ID"
*@hibernate.generator-param name="sequence" value="SEQ_FI"
*
*/
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
/**
* * @hibernate.property
* column="INVOICE_ID"
* length="22"
*
*/
public Long getInvoiceId() {
return this.invoiceId;
}
public void setInvoiceId(Long invoiceId) {
this.invoiceId = invoiceId;
}
/**
* * @hibernate.property
* column="DEPOSIT_ID"
* length="22"
*
*/
public Long getDepositId() {
return this.depositId;
}
public void setDepositId(Long depositId) {
this.depositId = depositId;
}
/**
* * @hibernate.property
* column="INVOICE_MONEY"
* length="22"
*
*/
public BigDecimal getInvoiceMoney() {
return this.invoiceMoney;
}
public void setInvoiceMoney(BigDecimal invoiceMoney) {
this.invoiceMoney = invoiceMoney;
}
/**
* * @hibernate.property
* column="CREATE_NO"
* length="20"
*
*/
public String getCreateNo() {
return this.createNo;
}
public void setCreateNo(String createNo) {
this.createNo = createNo;
}
/**
* * @hibernate.property
* column="CREATE_TIME"
* length="7"
*
*/
public Date getCreateTime() {
return this.createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* toString
* @return String
*/
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
buffer.append("invoiceId").append("='").append(getInvoiceId()).append("' ");
buffer.append("depositId").append("='").append(getDepositId()).append("' ");
buffer.append("invoiceMoney").append("='").append(getInvoiceMoney()).append("' ");
buffer.append("createNo").append("='").append(getCreateNo()).append("' ");
buffer.append("createTime").append("='").append(getCreateTime()).append("' ");
buffer.append("]");
return buffer.toString();
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof JfiInvoiceDeposit) ) return false;
JfiInvoiceDeposit castOther = ( JfiInvoiceDeposit ) other;
return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
&& ( (this.getInvoiceId()==castOther.getInvoiceId()) || ( this.getInvoiceId()!=null && castOther.getInvoiceId()!=null && this.getInvoiceId().equals(castOther.getInvoiceId()) ) )
&& ( (this.getDepositId()==castOther.getDepositId()) || ( this.getDepositId()!=null && castOther.getDepositId()!=null && this.getDepositId().equals(castOther.getDepositId()) ) )
&& ( (this.getInvoiceMoney()==castOther.getInvoiceMoney()) || ( this.getInvoiceMoney()!=null && castOther.getInvoiceMoney()!=null && this.getInvoiceMoney().equals(castOther.getInvoiceMoney()) ) )
&& ( (this.getCreateNo()==castOther.getCreateNo()) || ( this.getCreateNo()!=null && castOther.getCreateNo()!=null && this.getCreateNo().equals(castOther.getCreateNo()) ) )
&& ( (this.getCreateTime()==castOther.getCreateTime()) || ( this.getCreateTime()!=null && castOther.getCreateTime()!=null && this.getCreateTime().equals(castOther.getCreateTime()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
result = 37 * result + ( getInvoiceId() == null ? 0 : this.getInvoiceId().hashCode() );
result = 37 * result + ( getDepositId() == null ? 0 : this.getDepositId().hashCode() );
result = 37 * result + ( getInvoiceMoney() == null ? 0 : this.getInvoiceMoney().hashCode() );
result = 37 * result + ( getCreateNo() == null ? 0 : this.getCreateNo().hashCode() );
result = 37 * result + ( getCreateTime() == null ? 0 : this.getCreateTime().hashCode() );
return result;
}
}
| 31.701087 | 196 | 0.566089 |
be199adfef4effeb8da5d9940c10e2cb6a2fb6cc | 13,422 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package dbtest;
import javax.swing.JOptionPane;
import java.sql.*;
/**
*
* @author seung
*/
public class CustomerModify extends javax.swing.JFrame {
/**
* Creates new form CustomerModify
*/
public CustomerModify() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
customer_id = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
customer_fname = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
customer_lname = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
customer_address = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
customer_email = new javax.swing.JTextField();
btn_add = new javax.swing.JButton();
btn_delete = new javax.swing.JButton();
btn_return = new javax.swing.JButton();
jLabel6 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel1.setText("Customer ID");
jLabel2.setText("First Name");
jLabel3.setText("Last Name");
jLabel4.setText("Address");
jLabel5.setText("Email");
btn_add.setText("Add");
btn_add.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_addActionPerformed(evt);
}
});
btn_delete.setText("Delete");
btn_return.setText("Return");
btn_return.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_returnActionPerformed(evt);
}
});
jLabel6.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
jLabel6.setText("Customer");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 271, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
.addGap(14, 14, 14)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addComponent(btn_return)
.addGap(221, 221, 221))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel2)
.addGap(18, 18, 18)
.addComponent(customer_fname))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(customer_id, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jLabel4)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel3)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(customer_address)
.addComponent(customer_lname)))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel5)
.addGap(44, 44, 44)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(btn_add, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btn_delete))
.addComponent(customer_email)))))))
.addContainerGap(100, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(22, 22, 22)
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(customer_id, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(customer_fname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(customer_lname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(customer_address, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(customer_email, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(btn_add)
.addComponent(btn_delete))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 39, Short.MAX_VALUE)
.addComponent(btn_return)
.addContainerGap())
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void btn_returnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_returnActionPerformed
// TODO add your handling code here:
new Add().setVisible(true);
dispose();
}//GEN-LAST:event_btn_returnActionPerformed
private void btn_addActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_addActionPerformed
// TODO add your handling code here:
submitDatatoDatabase();
}//GEN-LAST:event_btn_addActionPerformed
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(CustomerModify.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(CustomerModify.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(CustomerModify.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(CustomerModify.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new CustomerModify().setVisible(true);
}
});
}
Connection connection = null;
public void submitDatatoDatabase() {
try{
connection = ConnectionManager.getConnection();
String url2 = "insert into email(`Email`,`Password`) values(?,?)";
PreparedStatement ps2 = connection.prepareStatement(url2);
ps2.setString(1, customer_email.getText());
ps2.setString(2, "0000");
int i = ps2.executeUpdate();
if(i > 0) {
System.out.println("Email registered");
try {
String url = "insert into customer (`First Name`,`Last Name`,`Address`,`Email_Email`) values(?,?,?,?)";
PreparedStatement ps = connection.prepareStatement(url);
ps.setString(1, customer_fname.getText());
ps.setString(2, customer_lname.getText());
ps.setString(3, customer_address.getText());
ps.setString(4, customer_email.getText());
int j = ps.executeUpdate();
if(j > 0) {
System.out.println("Customer Registered");
JOptionPane.showMessageDialog(this,"Customer Registered!");
} else {
System.out.println("Customer Not Registered");
}
} catch (Exception e){
JOptionPane.showMessageDialog(this,"Something wrong with Customer info...");
}
} else {
JOptionPane.showMessageDialog(this,"Email already exist in the system...");
System.out.println("Record Not Successful");
}
} catch (Exception e) {
JOptionPane.showMessageDialog(this,"Email already exist in the system...");
System.out.println("Record Not Successful");
}
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton btn_add;
private javax.swing.JButton btn_delete;
private javax.swing.JButton btn_return;
private javax.swing.JTextField customer_address;
private javax.swing.JTextField customer_email;
private javax.swing.JTextField customer_fname;
private javax.swing.JTextField customer_id;
private javax.swing.JTextField customer_lname;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
// End of variables declaration//GEN-END:variables
}
| 50.269663 | 170 | 0.603636 |
2cfa98a28aaa93c54f8fe85d3d11322d2e6b486a | 7,386 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.ml.integration;
import org.elasticsearch.action.bulk.BulkRequestBuilder;
import org.elasticsearch.action.bulk.BulkResponse;
import org.elasticsearch.action.index.IndexRequest;
import org.elasticsearch.action.support.WriteRequest;
import org.elasticsearch.xpack.core.ml.action.EvaluateDataFrameAction;
import org.elasticsearch.xpack.core.ml.dataframe.evaluation.classification.Classification;
import org.elasticsearch.xpack.core.ml.dataframe.evaluation.classification.MulticlassConfusionMatrix;
import org.junit.After;
import org.junit.Before;
import java.util.List;
import java.util.Map;
import static org.hamcrest.Matchers.equalTo;
public class ClassificationEvaluationIT extends MlNativeDataFrameAnalyticsIntegTestCase {
private static final String ANIMALS_DATA_INDEX = "test-evaluate-animals-index";
private static final String ACTUAL_CLASS_FIELD = "actual_class_field";
private static final String PREDICTED_CLASS_FIELD = "predicted_class_field";
@Before
public void setup() {
indexAnimalsData(ANIMALS_DATA_INDEX);
}
@After
public void cleanup() {
cleanUp();
}
public void testEvaluate_MulticlassClassification_DefaultMetrics() {
EvaluateDataFrameAction.Request evaluateDataFrameRequest =
new EvaluateDataFrameAction.Request()
.setIndices(List.of(ANIMALS_DATA_INDEX))
.setEvaluation(new Classification(ACTUAL_CLASS_FIELD, PREDICTED_CLASS_FIELD, null));
EvaluateDataFrameAction.Response evaluateDataFrameResponse =
client().execute(EvaluateDataFrameAction.INSTANCE, evaluateDataFrameRequest).actionGet();
assertThat(evaluateDataFrameResponse.getEvaluationName(), equalTo(Classification.NAME.getPreferredName()));
assertThat(evaluateDataFrameResponse.getMetrics().size(), equalTo(1));
MulticlassConfusionMatrix.Result confusionMatrixResult =
(MulticlassConfusionMatrix.Result) evaluateDataFrameResponse.getMetrics().get(0);
assertThat(confusionMatrixResult.getMetricName(), equalTo(MulticlassConfusionMatrix.NAME.getPreferredName()));
assertThat(
confusionMatrixResult.getConfusionMatrix(),
equalTo(Map.of(
"ant", Map.of("ant", 1L, "cat", 4L, "dog", 3L, "fox", 2L, "mouse", 5L),
"cat", Map.of("ant", 3L, "cat", 1L, "dog", 5L, "fox", 4L, "mouse", 2L),
"dog", Map.of("ant", 4L, "cat", 2L, "dog", 1L, "fox", 5L, "mouse", 3L),
"fox", Map.of("ant", 5L, "cat", 3L, "dog", 2L, "fox", 1L, "mouse", 4L),
"mouse", Map.of("ant", 2L, "cat", 5L, "dog", 4L, "fox", 3L, "mouse", 1L))));
assertThat(confusionMatrixResult.getOtherClassesCount(), equalTo(0L));
}
public void testEvaluate_MulticlassClassification_ConfusionMatrixMetricWithDefaultSize() {
EvaluateDataFrameAction.Request evaluateDataFrameRequest =
new EvaluateDataFrameAction.Request()
.setIndices(List.of(ANIMALS_DATA_INDEX))
.setEvaluation(new Classification(ACTUAL_CLASS_FIELD, PREDICTED_CLASS_FIELD, List.of(new MulticlassConfusionMatrix())));
EvaluateDataFrameAction.Response evaluateDataFrameResponse =
client().execute(EvaluateDataFrameAction.INSTANCE, evaluateDataFrameRequest).actionGet();
assertThat(evaluateDataFrameResponse.getEvaluationName(), equalTo(Classification.NAME.getPreferredName()));
assertThat(evaluateDataFrameResponse.getMetrics().size(), equalTo(1));
MulticlassConfusionMatrix.Result confusionMatrixResult =
(MulticlassConfusionMatrix.Result) evaluateDataFrameResponse.getMetrics().get(0);
assertThat(confusionMatrixResult.getMetricName(), equalTo(MulticlassConfusionMatrix.NAME.getPreferredName()));
assertThat(
confusionMatrixResult.getConfusionMatrix(),
equalTo(Map.of(
"ant", Map.of("ant", 1L, "cat", 4L, "dog", 3L, "fox", 2L, "mouse", 5L),
"cat", Map.of("ant", 3L, "cat", 1L, "dog", 5L, "fox", 4L, "mouse", 2L),
"dog", Map.of("ant", 4L, "cat", 2L, "dog", 1L, "fox", 5L, "mouse", 3L),
"fox", Map.of("ant", 5L, "cat", 3L, "dog", 2L, "fox", 1L, "mouse", 4L),
"mouse", Map.of("ant", 2L, "cat", 5L, "dog", 4L, "fox", 3L, "mouse", 1L))));
assertThat(confusionMatrixResult.getOtherClassesCount(), equalTo(0L));
}
public void testEvaluate_MulticlassClassification_ConfusionMatrixMetricWithUserProvidedSize() {
EvaluateDataFrameAction.Request evaluateDataFrameRequest =
new EvaluateDataFrameAction.Request()
.setIndices(List.of(ANIMALS_DATA_INDEX))
.setEvaluation(new Classification(ACTUAL_CLASS_FIELD, PREDICTED_CLASS_FIELD, List.of(new MulticlassConfusionMatrix(3))));
EvaluateDataFrameAction.Response evaluateDataFrameResponse =
client().execute(EvaluateDataFrameAction.INSTANCE, evaluateDataFrameRequest).actionGet();
assertThat(evaluateDataFrameResponse.getEvaluationName(), equalTo(Classification.NAME.getPreferredName()));
assertThat(evaluateDataFrameResponse.getMetrics().size(), equalTo(1));
MulticlassConfusionMatrix.Result confusionMatrixResult =
(MulticlassConfusionMatrix.Result) evaluateDataFrameResponse.getMetrics().get(0);
assertThat(confusionMatrixResult.getMetricName(), equalTo(MulticlassConfusionMatrix.NAME.getPreferredName()));
assertThat(
confusionMatrixResult.getConfusionMatrix(),
equalTo(Map.of(
"ant", Map.of("ant", 1L, "cat", 4L, "dog", 3L, "_other_", 7L),
"cat", Map.of("ant", 3L, "cat", 1L, "dog", 5L, "_other_", 6L),
"dog", Map.of("ant", 4L, "cat", 2L, "dog", 1L, "_other_", 8L))));
assertThat(confusionMatrixResult.getOtherClassesCount(), equalTo(2L));
}
private static void indexAnimalsData(String indexName) {
client().admin().indices().prepareCreate(indexName)
.addMapping("_doc", ACTUAL_CLASS_FIELD, "type=keyword", PREDICTED_CLASS_FIELD, "type=keyword")
.get();
List<String> classNames = List.of("dog", "cat", "mouse", "ant", "fox");
BulkRequestBuilder bulkRequestBuilder = client().prepareBulk()
.setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE);
for (int i = 0; i < classNames.size(); i++) {
for (int j = 0; j < classNames.size(); j++) {
for (int k = 0; k < j + 1; k++) {
bulkRequestBuilder.add(
new IndexRequest(indexName)
.source(
ACTUAL_CLASS_FIELD, classNames.get(i),
PREDICTED_CLASS_FIELD, classNames.get((i + j) % classNames.size())));
}
}
}
BulkResponse bulkResponse = bulkRequestBuilder.get();
if (bulkResponse.hasFailures()) {
fail("Failed to index data: " + bulkResponse.buildFailureMessage());
}
}
}
| 53.521739 | 137 | 0.668427 |
d8d38c49e9f3326afdd098210997c59cbf05748c | 7,805 | /**
* Copyright (c) 2011, The University of Southampton and the individual contributors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* * Neither the name of the University of Southampton nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
*
*/
package org.openimaj.video.processing.timefinder;
import java.util.List;
import org.openimaj.image.Image;
import org.openimaj.math.geometry.shape.Rectangle;
import org.openimaj.util.pair.IndependentPair;
import org.openimaj.video.Video;
import org.openimaj.video.VideoCache;
import org.openimaj.video.processing.tracking.ObjectTracker;
import org.openimaj.video.timecode.HrsMinSecFrameTimecode;
import org.openimaj.video.timecode.VideoTimecode;
/**
* This class is a general class for finding the time range in which a specific
* object is found within a video. Given a seed frame in which the object appears,
* this class will track forwards and backwards in the video stream to find when
* the object disappears. It is then able to provide the timecodes at which the
* object can be found within the video.
*
* @author David Dupplaw ([email protected])
*
* @created 14 Oct 2011
*/
public class ObjectTimeFinder
{
/**
* An interface for objects that wish to be informed of object tracking
* events during the time finder's execution.
*
* @author David Dupplaw ([email protected])
*
* @param <O> Type of object tracked
* @param <I> Type of {@link Image}
* @created 7 Nov 2011
*/
public interface TimeFinderListener<O,I>
{
/**
* Called when an object is tracked in the video.
*
* @param objects The objects being tracked
* @param time The timecode of the frame in which the object was found.
* @param frame The frame in which the object was found.
*/
public void objectTracked( List<O> objects, VideoTimecode time, I frame );
}
/**
* Given a video, a keyframe (timecode) and a region of the image,
* this method will attempt to track the the contents of the rectangle
* from the given frame, back and forth to find the place
* at which the object appears and disappears from the video.
*
* @param <I> The type of image returned from the video
* @param <O> The type of object being tracked
* @param objectTracker The object tracker that will track the object for us
* @param video The video
* @param keyframeTime The keyframe timecode to start at
* @param bounds The bounding box of the object you wish to track
* @param listener A listener for object tracking events
* @return An {@link IndependentPair} of timecodes delineating the start
* and end of the video which contains the object
*/
public <I extends Image<?,I>,O>
IndependentPair<VideoTimecode,VideoTimecode> trackObject(
ObjectTracker<O,I> objectTracker, Video<I> video,
VideoTimecode keyframeTime, Rectangle bounds,
TimeFinderListener<O,I> listener )
{
// Set up the initial start and end timecodes. We'll update these
// as we scan through the video
HrsMinSecFrameTimecode startTime = new HrsMinSecFrameTimecode(
keyframeTime.getFrameNumber(), video.getFPS() );
HrsMinSecFrameTimecode endTime = new HrsMinSecFrameTimecode(
keyframeTime.getFrameNumber(), video.getFPS() );
// Now set the video to the start frame
video.setCurrentFrameIndex( startTime.getFrameNumber() );
I image = video.getCurrentFrame();
I keyframeImage = image.clone();
// Initialise the tracking with the start frame
objectTracker.initialiseTracking( bounds, image );
// Now we'll scan forwards in the video to find out when the object
// disappears from view
boolean foundObject = true;
while( foundObject && image != null )
{
// Track the object
List<O> objects = objectTracker.trackObject( image );
// If we've found no objects in this frame, then we've lost
// sight of the object and must stop
if( objects.size() == 0 )
foundObject = false;
else
{
// Move on to the next frame
image = video.getNextFrame();
// Update the end time
endTime.setFrameNumber( video.getCurrentFrameIndex() );
if( listener != null )
listener.objectTracked( objects, endTime, image );
}
}
// Reinitialise the object tracker to our start point
objectTracker.initialiseTracking( bounds, keyframeImage );
foundObject = true;
// Now we're going to scan backwards through the video. However, scanning
// backwards can be really slow, so what we're going to do is scan back
// by a big chunk and then cache that chunk, before we track back through
// it frame by frame. This reduces the number of times we need to do the
// expensive backwards track.
int nFramesToJumpBack = (int)video.getFPS()*2; // We'll go 2 seconds at a time
// currentTimecode will give the start of the chunk
HrsMinSecFrameTimecode currentTimecode = new HrsMinSecFrameTimecode(
Math.max( startTime.getFrameNumber() - nFramesToJumpBack, 0 ),
video.getFPS() );
// Now keep looping until we either lose the object or
// we hit the start of the video
while( foundObject && currentTimecode.getFrameNumber() >= 0 )
{
// Slightly confusingly here, the startTime is the end of the chunk
VideoCache<I> vc = VideoCache.cacheVideo( video, currentTimecode, startTime );
// Now track back through the cached video
for( int n = 1; n <= vc.getNumberOfFrames(); n++ )
{
// Track backwards through the frames
image = vc.getFrame( vc.getNumberOfFrames()-n );
// Track the object
List<O> objects = objectTracker.trackObject( image );
// If we've found no objects in this frame, then we've lost
// sight of the object and must stop
if( objects.size() == 0 )
{
foundObject = false;
break;
}
else
{
// Update the start time
startTime.setFrameNumber( startTime.getFrameNumber()-1 );
if( listener != null )
listener.objectTracked( objects, startTime, image );
}
}
// If we're already at frame zero, we should end this loop
if( currentTimecode.getFrameNumber() == 0 )
foundObject = false;
// Update the chunk timecode if we need to keep going
currentTimecode.setFrameNumber(
Math.max( startTime.getFrameNumber() - nFramesToJumpBack, 0 ) );
}
// Return the videos
return new IndependentPair<VideoTimecode,VideoTimecode>( startTime, endTime );
}
}
| 38.073171 | 85 | 0.716976 |
90d59b90b3993e7cd627931294e307d115e0c7e7 | 22,824 | /*
* Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test CheckCompileThresholdScaling
* @bug 8059604
* @summary Add CompileThresholdScaling flag to control when methods are first compiled (with +/-TieredCompilation)
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run driver compiler.arguments.CheckCompileThresholdScaling
*/
package compiler.arguments;
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.process.ProcessTools;
public class CheckCompileThresholdScaling {
// The flag CompileThresholdScaling scales compilation thresholds
// in the following way:
//
// - if CompileThresholdScaling==1.0, the default threshold values
// are used;
//
// - if CompileThresholdScaling>1.0, threshold values are scaled
// up (e.g., CompileThresholdScalingPercentage=1.2 scales up
// thresholds by a factor of 1.2X);
//
// - if CompileThresholdScaling<1.0, threshold values are scaled
// down;
//
// - if CompileThresholdScaling==0, compilation is disabled
// (equivalent to using -Xint).
//
// With tiered compilation enabled, the values of the following
// flags are changed:
//
// Tier0InvokeNotifyFreqLog, Tier0BackedgeNotifyFreqLog,
// Tier3InvocationThreshold, Tier3MinInvocationThreshold,
// Tier3CompileThreshold, Tier3BackEdgeThreshold,
// Tier2InvokeNotifyFreqLog, Tier2BackedgeNotifyFreqLog,
// Tier3InvokeNotifyFreqLog, Tier3BackedgeNotifyFreqLog,
// Tier23InlineeNotifyFreqLog, Tier4InvocationThreshold,
// Tier4MinInvocationThreshold, Tier4CompileThreshold,
// Tier4BackEdgeThreshold
//
// With tiered compilation disabled the value of CompileThreshold
// is scaled.
private static final String[][] NON_TIERED_ARGUMENTS = {
{
"-XX:-TieredCompilation",
"-XX:+PrintFlagsFinal",
"-XX:CompileThreshold=1000",
"-version"
},
{
"-XX:-TieredCompilation",
"-XX:+PrintFlagsFinal",
"-XX:CompileThreshold=1000",
"-XX:CompileThresholdScaling=1.25",
"-version"
},
{
"-XX:-TieredCompilation",
"-XX:+PrintFlagsFinal",
"-XX:CompileThreshold=1000",
"-XX:CompileThresholdScaling=0.75",
"-version"
},
{
"-XX:-TieredCompilation",
"-XX:+PrintFlagsFinal",
"-XX:CompileThreshold=1000",
"-XX:CompileThresholdScaling=0.0",
"-version"
},
{
"-XX:-TieredCompilation",
"-XX:+PrintFlagsFinal",
"-XX:CompileThreshold=0",
"-XX:CompileThresholdScaling=0.75",
"-version"
}
};
private static final String[][] NON_TIERED_EXPECTED_OUTPUTS = {
{
"intx CompileThreshold = 1000 {pd product} {command line}",
"double CompileThresholdScaling = 1.000000 {product} {default}"
},
{
"intx CompileThreshold = 1250 {pd product} {command line, ergonomic}",
"double CompileThresholdScaling = 1.250000 {product} {command line}"
},
{
"intx CompileThreshold = 750 {pd product} {command line, ergonomic}",
"double CompileThresholdScaling = 0.750000 {product} {command line}"
},
{
"intx CompileThreshold = 1000 {pd product} {command line}",
"double CompileThresholdScaling = 0.000000 {product} {command line}",
"interpreted mode"
},
{
"intx CompileThreshold = 0 {pd product} {command line}",
"double CompileThresholdScaling = 0.750000 {product} {command line}",
"interpreted mode"
}
};
private static final String[][] TIERED_ARGUMENTS = {
{
"-XX:+TieredCompilation",
"-XX:+PrintFlagsFinal",
"-XX:Tier0InvokeNotifyFreqLog=7",
"-XX:Tier0BackedgeNotifyFreqLog=10",
"-XX:Tier3InvocationThreshold=200",
"-XX:Tier3MinInvocationThreshold=100",
"-XX:Tier3CompileThreshold=2000",
"-XX:Tier3BackEdgeThreshold=60000",
"-XX:Tier2InvokeNotifyFreqLog=11",
"-XX:Tier2BackedgeNotifyFreqLog=14",
"-XX:Tier3InvokeNotifyFreqLog=10",
"-XX:Tier3BackedgeNotifyFreqLog=13",
"-XX:Tier23InlineeNotifyFreqLog=20",
"-XX:Tier4InvocationThreshold=5000",
"-XX:Tier4MinInvocationThreshold=600",
"-XX:Tier4CompileThreshold=15000",
"-XX:Tier4BackEdgeThreshold=40000",
"-version"
},
{
"-XX:+TieredCompilation",
"-XX:+PrintFlagsFinal",
"-XX:Tier0InvokeNotifyFreqLog=7",
"-XX:Tier0BackedgeNotifyFreqLog=10",
"-XX:Tier3InvocationThreshold=200",
"-XX:Tier3MinInvocationThreshold=100",
"-XX:Tier3CompileThreshold=2000",
"-XX:Tier3BackEdgeThreshold=60000",
"-XX:Tier2InvokeNotifyFreqLog=11",
"-XX:Tier2BackedgeNotifyFreqLog=14",
"-XX:Tier3InvokeNotifyFreqLog=10",
"-XX:Tier3BackedgeNotifyFreqLog=13",
"-XX:Tier23InlineeNotifyFreqLog=20",
"-XX:Tier4InvocationThreshold=5000",
"-XX:Tier4MinInvocationThreshold=600",
"-XX:Tier4CompileThreshold=15000",
"-XX:Tier4BackEdgeThreshold=40000",
"-XX:CompileThresholdScaling=0.75",
"-version"
},
{
"-XX:+TieredCompilation",
"-XX:+PrintFlagsFinal",
"-XX:Tier0InvokeNotifyFreqLog=7",
"-XX:Tier0BackedgeNotifyFreqLog=10",
"-XX:Tier3InvocationThreshold=200",
"-XX:Tier3MinInvocationThreshold=100",
"-XX:Tier3CompileThreshold=2000",
"-XX:Tier3BackEdgeThreshold=60000",
"-XX:Tier2InvokeNotifyFreqLog=11",
"-XX:Tier2BackedgeNotifyFreqLog=14",
"-XX:Tier3InvokeNotifyFreqLog=10",
"-XX:Tier3BackedgeNotifyFreqLog=13",
"-XX:Tier23InlineeNotifyFreqLog=20",
"-XX:Tier4InvocationThreshold=5000",
"-XX:Tier4MinInvocationThreshold=600",
"-XX:Tier4CompileThreshold=15000",
"-XX:Tier4BackEdgeThreshold=40000",
"-XX:CompileThresholdScaling=1.25",
"-version"
},
{
"-XX:+TieredCompilation",
"-XX:+PrintFlagsFinal",
"-XX:Tier0InvokeNotifyFreqLog=7",
"-XX:Tier0BackedgeNotifyFreqLog=10",
"-XX:Tier3InvocationThreshold=200",
"-XX:Tier3MinInvocationThreshold=100",
"-XX:Tier3CompileThreshold=2000",
"-XX:Tier3BackEdgeThreshold=60000",
"-XX:Tier2InvokeNotifyFreqLog=11",
"-XX:Tier2BackedgeNotifyFreqLog=14",
"-XX:Tier3InvokeNotifyFreqLog=10",
"-XX:Tier3BackedgeNotifyFreqLog=13",
"-XX:Tier23InlineeNotifyFreqLog=20",
"-XX:Tier4InvocationThreshold=5000",
"-XX:Tier4MinInvocationThreshold=600",
"-XX:Tier4CompileThreshold=15000",
"-XX:Tier4BackEdgeThreshold=40000",
"-XX:CompileThresholdScaling=2.0",
"-version"
},
{
"-XX:+TieredCompilation",
"-XX:+PrintFlagsFinal",
"-XX:Tier0InvokeNotifyFreqLog=7",
"-XX:Tier0BackedgeNotifyFreqLog=10",
"-XX:Tier3InvocationThreshold=200",
"-XX:Tier3MinInvocationThreshold=100",
"-XX:Tier3CompileThreshold=2000",
"-XX:Tier3BackEdgeThreshold=60000",
"-XX:Tier2InvokeNotifyFreqLog=11",
"-XX:Tier2BackedgeNotifyFreqLog=14",
"-XX:Tier3InvokeNotifyFreqLog=10",
"-XX:Tier3BackedgeNotifyFreqLog=13",
"-XX:Tier23InlineeNotifyFreqLog=20",
"-XX:Tier4InvocationThreshold=5000",
"-XX:Tier4MinInvocationThreshold=600",
"-XX:Tier4CompileThreshold=15000",
"-XX:Tier4BackEdgeThreshold=40000",
"-XX:CompileThresholdScaling=0.0",
"-version"
}
};
private static final String[][] TIERED_EXPECTED_OUTPUTS = {
{
"intx Tier0BackedgeNotifyFreqLog = 10 {product} {command line}",
"intx Tier0InvokeNotifyFreqLog = 7 {product} {command line}",
"intx Tier23InlineeNotifyFreqLog = 20 {product} {command line}",
"intx Tier2BackedgeNotifyFreqLog = 14 {product} {command line}",
"intx Tier2InvokeNotifyFreqLog = 11 {product} {command line}",
"intx Tier3BackEdgeThreshold = 60000 {product} {command line}",
"intx Tier3BackedgeNotifyFreqLog = 13 {product} {command line}",
"intx Tier3CompileThreshold = 2000 {product} {command line}",
"intx Tier3InvocationThreshold = 200 {product} {command line}",
"intx Tier3InvokeNotifyFreqLog = 10 {product} {command line}",
"intx Tier3MinInvocationThreshold = 100 {product} {command line}",
"intx Tier4BackEdgeThreshold = 40000 {product} {command line}",
"intx Tier4CompileThreshold = 15000 {product} {command line}",
"intx Tier4InvocationThreshold = 5000 {product} {command line}",
"intx Tier4MinInvocationThreshold = 600 {product} {command line}",
"double CompileThresholdScaling = 1.000000 {product} {default}"
},
{
"intx Tier0BackedgeNotifyFreqLog = 9 {product} {command line, ergonomic}",
"intx Tier0InvokeNotifyFreqLog = 6 {product} {command line, ergonomic}",
"intx Tier23InlineeNotifyFreqLog = 19 {product} {command line, ergonomic}",
"intx Tier2BackedgeNotifyFreqLog = 13 {product} {command line, ergonomic}",
"intx Tier2InvokeNotifyFreqLog = 10 {product} {command line, ergonomic}",
"intx Tier3BackEdgeThreshold = 45000 {product} {command line, ergonomic}",
"intx Tier3BackedgeNotifyFreqLog = 12 {product} {command line, ergonomic}",
"intx Tier3CompileThreshold = 1500 {product} {command line, ergonomic}",
"intx Tier3InvocationThreshold = 150 {product} {command line, ergonomic}",
"intx Tier3InvokeNotifyFreqLog = 9 {product} {command line, ergonomic}",
"intx Tier3MinInvocationThreshold = 75 {product} {command line, ergonomic}",
"intx Tier4BackEdgeThreshold = 30000 {product} {command line, ergonomic}",
"intx Tier4CompileThreshold = 11250 {product} {command line, ergonomic}",
"intx Tier4InvocationThreshold = 3750 {product} {command line, ergonomic}",
"intx Tier4MinInvocationThreshold = 450 {product} {command line, ergonomic}",
"double CompileThresholdScaling = 0.750000 {product} {command line}"
},
{
"intx Tier0BackedgeNotifyFreqLog = 10 {product} {command line, ergonomic}",
"intx Tier0InvokeNotifyFreqLog = 7 {product} {command line, ergonomic}",
"intx Tier23InlineeNotifyFreqLog = 20 {product} {command line, ergonomic}",
"intx Tier2BackedgeNotifyFreqLog = 14 {product} {command line, ergonomic}",
"intx Tier2InvokeNotifyFreqLog = 11 {product} {command line, ergonomic}",
"intx Tier3BackEdgeThreshold = 75000 {product} {command line, ergonomic}",
"intx Tier3BackedgeNotifyFreqLog = 13 {product} {command line, ergonomic}",
"intx Tier3CompileThreshold = 2500 {product} {command line, ergonomic}",
"intx Tier3InvocationThreshold = 250 {product} {command line, ergonomic}",
"intx Tier3InvokeNotifyFreqLog = 10 {product} {command line, ergonomic}",
"intx Tier3MinInvocationThreshold = 125 {product} {command line, ergonomic}",
"intx Tier4BackEdgeThreshold = 50000 {product} {command line, ergonomic}",
"intx Tier4CompileThreshold = 18750 {product} {command line, ergonomic}",
"intx Tier4InvocationThreshold = 6250 {product} {command line, ergonomic}",
"intx Tier4MinInvocationThreshold = 750 {product} {command line, ergonomic}",
"double CompileThresholdScaling = 1.250000 {product} {command line}"
},
{
"intx Tier0BackedgeNotifyFreqLog = 11 {product} {command line, ergonomic}",
"intx Tier0InvokeNotifyFreqLog = 8 {product} {command line, ergonomic}",
"intx Tier23InlineeNotifyFreqLog = 21 {product} {command line, ergonomic}",
"intx Tier2BackedgeNotifyFreqLog = 15 {product} {command line, ergonomic}",
"intx Tier2InvokeNotifyFreqLog = 12 {product} {command line, ergonomic}",
"intx Tier3BackEdgeThreshold = 120000 {product} {command line, ergonomic}",
"intx Tier3BackedgeNotifyFreqLog = 14 {product} {command line, ergonomic}",
"intx Tier3CompileThreshold = 4000 {product} {command line, ergonomic}",
"intx Tier3InvocationThreshold = 400 {product} {command line, ergonomic}",
"intx Tier3InvokeNotifyFreqLog = 11 {product} {command line, ergonomic}",
"intx Tier3MinInvocationThreshold = 200 {product} {command line, ergonomic}",
"intx Tier4BackEdgeThreshold = 80000 {product} {command line, ergonomic}",
"intx Tier4CompileThreshold = 30000 {product} {command line, ergonomic}",
"intx Tier4InvocationThreshold = 10000 {product} {command line, ergonomic}",
"intx Tier4MinInvocationThreshold = 1200 {product} {command line, ergonomic}",
"double CompileThresholdScaling = 2.000000 {product} {command line}"
},
{
"intx Tier0BackedgeNotifyFreqLog = 10 {product} {command line}",
"intx Tier0InvokeNotifyFreqLog = 7 {product} {command line}",
"intx Tier23InlineeNotifyFreqLog = 20 {product} {command line}",
"intx Tier2BackedgeNotifyFreqLog = 14 {product} {command line}",
"intx Tier2InvokeNotifyFreqLog = 11 {product} {command line}",
"intx Tier3BackEdgeThreshold = 60000 {product} {command line}",
"intx Tier3BackedgeNotifyFreqLog = 13 {product} {command line}",
"intx Tier3CompileThreshold = 2000 {product} {command line}",
"intx Tier3InvocationThreshold = 200 {product} {command line}",
"intx Tier3InvokeNotifyFreqLog = 10 {product} {command line}",
"intx Tier3MinInvocationThreshold = 100 {product} {command line}",
"intx Tier4BackEdgeThreshold = 40000 {product} {command line}",
"intx Tier4CompileThreshold = 15000 {product} {command line}",
"intx Tier4InvocationThreshold = 5000 {product} {command line}",
"intx Tier4MinInvocationThreshold = 600 {product} {command line}",
"double CompileThresholdScaling = 0.000000 {product} {command line}",
"interpreted mode"
}
};
private static void verifyValidOption(String[] arguments, String[] expected_outputs, boolean tiered) throws Exception {
ProcessBuilder pb;
OutputAnalyzer out;
pb = ProcessTools.createJavaProcessBuilder(arguments);
out = new OutputAnalyzer(pb.start());
try {
for (String expected_output : expected_outputs) {
out.shouldContain(expected_output);
}
out.shouldHaveExitValue(0);
} catch (RuntimeException e) {
// Check if tiered compilation is available in this JVM
// Version. Throw exception only if it is available.
if (!(tiered && out.getOutput().contains("-XX:+TieredCompilation not supported in this VM"))) {
throw new RuntimeException(e);
}
}
}
public static void main(String[] args) throws Exception {
if (NON_TIERED_ARGUMENTS.length != NON_TIERED_EXPECTED_OUTPUTS.length) {
throw new RuntimeException("Test is set up incorrectly: length of arguments and expected outputs in non-tiered mode of operation does not match.");
}
if (TIERED_ARGUMENTS.length != TIERED_EXPECTED_OUTPUTS.length) {
throw new RuntimeException("Test is set up incorrectly: length of arguments and expected outputs in tiered mode of operation.");
}
// Check if thresholds are scaled properly in non-tiered mode of operation
for (int i = 0; i < NON_TIERED_ARGUMENTS.length; i++) {
verifyValidOption(NON_TIERED_ARGUMENTS[i], NON_TIERED_EXPECTED_OUTPUTS[i], false);
}
// Check if thresholds are scaled properly in tiered mode of operation
for (int i = 0; i < TIERED_ARGUMENTS.length; i++) {
verifyValidOption(TIERED_ARGUMENTS[i], TIERED_EXPECTED_OUTPUTS[i], true);
}
}
}
| 60.541114 | 159 | 0.494742 |
fe35c090ef13ba7b35cbe03400e004406d36da06 | 2,235 | /*
* Copyright (c) 2005-2011 Grameen Foundation USA
* All rights reserved.
*
* Licensed 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*
* See also http://www.apache.org/licenses/LICENSE-2.0.html for an
* explanation of the license and how it is applied.
*/
package org.mifos.dto.screen;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class LoanAccountMeetingDtoTest {
@Test
public void testLoanAccountMeetingDTOCreation() {
String recurrenceId = "1";
String weekDay = "2";
String recurWeek = "3";
String monthType = "4";
String monthDay = "5";
String dayRecurMonth = "6";
String monthWeek = "7";
String recurMonth = "8";
String monthRank = "9";
LoanAccountMeetingDto loanAccountMeetingDto = new LoanAccountMeetingDto(recurrenceId, weekDay, recurWeek,
monthType, monthDay, dayRecurMonth, monthWeek, recurMonth, monthRank);
assertEquals(loanAccountMeetingDto.getRecurrenceId().toString(), recurrenceId);
assertEquals(loanAccountMeetingDto.getWeekDay().toString(), weekDay);
assertEquals(loanAccountMeetingDto.getEveryWeek().toString(), recurWeek);
assertEquals(loanAccountMeetingDto.getMonthType().toString(), monthType);
assertEquals(loanAccountMeetingDto.getDayOfMonth().toString(), monthDay);
assertEquals(loanAccountMeetingDto.getDayRecurMonth().toString(), dayRecurMonth);
assertEquals(loanAccountMeetingDto.getWeekOfMonth().toString(), monthWeek);
assertEquals(loanAccountMeetingDto.getEveryMonth().toString(), recurMonth);
assertEquals(loanAccountMeetingDto.getMonthRank().toString(), monthRank);
}
}
| 42.980769 | 113 | 0.714094 |
046fce08dcb3df28119cd91d10d2bc9a483f4447 | 635 | package com.tacitknowledge.slowlight.proxyserver.config;
/**
* Interface definition for any objects capable to build a slow-light configuration.
*
* @author Alexandr Donciu ([email protected])
*/
public interface ConfigBuilder
{
/**
* Creates and returns the slow-light configuration based on the specified config file.
*
* @param configFileName name of the file containing config information
* @return configuration object
* @throws ConfigException if configuration cannot be obtained or invalid
*/
SlowlightConfig getConfig(final String configFileName) throws ConfigException;
}
| 33.421053 | 91 | 0.751181 |
5d9972e4ae89b5212355f10f4d4db156cee949fe | 5,973 | package com.kunaalkumar.ignis.activities.search;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.KeyEvent;
import android.view.View;
import android.view.WindowManager;
import android.widget.EditText;
import com.kunaalkumar.ignis.adapters.SearchHistoryAdapter;
import com.kunaalkumar.ignis.adapters.ViewPageAdapter;
import com.kunaalkumar.ignis.fragments.search.SearchCharacterFragment;
import com.kunaalkumar.ignis.fragments.search.SearchIssueFragment;
import com.kunaalkumar.ignis.fragments.search.SearchObjectFragment;
import com.kunaalkumar.ignis.utils.SharedPrefs;
import net.yslibrary.android.keyboardvisibilityevent.util.UIUtil;
import androidx.fragment.app.FragmentManager;
import androidx.recyclerview.widget.LinearLayoutManager;
public class SearchPresenter implements SearchContract.Presenter {
public static String CHARACTER_STATE_KEY = "CHARACTER_STATE_KEY";
SearchContract.MvpView view;
Activity activity;
// Fragments for ViewPager
private SearchCharacterFragment characterFragment;
private SearchIssueFragment issueFragment;
private SearchObjectFragment objectFragment;
private SearchHistoryAdapter historyAdapter;
ViewPageAdapter viewPageAdapter;
public SearchPresenter(SearchContract.MvpView view) {
this.view = view;
this.activity = (Activity) view;
characterFragment = new SearchCharacterFragment();
issueFragment = new SearchIssueFragment();
objectFragment = new SearchObjectFragment();
showHistory(true);
}
public void setUpViewPageAdapter(FragmentManager fragmentManager) {
viewPageAdapter = new ViewPageAdapter(fragmentManager);
viewPageAdapter.addFragment(characterFragment, SearchCharacterFragment.TITLE);
viewPageAdapter.addFragment(issueFragment, SearchIssueFragment.TITLE);
viewPageAdapter.addFragment(objectFragment, SearchObjectFragment.TITLE);
// Keeps all fragments in memory
view.getViewPager().setOffscreenPageLimit(viewPageAdapter.getCount());
view.getViewPager().setAdapter(viewPageAdapter);
view.getTabLayout().setupWithViewPager(view.getViewPager());
historyAdapter = new SearchHistoryAdapter(SharedPrefs.getSearchHistory(), this);
view.getSearchHistoryView().setAdapter(historyAdapter);
view.getSearchHistoryView().setLayoutManager(new LinearLayoutManager(activity));
}
@Override
public void saveState(FragmentManager fragmentManager, Bundle bundle) {
fragmentManager.putFragment(bundle, CHARACTER_STATE_KEY, characterFragment);
}
@Override
public void restoreState(FragmentManager fragmentManager, Bundle bundle) {
// Restore character fragment instance
characterFragment = (SearchCharacterFragment) fragmentManager.
getFragment(bundle, CHARACTER_STATE_KEY);
}
@Override
public void initSearchBox() {
// Request focus on searchBox and pull up keyboard
view.getSearchBox().requestFocus();
activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
// Listener for on "enter" pressed
view.getSearchBox().setOnKeyListener(new View.OnKeyListener() {
@Override
public boolean onKey(View _view, int i, KeyEvent keyEvent) {
if (keyEvent.getAction() == KeyEvent.ACTION_DOWN)
switch (i) {
case KeyEvent.KEYCODE_ENTER:
searchCall(view.getSearchBox().getText().toString().trim());
break;
case KeyEvent.KEYCODE_BACK:
activity.onBackPressed();
}
return false;
}
});
view.getSearchBox().addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
// Called right before text is changed
}
@Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
if (!TextUtils.isEmpty(view.getSearchBox().getText())) {
view.getClearButton().setVisibility(View.VISIBLE);
} else {
view.getClearButton().setVisibility(View.GONE);
}
}
@Override
public void afterTextChanged(Editable editable) {
// Called right after text is changed
}
});
}
public void searchCall(String query) {
SharedPrefs.addToSearchHistory(query);
UIUtil.hideKeyboard(activity);
historyAdapter.searchHistory = SharedPrefs.getSearchHistory();
historyAdapter.notifyDataSetChanged();
showHistory(false);
view.getSearchBox().setText(query.trim());
view.getTabLayout().setFocusableInTouchMode(true);
view.getTabLayout().requestFocus();
characterFragment.searchCall(query,
true);
}
// Handle app link
@Override
public void handleIntent(Intent intent) {
Uri appLinkData = intent.getData();
if (appLinkData != null) {
searchCall(
appLinkData.getLastPathSegment().trim());
}
}
@Override
public void showHistory(boolean show) {
if (show) {
view.getSearchHistoryView().setVisibility(View.VISIBLE);
view.getSearchResultsView().setVisibility(View.INVISIBLE);
} else {
view.getSearchHistoryView().setVisibility(View.INVISIBLE);
view.getSearchResultsView().setVisibility(View.VISIBLE);
}
}
}
| 35.766467 | 99 | 0.67554 |
1b1d556ffca2313ddbfecc30ad8835662d47a070 | 873 | package com.github.houbb.markdown.toc.core;
import java.util.List;
/**
* 纯文本的目录生成
*
* @author bbhou
* @since 1.1.0
*/
public class MarkdownTocTextContext {
/**
* markdown 纯文本
* @since 1.1.0
*/
private List<String> lines;
/**
* 是否指定编号
* @since 1.1.0
*/
private boolean order;
public List<String> lines() {
return lines;
}
public MarkdownTocTextContext lines(List<String> lines) {
this.lines = lines;
return this;
}
public boolean order() {
return order;
}
public MarkdownTocTextContext order(boolean order) {
this.order = order;
return this;
}
@Override
public String toString() {
return "MarkdownTocTextContext{" +
"lines=" + lines +
", order=" + order +
'}';
}
}
| 16.788462 | 61 | 0.533792 |
6b5f711d782f1f26d038e740e36fb385e716074f | 681 | package net.myacxy.agsm.utils;
import android.util.Patterns;
import com.rengwuxian.materialedittext.validation.METValidator;
public class IpAddressAndDomainValidator extends METValidator
{
public IpAddressAndDomainValidator(String errorMessage)
{
super(errorMessage);
}
@Override
public boolean isValid(CharSequence text, boolean isEmpty)
{
if(!Patterns.IP_ADDRESS.matcher(text.toString().trim()).matches())
{
if(!Patterns.DOMAIN_NAME.matcher(text.toString().trim()).matches())
{
return false;
}
}
return true;
} // isValid
} // IpAddressAndDomainValidator
| 25.222222 | 79 | 0.654919 |
82125b365a04e117baf509ec534f4af19766f320 | 2,729 | /*
* Licensed to David Pilato under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package fr.pilato.elasticsearch.crawler.fs.framework;
import fr.pilato.elasticsearch.crawler.fs.test.framework.AbstractFSCrawlerTestCase;
import org.junit.Test;
import static com.carrotsearch.randomizedtesting.RandomizedTest.randomIntBetween;
import static com.carrotsearch.randomizedtesting.RandomizedTest.randomLongBetween;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
public class ByteSizeValueTest extends AbstractFSCrawlerTestCase {
@Test
public void testByteSizeConversion() {
testConversionBothWays("100mb", 104857600L);
testConversionBothWays("1mb", 1048576L);
testConversionBothWays("10kb", 10240L);
testConversionBothWays("1b", 1L);
// Test 500 random values
for (int i = 0; i < 500; i++) {
int unitNumber = randomIntBetween(0, 5);
ByteSizeUnit unit = switch (unitNumber) {
case 1 -> ByteSizeUnit.KB;
case 2 -> ByteSizeUnit.MB;
case 3 -> ByteSizeUnit.GB;
case 4 -> ByteSizeUnit.TB;
case 5 -> ByteSizeUnit.PB;
default -> ByteSizeUnit.BYTES;
};
long value = randomLongBetween(1, 999);
String randomByteSize = value + unit.getSuffix();
testConversionBothWays(randomByteSize, value, unit);
}
}
private void testConversionBothWays(String value, long bytes) {
logger.debug("Testing [{}]", value);
ByteSizeValue byteSizeValue = ByteSizeValue.parseBytesSizeValue(value);
assertThat(byteSizeValue.toString(), is(value));
assertThat(byteSizeValue.getBytes(), is(bytes));
}
private void testConversionBothWays(String asString, long size, ByteSizeUnit unit) {
ByteSizeValue byteSizeValue = new ByteSizeValue(size, unit);
testConversionBothWays(asString, byteSizeValue.getBytes());
}
}
| 38.985714 | 88 | 0.695859 |
c8f5ebc31e8819f2a5f48caa0f0e3f30666c2629 | 259 | package com.blu3flux.omnichess.utils;
public class ChessGameValidator {
// Check if chess move is valid in chess position
public boolean checkValidMove(String fen, String move) {
//TODO: Check if move is valid in given fen position
return true;
}
}
| 23.545455 | 57 | 0.752896 |
1b25e2994a948b1bdaffe153d1b804f946f86acc | 1,921 | package com.clearblade.platform.api.internal;
import com.clearblade.platform.api.ClearBladeException;
import com.clearblade.platform.api.Code;
import com.clearblade.platform.api.CodeCallback;
import com.clearblade.platform.api.Collection;
import com.clearblade.platform.api.DataCallback;
import com.clearblade.platform.api.History;
import com.clearblade.platform.api.InitCallback;
import com.clearblade.platform.api.Item;
import com.clearblade.platform.api.Message;
import com.clearblade.platform.api.MessageCallback;
import com.clearblade.platform.api.Query;
import com.clearblade.platform.api.User;
public abstract class PlatformCallback {
public Collection _collection;
public DataCallback _callback;
public InitCallback _initCallback;
public CodeCallback _codeCallback;
public MessageCallback _messageCallback;
public MessageCallback _historyCallback;
public Item _item;
public Query _query;
public User _user;
public Code _code;
public Message _message;
public History _history;
public PlatformCallback(Query query, DataCallback callback){
_query = query;
_callback = callback;
}
public PlatformCallback(Collection collection, DataCallback callback){
_collection = collection;
_callback = callback;
}
public PlatformCallback(Item item, DataCallback callback){
_item = item;
_callback = callback;
}
public PlatformCallback(User user, InitCallback callback) {
_user = user;
_initCallback = callback;
}
public PlatformCallback(Code code, CodeCallback callback){
_code = code;
_codeCallback = callback;
}
public PlatformCallback(Message message, MessageCallback callback){
_message = message;
_messageCallback = callback;
}
public PlatformCallback(History history, MessageCallback callback){
_history = history;
_messageCallback = callback;
}
public abstract void done(String response);
public void error(ClearBladeException exception){
}
}
| 27.056338 | 71 | 0.79646 |
db8fbfe0ed5797fe0aba185237753648fcb13706 | 3,331 | /*
* Copyright 2010 Vrije Universiteit
*
* Licensed 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
/* $Id$ */
package ibis.compile.util;
import ibis.util.RunProcess;
/**
* This class exports a method to run the java compiler on a specified class.
*/
public class RunJavac {
private static String[] compiler;
static {
String javahome = System.getProperty("java.home");
String javapath = System.getProperty("java.class.path");
String filesep = System.getProperty("file.separator");
String pathsep = System.getProperty("path.separator");
if (javahome.endsWith("jre")) {
// IBM java does this
javahome = javahome.substring(0, javahome.length()-4);
}
compiler = new String[] {
javahome + filesep + "bin" + filesep + "javac",
"-classpath", javapath + pathsep };
}
/**
* Sets the compiler.
* @param c compiler name plus options
*/
public static void setCompiler(String[] c) {
compiler = c;
}
/**
* Runs the Java compiler with the specified options on the specified
* class.
* @param compilerArgs the compiler arguments
* @param verbose if <code>true</code>, prints the compilation command on
* standard output
* @return <code>true</code> if the exit status of the compiler is 0,
* <code>false</code> otherwise.
*/
public static boolean runJavac(String[] compilerArgs, boolean verbose) {
try {
RunProcess p;
String[] cmd = new String[compiler.length + compilerArgs.length];
for (int i = 0; i < compiler.length; i++) {
cmd[i] = compiler[i];
}
for (int i = 0; i < compilerArgs.length; i++) {
cmd[compiler.length + i] = compilerArgs[i];
}
if (verbose) {
System.out.print("Running: ");
for (int i = 0; i < cmd.length; i++) {
System.out.print(cmd[i] + " ");
}
System.out.println("");
}
p = new RunProcess(cmd);
p.run();
int res = p.getExitStatus();
byte[] err = p.getStderr();
byte[] out = p.getStdout();
if (out.length != 0) {
System.out.write(out, 0, out.length);
System.out.println("");
}
if (err.length != 0) {
System.err.write(err, 0, err.length);
System.err.println("");
}
if (res != 0) {
return false;
}
} catch (Exception e) {
System.err.println("IO error: " + e);
e.printStackTrace();
System.exit(1);
}
return true;
}
}
| 32.028846 | 77 | 0.548784 |
1bfebe208cd73f3a97fe450b18ed5f0eb1e41b7a | 905 | package com.baeldung.apache.opennlp;
import java.io.InputStream;
import opennlp.tools.postag.POSModel;
import opennlp.tools.postag.POSTaggerME;
import opennlp.tools.tokenize.SimpleTokenizer;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
public class POSTaggerTest {
@Test
public void givenPOSModel_whenPOSTagging_thenPOSAreDetected() throws Exception {
SimpleTokenizer tokenizer = SimpleTokenizer.INSTANCE;
String[] tokens = tokenizer.tokenize("John has a sister named Penny.");
InputStream inputStreamPOSTagger = getClass().getResourceAsStream("/models/en-pos-maxent.bin");
POSModel posModel = new POSModel(inputStreamPOSTagger);
POSTaggerME posTagger = new POSTaggerME(posModel);
String tags[] = posTagger.tag(tokens);
assertThat(tags).contains("NNP", "VBZ", "DT", "NN", "VBN", "NNP", ".");
}
}
| 36.2 | 103 | 0.731492 |
34967fce123056941191d0bea0f8ff997bc4b8e4 | 4,583 | package logic;
import com.alibaba.fastjson.JSON;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;
import com.sun.jnlp.ApiDialog;
public class YoutubeAPIController {
private static final String API_KEY = "AIzaSyCZI-WdDT4pTEU-nQ6XXdrab9f2fd4-cmg";
public static Channel getChannel(String channelID){
HttpResponse<String> jsonResponse = null;
try {
jsonResponse = Unirest.get("https://www.googleapis.com/youtube/v3/channels?part=snippet%2CcontentDetails%2Cstatistics&id={CHANNEL_ID}&fields=items(contentDetails%2FrelatedPlaylists%2Fuploads%2Cid%2Csnippet(publishedAt%2Ctitle)%2Cstatistics(subscriberCount%2CvideoCount%2CviewCount))&key={API_KEY}\n")
//jsonResponse = Unirest.get("https://www.googleapis.com/youtube/v3/channels")
.routeParam("CHANNEL_ID", channelID)
.routeParam("API_KEY", API_KEY)
.asString();
} catch (UnirestException e) {
e.printStackTrace();
}
Channel channel = JSON.parseObject(jsonResponse.getBody(), Channel.class);
if (channel.items.size() == 0) return null;
return channel;
}
public static Playlist getPlaylist(String playlistID){
HttpResponse<String> jsonResponse = null;
try {
jsonResponse = Unirest.get("https://www.googleapis.com/youtube/v3/playlistItems?part=contentDetails&maxResults=50&playlistId={PLAYLIST_ID}&fields=items%2FcontentDetails%2FvideoId&key={API_KEY}")
.routeParam("PLAYLIST_ID", playlistID)
.routeParam("API_KEY", API_KEY)
.asString();
} catch (UnirestException e) {
e.printStackTrace();
}
Playlist playlist = JSON.parseObject(jsonResponse.getBody(), Playlist.class);
if (playlist.items.size() == 0)return null;
return playlist;
}
public static long getCommentsCount(String videoID){
HttpResponse<String> jsonResponse = null;
try {
jsonResponse = Unirest.get("https://www.googleapis.com/youtube/v3/videos?part=statistics&id={VIDEO_ID}&fields=items%2Fstatistics%2FcommentCount&key={API_KEY}")
.routeParam("VIDEO_ID", videoID)
.routeParam("API_KEY", API_KEY)
.asString();
} catch (UnirestException e) {
e.printStackTrace();
}
Video video = JSON.parseObject(jsonResponse.getBody(), Video.class);
if (video.items.size() == 0) return 0;
return video.items.get(0).statistics.commentCount;
}
public static ChannelData getChannelData(String channelID){
Channel channel = getChannel(channelID);
ChannelData channelData = convertChannelToChannelData(channel);
if (channel != null) {
CacheController cacheController = new CacheController(new Settings());
cacheController.saveToCache(channelData);
}
return channelData;
}
public static ChannelData getFullChannelData(String channelID){
Channel channel = getChannel(channelID);
if (channel == null) return null;
ChannelData result = getChannelData(channelID);
result.commentCount = calculateMediaResonance(channel);
CacheController cacheController = new CacheController(new Settings());
cacheController.saveToCache(result);
return result;
}
private static long calculateMediaResonance(Channel channel){
String publishedPlaylist = channel.items.get(0).contentDetails.relatedPlaylists.uploads;
Playlist playlist = getPlaylist(publishedPlaylist);
long commentsSum = 0;
for(Playlist.Item video : playlist.items){
commentsSum += getCommentsCount(video.contentDetails.videoId);
}
return commentsSum;
}
public static ChannelData convertChannelToChannelData(Channel channel){
if (channel == null) return null;
ChannelData result = new ChannelData();
result.id = channel.items.get(0).id;
result.title = channel.items.get(0).snippet.title;
result.publishedAt = channel.items.get(0).snippet.publishedAt;
result.subscriberCount = channel.items.get(0).statistics.subscriberCount;
result.videoCount = channel.items.get(0).statistics.videoCount;
result.viewCount = channel.items.get(0).statistics.viewCount;
result.commentCount = -1;
return result;
}
} | 44.067308 | 312 | 0.667249 |
15b0e6289f60833d2be9a17b17b57e86f7781549 | 4,116 | package com.github.riccardove.easyjasub;
/*
* #%L
* easyjasub-lib
* %%
* Copyright (C) 2014 Riccardo Vestrini
* %%
* Licensed 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
* #L%
*/
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import com.github.riccardove.easyjasub.rendersnake.RendersnakeHtmlCanvas;
class SubtitleLineToHtml {
private final boolean isSingleLine;
private final boolean hasFurigana;
private final boolean hasDictionary;
private final boolean hasKanji;
private final boolean hasRomaji;
private final boolean showTranslation;
private final boolean hasRuby;
public SubtitleLineToHtml(boolean isSingleLine, boolean hasRuby,
boolean hasFurigana, boolean hasRomaji, boolean hasDictionary,
boolean hasKanji, boolean showTranslation) {
this.isSingleLine = isSingleLine;
this.hasRuby = hasRuby;
this.hasFurigana = hasFurigana;
this.hasRomaji = hasRomaji;
this.hasDictionary = hasDictionary;
this.hasKanji = hasKanji;
this.showTranslation = showTranslation;
}
public String toHtml(SubtitleLine s, String cssFileRef) throws IOException {
RendersnakeHtmlCanvas html = createHtmlCanvas(cssFileRef);
appendHtmlBodyContent(s, html);
html.footer();
return html.toString();
}
public RendersnakeHtmlCanvas createHtmlCanvas(String cssFileRef)
throws IOException {
RendersnakeHtmlCanvas html = new RendersnakeHtmlCanvas(
EasyJaSubWriter.Newline);
html.header(cssFileRef, EasyJaSubCharset.CHARSETSTR);
html.newline();
return html;
}
public void appendHtmlBodyContent(SubtitleLine s,
RendersnakeHtmlCanvas html) throws IOException {
List<SubtitleItem> items = s.getItems();
if (items != null) {
SubtitleLineContentToHtmlBase itemsWriter;
if (isSingleLine) {
itemsWriter = new SubtitleLineContentToHtmlParagraph(
hasFurigana, hasRomaji, hasDictionary, hasKanji);
} else {
itemsWriter = new SubtitleLineContentToHtmlTable(hasFurigana,
hasRomaji, hasDictionary, hasKanji, hasRuby);
}
itemsWriter.appendItems(html, items);
} else {
if (s.getSubText() != null) {
appendSubText(html, s);
}
}
if (showTranslation) {
appendTranslation(html, s);
}
if (items != null) {
appendComment(html, items);
}
}
private void appendComment(RendersnakeHtmlCanvas html,
List<SubtitleItem> items) throws IOException {
boolean hasComment = false;
for (SubtitleItem item : items) {
String comment = item.getComment();
if (comment != null) {
if (!hasComment) {
hasComment = true;
html.comment();
}
html.write(comment);
html.newline();
}
}
if (hasComment) {
html._comment();
}
}
private static String getTranslationStr(
List<SubtitleTranslatedLine> translation) {
Iterator<SubtitleTranslatedLine> it = translation.iterator();
String first = it.next().getText();
if (!it.hasNext()) {
return first;
}
StringBuilder text = new StringBuilder(first);
do {
text.append(BreakStr);
text.append(it.next().getText());
} while (it.hasNext());
return text.toString();
}
private static final String BreakStr = " ";
private void appendTranslation(RendersnakeHtmlCanvas html, SubtitleLine line)
throws IOException {
List<SubtitleTranslatedLine> translation = line.getTranslation();
if (translation != null && translation.size() > 0) {
html.newline();
html.p(getTranslationStr(translation));
html.newline();
}
}
private void appendSubText(RendersnakeHtmlCanvas html, SubtitleLine line)
throws IOException {
html.table("center", line.getSubText());
html.newline();
}
}
| 28 | 78 | 0.72862 |
19b4a8729b717dc4eb54432262b8040798958a01 | 263 | package org.firstinspires.ftc.teamcode.Compitition.FreightFrenzy.Controls.Autonomous.SixWD.RedWarehouse;
import org.firstinspires.ftc.teamcode.Compitition.FreightFrenzy.Controls.Autonomous.SixWD.AutoMain;
public abstract class RedWarehouse extends AutoMain {
}
| 37.571429 | 104 | 0.863118 |
bd63db6af9a9361c2ef66ac586388849ecdd25c8 | 5,980 | /*
* Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.
*
* Licensed 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package com.hazelcast.config;
import com.hazelcast.nio.ObjectDataInput;
import com.hazelcast.nio.ObjectDataOutput;
import com.hazelcast.nio.serialization.IdentifiedDataSerializable;
import com.hazelcast.spi.merge.PutIfAbsentMergePolicy;
import com.hazelcast.spi.merge.SplitBrainMergePolicy;
import java.io.IOException;
import static com.hazelcast.util.Preconditions.checkHasText;
import static com.hazelcast.util.Preconditions.checkPositive;
/**
* Configuration for {@link SplitBrainMergePolicy}.
*/
public class MergePolicyConfig implements IdentifiedDataSerializable {
/**
* Default merge policy.
*/
public static final String DEFAULT_MERGE_POLICY = PutIfAbsentMergePolicy.class.getName();
/**
* Default batch size.
*/
public static final int DEFAULT_BATCH_SIZE = 100;
protected String policy = DEFAULT_MERGE_POLICY;
protected int batchSize = DEFAULT_BATCH_SIZE;
protected MergePolicyConfig readOnly;
public MergePolicyConfig() {
}
public MergePolicyConfig(String policy, int batchSize) {
setPolicy(policy);
setBatchSize(batchSize);
}
public MergePolicyConfig(MergePolicyConfig mergePolicyConfig) {
this.policy = mergePolicyConfig.policy;
this.batchSize = mergePolicyConfig.batchSize;
}
/**
* Returns the classname of the {@link SplitBrainMergePolicy}.
*
* @return the classname of the merge policy
*/
public String getPolicy() {
return policy;
}
/**
* Sets the classname of your {@link SplitBrainMergePolicy}.
* <p>
* For the out-of-the-box merge policies the simple classname is sufficient, e.g. {@code PutIfAbsentMergePolicy}.
* But also the fully qualified classname is fine, e.g. com.hazelcast.spi.merge.PutIfAbsentMergePolicy.
* For a custom merge policy the fully qualified classname is needed.
* <p>
* Must be a non-empty string. The default value is {@code PutIfAbsentMergePolicy}.
*
* @param policy the classname of the merge policy
* @return this {@code MergePolicyConfig} instance
*/
public MergePolicyConfig setPolicy(String policy) {
this.policy = checkHasText(policy, "Merge policy must contain text!");
return this;
}
/**
* Returns the batch size, which will be used to determine the number of entries to be sent in a merge operation.
*
* @return the batch size
*/
public int getBatchSize() {
return batchSize;
}
/**
* Sets the batch size, which will be used to determine the number of entries to be sent in a merge operation.
* <p>
* Must be a positive number. Set to {@code 1} to disable batching. The default value is {@value #DEFAULT_BATCH_SIZE}.
*
* @param batchSize the batch size
* @return this {@code MergePolicyConfig} instance
*/
public MergePolicyConfig setBatchSize(int batchSize) {
this.batchSize = checkPositive(batchSize, "batchSize must be a positive number!");
return this;
}
@Override
public int getFactoryId() {
return ConfigDataSerializerHook.F_ID;
}
@Override
public int getId() {
return ConfigDataSerializerHook.MERGE_POLICY_CONFIG;
}
@Override
public void writeData(ObjectDataOutput out) throws IOException {
out.writeUTF(policy);
out.writeInt(batchSize);
}
@Override
public void readData(ObjectDataInput in) throws IOException {
policy = in.readUTF();
batchSize = in.readInt();
}
@Override
public final boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof MergePolicyConfig)) {
return false;
}
MergePolicyConfig that = (MergePolicyConfig) o;
if (batchSize != that.batchSize) {
return false;
}
return policy != null ? policy.equals(that.policy) : that.policy == null;
}
@Override
public final int hashCode() {
int result = policy != null ? policy.hashCode() : 0;
result = 31 * result + batchSize;
return result;
}
@Override
public String toString() {
return "MergePolicyConfig{"
+ "policy='" + policy + '\''
+ ", batchSize=" + batchSize
+ '}';
}
/**
* Gets immutable version of this configuration.
*
* @return immutable version of this configuration
* @deprecated this method will be removed in 4.0; it is meant for internal usage only
*/
public MergePolicyConfig getAsReadOnly() {
if (readOnly == null) {
readOnly = new MergePolicyConfigReadOnly(this);
}
return readOnly;
}
private static class MergePolicyConfigReadOnly extends MergePolicyConfig {
MergePolicyConfigReadOnly(MergePolicyConfig mergePolicyConfig) {
super(mergePolicyConfig);
}
@Override
public MergePolicyConfig setPolicy(String policy) {
throw new UnsupportedOperationException("This is a read-only configuration");
}
@Override
public MergePolicyConfig setBatchSize(int batchSize) {
throw new UnsupportedOperationException("This is a read-only configuration");
}
}
}
| 30.824742 | 122 | 0.662375 |
e1d664202826ca37b910e81d227c671dcdf492e8 | 4,673 | package com.neu.his.backend.Controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.neu.his.backend.pojo.InvoiceEntity;
import com.neu.his.backend.pojo.MedicineEntity;
import com.neu.his.backend.pojo.PrescriptionDetailEntity;
import com.neu.his.backend.pojo.RegistrationRecEntity;
import com.neu.his.backend.result.Result;
import com.neu.his.backend.result.ResultCode;
import com.neu.his.backend.result.ResultFactory;
import com.neu.his.backend.service.ConstantItemService;
import com.neu.his.backend.service.InvoiceService;
import com.neu.his.backend.service.MedicineService;
import com.neu.his.backend.service.PrescriptionDetailService;
import com.neu.his.backend.service.RegistrationRecService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class ChargeController {
@Autowired
RegistrationRecService registrationRecService;
@Autowired
PrescriptionDetailService prescriptionDetailService;
@Autowired
MedicineService medicineService;
@Autowired
ConstantItemService constantItemService;
@Autowired
InvoiceService invoiceService;
@CrossOrigin
@RequestMapping(value = "/api/charge/query", method = RequestMethod.POST, produces = "application/json; charset=UTF-8")
@ResponseBody
public Result query(@RequestBody String jsonString) {
JSONObject jsonObject = JSON.parseObject(jsonString);
int patientNo = Integer.parseInt(String.valueOf(jsonObject.get("patientno")));
RegistrationRecEntity rec = registrationRecService.tryGetOne(patientNo);
if (rec == null) {
return ResultFactory.buildFailResult("查无此人");
}
String patientname = rec.getName();
Object data[] = new Object[2];
data[0] = rec;
data[1] = getItems(patientNo, patientname);
return ResultFactory.buildSuccessResult(data);
}
public Object[] getItems(int patientNo, String patientname) {
List<Integer> idList = registrationRecService.getRegisIdListByPatientNo(patientNo);
List<PrescriptionDetailEntity> list = prescriptionDetailService.getByRegisId(idList);
JSONArray array = JSON.parseArray(JSON.toJSONString(list));
Object items[] = new Object[array.size()];
for (int i = 0; i < list.size(); i++) {
JSONObject obj = array.getJSONObject(i);
int mediId = (int) obj.get("mediid");
MedicineEntity medi = medicineService.get(mediId);
obj.put("patientno", patientNo);
obj.put("patientname", patientname);
obj.put("itemname", medi.getMediname());
obj.put("price", medi.getPrice());
String statename = (((int) obj.get("state") == 1) ? "已开立" : "已结算");
obj.put("statename", statename);
items[i] = obj;
}
return items;
}
@CrossOrigin
@RequestMapping(value = "/api/charge/init", method = RequestMethod.GET, produces = "application/json; charset=UTF-8")
@ResponseBody
public Result init() {
return ResultFactory.buildSuccessResult(constantItemService.getByConstantTypeId(5));
}
@CrossOrigin
@RequestMapping(value = "/api/charge/invoice", method = RequestMethod.GET, produces = "application/json; charset=UTF-8")
@ResponseBody
public Result getInvoice() {
return ResultFactory.buildSuccessResult(invoiceService.getLast().getInvoiceno() + 1);
}
@CrossOrigin
@RequestMapping(value = "/api/charge/submit", method = RequestMethod.POST, produces = "application/json; charset=UTF-8")
@ResponseBody
public Result submit(@RequestBody String jsonString) {
JSONObject obj = JSON.parseObject(jsonString);
int patientNo = (int) obj.get("patientNo");
String patientName = registrationRecService.tryGetOne(patientNo).getName();
List<Integer> modifyIdList = JSON
.parseArray(JSON.toJSONString(obj.getJSONArray("modifyIdList")), Integer.class);
InvoiceEntity invoice = JSON
.parseObject(JSON.toJSONString(obj.get("invoice")), InvoiceEntity.class);
//添加发票
invoiceService.add(invoice);
//修改处方明细状态
for (int detaiId : modifyIdList) {
prescriptionDetailService.modifyStatus(detaiId, 2);
}
//修改挂号信息状态
registrationRecService.modifyStatus(invoice.getRegistrationid(), 168);
return ResultFactory.buidResult(ResultCode.SUCCESS, "缴费成功", getItems(patientNo,patientName));
}
}
| 40.284483 | 122 | 0.752835 |
862018e794d690f5e50cacfc4c4f0909e74ddcf9 | 7,890 | /*
* Copyright 2008 Novamente LLC
*
* Licensed 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package relex.anaphora;
import java.util.ArrayList;
import java.util.HashMap;
import relex.tree.PhraseTree;
import relex.feature.FeatureNode;
/**
* Implements storage of anaphora-antecedent pairs,
* used during pronoun resolution.
*
* Copyright (C) 2008 Linas Vepstas <[email protected]>
*/
public class Antecedents
{
public static final int DEBUG = 0;
// Map of anaphora to a list of candidate antecedents.
// What's actually stored are the pointers to the
// phrases for each. To get the actual words, use the
// getPhraseLeader() function.
private HashMap<PhraseTree, ArrayList<PhraseTree>> ante_map;
public Antecedents()
{
ante_map = new HashMap<PhraseTree, ArrayList<PhraseTree>>();
}
/**
* add -- Add a pronoun/antecedent pair to the list
* @return: true if the pair was added to the list.
*/
public boolean add(PhraseTree anaph, PhraseTree ante)
{
// A return of true from the filter rejects the antecedent.
if (applyFilters(anaph, ante)) return false;
ArrayList<PhraseTree> ante_list = ante_map.get(anaph);
if (ante_list == null)
{
ante_list = new ArrayList<PhraseTree>();
ante_map.put(anaph, ante_list);
}
ante_list.add(ante);
return true;
}
/**
* clear() -- Remove all pronoun/antecedent pairs from the list
*/
public void clear()
{
ante_map = new HashMap<PhraseTree, ArrayList<PhraseTree>>();
}
/**
* getAntecedents -- return the collection of antecedents
* Returns a map of prononous to antecedent lists.
* The antecedents are ordered from most likely to
* least likely.
*/
private ArrayList<FeatureNode> getAntecedent(PhraseTree anaph)
{
ArrayList<PhraseTree> ante_list = ante_map.get(anaph);
if (ante_list == null) return null;
ArrayList<FeatureNode> rlist = new ArrayList<FeatureNode>();
// Integer i is the "Hobbs distance"
for (int i=0; i<ante_list.size(); i++)
{
PhraseTree ante = ante_list.get(i);
FeatureNode nante = ante.getPhraseLeader();
if (nante != null) rlist.add(nante);
}
return rlist;
}
public HashMap<FeatureNode,ArrayList<FeatureNode>> getAntecedents()
{
HashMap<FeatureNode,ArrayList<FeatureNode>> fmap =
new HashMap<FeatureNode,ArrayList<FeatureNode>>();
for (PhraseTree anaph : ante_map.keySet())
{
ArrayList<FeatureNode> amap = getAntecedent(anaph);
FeatureNode prn = anaph.getPhraseLeader();
if (prn != null) fmap.put(prn, amap);
}
return fmap;
}
/* ----------------------------------------------------------- */
/* Agreement filters */
/**
* Reject anaphora that reference other anaphora as antecedents.
* I.E. "she" can't refer to another "she".
* Retun true to reject.
*/
private Boolean antiAnaFilter(FeatureNode anph, FeatureNode ante)
{
FeatureNode pro = ante.get("pronoun-FLAG");
if (pro == null) return false;
if (DEBUG > 0)
{
System.out.println("Anti-anaphora filter mismatch");
}
return true;
}
/**
* Reject antecedents whose number does not agree with
* the anaphora. noun_number is always valued as
* "singular", "plural" or "uncountable".
* Retun true to reject.
*/
private Boolean numberFilter(FeatureNode anph, FeatureNode ante)
{
FeatureNode ant = ante.get("noun_number");
// Some antecedents may not have a noun number, possibly due
// to a relex bug, or some valid reason?
if (ant == null) return false;
String sant = ant.getValue();
FeatureNode prn = anph.get("noun_number");
// "it" won't have a noun_number, since it needs to be
// singular ("It was a book") or uncountable ("It was hot coffee");
// However, "it" can never match a plural.
if (prn == null)
{
if (sant.equals("plural"))
{
if (DEBUG > 0)
{
System.out.println("Number filter mismatch: it/plural");
}
return true;
}
return false;
}
String sprn = prn.getValue();
if (sant.equals(sprn)) return false;
if (DEBUG > 0)
{
System.out.println("Number filter mismatch");
}
return true;
}
/**
* Reject antecedents whose gender does not agree with
* the anaphora. gender is always valued as
* "masculine", "feminine" or "neuter"
* Retun true to reject.
*/
private Boolean genderFilter(FeatureNode anph, FeatureNode ante)
{
// XXX All anaphors should have a gender at this point,
// we should probably signal an error if not.
FeatureNode prn = anph.get("gender");
if (prn == null) return false;
String sprn = prn.getValue();
// If antecedents don't have gender indicated,
// assume they are neuter. These can only match
// non-sex pronouns.
FeatureNode ant = ante.get("gender");
if (ant == null)
{
if(sprn.equals("neuter")) return false;
if (DEBUG > 0)
{
System.out.println("Gender filter mismatch: neuter/sexed");
}
return true;
}
String sant = ant.getValue();
if (sant.equals(sprn)) return false;
if (sant.equals("person") && sprn.equals("masculine")) return false;
if (sant.equals("person") && sprn.equals("feminine")) return false;
if (DEBUG > 0)
{
System.out.println("Gender filter mismatch");
}
return true;
}
/**
* Phrases like (NP (NP the boxes) and (NP the cup))
* will not have a leader. Reject it, and, instead,
* try to pick up the individual parts.
* XXX but this is wrong/messy:
* "Alice held a lamp and and ashtray. They were ugly"
*/
private Boolean nullLeaderFilter(PhraseTree ante, FeatureNode prn)
{
return true;
}
private Boolean applyFilters(PhraseTree anaph, PhraseTree ante)
{
FeatureNode prn = anaph.getPhraseLeader();
if (prn == null)
{
System.err.println ("Warning: Anaphore is missing a phrase leader!\n" +
anaph.toString());
return false;
}
prn = prn.get("ref");
if (DEBUG > 0)
{
System.out.println("Anaphore: " + anaph.toString());
System.out.println("Candidate antecedent: " + ante.toString());
}
FeatureNode ref = ante.getPhraseLeader();
if ((ref == null) && nullLeaderFilter(ante, prn)) return true;
ref = ref.get("ref");
// Apply filters. Filter returns true to reject.
if (antiAnaFilter(prn, ref)) return true;
if (numberFilter(prn, ref)) return true;
if (genderFilter(prn, ref)) return true;
return false;
}
/* ----------------------------------------------------------- */
// Return string associated to phrase
private String getword(PhraseTree pt)
{
FeatureNode ph = pt.getPhraseLeader();
if (ph == null) return "";
ph = ph.get("str");
if (ph == null) return "";
return ph.getValue();
}
/**
* toString() -- utility print shows antecedent candidates
*
* The integer printed in the square brackets is the
* "Hobbs score" for the candidate: the lower, the more likely.
*/
public String toString(PhraseTree prn)
{
ArrayList<PhraseTree> ante_list = ante_map.get(prn);
if (ante_list == null) return "";
String str = "";
String prw = getword(prn);
// Integer i is the "Hobbs distance"
for (int i=0; i<ante_list.size(); i++)
{
PhraseTree ante = ante_list.get(i);
str += "_ante_candidate(" + prw + ", " + getword(ante) + ") {" + i + "}\n";
}
return str;
}
public String toString()
{
String str = "";
for (PhraseTree prn : ante_map.keySet())
{
str += toString(prn);
}
return str;
}
} // end Antecedents
/* ==================== END OF FILE ================== */
| 26.565657 | 78 | 0.659696 |
5baf7711f343ef2d614f49d44c5672f1a3990adf | 5,037 | /*
* Copyright (c) 2015 FUJI Goro (gfx).
*
* Licensed 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package com.github.gfx.android.orma.migration.sqliteparser;
import com.github.gfx.android.orma.migration.sqliteparser.g.SQLiteBaseListener;
import com.github.gfx.android.orma.migration.sqliteparser.g.SQLiteParser;
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
import org.antlr.v4.runtime.tree.ParseTree;
import org.antlr.v4.runtime.tree.TerminalNode;
import java.util.List;
/**
* The SQLite DDL collector for {@link SQLiteParser}, used in {@link SQLiteParserUtils}
*/
public class SQLiteCreateTableStatementCollector extends SQLiteBaseListener {
CreateTableStatement.ColumnDef columnDef;
CreateTableStatement createTableStatement;
static String combineParseTree(ParseTree node) {
return node.accept(new AbstractParseTreeVisitor<StringBuilder>() {
final StringBuilder sb = new StringBuilder();
@Override
protected StringBuilder defaultResult() {
return sb;
}
@Override
public StringBuilder visitTerminal(TerminalNode node) {
if (sb.length() != 0) {
sb.append(' ');
}
sb.append(node.getText());
return sb;
}
}).toString();
}
@Override
public void enterCreate_table_stmt(SQLiteParser.Create_table_stmtContext ctx) {
createTableStatement = new CreateTableStatement();
}
@Override
public void exitCreate_table_stmt(SQLiteParser.Create_table_stmtContext ctx) {
if (ctx.K_AS() != null) {
createTableStatement.selectStatement = new SelectStatement();
SQLiteParserUtils.appendTokenList(createTableStatement.selectStatement, ctx);
}
SQLiteParserUtils.appendTokenList(createTableStatement, ctx);
}
@Override
public void exitTable_name(SQLiteParser.Table_nameContext ctx) {
createTableStatement.tableName = new SQLiteComponent.Name(ctx.getText());
}
@Override
public void enterColumn_def(SQLiteParser.Column_defContext ctx) {
columnDef = new CreateTableStatement.ColumnDef();
createTableStatement.columns.add(columnDef);
}
@Override
public void exitColumn_def(SQLiteParser.Column_defContext ctx) {
SQLiteParserUtils.appendTokenList(columnDef, ctx);
columnDef = null;
}
@Override
public void exitColumn_name(SQLiteParser.Column_nameContext ctx) {
if (columnDef != null && columnDef.name == null) {
columnDef.name = new SQLiteComponent.Name(ctx.getText());
}
}
@Override
public void exitType_name(SQLiteParser.Type_nameContext ctx) {
StringBuilder name = new StringBuilder();
for (SQLiteParser.NameContext nameContext : ctx.name()) {
if (name.length() != 0) {
name.append(' ');
}
name.append(nameContext.getText());
}
columnDef.type = name.toString();
}
@Override
public void exitColumn_constraint(SQLiteParser.Column_constraintContext ctx) {
CreateTableStatement.ColumnDef.Constraint constraint = new CreateTableStatement.ColumnDef.Constraint();
if (ctx.K_PRIMARY() != null) {
constraint.primaryKey = true;
} else if (ctx.K_NOT() != null) {
constraint.nullable = false;
} else if (ctx.K_NULL() != null) {
constraint.nullable = true;
} else if (ctx.K_DEFAULT() != null) {
List<ParseTree> nodes = ctx.children.subList(1, ctx.children.size());
for (ParseTree node : nodes) {
if (constraint.defaultExpr == null) {
constraint.defaultExpr = combineParseTree(node);
} else {
constraint.defaultExpr += " " + combineParseTree(node);
}
}
}
SQLiteParserUtils.appendTokenList(constraint, ctx);
columnDef.constraints.add(constraint);
}
@Override
public void exitTable_constraint(SQLiteParser.Table_constraintContext ctx) {
CreateTableStatement.Constraint constraint = new CreateTableStatement.Constraint();
if (ctx.K_CONSTRAINT() != null) {
constraint.name = new SQLiteComponent.Name(ctx.name().getText());
}
SQLiteParserUtils.appendTokenList(constraint, ctx);
createTableStatement.constraints.add(constraint);
}
}
| 34.5 | 111 | 0.656343 |
4efac23ab4c17189a097518f1e515461a1151538 | 3,437 | package com.sam_chordas.android.stockhawk.service;
import android.app.IntentService;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.os.ResultReceiver;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
/**
* An Intent Service for fetching historical stock data.
*/
public class HistoricalDataIntentService extends IntentService {
private static final String LOG_TAG = HistoricalDataIntentService.class.getName();
private final OkHttpClient client = new OkHttpClient();
public HistoricalDataIntentService(){
super(LOG_TAG);
}
@Override
protected void onHandleIntent(Intent intent) {
//build url
String startDate = intent.getStringExtra("startDate");
String endDate = intent.getStringExtra("endDate");
String symbol = intent.getStringExtra("symbol");
ResultReceiver resultReceiver = intent.getParcelableExtra("receiver");
final String YAHOO_BASE_URL = "https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.historicaldata%20where%20symbol%20%3D%20%22";
final String START_DATE_PARAM = "%22%20and%20startDate%20%3D%20%22";
final String END_DATE_PARAM = "%22%20and%20endDate%20%3D%20%22";
final String UNITS_PARAM = "%22&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys";
String jsonString;
String urlString = YAHOO_BASE_URL +
symbol +
START_DATE_PARAM +
startDate +
END_DATE_PARAM +
endDate +
UNITS_PARAM;
try{
jsonString = fetchData(urlString);
JSONObject fullJson = new JSONObject(jsonString);
JSONObject queryObject = fullJson.getJSONObject("query");
JSONObject resultsObject = queryObject.getJSONObject("results");
JSONArray quoteArray = resultsObject.getJSONArray("quote");
int length = quoteArray.length();
String[] dateList = new String[length];
float[] quoteList = new float[length];
for (int i = length-1; i >= 0 ; i--) {
JSONObject obj = quoteArray.getJSONObject(i);
String date = obj.getString("Date");
Float close = (float) obj.getDouble("Adj_Close");
dateList[(length-1) - i] = date;
quoteList[(length-1) - i] = close;
}
Bundle bundle = new Bundle();
bundle.putStringArray("dateList", dateList);
bundle.putFloatArray("quoteList", quoteList);
resultReceiver.send(200, bundle);
} catch (JSONException e){
e.printStackTrace();
} catch (IOException e){
e.printStackTrace();
}
}
/**
* Returns a JSON string from a call to yahoo historical data API.
*
* @param url a url String constructed to fetch data from the yahoo historical data API.
*/
private String fetchData(String url) throws IOException {
Request request = new Request.Builder()
.url(url)
.build();
Response response = client.newCall(request).execute();
return response.body().string();
}
}
| 36.956989 | 162 | 0.637184 |
e33d21fcfe80ee5119d292c3f06516fb4e0e987a | 821 | package softuni.exam.instagraphlite.util.impl;
import org.springframework.stereotype.Service;
import softuni.exam.instagraphlite.util.ValidationUtil;
import javax.validation.Validation;
import javax.validation.Validator;
import java.util.function.Predicate;
@Service
public class ValidationUtilImpl implements ValidationUtil {
@Override
public <E> boolean isValid(E entity) {
Validator validator = Validation
.buildDefaultValidatorFactory().getValidator();
return validator.validate(entity).isEmpty();
}
@Override
public <E> boolean isValid(E entity, Predicate<E> isValid) {
Validator validator = Validation
.buildDefaultValidatorFactory().getValidator();
return validator.validate(entity).isEmpty() && isValid.test(entity);
}
}
| 31.576923 | 76 | 0.725944 |
9a7acc1d52c458155eda24824481e70dde8f4520 | 1,903 | // Carrie Krueger
// 9-10-19
// Chapter 2 Notes: Output and Escape Sequences
public class Ch2Output {
public static void main(String[] args) {
escape(); // this method will explore output and escape sequences
}
// this method investigates output and escape sequences
public static void escape() {
// print vs. println
System.out.print("Hello World!"); // next thing prints on the same line
System.out.println("It is Tuesday"); // next thing prints on the next line
System.out.println("After Monday...");
System.out.println(); // print blank line
// OUTPUT
System.out.println(2); // you can put text or numbers in a print statement
System.out.println(1 + 2 * 3); // do math! order of operations...
// ESCAPE SEQUENCES
// special characters for formatting etc.
// denoted with \ (the escape character)
// \n -> new line
System.out.println("Hello World! \n\n\n\n\n");
System.out.println("Hello \n\n World!");
// \t -> tab
System.out.println("Hello\tHello");
System.out.println("Hello\t\t\tHello");
// \\ -> \
System.out.println("\\");
// \" -> "
System.out.println("\"Java is the best language!\"");
// You try!
// Think of a quotation or saying that you know.
// Create a new class called PrintQuote
// Output the saying with visible quotation marks in the output.
// ex. "That's the way the cookie crumbles."
// use a method to print your qoute! :)
}
}
| 26.068493 | 84 | 0.495533 |
258f35bec89a7b427fedc111e81700a2395d5842 | 1,347 | /******************************************************************************
* Project Strix *
* Socket Client-Server *
* *
* Copyright (c) 2020. Elex. All Rights Reserved. *
* https://www.elex-project.com/ *
******************************************************************************/
package com.elex_project.strix;
import lombok.extern.slf4j.Slf4j;
import java.io.IOException;
import java.net.SocketException;
@Slf4j
public class SimpleSocketClientTest {
public static void main(String... args) throws IOException, InterruptedException {
SimpleSocketClient socketClient
= new SimpleSocketClient("127.0.0.1", 9999);
socketClient.setMessageListener(new SimpleSocketClient.MessageListener() {
@Override
public void onMessage(String message) {
log.info("Rx: {}", message);
}
});
try {
while (true) {
Thread.sleep(1000);
String message = "Test_" + System.currentTimeMillis();
socketClient.writeLine(message);
log.info("Tx: {}", message);
}
} catch (SocketException e) {
} finally {
socketClient.close();
}
}
}
| 32.071429 | 83 | 0.473645 |
fe5c0ad1006b95b3794835015d1772bb15bd6afb | 6,041 | package com.defano.wyldcard.parts;
import com.defano.hypertalk.ast.model.PartType;
import com.defano.hypertalk.ast.model.Value;
import com.defano.hypertalk.exception.HtSemanticException;
import com.defano.hypertalk.exception.NoSuchPropertyException;
import com.defano.hypertalk.exception.PropertyPermissionException;
import com.defano.wyldcard.WyldCard;
import com.defano.wyldcard.parts.bkgnd.BackgroundModel;
import com.defano.wyldcard.parts.card.CardLayerPartModel;
import com.defano.wyldcard.parts.card.CardModel;
import com.defano.wyldcard.parts.model.PartModel;
import com.defano.wyldcard.parts.stack.StackModel;
import com.defano.wyldcard.parts.stack.StackPart;
import com.defano.wyldcard.runtime.context.ExecutionContext;
import com.defano.wyldcard.runtime.context.ToolsContext;
import com.defano.wyldcard.window.layouts.StackWindow;
import com.defano.wyldcard.window.WindowManager;
import java.awt.*;
/**
* An interface defining behavior common to all card-embedded parts (buttons and fields).
*/
public interface Part {
/**
* Gets the type of this part.
* @return The type of the part.
*/
PartType getType();
/**
* Gets the data model associated with this part.
* @return The part model.
*/
PartModel getPartModel();
/**
* Invoked when the part is opened (added) to a card, background or stack.
* @param context The execution context.
*/
void partOpened(ExecutionContext context);
/**
* Invoked when the part is closed (removed) from a card, background or stack.
* @param context The execution context.
*/
void partClosed(ExecutionContext context);
/**
* Sets the property of the part.
*
* @param context The execution context.
* @param property The name of the property to set
* @param value The value to which it should be set
* @throws NoSuchPropertyException Thrown if no such property exists on this part
* @throws PropertyPermissionException Thrown when attempting to write a read-only property (like ID)
* @throws HtSemanticException Thrown if value provided is invalid for this property
*/
default void setProperty(ExecutionContext context, String property, Value value) throws HtSemanticException {
getPartModel().setProperty(context, property, value);
}
/**
* Gets the value of a property on this part.
*
* @param context The execution context.
* @param property The name of the property to get
* @return The value of the property
* @throws NoSuchPropertyException Thrown if no such property exists on the part.
*/
default Value getProperty(ExecutionContext context, String property) throws NoSuchPropertyException {
return getPartModel().getProperty(context, property);
}
/**
* Gets the bounds of this part.
* @return The bounds of the part.
* @param context The execution context.
*/
default Rectangle getRect(ExecutionContext context) {
return getPartModel().getRect(context);
}
/**
* Gets the ID of this part.
* @return The part id.
* @param context The execution context.
*/
default int getId(ExecutionContext context) {
return getPartModel().getKnownProperty(context, PartModel.PROP_ID).integerValue();
}
/**
* Gets the name of this part.
* @return The part name.
* @param context The execution context.
*/
default String getName(ExecutionContext context) {
return getPartModel().getKnownProperty(context, PartModel.PROP_NAME).stringValue();
}
/**
* Determines if a part tool (button or field) is currently active.
* @return True if a part tool is active; false otherwise.
*/
default boolean isPartToolActive() {
return ToolsContext.getInstance().getToolMode().isPartTool();
}
/**
* Gets the stack that this part is a component of.
*
* @return The stack that this part is a component of or null if the component is not part of a stack, or has not
* yet been bound to a specific stack.
*/
default StackPart getOwningStack() {
return WyldCard.getInstance().getOpenStack(getOwningStackModel());
}
/**
* Gets the stack model that this part is a component of.
*
* @return The model of the stack that this part is a component of, or null if the component is not part of a stack,
* or has not yet been bound to a specific stack.
*/
default StackModel getOwningStackModel() {
switch (getType()) {
case FIELD:
case BUTTON:
CardLayerPartModel partModel = (CardLayerPartModel) getPartModel();
PartModel parentModel = partModel.getParentPartModel();
if (parentModel instanceof BackgroundModel) {
return ((BackgroundModel) parentModel).getStackModel();
} else {
return ((CardModel) parentModel).getStackModel();
}
case CARD:
return ((CardModel) getPartModel()).getStackModel();
case BACKGROUND:
return ((BackgroundModel) getPartModel()).getStackModel();
case STACK:
return (StackModel) getPartModel();
default:
return null;
}
}
/**
* Gets the stack window bound to the stack that this part is a component of.
*
* @return The stack window in which this part appears, or null, if this component is not part of a stack.
*/
default StackWindow getOwningStackWindow() {
StackModel boundModel = getOwningStackModel();
if (boundModel != null) {
return WindowManager.getInstance().findWindowForStack(boundModel);
} else {
return null;
}
}
}
| 36.173653 | 121 | 0.648403 |
d2582894d17a0111862f372acb419d73e3390b98 | 3,422 | package models;
import org.junit.Test;
import static junit.framework.TestCase.assertFalse;
import static junit.framework.TestCase.assertTrue;
/**
* Implements JUnit test cases for TweetTest functionality.
*
* @author Nikita Baranov
* @version 1.0.0
*/
public class TweetTest {
/**
* Checks Equals method
*/
@Test
public void equals_correct_success() {
UserProfile userProfile = new UserProfile();
userProfile.setName("testName");
userProfile.setScreen_name("testSname");
userProfile.setCreated_at("createdAt");
userProfile.setDescription("testDesc");
userProfile.setFavourites_count(123123);
userProfile.setFollowers_count(123123);
userProfile.setFriends_count(123);
userProfile.setTime_zone("zone");
userProfile.setStatuses_count("sc");
Tweet tweet1 = new Tweet();
tweet1.setUser(userProfile);
tweet1.setFull_text("tweet1");
tweet1.setCreated_at("tw1createdAt");
Tweet tweet2 = new Tweet();
tweet2.setUser(userProfile);
tweet2.setFull_text("tweet1");
tweet2.setCreated_at("tw1createdAt");
assertTrue(tweet1.equals(tweet1));
assertTrue(tweet1.equals(tweet2));
}
/**
* Checks Equals method
*/
@Test
public void equals_inCorrect_success() {
UserProfile userProfile = new UserProfile();
userProfile.setName("testName");
userProfile.setScreen_name("testSname");
userProfile.setCreated_at("createdAt");
userProfile.setDescription("testDesc");
userProfile.setFavourites_count(123123);
userProfile.setFollowers_count(123123);
userProfile.setFriends_count(123);
userProfile.setTime_zone("zone");
userProfile.setStatuses_count("sc");
Tweet tweet1 = new Tweet();
tweet1.setUser(userProfile);
tweet1.setFull_text("tweet1");
tweet1.setCreated_at("tw1createdAt");
Tweet tweet2 = new Tweet();
tweet2.setUser(null);
tweet2.setFull_text(null);
tweet2.setCreated_at(null);
assertFalse(tweet1.equals(tweet2));
tweet2.setCreated_at(tweet1.getCreated_at());
assertFalse(tweet1.equals(tweet2));
tweet2.setFull_text(tweet1.getFull_text());
assertFalse(tweet1.equals(tweet2));
assertFalse(tweet1.equals(null));
}
/**
* Checks Hash Code method
*/
@Test
public void hashCode_success() {
UserProfile userProfile = new UserProfile();
userProfile.setName("testName");
userProfile.setScreen_name("testSname");
userProfile.setCreated_at("createdAt");
userProfile.setDescription("testDesc");
userProfile.setFavourites_count(123123);
userProfile.setFollowers_count(123123);
userProfile.setFriends_count(123);
userProfile.setTime_zone("zone");
userProfile.setStatuses_count("sc");
Tweet tweet1 = new Tweet();
tweet1.setUser(userProfile);
tweet1.setFull_text("tweet1");
tweet1.setCreated_at("tw1createdAt");
Tweet tweet2 = new Tweet();
tweet2.setUser(userProfile);
tweet2.setFull_text("tweet2");
tweet2.setCreated_at("tw2createdAt");
assertTrue(tweet1.hashCode() == tweet1.hashCode());
assertFalse(tweet1.hashCode() == tweet2.hashCode());
}
} | 30.283186 | 60 | 0.651666 |
886fb1c4ce2abc72cd430cec6f1274d7a2d21304 | 1,375 | /**
* Copyright 2007-2016, Kaazing Corporation. All rights reserved.
*
* Licensed 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package org.kaazing.gateway.server.test;
import org.hamcrest.BaseMatcher;
import org.hamcrest.Description;
final class VariableMatcher<T> extends BaseMatcher<T> {
private final String variableName;
private final Expectations exp;
private final Class<T> clazz;
public VariableMatcher(String variableName, Class<T> clazz, Expectations exp) {
this.variableName = variableName;
this.exp = exp;
this.clazz = clazz;
}
@Override
public boolean matches(Object arg) {
return arg.equals(exp.lookup(variableName, clazz));
}
@Override
public void describeTo(Description description) {
description.appendText("equal to saved parameter ").appendValue(variableName);
}
}
| 31.25 | 86 | 0.722182 |
3467d539b5bd5dbab3aed571d229abf43c5493d1 | 5,277 | /*
* This file is part of LuckPerms, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <[email protected]>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package me.lucko.luckperms.sponge;
import me.lucko.luckperms.common.command.CommandManager;
import me.lucko.luckperms.common.command.utils.ArgumentTokenizer;
import me.lucko.luckperms.common.config.ConfigKeys;
import me.lucko.luckperms.common.sender.Sender;
import net.kyori.adventure.text.Component;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.spongepowered.api.command.Command;
import org.spongepowered.api.command.CommandCause;
import org.spongepowered.api.command.CommandCompletion;
import org.spongepowered.api.command.CommandResult;
import org.spongepowered.api.command.parameter.ArgumentReader;
import org.spongepowered.api.command.selector.Selector;
import org.spongepowered.api.entity.living.player.Player;
import java.util.List;
import java.util.ListIterator;
import java.util.Optional;
import java.util.stream.Collectors;
public class SpongeCommandExecutor extends CommandManager implements Command.Raw {
private final LPSpongePlugin plugin;
public SpongeCommandExecutor(LPSpongePlugin plugin) {
super(plugin);
this.plugin = plugin;
}
@Override
public @NonNull CommandResult process(@NonNull CommandCause source, ArgumentReader.@NonNull Mutable args) {
Sender wrapped = this.plugin.getSenderFactory().wrap(source.audience());
List<String> arguments = resolveSelectors(source, ArgumentTokenizer.EXECUTE.tokenizeInput(args.input()));
executeCommand(wrapped, "lp", arguments);
return CommandResult.success();
}
@Override
public List<CommandCompletion> complete(@NonNull CommandCause source, ArgumentReader.@NonNull Mutable args) {
Sender wrapped = this.plugin.getSenderFactory().wrap(source.audience());
List<String> arguments = resolveSelectors(source, ArgumentTokenizer.TAB_COMPLETE.tokenizeInput(args.input()));
return tabCompleteCommand(wrapped, arguments)
.stream()
.map(CommandCompletion::of)
.collect(Collectors.toList());
}
@Override
public boolean canExecute(CommandCause cause) {
return true; // we run permission checks internally
}
@Override
public Optional<Component> shortDescription(CommandCause cause) {
return Optional.of(Component.text("Manage permissions"));
}
@Override
public Optional<Component> extendedDescription(CommandCause cause) {
return Optional.empty();
}
@Override
public Component usage(CommandCause cause) {
return Component.text("/luckperms");
}
private List<String> resolveSelectors(CommandCause source, List<String> args) {
if (!this.plugin.getConfiguration().get(ConfigKeys.RESOLVE_COMMAND_SELECTORS)) {
return args;
}
for (ListIterator<String> it = args.listIterator(); it.hasNext(); ) {
String arg = it.next();
if (arg.isEmpty() || arg.charAt(0) != '@') {
continue;
}
List<Player> matchedPlayers;
try {
matchedPlayers = Selector.parse(arg).select(source).stream()
.filter(e -> e instanceof Player)
.map(e -> (Player) e)
.collect(Collectors.toList());
} catch (IllegalArgumentException e) {
this.plugin.getLogger().warn("Error parsing selector '" + arg + "' for " + source + " executing " + args, e);
continue;
}
if (matchedPlayers.isEmpty()) {
continue;
}
if (matchedPlayers.size() > 1) {
this.plugin.getLogger().warn("Error parsing selector '" + arg + "' for " + source + " executing " + args +
": ambiguous result (more than one player matched) - " + matchedPlayers);
continue;
}
Player player = matchedPlayers.get(0);
it.set(player.uniqueId().toString());
}
return args;
}
}
| 39.088889 | 125 | 0.674436 |
7dbaebfbb672b54bf2607be60e71d78eb4b792e3 | 393 | public class Gerente extends Funcionario {
public Gerente(String nome, String cpf, String localDeTrabalho) {
super(nome, cpf, localDeTrabalho);
}
public void contactarFornecedor(String produto, int quantidade, Fornecedor fornecedor) {
Estoque estoque = new Estoque();
estoque.aumentarEstoque(produto, quantidade, fornecedor.getEstabelecimento());
}
}
| 32.75 | 92 | 0.717557 |
786e0bf8b66a530e8b36c35217ab298e7d5bca62 | 947,320 | import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class ErrorTest5 {
public static boolean debug = false;
@Test
public void test2501() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2501");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) 4, (double) 1.0f);
}
@Test
public void test2502() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2502");
byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) -1, (byte) 10, (byte) 10, (byte) 10 };
byte[] byteArray8 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("random", byteArray7, byteArray8);
}
@Test
public void test2503() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2503");
double[][] doubleArray1 = new double[][] {};
double[][][] doubleArray2 = new double[][][] { doubleArray1 };
double[][] doubleArray3 = new double[][] {};
double[][][] doubleArray4 = new double[][][] { doubleArray3 };
double[][] doubleArray5 = new double[][] {};
double[][][] doubleArray6 = new double[][][] { doubleArray5 };
double[][] doubleArray7 = new double[][] {};
double[][][] doubleArray8 = new double[][][] { doubleArray7 };
double[][][][] doubleArray9 = new double[][][][] { doubleArray2, doubleArray4, doubleArray6, doubleArray8 };
java.util.Set<double[][][]> doubleArraySet10 = org.apache.lucene.util.LuceneTestCase.asSet(doubleArray9);
java.lang.reflect.GenericDeclaration[][] genericDeclarationArray12 = new java.lang.reflect.GenericDeclaration[][] {};
java.util.Set<java.lang.reflect.GenericDeclaration[]> genericDeclarationArraySet13 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray12);
java.lang.reflect.GenericDeclaration[] genericDeclarationArray15 = new java.lang.reflect.GenericDeclaration[] {};
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet16 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray15);
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet17 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray15);
org.junit.Assert.assertNotEquals((java.lang.Object) 1, (java.lang.Object) genericDeclarationArray15);
java.util.Set<java.lang.reflect.AnnotatedElement> annotatedElementSet19 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.reflect.AnnotatedElement[]) genericDeclarationArray15);
org.junit.Assert.assertEquals("", (java.lang.Object[]) genericDeclarationArray12, (java.lang.Object[]) genericDeclarationArray15);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("<unknown>", (java.lang.Object[]) doubleArray9, (java.lang.Object[]) genericDeclarationArray12);
}
@Test
public void test2504() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2504");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals((double) 100.0f, (double) 'a', (double) 100L);
}
@Test
public void test2505() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2505");
org.apache.lucene.store.MockDirectoryWrapper.Throttling throttling3 = org.apache.lucene.util.LuceneTestCase.TEST_THROTTLING;
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray4 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] { throttling3 };
java.util.List<org.apache.lucene.store.MockDirectoryWrapper.Throttling> throttlingList5 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, throttlingArray4);
org.junit.Assert.assertNotNull("europarl.lines.txt.gz", (java.lang.Object) throttlingArray4);
java.util.Set<java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>> throttlingEnumSet7 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>[]) throttlingArray4);
org.apache.lucene.store.MockDirectoryWrapper.Throttling throttling9 = org.apache.lucene.util.LuceneTestCase.TEST_THROTTLING;
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray10 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] { throttling9 };
java.util.List<org.apache.lucene.store.MockDirectoryWrapper.Throttling> throttlingList11 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, throttlingArray10);
java.util.Set<java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>> throttlingEnumSet12 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>[]) throttlingArray10);
org.junit.Assert.assertEquals("tests.failfast", (java.lang.Object[]) throttlingArray4, (java.lang.Object[]) throttlingArray10);
short[] shortArray17 = new short[] { (short) 10 };
short[] shortArray19 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray17, shortArray19);
short[] shortArray23 = new short[] { (short) 10 };
short[] shortArray25 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray23, shortArray25);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", shortArray19, shortArray25);
short[] shortArray31 = new short[] { (short) 10 };
short[] shortArray33 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray31, shortArray33);
short[] shortArray37 = new short[] { (short) 10 };
short[] shortArray39 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray37, shortArray39);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray33, shortArray39);
org.junit.Assert.assertArrayEquals(shortArray25, shortArray33);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object) throttlingArray4, (java.lang.Object) shortArray33);
}
@Test
public void test2506() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2506");
byte[] byteArray5 = new byte[] { (byte) -1, (byte) 10, (byte) -1, (byte) 10, (byte) 100 };
byte[] byteArray6 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(byteArray5, byteArray6);
}
@Test
public void test2507() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2507");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("hi!", indexReader8, (int) (byte) 0, postingsEnum10, postingsEnum11);
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.Terms terms15 = null;
org.apache.lucene.index.Terms terms16 = null;
kuromojiAnalysisTests0.assertTermsEquals("random", indexReader14, terms15, terms16, true);
kuromojiAnalysisTests0.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum21 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
kuromojiAnalysisTests0.assertDocsEnumEquals("tests.nightly", postingsEnum21, postingsEnum22, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests25 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader27 = null;
org.apache.lucene.index.Fields fields28 = null;
org.apache.lucene.index.Fields fields29 = null;
kuromojiAnalysisTests25.assertFieldsEquals("europarl.lines.txt.gz", indexReader27, fields28, fields29, false);
kuromojiAnalysisTests25.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain34 = kuromojiAnalysisTests25.failureAndSuccessEvents;
kuromojiAnalysisTests25.ensureAllSearchContextsReleased();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests36 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader38 = null;
org.apache.lucene.index.Fields fields39 = null;
org.apache.lucene.index.Fields fields40 = null;
kuromojiAnalysisTests36.assertFieldsEquals("europarl.lines.txt.gz", indexReader38, fields39, fields40, false);
org.apache.lucene.index.IndexReader indexReader44 = null;
org.apache.lucene.index.PostingsEnum postingsEnum46 = null;
org.apache.lucene.index.PostingsEnum postingsEnum47 = null;
kuromojiAnalysisTests36.assertPositionsSkippingEquals("hi!", indexReader44, (int) (byte) 0, postingsEnum46, postingsEnum47);
kuromojiAnalysisTests36.ensureCheckIndexPassed();
org.elasticsearch.index.analysis.KuromojiAnalysisTests[] kuromojiAnalysisTestsArray50 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests[] { kuromojiAnalysisTests0, kuromojiAnalysisTests25, kuromojiAnalysisTests36 };
java.util.Set<org.elasticsearch.index.analysis.KuromojiAnalysisTests> kuromojiAnalysisTestsSet51 = org.apache.lucene.util.LuceneTestCase.asSet(kuromojiAnalysisTestsArray50);
java.util.Set<org.junit.Assert> assertSet52 = org.apache.lucene.util.LuceneTestCase.asSet((org.junit.Assert[]) kuromojiAnalysisTestsArray50);
java.util.Set<org.elasticsearch.test.ESTestCase> eSTestCaseSet53 = org.apache.lucene.util.LuceneTestCase.asSet((org.elasticsearch.test.ESTestCase[]) kuromojiAnalysisTestsArray50);
java.util.Locale locale55 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass56 = locale55.getClass();
java.util.Locale locale58 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass59 = locale58.getClass();
java.util.Locale locale61 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass62 = locale61.getClass();
java.util.Locale locale64 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass65 = locale64.getClass();
java.util.Locale locale67 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass68 = locale67.getClass();
java.lang.reflect.AnnotatedElement[] annotatedElementArray69 = new java.lang.reflect.AnnotatedElement[] { wildcardClass56, wildcardClass59, wildcardClass62, wildcardClass65, wildcardClass68 };
java.util.Set<java.lang.reflect.AnnotatedElement> annotatedElementSet70 = org.apache.lucene.util.LuceneTestCase.asSet(annotatedElementArray69);
java.lang.Object obj71 = null;
org.junit.Assert.assertNotEquals((java.lang.Object) annotatedElementArray69, obj71);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object[]) kuromojiAnalysisTestsArray50, (java.lang.Object[]) annotatedElementArray69);
}
@Test
public void test2508() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2508");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
java.lang.String[] strArray15 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet16 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray15);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests17 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests17.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet16, (java.lang.Object) kuromojiAnalysisTests17);
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
kuromojiAnalysisTests17.assertDocsEnumEquals("tests.badapples", postingsEnum22, postingsEnum23, true);
org.junit.rules.TestRule testRule26 = kuromojiAnalysisTests17.ruleChain;
org.apache.lucene.index.IndexReader indexReader28 = null;
org.apache.lucene.index.PostingsEnum postingsEnum30 = null;
org.apache.lucene.index.PostingsEnum postingsEnum31 = null;
kuromojiAnalysisTests17.assertDocsSkippingEquals("tests.maxfailures", indexReader28, (int) (byte) 100, postingsEnum30, postingsEnum31, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests34 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader36 = null;
org.apache.lucene.index.Fields fields37 = null;
org.apache.lucene.index.Fields fields38 = null;
kuromojiAnalysisTests34.assertFieldsEquals("europarl.lines.txt.gz", indexReader36, fields37, fields38, false);
kuromojiAnalysisTests34.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain43 = kuromojiAnalysisTests34.failureAndSuccessEvents;
kuromojiAnalysisTests17.failureAndSuccessEvents = ruleChain43;
kuromojiAnalysisTests1.failureAndSuccessEvents = ruleChain43;
org.apache.lucene.index.PostingsEnum postingsEnum47 = null;
org.apache.lucene.index.PostingsEnum postingsEnum48 = null;
kuromojiAnalysisTests1.assertDocsEnumEquals("<unknown>", postingsEnum47, postingsEnum48, true);
kuromojiAnalysisTests1.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader53 = null;
org.apache.lucene.index.Fields fields54 = null;
org.apache.lucene.index.Fields fields55 = null;
kuromojiAnalysisTests1.assertFieldsEquals("tests.awaitsfix", indexReader53, fields54, fields55, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests58 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader60 = null;
org.apache.lucene.index.Fields fields61 = null;
org.apache.lucene.index.Fields fields62 = null;
kuromojiAnalysisTests58.assertFieldsEquals("europarl.lines.txt.gz", indexReader60, fields61, fields62, false);
kuromojiAnalysisTests58.ensureCleanedUp();
kuromojiAnalysisTests58.resetCheckIndexStatus();
kuromojiAnalysisTests58.ensureCleanedUp();
org.junit.Assert.assertNotEquals("", (java.lang.Object) fields54, (java.lang.Object) kuromojiAnalysisTests58);
kuromojiAnalysisTests58.resetCheckIndexStatus();
java.lang.Class<?> wildcardClass70 = kuromojiAnalysisTests58.getClass();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) kuromojiAnalysisTests58);
}
@Test
public void test2509() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2509");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((long) (byte) -1, 100L);
}
@Test
public void test2510() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2510");
java.lang.reflect.GenericDeclaration[][] genericDeclarationArray1 = new java.lang.reflect.GenericDeclaration[][] {};
java.util.Set<java.lang.reflect.GenericDeclaration[]> genericDeclarationArraySet2 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray1);
java.util.Set<java.lang.reflect.AnnotatedElement[]> annotatedElementArraySet3 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.reflect.AnnotatedElement[][]) genericDeclarationArray1);
java.util.Set<java.lang.reflect.AnnotatedElement[]> annotatedElementArraySet4 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.reflect.AnnotatedElement[][]) genericDeclarationArray1);
java.lang.String[] strArray6 = new java.lang.String[] { "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet7 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray6);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests8 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.Terms terms11 = null;
org.apache.lucene.index.Terms terms12 = null;
kuromojiAnalysisTests8.assertTermsEquals("tests.weekly", indexReader10, terms11, terms12, false);
org.junit.Assert.assertNotSame((java.lang.Object) strArray6, (java.lang.Object) indexReader10);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("random", (java.lang.Object[]) genericDeclarationArray1, (java.lang.Object[]) strArray6);
}
@Test
public void test2511() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2511");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (-1), (double) 100, 1.0d);
}
@Test
public void test2512() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2512");
java.lang.Iterable[] iterableArray2 = new java.lang.Iterable[0];
@SuppressWarnings("unchecked")
java.lang.Iterable<java.util.Locale>[] localeIterableArray3 = (java.lang.Iterable<java.util.Locale>[]) iterableArray2;
java.lang.Iterable[] iterableArray5 = new java.lang.Iterable[0];
@SuppressWarnings("unchecked")
java.lang.Iterable<java.util.Locale>[] localeIterableArray6 = (java.lang.Iterable<java.util.Locale>[]) iterableArray5;
java.lang.Iterable[] iterableArray8 = new java.lang.Iterable[0];
@SuppressWarnings("unchecked")
java.lang.Iterable<java.util.Locale>[] localeIterableArray9 = (java.lang.Iterable<java.util.Locale>[]) iterableArray8;
java.lang.Iterable[] iterableArray11 = new java.lang.Iterable[0];
@SuppressWarnings("unchecked")
java.lang.Iterable<java.util.Locale>[] localeIterableArray12 = (java.lang.Iterable<java.util.Locale>[]) iterableArray11;
java.lang.Iterable[][] iterableArray14 = new java.lang.Iterable[4][];
@SuppressWarnings("unchecked")
java.lang.Iterable<java.util.Locale>[][] localeIterableArray15 = (java.lang.Iterable<java.util.Locale>[][]) iterableArray14;
localeIterableArray15[0] = iterableArray2;
localeIterableArray15[1] = iterableArray5;
localeIterableArray15[2] = localeIterableArray9;
localeIterableArray15[3] = localeIterableArray12;
java.util.List<java.lang.Iterable<java.util.Locale>[]> localeIterableArrayList24 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, localeIterableArray15);
java.util.Locale locale29 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale31 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale33 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale35 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale37 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray38 = new java.util.Locale[] { locale29, locale31, locale33, locale35, locale37 };
java.util.Set<java.util.Locale> localeSet39 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray38);
java.util.List<java.io.Serializable> serializableList40 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray38);
org.junit.Assert.assertNotSame("", (java.lang.Object) localeArray38, (java.lang.Object) 0.0f);
java.util.Locale locale46 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale48 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale50 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale52 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale54 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray55 = new java.util.Locale[] { locale46, locale48, locale50, locale52, locale54 };
java.util.Set<java.util.Locale> localeSet56 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray55);
java.util.List<java.io.Serializable> serializableList57 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray55);
org.junit.Assert.assertNotSame("", (java.lang.Object) localeArray55, (java.lang.Object) 0.0f);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", (java.lang.Object[]) localeArray38, (java.lang.Object[]) localeArray55);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object[]) localeIterableArray15, (java.lang.Object[]) localeArray55);
}
@Test
public void test2513() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2513");
java.lang.Object obj0 = null;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.failfast", indexReader9, 1, postingsEnum11, postingsEnum12);
kuromojiAnalysisTests1.setIndexWriterMaxDocs(0);
kuromojiAnalysisTests1.ensureCleanedUp();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests17 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader19 = null;
org.apache.lucene.index.Fields fields20 = null;
org.apache.lucene.index.Fields fields21 = null;
kuromojiAnalysisTests17.assertFieldsEquals("europarl.lines.txt.gz", indexReader19, fields20, fields21, false);
kuromojiAnalysisTests17.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain26 = kuromojiAnalysisTests17.failureAndSuccessEvents;
kuromojiAnalysisTests17.setUp();
java.util.Locale locale30 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale32 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale34 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale36 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale38 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray39 = new java.util.Locale[] { locale30, locale32, locale34, locale36, locale38 };
java.util.Set<java.util.Locale> localeSet40 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray39);
java.util.Locale locale43 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale45 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale47 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale49 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale51 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray52 = new java.util.Locale[] { locale43, locale45, locale47, locale49, locale51 };
java.util.Set<java.util.Locale> localeSet53 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray52);
java.util.List<java.io.Serializable> serializableList54 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray52);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray39, (java.lang.Object[]) localeArray52);
java.util.Locale locale58 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale60 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale62 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale64 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale66 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray67 = new java.util.Locale[] { locale58, locale60, locale62, locale64, locale66 };
java.util.Set<java.util.Locale> localeSet68 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray67);
java.util.List<java.io.Serializable> serializableList69 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray67);
java.util.Set<java.lang.Cloneable> cloneableSet70 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray67);
org.junit.Assert.assertArrayEquals("tests.slow", (java.lang.Object[]) localeArray52, (java.lang.Object[]) localeArray67);
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests17, (java.lang.Object) localeArray67);
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) kuromojiAnalysisTests17);
kuromojiAnalysisTests17.ensureCheckIndexPassed();
org.junit.rules.RuleChain ruleChain75 = kuromojiAnalysisTests17.failureAndSuccessEvents;
org.junit.Assert.assertNotNull((java.lang.Object) ruleChain75);
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain75;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(obj0, (java.lang.Object) ruleChain75);
}
@Test
public void test2514() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2514");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) '4', (double) 100);
}
@Test
public void test2515() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2515");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.resetCheckIndexStatus();
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
org.junit.rules.TestRule testRule13 = kuromojiAnalysisTests1.ruleChain;
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests1.resetCheckIndexStatus();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests16 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader18 = null;
org.apache.lucene.index.Fields fields19 = null;
org.apache.lucene.index.Fields fields20 = null;
kuromojiAnalysisTests16.assertFieldsEquals("europarl.lines.txt.gz", indexReader18, fields19, fields20, false);
org.apache.lucene.index.IndexReader indexReader24 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
org.apache.lucene.index.PostingsEnum postingsEnum27 = null;
kuromojiAnalysisTests16.assertPositionsSkippingEquals("tests.failfast", indexReader24, 1, postingsEnum26, postingsEnum27);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests29 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader31 = null;
org.apache.lucene.index.Fields fields32 = null;
org.apache.lucene.index.Fields fields33 = null;
kuromojiAnalysisTests29.assertFieldsEquals("europarl.lines.txt.gz", indexReader31, fields32, fields33, false);
kuromojiAnalysisTests29.ensureCleanedUp();
kuromojiAnalysisTests29.resetCheckIndexStatus();
kuromojiAnalysisTests29.ensureCleanedUp();
kuromojiAnalysisTests29.ensureCheckIndexPassed();
kuromojiAnalysisTests29.restoreIndexWriterMaxDocs();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests41 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader43 = null;
org.apache.lucene.index.Fields fields44 = null;
org.apache.lucene.index.Fields fields45 = null;
kuromojiAnalysisTests41.assertFieldsEquals("europarl.lines.txt.gz", indexReader43, fields44, fields45, false);
kuromojiAnalysisTests41.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain50 = kuromojiAnalysisTests41.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain50;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain50;
kuromojiAnalysisTests29.failureAndSuccessEvents = ruleChain50;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests56 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader58 = null;
org.apache.lucene.index.Fields fields59 = null;
org.apache.lucene.index.Fields fields60 = null;
kuromojiAnalysisTests56.assertFieldsEquals("europarl.lines.txt.gz", indexReader58, fields59, fields60, false);
kuromojiAnalysisTests56.ensureCleanedUp();
kuromojiAnalysisTests56.resetCheckIndexStatus();
kuromojiAnalysisTests56.ensureCleanedUp();
java.lang.String str66 = kuromojiAnalysisTests56.getTestName();
org.apache.lucene.index.IndexReader indexReader68 = null;
org.apache.lucene.index.Fields fields69 = null;
org.apache.lucene.index.Fields fields70 = null;
kuromojiAnalysisTests56.assertFieldsEquals("<unknown>", indexReader68, fields69, fields70, true);
kuromojiAnalysisTests56.ensureAllSearchContextsReleased();
org.junit.Assert.assertNotSame("tests.monster", (java.lang.Object) 10, (java.lang.Object) kuromojiAnalysisTests56);
org.junit.Assert.assertNotSame((java.lang.Object) ruleChain50, (java.lang.Object) 10);
kuromojiAnalysisTests16.failureAndSuccessEvents = ruleChain50;
kuromojiAnalysisTests1.failureAndSuccessEvents = ruleChain50;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull("enwiki.random.lines.txt", (java.lang.Object) kuromojiAnalysisTests1);
}
@Test
public void test2516() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2516");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (-1L), (double) 1L, (double) (-1));
}
@Test
public void test2517() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2517");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((long) 3, (long) (byte) 100);
}
@Test
public void test2518() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2518");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests2 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader4 = null;
org.apache.lucene.index.Fields fields5 = null;
org.apache.lucene.index.Fields fields6 = null;
kuromojiAnalysisTests2.assertFieldsEquals("europarl.lines.txt.gz", indexReader4, fields5, fields6, false);
kuromojiAnalysisTests2.ensureCleanedUp();
kuromojiAnalysisTests2.resetCheckIndexStatus();
kuromojiAnalysisTests2.ensureCleanedUp();
kuromojiAnalysisTests2.ensureCheckIndexPassed();
kuromojiAnalysisTests2.restoreIndexWriterMaxDocs();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests14 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader16 = null;
org.apache.lucene.index.Fields fields17 = null;
org.apache.lucene.index.Fields fields18 = null;
kuromojiAnalysisTests14.assertFieldsEquals("europarl.lines.txt.gz", indexReader16, fields17, fields18, false);
kuromojiAnalysisTests14.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain23 = kuromojiAnalysisTests14.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain23;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain23;
kuromojiAnalysisTests2.failureAndSuccessEvents = ruleChain23;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain23;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests28 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader30 = null;
org.apache.lucene.index.Fields fields31 = null;
org.apache.lucene.index.Fields fields32 = null;
kuromojiAnalysisTests28.assertFieldsEquals("europarl.lines.txt.gz", indexReader30, fields31, fields32, false);
kuromojiAnalysisTests28.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain37 = kuromojiAnalysisTests28.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain37;
org.junit.rules.RuleChain[] ruleChainArray39 = new org.junit.rules.RuleChain[] { ruleChain23, ruleChain37 };
java.util.Set<org.junit.rules.RuleChain> ruleChainSet40 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray39);
java.util.Set<org.junit.rules.RuleChain> ruleChainSet41 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray39);
org.junit.Assert.assertNotNull("", (java.lang.Object) ruleChainArray39);
java.util.List<org.junit.rules.TestRule> testRuleList43 = org.elasticsearch.test.ESTestCase.randomSubsetOf(0, (org.junit.rules.TestRule[]) ruleChainArray39);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) testRuleList43);
}
@Test
public void test2519() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2519");
java.lang.Object obj2 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("enwiki.random.lines.txt", (java.lang.Object) 2, obj2);
}
@Test
public void test2520() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2520");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("hi!", indexReader9, (int) (byte) 0, postingsEnum11, postingsEnum12);
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Terms terms16 = null;
org.apache.lucene.index.Terms terms17 = null;
kuromojiAnalysisTests1.assertTermsEquals("random", indexReader15, terms16, terms17, true);
kuromojiAnalysisTests1.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
kuromojiAnalysisTests1.assertDocsEnumEquals("tests.nightly", postingsEnum22, postingsEnum23, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests26 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader28 = null;
org.apache.lucene.index.Fields fields29 = null;
org.apache.lucene.index.Fields fields30 = null;
kuromojiAnalysisTests26.assertFieldsEquals("europarl.lines.txt.gz", indexReader28, fields29, fields30, false);
kuromojiAnalysisTests26.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain35 = kuromojiAnalysisTests26.failureAndSuccessEvents;
kuromojiAnalysisTests26.ensureAllSearchContextsReleased();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests37 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader39 = null;
org.apache.lucene.index.Fields fields40 = null;
org.apache.lucene.index.Fields fields41 = null;
kuromojiAnalysisTests37.assertFieldsEquals("europarl.lines.txt.gz", indexReader39, fields40, fields41, false);
org.apache.lucene.index.IndexReader indexReader45 = null;
org.apache.lucene.index.PostingsEnum postingsEnum47 = null;
org.apache.lucene.index.PostingsEnum postingsEnum48 = null;
kuromojiAnalysisTests37.assertPositionsSkippingEquals("hi!", indexReader45, (int) (byte) 0, postingsEnum47, postingsEnum48);
kuromojiAnalysisTests37.ensureCheckIndexPassed();
org.elasticsearch.index.analysis.KuromojiAnalysisTests[] kuromojiAnalysisTestsArray51 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests[] { kuromojiAnalysisTests1, kuromojiAnalysisTests26, kuromojiAnalysisTests37 };
java.util.Set<org.elasticsearch.index.analysis.KuromojiAnalysisTests> kuromojiAnalysisTestsSet52 = org.apache.lucene.util.LuceneTestCase.asSet(kuromojiAnalysisTestsArray51);
java.util.Set<org.junit.Assert> assertSet53 = org.apache.lucene.util.LuceneTestCase.asSet((org.junit.Assert[]) kuromojiAnalysisTestsArray51);
java.util.concurrent.ExecutorService[] executorServiceArray54 = new java.util.concurrent.ExecutorService[] {};
boolean boolean55 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray54);
boolean boolean56 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray54);
java.util.concurrent.ExecutorService[] executorServiceArray57 = new java.util.concurrent.ExecutorService[] {};
boolean boolean58 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray57);
boolean boolean59 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray57);
boolean boolean60 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray57);
boolean boolean61 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray57);
boolean boolean62 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray57);
boolean boolean63 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray57);
org.junit.Assert.assertEquals((java.lang.Object[]) executorServiceArray54, (java.lang.Object[]) executorServiceArray57);
boolean boolean65 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray54);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.maxfailures", (java.lang.Object[]) kuromojiAnalysisTestsArray51, (java.lang.Object[]) executorServiceArray54);
}
@Test
public void test2521() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2521");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader11 = null;
org.apache.lucene.index.Terms terms12 = null;
org.apache.lucene.index.Terms terms13 = null;
kuromojiAnalysisTests1.assertTermsEquals("", indexReader11, terms12, terms13, false);
kuromojiAnalysisTests1.resetCheckIndexStatus();
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.setUp();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull("europarl.lines.txt.gz", (java.lang.Object) kuromojiAnalysisTests1);
}
@Test
public void test2522() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2522");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((float) (short) 1, (float) 10L, (float) (-1L));
}
@Test
public void test2523() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2523");
float[] floatArray9 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray16 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray9, floatArray16, (float) (byte) 100);
short[] shortArray22 = new short[] { (short) 10 };
short[] shortArray24 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray22, shortArray24);
short[] shortArray29 = new short[] { (short) 10 };
short[] shortArray31 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray29, shortArray31);
short[] shortArray35 = new short[] { (short) 10 };
short[] shortArray37 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray35, shortArray37);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray31, shortArray37);
org.junit.Assert.assertArrayEquals("tests.nightly", shortArray22, shortArray31);
org.junit.Assert.assertNotSame((java.lang.Object) (byte) 100, (java.lang.Object) shortArray22);
short[] shortArray44 = new short[] { (short) 10 };
short[] shortArray46 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray44, shortArray46);
short[] shortArray50 = new short[] { (short) 10 };
short[] shortArray52 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray50, shortArray52);
org.junit.Assert.assertArrayEquals(shortArray46, shortArray50);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", shortArray22, shortArray46);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures56 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures57 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures56);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures58 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures59 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures58);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures60 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures61 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures60);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures62 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures63 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures62);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures[] testRuleIgnoreAfterMaxFailuresArray64 = new org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures[] { testRuleIgnoreAfterMaxFailures57, testRuleIgnoreAfterMaxFailures59, testRuleIgnoreAfterMaxFailures60, testRuleIgnoreAfterMaxFailures62 };
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures65 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures66 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures65);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures67 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures68 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures67);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures69 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures70 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures69);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures71 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures72 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures71);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures[] testRuleIgnoreAfterMaxFailuresArray73 = new org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures[] { testRuleIgnoreAfterMaxFailures66, testRuleIgnoreAfterMaxFailures68, testRuleIgnoreAfterMaxFailures69, testRuleIgnoreAfterMaxFailures71 };
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures74 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures75 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures74);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures76 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures77 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures76);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures78 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures79 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures78);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures80 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures81 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures80);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures[] testRuleIgnoreAfterMaxFailuresArray82 = new org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures[] { testRuleIgnoreAfterMaxFailures75, testRuleIgnoreAfterMaxFailures77, testRuleIgnoreAfterMaxFailures78, testRuleIgnoreAfterMaxFailures80 };
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures[][] testRuleIgnoreAfterMaxFailuresArray83 = new org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures[][] { testRuleIgnoreAfterMaxFailuresArray64, testRuleIgnoreAfterMaxFailuresArray73, testRuleIgnoreAfterMaxFailuresArray82 };
java.util.Set<org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures[]> testRuleIgnoreAfterMaxFailuresArraySet84 = org.apache.lucene.util.LuceneTestCase.asSet(testRuleIgnoreAfterMaxFailuresArray83);
org.junit.Assert.assertNotSame((java.lang.Object) shortArray46, (java.lang.Object) testRuleIgnoreAfterMaxFailuresArray83);
java.util.Set<org.junit.rules.TestRule[]> testRuleArraySet86 = org.apache.lucene.util.LuceneTestCase.asSet((org.junit.rules.TestRule[][]) testRuleIgnoreAfterMaxFailuresArray83);
java.lang.Object[] objArray87 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.badapples", (java.lang.Object[]) testRuleIgnoreAfterMaxFailuresArray83, objArray87);
}
@Test
public void test2524() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2524");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("hi!", indexReader10, 1, postingsEnum12, postingsEnum13);
kuromojiAnalysisTests0.assertPathHasBeenCleared("europarl.lines.txt.gz");
kuromojiAnalysisTests0.tearDown();
java.lang.String str18 = kuromojiAnalysisTests0.getTestName();
int[] intArray23 = new int[] { '#' };
int[] intArray25 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray23, intArray25);
int[] intArray28 = new int[] { '#' };
int[] intArray30 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray28, intArray30);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray23, intArray28);
int[] intArray35 = new int[] { '#' };
int[] intArray37 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray35, intArray37);
int[] intArray40 = new int[] { '#' };
int[] intArray42 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray40, intArray42);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray35, intArray40);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", intArray23, intArray40);
int[] intArray47 = new int[] { '#' };
int[] intArray49 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray47, intArray49);
org.junit.Assert.assertArrayEquals("tests.slow", intArray23, intArray47);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame((java.lang.Object) str18, (java.lang.Object) intArray23);
}
@Test
public void test2525() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2525");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader11 = null;
org.apache.lucene.index.Terms terms12 = null;
org.apache.lucene.index.Terms terms13 = null;
kuromojiAnalysisTests1.assertTermsEquals("", indexReader11, terms12, terms13, false);
kuromojiAnalysisTests1.resetCheckIndexStatus();
kuromojiAnalysisTests1.ensureAllSearchContextsReleased();
kuromojiAnalysisTests1.setIndexWriterMaxDocs(10);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests20 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader22 = null;
org.apache.lucene.index.Fields fields23 = null;
org.apache.lucene.index.Fields fields24 = null;
kuromojiAnalysisTests20.assertFieldsEquals("europarl.lines.txt.gz", indexReader22, fields23, fields24, false);
kuromojiAnalysisTests20.ensureCleanedUp();
kuromojiAnalysisTests20.assertPathHasBeenCleared("tests.failfast");
org.junit.Assert.assertNotEquals("tests.maxfailures", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) kuromojiAnalysisTests20);
org.apache.lucene.index.PostingsEnum postingsEnum32 = null;
org.apache.lucene.index.PostingsEnum postingsEnum33 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests1.assertDocsAndPositionsEnumEquals("tests.badapples", postingsEnum32, postingsEnum33);
}
@Test
public void test2526() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2526");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("", (double) '4', (double) 0.0f);
}
@Test
public void test2527() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2527");
char[] charArray0 = null;
char[] charArray2 = new char[] {};
char[] charArray3 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray2, charArray3);
char[] charArray5 = new char[] {};
char[] charArray6 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray5, charArray6);
char[] charArray8 = new char[] {};
char[] charArray9 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray8, charArray9);
org.junit.Assert.assertArrayEquals(charArray6, charArray9);
org.junit.Assert.assertArrayEquals("random", charArray3, charArray6);
char[] charArray13 = new char[] {};
char[] charArray14 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray13, charArray14);
char[] charArray16 = new char[] {};
char[] charArray17 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray16, charArray17);
org.junit.Assert.assertArrayEquals(charArray14, charArray17);
org.junit.Assert.assertArrayEquals(charArray3, charArray14);
char[] charArray21 = new char[] {};
char[] charArray22 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray21, charArray22);
char[] charArray25 = new char[] {};
char[] charArray26 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray25, charArray26);
char[] charArray28 = new char[] {};
char[] charArray29 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray28, charArray29);
org.junit.Assert.assertArrayEquals(charArray26, charArray29);
char[] charArray32 = new char[] {};
char[] charArray33 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray32, charArray33);
char[] charArray35 = new char[] {};
char[] charArray36 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray35, charArray36);
org.junit.Assert.assertArrayEquals(charArray33, charArray36);
org.junit.Assert.assertArrayEquals("tests.monster", charArray29, charArray36);
org.junit.Assert.assertArrayEquals(charArray22, charArray29);
org.junit.Assert.assertArrayEquals(charArray14, charArray29);
char[] charArray44 = new char[] {};
char[] charArray45 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray44, charArray45);
char[] charArray47 = new char[] {};
char[] charArray48 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray47, charArray48);
char[] charArray50 = new char[] {};
char[] charArray51 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray50, charArray51);
org.junit.Assert.assertArrayEquals(charArray48, charArray51);
char[] charArray54 = new char[] {};
char[] charArray55 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray54, charArray55);
org.junit.Assert.assertArrayEquals(charArray48, charArray55);
org.junit.Assert.assertArrayEquals("tests.slow", charArray45, charArray55);
char[] charArray59 = new char[] {};
char[] charArray60 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray59, charArray60);
char[] charArray62 = new char[] {};
char[] charArray63 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray62, charArray63);
org.junit.Assert.assertArrayEquals(charArray59, charArray63);
org.junit.Assert.assertArrayEquals("tests.badapples", charArray45, charArray63);
char[] charArray69 = new char[] {};
char[] charArray70 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray69, charArray70);
char[] charArray72 = new char[] {};
char[] charArray73 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray72, charArray73);
org.junit.Assert.assertArrayEquals(charArray70, charArray73);
char[] charArray76 = new char[] {};
char[] charArray77 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray76, charArray77);
char[] charArray79 = new char[] {};
char[] charArray80 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray79, charArray80);
org.junit.Assert.assertArrayEquals(charArray77, charArray80);
org.junit.Assert.assertArrayEquals("tests.monster", charArray73, charArray80);
char[] charArray85 = new char[] {};
char[] charArray86 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray85, charArray86);
char[] charArray88 = new char[] {};
char[] charArray89 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray88, charArray89);
char[] charArray91 = new char[] {};
char[] charArray92 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray91, charArray92);
org.junit.Assert.assertArrayEquals(charArray89, charArray92);
org.junit.Assert.assertArrayEquals("random", charArray86, charArray89);
org.junit.Assert.assertArrayEquals("tests.badapples", charArray80, charArray89);
org.junit.Assert.assertArrayEquals(charArray63, charArray89);
org.junit.Assert.assertArrayEquals(charArray29, charArray89);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(charArray0, charArray89);
}
@Test
public void test2528() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2528");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("random", (double) 'a', (double) (short) 0, (double) 0L);
}
@Test
public void test2529() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2529");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("", (double) 100.0f, (double) 4);
}
@Test
public void test2530() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2530");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain9 = kuromojiAnalysisTests0.failureAndSuccessEvents;
kuromojiAnalysisTests0.resetCheckIndexStatus();
org.apache.lucene.index.IndexReader indexReader12 = null;
org.apache.lucene.index.Fields fields13 = null;
org.apache.lucene.index.Fields fields14 = null;
kuromojiAnalysisTests0.assertFieldsEquals("enwiki.random.lines.txt", indexReader12, fields13, fields14, false);
kuromojiAnalysisTests0.setIndexWriterMaxDocs((int) (byte) 0);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) (byte) 0);
}
@Test
public void test2531() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2531");
float[] floatArray10 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray17 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray10, floatArray17, (float) (byte) 100);
float[] floatArray27 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray34 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray27, floatArray34, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray10, floatArray27, (float) (-1));
float[] floatArray46 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray53 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray46, floatArray53, (float) (byte) 100);
float[] floatArray64 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray71 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray64, floatArray71, (float) (byte) 100);
float[] floatArray81 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray88 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray81, floatArray88, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray64, floatArray81, (float) (-1));
org.junit.Assert.assertArrayEquals(floatArray46, floatArray81, (float) 1L);
org.junit.Assert.assertArrayEquals("<unknown>", floatArray27, floatArray81, (float) 'a');
float[] floatArray97 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray27, floatArray97, (float) 10L);
}
@Test
public void test2532() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2532");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.failfast", indexReader8, 1, postingsEnum10, postingsEnum11);
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum16 = null;
org.apache.lucene.index.PostingsEnum postingsEnum17 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("<unknown>", indexReader14, (int) '#', postingsEnum16, postingsEnum17);
kuromojiAnalysisTests0.setUp();
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
org.junit.rules.TestRule testRule22 = kuromojiAnalysisTests0.ruleChain;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) kuromojiAnalysisTests0);
}
@Test
public void test2533() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2533");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("hi!", indexReader8, (int) (byte) 0, postingsEnum10, postingsEnum11);
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.Terms terms15 = null;
org.apache.lucene.index.Terms terms16 = null;
kuromojiAnalysisTests0.assertTermsEquals("random", indexReader14, terms15, terms16, true);
kuromojiAnalysisTests0.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum21 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
kuromojiAnalysisTests0.assertDocsEnumEquals("tests.nightly", postingsEnum21, postingsEnum22, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests25 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader27 = null;
org.apache.lucene.index.Fields fields28 = null;
org.apache.lucene.index.Fields fields29 = null;
kuromojiAnalysisTests25.assertFieldsEquals("europarl.lines.txt.gz", indexReader27, fields28, fields29, false);
kuromojiAnalysisTests25.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests25.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests25.ensureCleanedUp();
org.junit.Assert.assertNotEquals((java.lang.Object) kuromojiAnalysisTests0, (java.lang.Object) kuromojiAnalysisTests25);
org.junit.Assert.assertNotNull((java.lang.Object) kuromojiAnalysisTests0);
org.junit.Assert.assertNotNull((java.lang.Object) kuromojiAnalysisTests0);
kuromojiAnalysisTests0.overrideTestDefaultQueryCache();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertPathHasBeenCleared("");
}
@Test
public void test2534() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2534");
float[] floatArray1 = null;
float[] floatArray9 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray16 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray9, floatArray16, (float) (byte) 100);
float[] floatArray28 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray35 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray28, floatArray35, (float) (byte) 100);
float[] floatArray45 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray52 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray45, floatArray52, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray28, floatArray45, (float) (-1));
float[] floatArray65 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray72 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray65, floatArray72, (float) (byte) 100);
float[] floatArray82 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray89 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray82, floatArray89, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray65, floatArray82, (float) (-1));
org.junit.Assert.assertArrayEquals("tests.weekly", floatArray28, floatArray65, (float) 10L);
org.junit.Assert.assertArrayEquals(floatArray9, floatArray65, (float) 100L);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.monster", floatArray1, floatArray65, (float) ' ');
}
@Test
public void test2535() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2535");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("hi!", indexReader8, (int) (byte) 0, postingsEnum10, postingsEnum11);
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.Terms terms15 = null;
org.apache.lucene.index.Terms terms16 = null;
kuromojiAnalysisTests0.assertTermsEquals("random", indexReader14, terms15, terms16, true);
kuromojiAnalysisTests0.setUp();
kuromojiAnalysisTests0.tearDown();
org.apache.lucene.index.IndexReader indexReader22 = null;
org.apache.lucene.index.PostingsEnum postingsEnum24 = null;
org.apache.lucene.index.PostingsEnum postingsEnum25 = null;
kuromojiAnalysisTests0.assertDocsSkippingEquals("europarl.lines.txt.gz", indexReader22, (int) (short) 0, postingsEnum24, postingsEnum25, false);
kuromojiAnalysisTests0.resetCheckIndexStatus();
org.apache.lucene.index.PostingsEnum postingsEnum30 = null;
org.apache.lucene.index.PostingsEnum postingsEnum31 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("<unknown>", postingsEnum30, postingsEnum31);
}
@Test
public void test2536() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2536");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals("", (double) 4, (double) 3, (double) (short) 1);
}
@Test
public void test2537() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2537");
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray2 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] {};
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray3 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] {};
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray4 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] {};
org.apache.lucene.store.MockDirectoryWrapper.Throttling[][] throttlingArray5 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[][] { throttlingArray2, throttlingArray3, throttlingArray4 };
java.util.List<org.apache.lucene.store.MockDirectoryWrapper.Throttling[]> throttlingArrayList6 = org.elasticsearch.test.ESTestCase.randomSubsetOf(0, throttlingArray5);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests10 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader12 = null;
org.apache.lucene.index.Fields fields13 = null;
org.apache.lucene.index.Fields fields14 = null;
kuromojiAnalysisTests10.assertFieldsEquals("europarl.lines.txt.gz", indexReader12, fields13, fields14, false);
kuromojiAnalysisTests10.ensureCleanedUp();
kuromojiAnalysisTests10.resetCheckIndexStatus();
kuromojiAnalysisTests10.ensureCleanedUp();
kuromojiAnalysisTests10.ensureCheckIndexPassed();
kuromojiAnalysisTests10.restoreIndexWriterMaxDocs();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests22 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader24 = null;
org.apache.lucene.index.Fields fields25 = null;
org.apache.lucene.index.Fields fields26 = null;
kuromojiAnalysisTests22.assertFieldsEquals("europarl.lines.txt.gz", indexReader24, fields25, fields26, false);
kuromojiAnalysisTests22.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain31 = kuromojiAnalysisTests22.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain31;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain31;
kuromojiAnalysisTests10.failureAndSuccessEvents = ruleChain31;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain31;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests36 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader38 = null;
org.apache.lucene.index.Fields fields39 = null;
org.apache.lucene.index.Fields fields40 = null;
kuromojiAnalysisTests36.assertFieldsEquals("europarl.lines.txt.gz", indexReader38, fields39, fields40, false);
kuromojiAnalysisTests36.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain45 = kuromojiAnalysisTests36.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain45;
org.junit.rules.RuleChain[] ruleChainArray47 = new org.junit.rules.RuleChain[] { ruleChain31, ruleChain45 };
java.util.Set<org.junit.rules.RuleChain> ruleChainSet48 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray47);
java.util.Set<org.junit.rules.RuleChain> ruleChainSet49 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray47);
org.junit.Assert.assertNotNull("", (java.lang.Object) ruleChainArray47);
java.util.List<org.junit.rules.TestRule> testRuleList51 = org.elasticsearch.test.ESTestCase.randomSubsetOf(0, (org.junit.rules.TestRule[]) ruleChainArray47);
java.util.List<org.junit.rules.RuleChain> ruleChainList52 = org.elasticsearch.test.ESTestCase.randomSubsetOf(2, ruleChainArray47);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("<unknown>", (java.lang.Object[]) throttlingArray5, (java.lang.Object[]) ruleChainArray47);
}
@Test
public void test2538() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2538");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(0.0d, (double) 2, 0.0d);
}
@Test
public void test2539() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2539");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.tearDown();
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertDocsEnumEquals("enwiki.random.lines.txt", postingsEnum10, postingsEnum11, true);
kuromojiAnalysisTests0.setIndexWriterMaxDocs((int) (byte) 10);
org.apache.lucene.index.PostingsEnum postingsEnum17 = null;
org.apache.lucene.index.PostingsEnum postingsEnum18 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("", postingsEnum17, postingsEnum18);
}
@Test
public void test2540() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2540");
long[] longArray0 = null;
long[] longArray4 = new long[] { 1 };
long[] longArray6 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray4, longArray6);
long[] longArray11 = new long[] { 1 };
long[] longArray13 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray11, longArray13);
long[] longArray17 = new long[] { 1 };
long[] longArray19 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray17, longArray19);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray13, longArray17);
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", longArray4, longArray17);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(longArray0, longArray17);
}
@Test
public void test2541() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2541");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals("tests.weekly", (double) (byte) 1, (double) 1L, (double) '#');
}
@Test
public void test2542() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2542");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals("tests.failfast", (double) (short) 0, 0.0d, (double) 2);
}
@Test
public void test2543() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2543");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("europarl.lines.txt.gz", 100.0f, (float) ' ', (float) ' ');
}
@Test
public void test2544() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2544");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals("tests.badapples", (long) (byte) 1, 1L);
}
@Test
public void test2545() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2545");
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures0 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures1 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures0);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures2 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures3 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures2);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures4 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures5 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures4);
org.junit.rules.TestRule[] testRuleArray6 = new org.junit.rules.TestRule[] { testRuleIgnoreAfterMaxFailures0, testRuleIgnoreAfterMaxFailures3, testRuleIgnoreAfterMaxFailures5 };
java.util.Set<org.junit.rules.TestRule> testRuleSet7 = org.apache.lucene.util.LuceneTestCase.asSet(testRuleArray6);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) testRuleArray6);
}
@Test
public void test2546() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2546");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.badapples", (double) (-1L), 100.0d, (double) 1L);
}
@Test
public void test2547() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2547");
java.lang.String[] strArray7 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet8 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray7);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests9 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests9.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet8, (java.lang.Object) kuromojiAnalysisTests9);
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
kuromojiAnalysisTests9.assertDocsEnumEquals("tests.badapples", postingsEnum14, postingsEnum15, true);
org.junit.rules.TestRule testRule18 = kuromojiAnalysisTests9.ruleChain;
org.apache.lucene.index.IndexReader indexReader20 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
kuromojiAnalysisTests9.assertDocsSkippingEquals("tests.maxfailures", indexReader20, (int) (byte) 100, postingsEnum22, postingsEnum23, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests26 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader28 = null;
org.apache.lucene.index.Fields fields29 = null;
org.apache.lucene.index.Fields fields30 = null;
kuromojiAnalysisTests26.assertFieldsEquals("europarl.lines.txt.gz", indexReader28, fields29, fields30, false);
kuromojiAnalysisTests26.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain35 = kuromojiAnalysisTests26.failureAndSuccessEvents;
kuromojiAnalysisTests9.failureAndSuccessEvents = ruleChain35;
kuromojiAnalysisTests9.ensureCheckIndexPassed();
java.lang.String str38 = kuromojiAnalysisTests9.getTestName();
kuromojiAnalysisTests9.resetCheckIndexStatus();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) kuromojiAnalysisTests9);
}
@Test
public void test2548() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2548");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.tearDown();
kuromojiAnalysisTests0.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
kuromojiAnalysisTests0.assertDocsSkippingEquals("hi!", indexReader10, 10, postingsEnum12, postingsEnum13, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests16 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader18 = null;
org.apache.lucene.index.Fields fields19 = null;
org.apache.lucene.index.Fields fields20 = null;
kuromojiAnalysisTests16.assertFieldsEquals("europarl.lines.txt.gz", indexReader18, fields19, fields20, false);
kuromojiAnalysisTests16.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests16.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests16.overrideTestDefaultQueryCache();
kuromojiAnalysisTests16.ensureCheckIndexPassed();
org.junit.rules.RuleChain ruleChain29 = kuromojiAnalysisTests16.failureAndSuccessEvents;
kuromojiAnalysisTests0.failureAndSuccessEvents = ruleChain29;
java.lang.String str31 = kuromojiAnalysisTests0.getTestName();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests32 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader34 = null;
org.apache.lucene.index.Fields fields35 = null;
org.apache.lucene.index.Fields fields36 = null;
kuromojiAnalysisTests32.assertFieldsEquals("europarl.lines.txt.gz", indexReader34, fields35, fields36, false);
kuromojiAnalysisTests32.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain41 = kuromojiAnalysisTests32.failureAndSuccessEvents;
kuromojiAnalysisTests32.setUp();
java.util.Locale locale45 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale47 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale49 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale51 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale53 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray54 = new java.util.Locale[] { locale45, locale47, locale49, locale51, locale53 };
java.util.Set<java.util.Locale> localeSet55 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray54);
java.util.Locale locale58 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale60 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale62 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale64 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale66 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray67 = new java.util.Locale[] { locale58, locale60, locale62, locale64, locale66 };
java.util.Set<java.util.Locale> localeSet68 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray67);
java.util.List<java.io.Serializable> serializableList69 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray67);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray54, (java.lang.Object[]) localeArray67);
java.util.Locale locale73 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale75 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale77 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale79 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale81 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray82 = new java.util.Locale[] { locale73, locale75, locale77, locale79, locale81 };
java.util.Set<java.util.Locale> localeSet83 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray82);
java.util.List<java.io.Serializable> serializableList84 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray82);
java.util.Set<java.lang.Cloneable> cloneableSet85 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray82);
org.junit.Assert.assertArrayEquals("tests.slow", (java.lang.Object[]) localeArray67, (java.lang.Object[]) localeArray82);
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests32, (java.lang.Object) localeArray82);
kuromojiAnalysisTests32.resetCheckIndexStatus();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame((java.lang.Object) kuromojiAnalysisTests0, (java.lang.Object) kuromojiAnalysisTests32);
}
@Test
public void test2549() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2549");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.badapples", (double) 1.0f, (double) 10, (double) (byte) 1);
}
@Test
public void test2550() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2550");
float[][] floatArray1 = new float[][] {};
java.util.Set<float[]> floatArraySet2 = org.apache.lucene.util.LuceneTestCase.asSet(floatArray1);
java.util.Locale locale6 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale8 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale10 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale12 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale14 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray15 = new java.util.Locale[] { locale6, locale8, locale10, locale12, locale14 };
java.util.Set<java.util.Locale> localeSet16 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray15);
java.util.List<java.io.Serializable> serializableList17 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray15);
java.util.Set<java.lang.Cloneable> cloneableSet18 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray15);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray15, (java.lang.Object) (byte) -1);
java.util.Locale locale23 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale25 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale27 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale29 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale31 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray32 = new java.util.Locale[] { locale23, locale25, locale27, locale29, locale31 };
java.util.Set<java.util.Locale> localeSet33 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray32);
java.util.List<java.io.Serializable> serializableList34 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray32);
java.util.Set<java.lang.Cloneable> cloneableSet35 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray32);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray32, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray15, (java.lang.Object[]) localeArray32);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests39 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader41 = null;
org.apache.lucene.index.Fields fields42 = null;
org.apache.lucene.index.Fields fields43 = null;
kuromojiAnalysisTests39.assertFieldsEquals("europarl.lines.txt.gz", indexReader41, fields42, fields43, false);
kuromojiAnalysisTests39.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain48 = kuromojiAnalysisTests39.failureAndSuccessEvents;
kuromojiAnalysisTests39.setUp();
org.junit.Assert.assertNotSame("tests.nightly", (java.lang.Object) localeArray15, (java.lang.Object) kuromojiAnalysisTests39);
java.util.Locale locale53 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale55 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale57 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale59 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale61 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray62 = new java.util.Locale[] { locale53, locale55, locale57, locale59, locale61 };
java.util.Set<java.util.Locale> localeSet63 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray62);
java.util.List<java.io.Serializable> serializableList64 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray62);
org.junit.Assert.assertNotNull((java.lang.Object) localeArray62);
org.junit.Assert.assertEquals((java.lang.Object[]) localeArray15, (java.lang.Object[]) localeArray62);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.monster", (java.lang.Object[]) floatArray1, (java.lang.Object[]) localeArray15);
}
@Test
public void test2551() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2551");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.monster", 0.0d, (double) (byte) 1, 0.0d);
}
@Test
public void test2552() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2552");
java.lang.String[] strArray7 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet8 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray7);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests9 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests9.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet8, (java.lang.Object) kuromojiAnalysisTests9);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests13 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Fields fields16 = null;
org.apache.lucene.index.Fields fields17 = null;
kuromojiAnalysisTests13.assertFieldsEquals("europarl.lines.txt.gz", indexReader15, fields16, fields17, false);
kuromojiAnalysisTests13.ensureCleanedUp();
kuromojiAnalysisTests13.resetCheckIndexStatus();
kuromojiAnalysisTests13.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader24 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
org.apache.lucene.index.PostingsEnum postingsEnum27 = null;
kuromojiAnalysisTests13.assertPositionsSkippingEquals("", indexReader24, (int) (byte) 0, postingsEnum26, postingsEnum27);
org.junit.Assert.assertNotEquals((java.lang.Object) "tests.failfast", (java.lang.Object) kuromojiAnalysisTests13);
kuromojiAnalysisTests13.setUp();
kuromojiAnalysisTests13.overrideTestDefaultQueryCache();
kuromojiAnalysisTests13.assertPathHasBeenCleared("random");
kuromojiAnalysisTests13.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum36 = null;
org.apache.lucene.index.PostingsEnum postingsEnum37 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests13.assertDocsAndPositionsEnumEquals("hi!", postingsEnum36, postingsEnum37);
}
@Test
public void test2553() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2553");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.ensureAllSearchContextsReleased();
org.apache.lucene.index.IndexReader indexReader13 = null;
org.apache.lucene.index.Terms terms14 = null;
org.apache.lucene.index.Terms terms15 = null;
kuromojiAnalysisTests1.assertTermsEquals("tests.failfast", indexReader13, terms14, terms15, false);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull("tests.failfast", (java.lang.Object) false);
}
@Test
public void test2554() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2554");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.overrideTestDefaultQueryCache();
kuromojiAnalysisTests0.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
kuromojiAnalysisTests0.assertDocsSkippingEquals("tests.slow", indexReader11, (int) (short) -1, postingsEnum13, postingsEnum14, false);
kuromojiAnalysisTests0.ensureCleanedUp();
org.apache.lucene.index.PostingsEnum postingsEnum19 = null;
org.apache.lucene.index.PostingsEnum postingsEnum20 = null;
kuromojiAnalysisTests0.assertDocsEnumEquals("", postingsEnum19, postingsEnum20, false);
org.apache.lucene.index.IndexReader indexReader24 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
org.apache.lucene.index.PostingsEnum postingsEnum27 = null;
kuromojiAnalysisTests0.assertDocsSkippingEquals("", indexReader24, (int) (byte) 0, postingsEnum26, postingsEnum27, true);
org.apache.lucene.index.PostingsEnum postingsEnum31 = null;
org.apache.lucene.index.PostingsEnum postingsEnum32 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("hi!", postingsEnum31, postingsEnum32);
}
@Test
public void test2555() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2555");
java.lang.String[] strArray7 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet8 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray7);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests9 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests9.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet8, (java.lang.Object) kuromojiAnalysisTests9);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests13 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Fields fields16 = null;
org.apache.lucene.index.Fields fields17 = null;
kuromojiAnalysisTests13.assertFieldsEquals("europarl.lines.txt.gz", indexReader15, fields16, fields17, false);
kuromojiAnalysisTests13.ensureCleanedUp();
kuromojiAnalysisTests13.resetCheckIndexStatus();
kuromojiAnalysisTests13.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader24 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
org.apache.lucene.index.PostingsEnum postingsEnum27 = null;
kuromojiAnalysisTests13.assertPositionsSkippingEquals("", indexReader24, (int) (byte) 0, postingsEnum26, postingsEnum27);
org.junit.Assert.assertNotEquals((java.lang.Object) "tests.failfast", (java.lang.Object) kuromojiAnalysisTests13);
kuromojiAnalysisTests13.setUp();
kuromojiAnalysisTests13.overrideTestDefaultQueryCache();
kuromojiAnalysisTests13.resetCheckIndexStatus();
kuromojiAnalysisTests13.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader35 = null;
org.apache.lucene.index.Fields fields36 = null;
org.apache.lucene.index.Fields fields37 = null;
kuromojiAnalysisTests13.assertFieldsEquals("tests.slow", indexReader35, fields36, fields37, false);
org.apache.lucene.index.PostingsEnum postingsEnum41 = null;
org.apache.lucene.index.PostingsEnum postingsEnum42 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests13.assertDocsAndPositionsEnumEquals("tests.awaitsfix", postingsEnum41, postingsEnum42);
}
@Test
public void test2556() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2556");
byte[] byteArray3 = new byte[] { (byte) -1, (byte) -1 };
byte[] byteArray9 = new byte[] { (byte) -1, (byte) 10, (byte) 10, (byte) 100, (byte) 0 };
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.monster", byteArray3, byteArray9);
}
@Test
public void test2557() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2557");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.failfast", indexReader9, 1, postingsEnum11, postingsEnum12);
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.PostingsEnum postingsEnum17 = null;
org.apache.lucene.index.PostingsEnum postingsEnum18 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("<unknown>", indexReader15, (int) '#', postingsEnum17, postingsEnum18);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.nightly");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests22 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader24 = null;
org.apache.lucene.index.Fields fields25 = null;
org.apache.lucene.index.Fields fields26 = null;
kuromojiAnalysisTests22.assertFieldsEquals("europarl.lines.txt.gz", indexReader24, fields25, fields26, false);
kuromojiAnalysisTests22.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain31 = kuromojiAnalysisTests22.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain31;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain31;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain31;
kuromojiAnalysisTests1.failureAndSuccessEvents = ruleChain31;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests36 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader38 = null;
org.apache.lucene.index.Terms terms39 = null;
org.apache.lucene.index.Terms terms40 = null;
kuromojiAnalysisTests36.assertTermsEquals("tests.weekly", indexReader38, terms39, terms40, false);
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) terms39);
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests1.resetCheckIndexStatus();
kuromojiAnalysisTests1.assertPathHasBeenCleared("europarl.lines.txt.gz");
org.junit.rules.TestRule testRule48 = kuromojiAnalysisTests1.ruleChain;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests50 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader52 = null;
org.apache.lucene.index.Fields fields53 = null;
org.apache.lucene.index.Fields fields54 = null;
kuromojiAnalysisTests50.assertFieldsEquals("europarl.lines.txt.gz", indexReader52, fields53, fields54, false);
kuromojiAnalysisTests50.ensureCleanedUp();
kuromojiAnalysisTests50.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader60 = null;
org.apache.lucene.index.Terms terms61 = null;
org.apache.lucene.index.Terms terms62 = null;
kuromojiAnalysisTests50.assertTermsEquals("", indexReader60, terms61, terms62, false);
kuromojiAnalysisTests50.resetCheckIndexStatus();
kuromojiAnalysisTests50.ensureAllSearchContextsReleased();
kuromojiAnalysisTests50.setIndexWriterMaxDocs(10);
java.lang.String str69 = kuromojiAnalysisTests50.getTestName();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests70 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader72 = null;
org.apache.lucene.index.Fields fields73 = null;
org.apache.lucene.index.Fields fields74 = null;
kuromojiAnalysisTests70.assertFieldsEquals("europarl.lines.txt.gz", indexReader72, fields73, fields74, false);
org.apache.lucene.index.IndexReader indexReader78 = null;
org.apache.lucene.index.PostingsEnum postingsEnum80 = null;
org.apache.lucene.index.PostingsEnum postingsEnum81 = null;
kuromojiAnalysisTests70.assertPositionsSkippingEquals("tests.failfast", indexReader78, 1, postingsEnum80, postingsEnum81);
kuromojiAnalysisTests70.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests70.setUp();
kuromojiAnalysisTests70.restoreIndexWriterMaxDocs();
org.junit.rules.TestRule testRule86 = kuromojiAnalysisTests70.ruleChain;
org.junit.Assert.assertNotEquals("tests.monster", (java.lang.Object) kuromojiAnalysisTests50, (java.lang.Object) testRule86);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.weekly", (java.lang.Object) testRule48, (java.lang.Object) kuromojiAnalysisTests50);
}
@Test
public void test2558() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2558");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.nightly", (double) (byte) 100, (double) 3);
}
@Test
public void test2559() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2559");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.failfast", indexReader9, 1, postingsEnum11, postingsEnum12);
kuromojiAnalysisTests1.setIndexWriterMaxDocs(0);
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.Fields fields18 = null;
org.apache.lucene.index.Fields fields19 = null;
kuromojiAnalysisTests1.assertFieldsEquals("tests.slow", indexReader17, fields18, fields19, false);
org.apache.lucene.index.IndexReader indexReader23 = null;
org.apache.lucene.index.PostingsEnum postingsEnum25 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("<unknown>", indexReader23, (int) 'a', postingsEnum25, postingsEnum26);
kuromojiAnalysisTests1.overrideTestDefaultQueryCache();
org.junit.rules.RuleChain ruleChain29 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.assertPathHasBeenCleared("enwiki.random.lines.txt");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests32 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader34 = null;
org.apache.lucene.index.Fields fields35 = null;
org.apache.lucene.index.Fields fields36 = null;
kuromojiAnalysisTests32.assertFieldsEquals("europarl.lines.txt.gz", indexReader34, fields35, fields36, false);
kuromojiAnalysisTests32.ensureCleanedUp();
kuromojiAnalysisTests32.resetCheckIndexStatus();
kuromojiAnalysisTests32.ensureCleanedUp();
java.lang.String str42 = kuromojiAnalysisTests32.getTestName();
kuromojiAnalysisTests32.resetCheckIndexStatus();
org.junit.rules.TestRule testRule44 = kuromojiAnalysisTests32.ruleChain;
kuromojiAnalysisTests32.setUp();
kuromojiAnalysisTests32.restoreIndexWriterMaxDocs();
org.junit.rules.RuleChain ruleChain47 = kuromojiAnalysisTests32.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain47;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("enwiki.random.lines.txt", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) ruleChain47);
}
@Test
public void test2560() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2560");
char[] charArray2 = new char[] {};
char[] charArray3 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray2, charArray3);
char[] charArray5 = new char[] {};
char[] charArray6 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray5, charArray6);
char[] charArray8 = new char[] {};
char[] charArray9 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray8, charArray9);
org.junit.Assert.assertArrayEquals(charArray6, charArray9);
org.junit.Assert.assertArrayEquals("random", charArray3, charArray6);
char[] charArray13 = new char[] {};
char[] charArray14 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray13, charArray14);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests16 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader18 = null;
org.apache.lucene.index.Fields fields19 = null;
org.apache.lucene.index.Fields fields20 = null;
kuromojiAnalysisTests16.assertFieldsEquals("europarl.lines.txt.gz", indexReader18, fields19, fields20, false);
kuromojiAnalysisTests16.ensureCleanedUp();
kuromojiAnalysisTests16.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader26 = null;
org.apache.lucene.index.Terms terms27 = null;
org.apache.lucene.index.Terms terms28 = null;
kuromojiAnalysisTests16.assertTermsEquals("", indexReader26, terms27, terms28, false);
kuromojiAnalysisTests16.resetCheckIndexStatus();
org.junit.Assert.assertNotEquals((java.lang.Object) charArray14, (java.lang.Object) kuromojiAnalysisTests16);
org.junit.Assert.assertArrayEquals(charArray3, charArray14);
char[] charArray35 = new char[] {};
char[] charArray36 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray35, charArray36);
char[] charArray38 = new char[] {};
char[] charArray39 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray38, charArray39);
org.junit.Assert.assertArrayEquals(charArray36, charArray39);
char[] charArray42 = new char[] {};
char[] charArray43 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray42, charArray43);
char[] charArray45 = new char[] {};
char[] charArray46 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray45, charArray46);
org.junit.Assert.assertArrayEquals(charArray43, charArray46);
org.junit.Assert.assertArrayEquals("tests.monster", charArray39, charArray46);
org.junit.Assert.assertArrayEquals(charArray14, charArray46);
char[] charArray52 = new char[] {};
char[] charArray53 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray52, charArray53);
char[] charArray55 = new char[] {};
char[] charArray56 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray55, charArray56);
char[] charArray58 = new char[] {};
char[] charArray59 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray58, charArray59);
org.junit.Assert.assertArrayEquals(charArray56, charArray59);
org.junit.Assert.assertArrayEquals("random", charArray53, charArray56);
org.junit.Assert.assertArrayEquals("hi!", charArray46, charArray56);
char[] charArray64 = new char[] {};
char[] charArray65 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray64, charArray65);
char[] charArray67 = new char[] {};
char[] charArray68 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray67, charArray68);
org.junit.Assert.assertArrayEquals(charArray65, charArray68);
char[] charArray71 = new char[] {};
char[] charArray72 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray71, charArray72);
org.junit.Assert.assertArrayEquals(charArray65, charArray72);
org.junit.Assert.assertArrayEquals(charArray46, charArray72);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) charArray46);
}
@Test
public void test2561() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2561");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.slow", (double) 100.0f, (double) (short) 10, 0.0d);
}
@Test
public void test2562() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2562");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (byte) 0, (double) (short) 100);
}
@Test
public void test2563() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2563");
byte[] byteArray3 = new byte[] { (byte) 0, (byte) 1, (byte) 10 };
byte[] byteArray8 = new byte[] { (byte) -1, (byte) 0, (byte) 100, (byte) 10 };
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(byteArray3, byteArray8);
}
@Test
public void test2564() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2564");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.nightly", (double) (-1), 100.0d);
}
@Test
public void test2565() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2565");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("random", indexReader9, (int) '4', postingsEnum11, postingsEnum12);
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.PostingsEnum postingsEnum17 = null;
org.apache.lucene.index.PostingsEnum postingsEnum18 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.maxfailures", indexReader15, 10, postingsEnum17, postingsEnum18);
org.apache.lucene.index.IndexReader indexReader21 = null;
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
org.apache.lucene.index.PostingsEnum postingsEnum24 = null;
kuromojiAnalysisTests0.assertDocsSkippingEquals("tests.weekly", indexReader21, (int) (short) -1, postingsEnum23, postingsEnum24, false);
org.apache.lucene.index.IndexReader indexReader28 = null;
org.apache.lucene.index.PostingsEnum postingsEnum30 = null;
org.apache.lucene.index.PostingsEnum postingsEnum31 = null;
kuromojiAnalysisTests0.assertDocsSkippingEquals("tests.awaitsfix", indexReader28, (int) (byte) -1, postingsEnum30, postingsEnum31, false);
org.apache.lucene.index.NumericDocValues numericDocValues36 = null;
org.apache.lucene.index.NumericDocValues numericDocValues37 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("", 4, numericDocValues36, numericDocValues37);
}
@Test
public void test2566() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2566");
int[] intArray5 = new int[] { '#' };
int[] intArray7 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray5, intArray7);
int[] intArray10 = new int[] { '#' };
int[] intArray12 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray10, intArray12);
org.junit.Assert.assertArrayEquals("tests.nightly", intArray5, intArray10);
int[] intArray20 = new int[] { '#' };
int[] intArray22 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray20, intArray22);
int[] intArray25 = new int[] { '#' };
int[] intArray27 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray25, intArray27);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray20, intArray25);
int[] intArray32 = new int[] { '#' };
int[] intArray34 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray32, intArray34);
int[] intArray37 = new int[] { '#' };
int[] intArray39 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray37, intArray39);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray32, intArray37);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", intArray20, intArray37);
int[] intArray44 = new int[] { '#' };
int[] intArray46 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray44, intArray46);
org.junit.Assert.assertArrayEquals("tests.slow", intArray20, intArray44);
int[] intArray50 = new int[] { '#' };
int[] intArray52 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray50, intArray52);
org.junit.Assert.assertArrayEquals("tests.slow", intArray20, intArray52);
org.junit.Assert.assertArrayEquals("tests.maxfailures", intArray5, intArray20);
int[] intArray60 = new int[] { '#' };
int[] intArray62 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray60, intArray62);
int[] intArray65 = new int[] { '#' };
int[] intArray67 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray65, intArray67);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray60, intArray65);
int[] intArray72 = new int[] { '#' };
int[] intArray74 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray72, intArray74);
int[] intArray77 = new int[] { '#' };
int[] intArray79 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray77, intArray79);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray72, intArray77);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", intArray60, intArray77);
int[] intArray85 = new int[] { '#' };
int[] intArray87 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray85, intArray87);
int[] intArray90 = new int[] { '#' };
int[] intArray92 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray90, intArray92);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray85, intArray90);
org.junit.Assert.assertArrayEquals("", intArray77, intArray90);
org.junit.Assert.assertArrayEquals("tests.monster", intArray20, intArray90);
int[] intArray97 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", intArray20, intArray97);
}
@Test
public void test2567() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2567");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.weekly", (-1.0d), (double) (short) 10, (double) (-1L));
}
@Test
public void test2568() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2568");
java.lang.reflect.GenericDeclaration[] genericDeclarationArray1 = new java.lang.reflect.GenericDeclaration[] {};
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet2 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray1);
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet3 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray1);
org.junit.Assert.assertNotEquals((java.lang.Object) 1, (java.lang.Object) genericDeclarationArray1);
java.util.Set<java.lang.reflect.AnnotatedElement> annotatedElementSet5 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.reflect.AnnotatedElement[]) genericDeclarationArray1);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests7 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.Fields fields10 = null;
org.apache.lucene.index.Fields fields11 = null;
kuromojiAnalysisTests7.assertFieldsEquals("europarl.lines.txt.gz", indexReader9, fields10, fields11, false);
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.PostingsEnum postingsEnum17 = null;
org.apache.lucene.index.PostingsEnum postingsEnum18 = null;
kuromojiAnalysisTests7.assertPositionsSkippingEquals("hi!", indexReader15, (int) (byte) 0, postingsEnum17, postingsEnum18);
org.apache.lucene.index.IndexReader indexReader21 = null;
org.apache.lucene.index.Terms terms22 = null;
org.apache.lucene.index.Terms terms23 = null;
kuromojiAnalysisTests7.assertTermsEquals("random", indexReader21, terms22, terms23, true);
kuromojiAnalysisTests7.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum28 = null;
org.apache.lucene.index.PostingsEnum postingsEnum29 = null;
kuromojiAnalysisTests7.assertDocsEnumEquals("tests.nightly", postingsEnum28, postingsEnum29, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests32 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader34 = null;
org.apache.lucene.index.Fields fields35 = null;
org.apache.lucene.index.Fields fields36 = null;
kuromojiAnalysisTests32.assertFieldsEquals("europarl.lines.txt.gz", indexReader34, fields35, fields36, false);
kuromojiAnalysisTests32.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain41 = kuromojiAnalysisTests32.failureAndSuccessEvents;
kuromojiAnalysisTests32.ensureAllSearchContextsReleased();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests43 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader45 = null;
org.apache.lucene.index.Fields fields46 = null;
org.apache.lucene.index.Fields fields47 = null;
kuromojiAnalysisTests43.assertFieldsEquals("europarl.lines.txt.gz", indexReader45, fields46, fields47, false);
org.apache.lucene.index.IndexReader indexReader51 = null;
org.apache.lucene.index.PostingsEnum postingsEnum53 = null;
org.apache.lucene.index.PostingsEnum postingsEnum54 = null;
kuromojiAnalysisTests43.assertPositionsSkippingEquals("hi!", indexReader51, (int) (byte) 0, postingsEnum53, postingsEnum54);
kuromojiAnalysisTests43.ensureCheckIndexPassed();
org.elasticsearch.index.analysis.KuromojiAnalysisTests[] kuromojiAnalysisTestsArray57 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests[] { kuromojiAnalysisTests7, kuromojiAnalysisTests32, kuromojiAnalysisTests43 };
java.util.Set<org.elasticsearch.index.analysis.KuromojiAnalysisTests> kuromojiAnalysisTestsSet58 = org.apache.lucene.util.LuceneTestCase.asSet(kuromojiAnalysisTestsArray57);
java.util.Set<org.junit.Assert> assertSet59 = org.apache.lucene.util.LuceneTestCase.asSet((org.junit.Assert[]) kuromojiAnalysisTestsArray57);
org.junit.rules.RuleChain[] ruleChainArray60 = new org.junit.rules.RuleChain[] {};
org.junit.rules.RuleChain[][] ruleChainArray61 = new org.junit.rules.RuleChain[][] { ruleChainArray60 };
java.util.Set<org.junit.rules.RuleChain[]> ruleChainArraySet62 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray61);
org.junit.Assert.assertNotEquals("tests.failfast", (java.lang.Object) kuromojiAnalysisTestsArray57, (java.lang.Object) ruleChainArray61);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object[]) genericDeclarationArray1, (java.lang.Object[]) kuromojiAnalysisTestsArray57);
}
@Test
public void test2569() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2569");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((-1.0d), (double) (short) 100);
}
@Test
public void test2570() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2570");
float[] floatArray10 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray17 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray10, floatArray17, (float) (byte) 100);
float[] floatArray27 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray34 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray27, floatArray34, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray10, floatArray27, (float) (-1));
float[] floatArray46 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray53 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray46, floatArray53, (float) (byte) 100);
float[] floatArray64 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray71 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray64, floatArray71, (float) (byte) 100);
float[] floatArray81 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray88 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray81, floatArray88, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray64, floatArray81, (float) (-1));
org.junit.Assert.assertArrayEquals(floatArray46, floatArray81, (float) 1L);
org.junit.Assert.assertArrayEquals("<unknown>", floatArray27, floatArray81, (float) 'a');
float[] floatArray97 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", floatArray81, floatArray97, (float) (short) 100);
}
@Test
public void test2571() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2571");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) 1.0f, (double) (-1L), (double) 0);
}
@Test
public void test2572() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2572");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests2 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader4 = null;
org.apache.lucene.index.Fields fields5 = null;
org.apache.lucene.index.Fields fields6 = null;
kuromojiAnalysisTests2.assertFieldsEquals("europarl.lines.txt.gz", indexReader4, fields5, fields6, false);
kuromojiAnalysisTests2.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain11 = kuromojiAnalysisTests2.failureAndSuccessEvents;
kuromojiAnalysisTests2.resetCheckIndexStatus();
java.lang.String str13 = kuromojiAnalysisTests2.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests2);
kuromojiAnalysisTests2.tearDown();
kuromojiAnalysisTests2.setUp();
kuromojiAnalysisTests2.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader19 = null;
org.apache.lucene.index.Terms terms20 = null;
org.apache.lucene.index.Terms terms21 = null;
kuromojiAnalysisTests2.assertTermsEquals("", indexReader19, terms20, terms21, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests24 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader26 = null;
org.apache.lucene.index.Fields fields27 = null;
org.apache.lucene.index.Fields fields28 = null;
kuromojiAnalysisTests24.assertFieldsEquals("europarl.lines.txt.gz", indexReader26, fields27, fields28, false);
kuromojiAnalysisTests24.ensureCleanedUp();
kuromojiAnalysisTests24.ensureCleanedUp();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests33 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader35 = null;
org.apache.lucene.index.Fields fields36 = null;
org.apache.lucene.index.Fields fields37 = null;
kuromojiAnalysisTests33.assertFieldsEquals("europarl.lines.txt.gz", indexReader35, fields36, fields37, false);
org.apache.lucene.index.IndexReader indexReader41 = null;
org.apache.lucene.index.PostingsEnum postingsEnum43 = null;
org.apache.lucene.index.PostingsEnum postingsEnum44 = null;
kuromojiAnalysisTests33.assertPositionsSkippingEquals("tests.failfast", indexReader41, 1, postingsEnum43, postingsEnum44);
kuromojiAnalysisTests33.setIndexWriterMaxDocs(0);
org.apache.lucene.index.IndexReader indexReader49 = null;
org.apache.lucene.index.Fields fields50 = null;
org.apache.lucene.index.Fields fields51 = null;
kuromojiAnalysisTests33.assertFieldsEquals("tests.slow", indexReader49, fields50, fields51, false);
kuromojiAnalysisTests33.resetCheckIndexStatus();
org.junit.rules.TestRule testRule55 = kuromojiAnalysisTests33.ruleChain;
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests24, (java.lang.Object) testRule55);
org.apache.lucene.index.IndexReader indexReader58 = null;
org.apache.lucene.index.PostingsEnum postingsEnum60 = null;
org.apache.lucene.index.PostingsEnum postingsEnum61 = null;
kuromojiAnalysisTests24.assertDocsSkippingEquals("tests.weekly", indexReader58, 0, postingsEnum60, postingsEnum61, false);
kuromojiAnalysisTests24.setUp();
org.apache.lucene.index.IndexReader indexReader66 = null;
org.apache.lucene.index.PostingsEnum postingsEnum68 = null;
org.apache.lucene.index.PostingsEnum postingsEnum69 = null;
kuromojiAnalysisTests24.assertDocsSkippingEquals("hi!", indexReader66, (int) (short) 1, postingsEnum68, postingsEnum69, true);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame("random", (java.lang.Object) "", (java.lang.Object) kuromojiAnalysisTests24);
}
@Test
public void test2573() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2573");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals("tests.slow", (double) (-1L), (double) (byte) -1, 1.0d);
}
@Test
public void test2574() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2574");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("hi!", indexReader10, 1, postingsEnum12, postingsEnum13);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.badapples");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests17 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader19 = null;
org.apache.lucene.index.Fields fields20 = null;
org.apache.lucene.index.Fields fields21 = null;
kuromojiAnalysisTests17.assertFieldsEquals("europarl.lines.txt.gz", indexReader19, fields20, fields21, false);
kuromojiAnalysisTests17.ensureCleanedUp();
kuromojiAnalysisTests17.resetCheckIndexStatus();
kuromojiAnalysisTests17.ensureCleanedUp();
kuromojiAnalysisTests17.ensureCheckIndexPassed();
kuromojiAnalysisTests17.restoreIndexWriterMaxDocs();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests29 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader31 = null;
org.apache.lucene.index.Fields fields32 = null;
org.apache.lucene.index.Fields fields33 = null;
kuromojiAnalysisTests29.assertFieldsEquals("europarl.lines.txt.gz", indexReader31, fields32, fields33, false);
kuromojiAnalysisTests29.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain38 = kuromojiAnalysisTests29.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain38;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain38;
kuromojiAnalysisTests17.failureAndSuccessEvents = ruleChain38;
kuromojiAnalysisTests0.failureAndSuccessEvents = ruleChain38;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) ruleChain38);
}
@Test
public void test2575() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2575");
java.lang.String[] strArray2 = new java.lang.String[] { "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet3 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray2);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests4 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader6 = null;
org.apache.lucene.index.Terms terms7 = null;
org.apache.lucene.index.Terms terms8 = null;
kuromojiAnalysisTests4.assertTermsEquals("tests.weekly", indexReader6, terms7, terms8, false);
org.junit.Assert.assertNotSame((java.lang.Object) strArray2, (java.lang.Object) indexReader6);
org.apache.lucene.store.MockDirectoryWrapper.Throttling throttling14 = org.apache.lucene.util.LuceneTestCase.TEST_THROTTLING;
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray15 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] { throttling14 };
java.util.List<org.apache.lucene.store.MockDirectoryWrapper.Throttling> throttlingList16 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, throttlingArray15);
org.junit.Assert.assertNotNull("europarl.lines.txt.gz", (java.lang.Object) throttlingArray15);
java.util.Set<java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>> throttlingEnumSet18 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>[]) throttlingArray15);
// during test generation this statement threw an exception of type org.junit.internal.ArrayComparisonFailure in error
org.junit.Assert.assertArrayEquals("random", (java.lang.Object[]) strArray2, (java.lang.Object[]) throttlingArray15);
}
@Test
public void test2576() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2576");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.Terms terms11 = null;
org.apache.lucene.index.Terms terms12 = null;
kuromojiAnalysisTests0.assertTermsEquals("", indexReader10, terms11, terms12, false);
kuromojiAnalysisTests0.resetCheckIndexStatus();
kuromojiAnalysisTests0.ensureAllSearchContextsReleased();
kuromojiAnalysisTests0.setIndexWriterMaxDocs(0);
org.apache.lucene.index.IndexReader indexReader20 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.slow", indexReader20, (int) ' ', postingsEnum22, postingsEnum23);
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
org.apache.lucene.index.PostingsEnum postingsEnum27 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("tests.monster", postingsEnum26, postingsEnum27);
}
@Test
public void test2577() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2577");
byte[] byteArray6 = new byte[] { (byte) 1, (byte) 100, (byte) 10, (byte) -1, (byte) 100 };
byte[] byteArray11 = new byte[] { (byte) 10, (byte) 0, (byte) 1, (byte) -1 };
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("<unknown>", byteArray6, byteArray11);
}
@Test
public void test2578() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2578");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals((double) (byte) 1, 0.0d, (double) (byte) 1);
}
@Test
public void test2579() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2579");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("hi!", indexReader8, (int) (byte) 0, postingsEnum10, postingsEnum11);
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.Terms terms15 = null;
org.apache.lucene.index.Terms terms16 = null;
kuromojiAnalysisTests0.assertTermsEquals("random", indexReader14, terms15, terms16, true);
java.lang.String str19 = kuromojiAnalysisTests0.getTestName();
kuromojiAnalysisTests0.setIndexWriterMaxDocs((int) (short) 0);
java.lang.String str22 = kuromojiAnalysisTests0.getTestName();
kuromojiAnalysisTests0.setUp();
org.apache.lucene.index.IndexReader indexReader25 = null;
org.apache.lucene.index.Terms terms26 = null;
org.apache.lucene.index.Terms terms27 = null;
kuromojiAnalysisTests0.assertTermsEquals("", indexReader25, terms26, terms27, true);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotNull((java.lang.Object) terms26);
}
@Test
public void test2580() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2580");
byte[] byteArray6 = new byte[] { (byte) -1, (byte) 10, (byte) 10, (byte) 10, (byte) 1 };
byte[] byteArray8 = new byte[] { (byte) 0 };
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.slow", byteArray6, byteArray8);
}
@Test
public void test2581() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2581");
java.util.Locale locale3 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale5 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale7 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale9 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale11 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray12 = new java.util.Locale[] { locale3, locale5, locale7, locale9, locale11 };
java.util.Set<java.util.Locale> localeSet13 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray12);
java.util.List<java.io.Serializable> serializableList14 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray12);
java.util.Set<java.lang.Cloneable> cloneableSet15 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray12);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray12, (java.lang.Object) (byte) -1);
java.util.Locale locale20 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale22 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale24 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale26 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale28 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray29 = new java.util.Locale[] { locale20, locale22, locale24, locale26, locale28 };
java.util.Set<java.util.Locale> localeSet30 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray29);
java.util.List<java.io.Serializable> serializableList31 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray29);
java.util.Set<java.lang.Cloneable> cloneableSet32 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray29);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray29, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray12, (java.lang.Object[]) localeArray29);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests36 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader38 = null;
org.apache.lucene.index.Fields fields39 = null;
org.apache.lucene.index.Fields fields40 = null;
kuromojiAnalysisTests36.assertFieldsEquals("europarl.lines.txt.gz", indexReader38, fields39, fields40, false);
kuromojiAnalysisTests36.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain45 = kuromojiAnalysisTests36.failureAndSuccessEvents;
kuromojiAnalysisTests36.setUp();
org.junit.Assert.assertNotSame("tests.nightly", (java.lang.Object) localeArray12, (java.lang.Object) kuromojiAnalysisTests36);
org.junit.rules.RuleChain[] ruleChainArray48 = new org.junit.rules.RuleChain[] {};
org.junit.rules.RuleChain[][] ruleChainArray49 = new org.junit.rules.RuleChain[][] { ruleChainArray48 };
java.util.Set<org.junit.rules.RuleChain[]> ruleChainArraySet50 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray49);
java.util.Set<org.junit.rules.TestRule[]> testRuleArraySet51 = org.apache.lucene.util.LuceneTestCase.asSet((org.junit.rules.TestRule[][]) ruleChainArray49);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object[]) localeArray12, (java.lang.Object[]) ruleChainArray49);
}
@Test
public void test2582() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2582");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.resetCheckIndexStatus();
org.junit.rules.TestRule testRule9 = kuromojiAnalysisTests0.ruleChain;
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests12 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.Fields fields15 = null;
org.apache.lucene.index.Fields fields16 = null;
kuromojiAnalysisTests12.assertFieldsEquals("europarl.lines.txt.gz", indexReader14, fields15, fields16, false);
kuromojiAnalysisTests12.assertPathHasBeenCleared("tests.slow");
org.junit.rules.TestRule testRule21 = kuromojiAnalysisTests12.ruleChain;
org.junit.rules.TestRule testRule22 = kuromojiAnalysisTests12.ruleChain;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object) kuromojiAnalysisTests0, (java.lang.Object) testRule22);
}
@Test
public void test2583() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2583");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("<unknown>", 0L, (long) 3);
}
@Test
public void test2584() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2584");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain9 = kuromojiAnalysisTests0.failureAndSuccessEvents;
kuromojiAnalysisTests0.resetCheckIndexStatus();
org.apache.lucene.index.IndexReader indexReader12 = null;
org.apache.lucene.index.Fields fields13 = null;
org.apache.lucene.index.Fields fields14 = null;
kuromojiAnalysisTests0.assertFieldsEquals("enwiki.random.lines.txt", indexReader12, fields13, fields14, false);
kuromojiAnalysisTests0.setIndexWriterMaxDocs((int) (byte) 0);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests19 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader21 = null;
org.apache.lucene.index.Fields fields22 = null;
org.apache.lucene.index.Fields fields23 = null;
kuromojiAnalysisTests19.assertFieldsEquals("europarl.lines.txt.gz", indexReader21, fields22, fields23, false);
kuromojiAnalysisTests19.ensureCleanedUp();
kuromojiAnalysisTests19.resetCheckIndexStatus();
kuromojiAnalysisTests19.ensureCleanedUp();
kuromojiAnalysisTests19.ensureCheckIndexPassed();
kuromojiAnalysisTests19.restoreIndexWriterMaxDocs();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests31 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader33 = null;
org.apache.lucene.index.Fields fields34 = null;
org.apache.lucene.index.Fields fields35 = null;
kuromojiAnalysisTests31.assertFieldsEquals("europarl.lines.txt.gz", indexReader33, fields34, fields35, false);
kuromojiAnalysisTests31.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain40 = kuromojiAnalysisTests31.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain40;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain40;
kuromojiAnalysisTests19.failureAndSuccessEvents = ruleChain40;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain40;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain40;
kuromojiAnalysisTests0.failureAndSuccessEvents = ruleChain40;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain40;
org.junit.Assert.assertNotNull((java.lang.Object) ruleChain40);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) ruleChain40);
}
@Test
public void test2585() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2585");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.monster", (double) (short) 100, 1.0d);
}
@Test
public void test2586() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2586");
int[] intArray4 = new int[] { (byte) -1, ' ', 100, (short) 1 };
int[] intArray9 = new int[] { (byte) -1, ' ', 100, (short) 1 };
int[][] intArray10 = new int[][] { intArray4, intArray9 };
java.util.Set<int[]> intArraySet11 = org.apache.lucene.util.LuceneTestCase.asSet(intArray10);
java.util.concurrent.ExecutorService executorService13 = null;
java.util.concurrent.ExecutorService[] executorServiceArray14 = new java.util.concurrent.ExecutorService[] { executorService13 };
boolean boolean15 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray14);
boolean boolean16 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray14);
double[] doubleArray23 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray28 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray23, doubleArray28, (double) (byte) 100);
double[] doubleArray37 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray42 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray37, doubleArray42, (double) (byte) 100);
double[] doubleArray50 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray55 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray50, doubleArray55, (double) (byte) 100);
org.junit.Assert.assertArrayEquals("", doubleArray37, doubleArray50, (double) 0);
org.junit.Assert.assertArrayEquals(doubleArray23, doubleArray37, (-1.0d));
double[] doubleArray68 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray73 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray68, doubleArray73, (double) (byte) 100);
double[] doubleArray81 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray86 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray81, doubleArray86, (double) (byte) 100);
org.junit.Assert.assertArrayEquals("", doubleArray68, doubleArray81, (double) 0);
org.junit.Assert.assertArrayEquals("random", doubleArray23, doubleArray81, (double) 10.0f);
org.junit.Assert.assertNotSame("tests.weekly", (java.lang.Object) executorServiceArray14, (java.lang.Object) "random");
boolean boolean94 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray14);
boolean boolean95 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray14);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object[]) intArray10, (java.lang.Object[]) executorServiceArray14);
}
@Test
public void test2587() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2587");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests2 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader4 = null;
org.apache.lucene.index.Fields fields5 = null;
org.apache.lucene.index.Fields fields6 = null;
kuromojiAnalysisTests2.assertFieldsEquals("europarl.lines.txt.gz", indexReader4, fields5, fields6, false);
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
kuromojiAnalysisTests2.assertPositionsSkippingEquals("hi!", indexReader10, (int) (byte) 0, postingsEnum12, postingsEnum13);
org.apache.lucene.index.IndexReader indexReader16 = null;
org.apache.lucene.index.Terms terms17 = null;
org.apache.lucene.index.Terms terms18 = null;
kuromojiAnalysisTests2.assertTermsEquals("random", indexReader16, terms17, terms18, true);
kuromojiAnalysisTests2.setUp();
kuromojiAnalysisTests2.tearDown();
kuromojiAnalysisTests2.tearDown();
kuromojiAnalysisTests2.setIndexWriterMaxDocs(1);
kuromojiAnalysisTests2.tearDown();
org.junit.Assert.assertNotEquals("tests.badapples", (java.lang.Object) 10.0d, (java.lang.Object) kuromojiAnalysisTests2);
short[] shortArray30 = new short[] { (short) 10 };
short[] shortArray32 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray30, shortArray32);
short[] shortArray36 = new short[] { (short) 10 };
short[] shortArray38 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray36, shortArray38);
short[] shortArray43 = new short[] { (short) 10 };
short[] shortArray45 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray43, shortArray45);
short[] shortArray49 = new short[] { (short) 10 };
short[] shortArray51 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray49, shortArray51);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray45, shortArray51);
org.junit.Assert.assertArrayEquals(shortArray38, shortArray51);
short[] shortArray58 = new short[] { (short) 10 };
short[] shortArray60 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray58, shortArray60);
short[] shortArray64 = new short[] { (short) 10 };
short[] shortArray66 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray64, shortArray66);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray60, shortArray66);
org.junit.Assert.assertArrayEquals(shortArray38, shortArray66);
org.junit.Assert.assertArrayEquals(shortArray32, shortArray66);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object) kuromojiAnalysisTests2, (java.lang.Object) shortArray66);
}
@Test
public void test2588() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2588");
java.util.Locale locale2 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale4 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale6 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale8 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale10 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray11 = new java.util.Locale[] { locale2, locale4, locale6, locale8, locale10 };
java.util.Set<java.util.Locale> localeSet12 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray11);
java.util.Locale locale15 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale17 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale19 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale21 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale23 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray24 = new java.util.Locale[] { locale15, locale17, locale19, locale21, locale23 };
java.util.Set<java.util.Locale> localeSet25 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray24);
java.util.List<java.io.Serializable> serializableList26 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray24);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray11, (java.lang.Object[]) localeArray24);
java.lang.String[] strArray32 = new java.lang.String[] { "europarl.lines.txt.gz", "tests.badapples", "random" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet33 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray32);
org.junit.Assert.assertNotEquals((java.lang.Object) (short) -1, (java.lang.Object) strArray32);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("", (java.lang.Object[]) localeArray11, (java.lang.Object[]) strArray32);
}
@Test
public void test2589() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2589");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("hi!", indexReader9, (int) (byte) 0, postingsEnum11, postingsEnum12);
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Terms terms16 = null;
org.apache.lucene.index.Terms terms17 = null;
kuromojiAnalysisTests1.assertTermsEquals("random", indexReader15, terms16, terms17, true);
kuromojiAnalysisTests1.setUp();
kuromojiAnalysisTests1.tearDown();
org.apache.lucene.index.IndexReader indexReader23 = null;
org.apache.lucene.index.Fields fields24 = null;
org.apache.lucene.index.Fields fields25 = null;
kuromojiAnalysisTests1.assertFieldsEquals("", indexReader23, fields24, fields25, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests28 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader30 = null;
org.apache.lucene.index.Fields fields31 = null;
org.apache.lucene.index.Fields fields32 = null;
kuromojiAnalysisTests28.assertFieldsEquals("europarl.lines.txt.gz", indexReader30, fields31, fields32, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests35 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader37 = null;
org.apache.lucene.index.Fields fields38 = null;
org.apache.lucene.index.Fields fields39 = null;
kuromojiAnalysisTests35.assertFieldsEquals("europarl.lines.txt.gz", indexReader37, fields38, fields39, false);
org.apache.lucene.index.IndexReader indexReader43 = null;
org.apache.lucene.index.PostingsEnum postingsEnum45 = null;
org.apache.lucene.index.PostingsEnum postingsEnum46 = null;
kuromojiAnalysisTests35.assertPositionsSkippingEquals("hi!", indexReader43, (int) (byte) 0, postingsEnum45, postingsEnum46);
org.elasticsearch.test.ESTestCase[] eSTestCaseArray48 = new org.elasticsearch.test.ESTestCase[] { kuromojiAnalysisTests1, kuromojiAnalysisTests28, kuromojiAnalysisTests35 };
java.util.List<org.elasticsearch.test.ESTestCase> eSTestCaseList49 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, eSTestCaseArray48);
int[][] intArray50 = new int[][] {};
java.util.Set<int[]> intArraySet51 = org.apache.lucene.util.LuceneTestCase.asSet(intArray50);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object[]) eSTestCaseArray48, (java.lang.Object[]) intArray50);
}
@Test
public void test2590() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2590");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.ensureAllSearchContextsReleased();
org.apache.lucene.index.IndexReader indexReader13 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
org.apache.lucene.index.PostingsEnum postingsEnum16 = null;
kuromojiAnalysisTests1.assertDocsSkippingEquals("enwiki.random.lines.txt", indexReader13, 100, postingsEnum15, postingsEnum16, false);
org.apache.lucene.index.IndexReader indexReader20 = null;
org.apache.lucene.index.Fields fields21 = null;
org.apache.lucene.index.Fields fields22 = null;
kuromojiAnalysisTests1.assertFieldsEquals("tests.monster", indexReader20, fields21, fields22, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests25 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader27 = null;
org.apache.lucene.index.Fields fields28 = null;
org.apache.lucene.index.Fields fields29 = null;
kuromojiAnalysisTests25.assertFieldsEquals("europarl.lines.txt.gz", indexReader27, fields28, fields29, false);
kuromojiAnalysisTests25.ensureCleanedUp();
kuromojiAnalysisTests25.resetCheckIndexStatus();
kuromojiAnalysisTests25.setIndexWriterMaxDocs((int) (byte) 0);
org.junit.rules.RuleChain ruleChain36 = kuromojiAnalysisTests25.failureAndSuccessEvents;
kuromojiAnalysisTests1.failureAndSuccessEvents = ruleChain36;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests38 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader40 = null;
org.apache.lucene.index.Fields fields41 = null;
org.apache.lucene.index.Fields fields42 = null;
kuromojiAnalysisTests38.assertFieldsEquals("europarl.lines.txt.gz", indexReader40, fields41, fields42, false);
kuromojiAnalysisTests38.ensureCleanedUp();
kuromojiAnalysisTests38.overrideTestDefaultQueryCache();
kuromojiAnalysisTests38.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader49 = null;
org.apache.lucene.index.PostingsEnum postingsEnum51 = null;
org.apache.lucene.index.PostingsEnum postingsEnum52 = null;
kuromojiAnalysisTests38.assertDocsSkippingEquals("tests.slow", indexReader49, (int) (short) -1, postingsEnum51, postingsEnum52, false);
org.apache.lucene.index.IndexReader indexReader56 = null;
org.apache.lucene.index.PostingsEnum postingsEnum58 = null;
org.apache.lucene.index.PostingsEnum postingsEnum59 = null;
kuromojiAnalysisTests38.assertPositionsSkippingEquals("", indexReader56, (int) '4', postingsEnum58, postingsEnum59);
kuromojiAnalysisTests38.ensureAllSearchContextsReleased();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame("tests.awaitsfix", (java.lang.Object) ruleChain36, (java.lang.Object) kuromojiAnalysisTests38);
}
@Test
public void test2591() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2591");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.failfast", indexReader9, 1, postingsEnum11, postingsEnum12);
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests1.setUp();
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests1.setUp();
kuromojiAnalysisTests1.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader20 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.awaitsfix", indexReader20, 4, postingsEnum22, postingsEnum23);
java.util.Locale locale28 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale30 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale32 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale34 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale36 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray37 = new java.util.Locale[] { locale28, locale30, locale32, locale34, locale36 };
java.util.Set<java.util.Locale> localeSet38 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray37);
java.util.List<java.io.Serializable> serializableList39 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray37);
java.util.Set<java.lang.Cloneable> cloneableSet40 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray37);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray37, (java.lang.Object) (byte) -1);
java.util.Locale locale45 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale47 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale49 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale51 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale53 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray54 = new java.util.Locale[] { locale45, locale47, locale49, locale51, locale53 };
java.util.Set<java.util.Locale> localeSet55 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray54);
java.util.List<java.io.Serializable> serializableList56 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray54);
java.util.Set<java.lang.Cloneable> cloneableSet57 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray54);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray54, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray37, (java.lang.Object[]) localeArray54);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests61 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader63 = null;
org.apache.lucene.index.Fields fields64 = null;
org.apache.lucene.index.Fields fields65 = null;
kuromojiAnalysisTests61.assertFieldsEquals("europarl.lines.txt.gz", indexReader63, fields64, fields65, false);
kuromojiAnalysisTests61.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain70 = kuromojiAnalysisTests61.failureAndSuccessEvents;
kuromojiAnalysisTests61.setUp();
org.junit.Assert.assertNotSame("tests.nightly", (java.lang.Object) localeArray37, (java.lang.Object) kuromojiAnalysisTests61);
kuromojiAnalysisTests61.setIndexWriterMaxDocs((int) (short) 1);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.nightly", (java.lang.Object) 4, (java.lang.Object) kuromojiAnalysisTests61);
}
@Test
public void test2592() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2592");
java.lang.Object[] objArray0 = null;
java.util.Locale locale2 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale4 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale6 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale8 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale10 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray11 = new java.util.Locale[] { locale2, locale4, locale6, locale8, locale10 };
java.util.Set<java.util.Locale> localeSet12 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray11);
java.util.Locale locale15 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale17 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale19 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale21 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale23 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray24 = new java.util.Locale[] { locale15, locale17, locale19, locale21, locale23 };
java.util.Set<java.util.Locale> localeSet25 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray24);
java.util.List<java.io.Serializable> serializableList26 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray24);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray11, (java.lang.Object[]) localeArray24);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(objArray0, (java.lang.Object[]) localeArray11);
}
@Test
public void test2593() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2593");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.weekly", (double) (byte) 100, (double) 2, 10.0d);
}
@Test
public void test2594() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2594");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader11 = null;
org.apache.lucene.index.Terms terms12 = null;
org.apache.lucene.index.Terms terms13 = null;
kuromojiAnalysisTests1.assertTermsEquals("", indexReader11, terms12, terms13, false);
kuromojiAnalysisTests1.resetCheckIndexStatus();
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.setUp();
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.ensureCheckIndexPassed();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests21 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader23 = null;
org.apache.lucene.index.Fields fields24 = null;
org.apache.lucene.index.Fields fields25 = null;
kuromojiAnalysisTests21.assertFieldsEquals("europarl.lines.txt.gz", indexReader23, fields24, fields25, false);
kuromojiAnalysisTests21.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests21.setUp();
kuromojiAnalysisTests21.ensureCheckIndexPassed();
org.apache.lucene.index.IndexReader indexReader33 = null;
org.apache.lucene.index.PostingsEnum postingsEnum35 = null;
org.apache.lucene.index.PostingsEnum postingsEnum36 = null;
kuromojiAnalysisTests21.assertDocsSkippingEquals("europarl.lines.txt.gz", indexReader33, 1, postingsEnum35, postingsEnum36, true);
org.apache.lucene.index.IndexReader indexReader40 = null;
org.apache.lucene.index.PostingsEnum postingsEnum42 = null;
org.apache.lucene.index.PostingsEnum postingsEnum43 = null;
kuromojiAnalysisTests21.assertPositionsSkippingEquals("tests.slow", indexReader40, 0, postingsEnum42, postingsEnum43);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.awaitsfix", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) postingsEnum42);
}
@Test
public void test2595() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2595");
java.lang.Iterable[] iterableArray2 = new java.lang.Iterable[0];
@SuppressWarnings("unchecked")
java.lang.Iterable<java.util.Locale>[] localeIterableArray3 = (java.lang.Iterable<java.util.Locale>[]) iterableArray2;
java.lang.Iterable[] iterableArray5 = new java.lang.Iterable[0];
@SuppressWarnings("unchecked")
java.lang.Iterable<java.util.Locale>[] localeIterableArray6 = (java.lang.Iterable<java.util.Locale>[]) iterableArray5;
java.lang.Iterable[] iterableArray8 = new java.lang.Iterable[0];
@SuppressWarnings("unchecked")
java.lang.Iterable<java.util.Locale>[] localeIterableArray9 = (java.lang.Iterable<java.util.Locale>[]) iterableArray8;
java.lang.Iterable[] iterableArray11 = new java.lang.Iterable[0];
@SuppressWarnings("unchecked")
java.lang.Iterable<java.util.Locale>[] localeIterableArray12 = (java.lang.Iterable<java.util.Locale>[]) iterableArray11;
java.lang.Iterable[][] iterableArray14 = new java.lang.Iterable[4][];
@SuppressWarnings("unchecked")
java.lang.Iterable<java.util.Locale>[][] localeIterableArray15 = (java.lang.Iterable<java.util.Locale>[][]) iterableArray14;
localeIterableArray15[0] = iterableArray2;
localeIterableArray15[1] = iterableArray5;
localeIterableArray15[2] = localeIterableArray9;
localeIterableArray15[3] = localeIterableArray12;
java.util.List<java.lang.Iterable<java.util.Locale>[]> localeIterableArrayList24 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, localeIterableArray15);
java.util.Set<java.lang.Iterable<java.util.Locale>[]> localeIterableArraySet25 = org.apache.lucene.util.LuceneTestCase.asSet(localeIterableArray15);
java.util.Locale locale27 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass28 = locale27.getClass();
java.util.Locale locale30 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass31 = locale30.getClass();
java.util.Locale locale33 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass34 = locale33.getClass();
java.util.Locale locale36 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass37 = locale36.getClass();
java.util.Locale locale39 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass40 = locale39.getClass();
java.lang.reflect.AnnotatedElement[] annotatedElementArray41 = new java.lang.reflect.AnnotatedElement[] { wildcardClass28, wildcardClass31, wildcardClass34, wildcardClass37, wildcardClass40 };
java.util.Set<java.lang.reflect.AnnotatedElement> annotatedElementSet42 = org.apache.lucene.util.LuceneTestCase.asSet(annotatedElementArray41);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeIterableArray15, (java.lang.Object[]) annotatedElementArray41);
}
@Test
public void test2596() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2596");
long[] longArray6 = new long[] { ' ', 'a', (byte) 10, 100 };
long[] longArray11 = new long[] { ' ', 'a', (byte) 10, 100 };
long[] longArray16 = new long[] { ' ', 'a', (byte) 10, 100 };
long[] longArray21 = new long[] { ' ', 'a', (byte) 10, 100 };
long[] longArray26 = new long[] { ' ', 'a', (byte) 10, 100 };
long[][] longArray27 = new long[][] { longArray6, longArray11, longArray16, longArray21, longArray26 };
java.util.List<long[]> longArrayList28 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, longArray27);
java.util.Set<long[]> longArraySet29 = org.apache.lucene.util.LuceneTestCase.asSet(longArray27);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests30 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader32 = null;
org.apache.lucene.index.Fields fields33 = null;
org.apache.lucene.index.Fields fields34 = null;
kuromojiAnalysisTests30.assertFieldsEquals("europarl.lines.txt.gz", indexReader32, fields33, fields34, false);
java.lang.String[] strArray44 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet45 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray44);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests46 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests46.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet45, (java.lang.Object) kuromojiAnalysisTests46);
org.apache.lucene.index.PostingsEnum postingsEnum51 = null;
org.apache.lucene.index.PostingsEnum postingsEnum52 = null;
kuromojiAnalysisTests46.assertDocsEnumEquals("tests.badapples", postingsEnum51, postingsEnum52, true);
org.junit.rules.TestRule testRule55 = kuromojiAnalysisTests46.ruleChain;
org.apache.lucene.index.IndexReader indexReader57 = null;
org.apache.lucene.index.PostingsEnum postingsEnum59 = null;
org.apache.lucene.index.PostingsEnum postingsEnum60 = null;
kuromojiAnalysisTests46.assertDocsSkippingEquals("tests.maxfailures", indexReader57, (int) (byte) 100, postingsEnum59, postingsEnum60, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests63 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader65 = null;
org.apache.lucene.index.Fields fields66 = null;
org.apache.lucene.index.Fields fields67 = null;
kuromojiAnalysisTests63.assertFieldsEquals("europarl.lines.txt.gz", indexReader65, fields66, fields67, false);
kuromojiAnalysisTests63.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain72 = kuromojiAnalysisTests63.failureAndSuccessEvents;
kuromojiAnalysisTests46.failureAndSuccessEvents = ruleChain72;
kuromojiAnalysisTests30.failureAndSuccessEvents = ruleChain72;
org.apache.lucene.index.PostingsEnum postingsEnum76 = null;
org.apache.lucene.index.PostingsEnum postingsEnum77 = null;
kuromojiAnalysisTests30.assertDocsEnumEquals("<unknown>", postingsEnum76, postingsEnum77, true);
kuromojiAnalysisTests30.tearDown();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.badapples", (java.lang.Object) longArray27, (java.lang.Object) kuromojiAnalysisTests30);
}
@Test
public void test2597() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2597");
byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) 1, (byte) 0, (byte) 0, (byte) 0 };
byte[] byteArray11 = new byte[] { (byte) 1, (byte) 100, (byte) -1 };
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", byteArray7, byteArray11);
}
@Test
public void test2598() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2598");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("enwiki.random.lines.txt", (float) (byte) 100, (float) ' ', (float) (short) -1);
}
@Test
public void test2599() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2599");
byte[] byteArray0 = new byte[] {};
byte[] byteArray3 = new byte[] { (byte) -1, (byte) 1 };
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(byteArray0, byteArray3);
}
@Test
public void test2600() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2600");
short[] shortArray4 = new short[] { (short) 10 };
short[] shortArray6 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray4, shortArray6);
short[] shortArray10 = new short[] { (short) 10 };
short[] shortArray12 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray10, shortArray12);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray6, shortArray12);
short[] shortArray17 = new short[] { (short) 10 };
short[] shortArray19 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray17, shortArray19);
short[] shortArray24 = new short[] { (short) 10 };
short[] shortArray26 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray24, shortArray26);
short[] shortArray30 = new short[] { (short) 10 };
short[] shortArray32 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray30, shortArray32);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray26, shortArray32);
org.junit.Assert.assertArrayEquals(shortArray19, shortArray32);
short[] shortArray39 = new short[] { (short) 10 };
short[] shortArray41 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray39, shortArray41);
short[] shortArray45 = new short[] { (short) 10 };
short[] shortArray47 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray45, shortArray47);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray41, shortArray47);
org.junit.Assert.assertArrayEquals(shortArray19, shortArray47);
short[] shortArray55 = new short[] { (short) 10 };
short[] shortArray57 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray55, shortArray57);
short[] shortArray61 = new short[] { (short) 10 };
short[] shortArray63 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray61, shortArray63);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray57, shortArray63);
short[] shortArray69 = new short[] { (short) 10 };
short[] shortArray71 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray69, shortArray71);
short[] shortArray75 = new short[] { (short) 10 };
short[] shortArray77 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray75, shortArray77);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", shortArray71, shortArray77);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray57, shortArray77);
org.junit.Assert.assertArrayEquals(shortArray19, shortArray77);
org.junit.Assert.assertArrayEquals(shortArray6, shortArray19);
short[] shortArray86 = new short[] { (short) 10 };
short[] shortArray88 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray86, shortArray88);
short[] shortArray92 = new short[] { (short) 10 };
short[] shortArray94 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray92, shortArray94);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray88, shortArray94);
org.junit.Assert.assertArrayEquals("<unknown>", shortArray19, shortArray88);
short[] shortArray98 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(shortArray19, shortArray98);
}
@Test
public void test2601() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2601");
int[] intArray3 = new int[] { '#' };
int[] intArray5 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray3, intArray5);
int[] intArray8 = new int[] { '#' };
int[] intArray10 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray8, intArray10);
org.junit.Assert.assertArrayEquals("tests.nightly", intArray3, intArray8);
int[] intArray18 = new int[] { '#' };
int[] intArray20 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray18, intArray20);
int[] intArray23 = new int[] { '#' };
int[] intArray25 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray23, intArray25);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray18, intArray23);
int[] intArray30 = new int[] { '#' };
int[] intArray32 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray30, intArray32);
int[] intArray35 = new int[] { '#' };
int[] intArray37 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray35, intArray37);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray30, intArray35);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", intArray18, intArray35);
int[] intArray42 = new int[] { '#' };
int[] intArray44 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray42, intArray44);
org.junit.Assert.assertArrayEquals("tests.slow", intArray18, intArray42);
int[] intArray48 = new int[] { '#' };
int[] intArray50 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray48, intArray50);
org.junit.Assert.assertArrayEquals("tests.slow", intArray18, intArray50);
org.junit.Assert.assertArrayEquals("tests.maxfailures", intArray3, intArray18);
int[] intArray54 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(intArray18, intArray54);
}
@Test
public void test2602() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2602");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests0.setIndexWriterMaxDocs((int) (byte) 10);
org.apache.lucene.index.IndexReader indexReader4 = null;
org.apache.lucene.index.Terms terms5 = null;
org.apache.lucene.index.Terms terms6 = null;
kuromojiAnalysisTests0.assertTermsEquals("tests.weekly", indexReader4, terms5, terms6, true);
kuromojiAnalysisTests0.setIndexWriterMaxDocs((int) '#');
java.lang.String str11 = kuromojiAnalysisTests0.getTestName();
org.junit.rules.TestRule testRule12 = kuromojiAnalysisTests0.ruleChain;
kuromojiAnalysisTests0.ensureCleanedUp();
org.apache.lucene.index.NumericDocValues numericDocValues16 = null;
org.apache.lucene.index.NumericDocValues numericDocValues17 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("", (int) (byte) -1, numericDocValues16, numericDocValues17);
}
@Test
public void test2603() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2603");
byte[] byteArray1 = new byte[] { (byte) 10 };
byte[] byteArray6 = new byte[] { (byte) 1, (byte) 10, (byte) -1, (byte) 0 };
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(byteArray1, byteArray6);
}
@Test
public void test2604() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2604");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("hi!", indexReader9, (int) (byte) 0, postingsEnum11, postingsEnum12);
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Terms terms16 = null;
org.apache.lucene.index.Terms terms17 = null;
kuromojiAnalysisTests1.assertTermsEquals("random", indexReader15, terms16, terms17, true);
kuromojiAnalysisTests1.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
kuromojiAnalysisTests1.assertDocsEnumEquals("tests.nightly", postingsEnum22, postingsEnum23, true);
kuromojiAnalysisTests1.tearDown();
java.lang.Object obj27 = null;
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests1, obj27);
kuromojiAnalysisTests1.tearDown();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests30 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader32 = null;
org.apache.lucene.index.Fields fields33 = null;
org.apache.lucene.index.Fields fields34 = null;
kuromojiAnalysisTests30.assertFieldsEquals("europarl.lines.txt.gz", indexReader32, fields33, fields34, false);
org.apache.lucene.index.IndexReader indexReader38 = null;
org.apache.lucene.index.PostingsEnum postingsEnum40 = null;
org.apache.lucene.index.PostingsEnum postingsEnum41 = null;
kuromojiAnalysisTests30.assertPositionsSkippingEquals("tests.failfast", indexReader38, 1, postingsEnum40, postingsEnum41);
kuromojiAnalysisTests30.setIndexWriterMaxDocs(0);
kuromojiAnalysisTests30.ensureCleanedUp();
kuromojiAnalysisTests30.resetCheckIndexStatus();
kuromojiAnalysisTests30.restoreIndexWriterMaxDocs();
org.apache.lucene.index.IndexReader indexReader49 = null;
org.apache.lucene.index.Fields fields50 = null;
org.apache.lucene.index.Fields fields51 = null;
kuromojiAnalysisTests30.assertFieldsEquals("enwiki.random.lines.txt", indexReader49, fields50, fields51, false);
org.apache.lucene.index.IndexReader indexReader55 = null;
org.apache.lucene.index.Terms terms56 = null;
org.apache.lucene.index.Terms terms57 = null;
kuromojiAnalysisTests30.assertTermsEquals("tests.failfast", indexReader55, terms56, terms57, false);
kuromojiAnalysisTests30.restoreIndexWriterMaxDocs();
org.apache.lucene.index.IndexReader indexReader62 = null;
org.apache.lucene.index.Terms terms63 = null;
org.apache.lucene.index.Terms terms64 = null;
kuromojiAnalysisTests30.assertTermsEquals("tests.weekly", indexReader62, terms63, terms64, true);
org.junit.rules.TestRule testRule67 = kuromojiAnalysisTests30.ruleChain;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("<unknown>", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) testRule67);
}
@Test
public void test2605() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2605");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.slow", (float) (short) 1, (float) ' ', (float) 10);
}
@Test
public void test2606() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2606");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.failfast", 100.0d, (double) 2);
}
@Test
public void test2607() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2607");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
org.junit.rules.TestRule testRule9 = kuromojiAnalysisTests0.ruleChain;
org.junit.rules.TestRule testRule10 = kuromojiAnalysisTests0.ruleChain;
org.junit.rules.RuleChain ruleChain11 = kuromojiAnalysisTests0.failureAndSuccessEvents;
java.lang.String str12 = kuromojiAnalysisTests0.getTestName();
org.junit.rules.TestRule testRule13 = kuromojiAnalysisTests0.ruleChain;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
org.apache.lucene.index.PostingsEnum postingsEnum16 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("hi!", postingsEnum15, postingsEnum16);
}
@Test
public void test2608() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2608");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests0.tearDown();
org.apache.lucene.index.IndexReader indexReader11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
kuromojiAnalysisTests0.assertDocsSkippingEquals("", indexReader11, (int) (short) 1, postingsEnum13, postingsEnum14, false);
org.apache.lucene.index.IndexReader indexReader18 = null;
org.apache.lucene.index.Terms terms19 = null;
org.apache.lucene.index.Terms terms20 = null;
kuromojiAnalysisTests0.assertTermsEquals("europarl.lines.txt.gz", indexReader18, terms19, terms20, false);
java.lang.String str23 = kuromojiAnalysisTests0.getTestName();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests24 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader26 = null;
org.apache.lucene.index.Fields fields27 = null;
org.apache.lucene.index.Fields fields28 = null;
kuromojiAnalysisTests24.assertFieldsEquals("europarl.lines.txt.gz", indexReader26, fields27, fields28, false);
org.apache.lucene.index.IndexReader indexReader32 = null;
org.apache.lucene.index.PostingsEnum postingsEnum34 = null;
org.apache.lucene.index.PostingsEnum postingsEnum35 = null;
kuromojiAnalysisTests24.assertPositionsSkippingEquals("hi!", indexReader32, (int) (byte) 0, postingsEnum34, postingsEnum35);
org.apache.lucene.index.IndexReader indexReader38 = null;
org.apache.lucene.index.Terms terms39 = null;
org.apache.lucene.index.Terms terms40 = null;
kuromojiAnalysisTests24.assertTermsEquals("random", indexReader38, terms39, terms40, true);
kuromojiAnalysisTests24.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum45 = null;
org.apache.lucene.index.PostingsEnum postingsEnum46 = null;
kuromojiAnalysisTests24.assertDocsEnumEquals("tests.nightly", postingsEnum45, postingsEnum46, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests49 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader51 = null;
org.apache.lucene.index.Fields fields52 = null;
org.apache.lucene.index.Fields fields53 = null;
kuromojiAnalysisTests49.assertFieldsEquals("europarl.lines.txt.gz", indexReader51, fields52, fields53, false);
kuromojiAnalysisTests49.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain58 = kuromojiAnalysisTests49.failureAndSuccessEvents;
kuromojiAnalysisTests49.ensureAllSearchContextsReleased();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests60 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader62 = null;
org.apache.lucene.index.Fields fields63 = null;
org.apache.lucene.index.Fields fields64 = null;
kuromojiAnalysisTests60.assertFieldsEquals("europarl.lines.txt.gz", indexReader62, fields63, fields64, false);
org.apache.lucene.index.IndexReader indexReader68 = null;
org.apache.lucene.index.PostingsEnum postingsEnum70 = null;
org.apache.lucene.index.PostingsEnum postingsEnum71 = null;
kuromojiAnalysisTests60.assertPositionsSkippingEquals("hi!", indexReader68, (int) (byte) 0, postingsEnum70, postingsEnum71);
kuromojiAnalysisTests60.ensureCheckIndexPassed();
org.elasticsearch.index.analysis.KuromojiAnalysisTests[] kuromojiAnalysisTestsArray74 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests[] { kuromojiAnalysisTests24, kuromojiAnalysisTests49, kuromojiAnalysisTests60 };
java.util.Set<org.elasticsearch.index.analysis.KuromojiAnalysisTests> kuromojiAnalysisTestsSet75 = org.apache.lucene.util.LuceneTestCase.asSet(kuromojiAnalysisTestsArray74);
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests0, (java.lang.Object) kuromojiAnalysisTestsSet75);
org.junit.Assert.assertNotNull((java.lang.Object) kuromojiAnalysisTests0);
org.apache.lucene.index.PostingsEnum postingsEnum79 = null;
org.apache.lucene.index.PostingsEnum postingsEnum80 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("hi!", postingsEnum79, postingsEnum80);
}
@Test
public void test2609() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2609");
byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 1, (byte) 1, (byte) -1, (byte) 0 };
byte[] byteArray9 = new byte[] { (byte) 0 };
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.badapples", byteArray7, byteArray9);
}
@Test
public void test2610() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2610");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (-1), (double) (short) 1);
}
@Test
public void test2611() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2611");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(0.0d, (double) 0L);
}
@Test
public void test2612() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2612");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("hi!", indexReader10, 1, postingsEnum12, postingsEnum13);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.badapples");
kuromojiAnalysisTests0.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader19 = null;
org.apache.lucene.index.Fields fields20 = null;
org.apache.lucene.index.Fields fields21 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader19, fields20, fields21, true);
kuromojiAnalysisTests0.setIndexWriterMaxDocs(10);
org.apache.lucene.index.PostingsEnum postingsEnum27 = null;
org.apache.lucene.index.PostingsEnum postingsEnum28 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("tests.awaitsfix", postingsEnum27, postingsEnum28);
}
@Test
public void test2613() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2613");
java.lang.reflect.GenericDeclaration[] genericDeclarationArray1 = new java.lang.reflect.GenericDeclaration[] {};
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet2 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray1);
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet3 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray1);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull("random", (java.lang.Object) genericDeclarationSet3);
}
@Test
public void test2614() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2614");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((float) (byte) 1, (float) '#', (float) (short) 0);
}
@Test
public void test2615() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2615");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("<unknown>", (double) (-1.0f), (double) 100);
}
@Test
public void test2616() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2616");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("hi!", (double) ' ', (double) 1L);
}
@Test
public void test2617() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2617");
java.util.Locale locale2 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale4 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale6 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray7 = new java.util.Locale[] { locale2, locale4, locale6 };
java.util.Locale locale9 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale11 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale13 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray14 = new java.util.Locale[] { locale9, locale11, locale13 };
java.util.Locale locale16 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale18 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale20 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray21 = new java.util.Locale[] { locale16, locale18, locale20 };
java.util.Locale locale23 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale25 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale27 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray28 = new java.util.Locale[] { locale23, locale25, locale27 };
java.util.Locale locale30 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale32 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale34 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray35 = new java.util.Locale[] { locale30, locale32, locale34 };
java.util.Locale locale37 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale39 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale41 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray42 = new java.util.Locale[] { locale37, locale39, locale41 };
java.util.Locale[][] localeArray43 = new java.util.Locale[][] { localeArray7, localeArray14, localeArray21, localeArray28, localeArray35, localeArray42 };
java.util.Set<java.util.Locale[]> localeArraySet44 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray43);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests45 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader47 = null;
org.apache.lucene.index.Fields fields48 = null;
org.apache.lucene.index.Fields fields49 = null;
kuromojiAnalysisTests45.assertFieldsEquals("europarl.lines.txt.gz", indexReader47, fields48, fields49, false);
org.apache.lucene.index.IndexReader indexReader53 = null;
org.apache.lucene.index.PostingsEnum postingsEnum55 = null;
org.apache.lucene.index.PostingsEnum postingsEnum56 = null;
kuromojiAnalysisTests45.assertPositionsSkippingEquals("tests.failfast", indexReader53, 1, postingsEnum55, postingsEnum56);
kuromojiAnalysisTests45.setIndexWriterMaxDocs(0);
org.apache.lucene.index.IndexReader indexReader61 = null;
org.apache.lucene.index.Fields fields62 = null;
org.apache.lucene.index.Fields fields63 = null;
kuromojiAnalysisTests45.assertFieldsEquals("tests.slow", indexReader61, fields62, fields63, false);
org.apache.lucene.index.IndexReader indexReader67 = null;
org.apache.lucene.index.PostingsEnum postingsEnum69 = null;
org.apache.lucene.index.PostingsEnum postingsEnum70 = null;
kuromojiAnalysisTests45.assertPositionsSkippingEquals("<unknown>", indexReader67, (int) 'a', postingsEnum69, postingsEnum70);
kuromojiAnalysisTests45.overrideTestDefaultQueryCache();
org.junit.rules.RuleChain ruleChain73 = kuromojiAnalysisTests45.failureAndSuccessEvents;
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray43, (java.lang.Object) ruleChain73);
java.util.Set<java.util.Locale[]> localeArraySet75 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray43);
org.junit.Assert.assertNotNull((java.lang.Object) localeArray43);
int[][] intArray78 = new int[][] {};
java.util.List<int[]> intArrayList79 = org.elasticsearch.test.ESTestCase.randomSubsetOf(0, intArray78);
java.util.Set<int[]> intArraySet80 = org.apache.lucene.util.LuceneTestCase.asSet(intArray78);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("random", (java.lang.Object[]) localeArray43, (java.lang.Object[]) intArray78);
}
@Test
public void test2618() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2618");
int[][][][] intArray1 = new int[][][][] {};
int[][][][] intArray2 = new int[][][][] {};
int[][][][] intArray3 = new int[][][][] {};
int[][][][] intArray4 = new int[][][][] {};
int[][][][] intArray5 = new int[][][][] {};
int[][][][][] intArray6 = new int[][][][][] { intArray1, intArray2, intArray3, intArray4, intArray5 };
int[][][][] intArray7 = new int[][][][] {};
int[][][][] intArray8 = new int[][][][] {};
int[][][][] intArray9 = new int[][][][] {};
int[][][][] intArray10 = new int[][][][] {};
int[][][][] intArray11 = new int[][][][] {};
int[][][][][] intArray12 = new int[][][][][] { intArray7, intArray8, intArray9, intArray10, intArray11 };
int[][][][][][] intArray13 = new int[][][][][][] { intArray6, intArray12 };
java.util.List<int[][][][][]> intArrayList14 = org.elasticsearch.test.ESTestCase.randomSubsetOf(0, intArray13);
java.util.concurrent.ExecutorService[] executorServiceArray16 = new java.util.concurrent.ExecutorService[] {};
boolean boolean17 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray16);
boolean boolean18 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray16);
boolean boolean19 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray16);
java.lang.reflect.GenericDeclaration[][] genericDeclarationArray20 = new java.lang.reflect.GenericDeclaration[][] {};
java.util.Set<java.lang.reflect.GenericDeclaration[]> genericDeclarationArraySet21 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray20);
java.util.Set<java.lang.reflect.AnnotatedElement[]> annotatedElementArraySet22 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.reflect.AnnotatedElement[][]) genericDeclarationArray20);
org.junit.Assert.assertEquals((java.lang.Object[]) executorServiceArray16, (java.lang.Object[]) genericDeclarationArray20);
java.util.concurrent.ExecutorService[][][] executorServiceArray24 = new java.util.concurrent.ExecutorService[][][] {};
java.util.Set<java.util.concurrent.ExecutorService[][]> executorServiceArraySet25 = org.apache.lucene.util.LuceneTestCase.asSet(executorServiceArray24);
org.junit.Assert.assertEquals("random", (java.lang.Object[]) executorServiceArray16, (java.lang.Object[]) executorServiceArray24);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object[]) intArray13, (java.lang.Object[]) executorServiceArray24);
}
@Test
public void test2619() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2619");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(100.0f, 0.0f, (float) '4');
}
@Test
public void test2620() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2620");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(100.0f, (float) 10L, (-1.0f));
}
@Test
public void test2621() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2621");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((long) 100, (long) 3);
}
@Test
public void test2622() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2622");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (short) 100, (double) 'a');
}
@Test
public void test2623() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2623");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.monster", (long) (byte) -1, (long) '4');
}
@Test
public void test2624() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2624");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.maxfailures", (double) (short) -1, (double) 10L, (double) (byte) 0);
}
@Test
public void test2625() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2625");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((float) 3, (float) (byte) 10, (float) (byte) -1);
}
@Test
public void test2626() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2626");
byte[] byteArray7 = new byte[] { (byte) 10, (byte) 0, (byte) 1, (byte) 10, (byte) -1, (byte) 100 };
byte[] byteArray9 = new byte[] { (byte) 10 };
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.nightly", byteArray7, byteArray9);
}
@Test
public void test2627() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2627");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((float) 100, (float) 4, 0.0f);
}
@Test
public void test2628() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2628");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain9 = kuromojiAnalysisTests0.failureAndSuccessEvents;
kuromojiAnalysisTests0.resetCheckIndexStatus();
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests0.tearDown();
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
kuromojiAnalysisTests0.assertDocsEnumEquals("tests.weekly", postingsEnum14, postingsEnum15, true);
java.lang.Object obj18 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotSame((java.lang.Object) postingsEnum15, obj18);
}
@Test
public void test2629() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2629");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals((double) (-1), (double) (short) 10, (double) 100L);
}
@Test
public void test2630() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2630");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.maxfailures", (float) '#', (float) (short) -1, (float) (-1L));
}
@Test
public void test2631() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2631");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("europarl.lines.txt.gz", (double) ' ', (double) (-1));
}
@Test
public void test2632() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2632");
java.util.Locale locale3 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale5 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale7 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale9 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale11 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray12 = new java.util.Locale[] { locale3, locale5, locale7, locale9, locale11 };
java.util.Set<java.util.Locale> localeSet13 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray12);
java.util.List<java.io.Serializable> serializableList14 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray12);
org.junit.Assert.assertNotNull((java.lang.Object) localeArray12);
java.util.Locale locale20 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale22 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale24 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale26 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale28 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray29 = new java.util.Locale[] { locale20, locale22, locale24, locale26, locale28 };
java.util.Set<java.util.Locale> localeSet30 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray29);
java.util.List<java.io.Serializable> serializableList31 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray29);
org.junit.Assert.assertNotSame("", (java.lang.Object) localeArray29, (java.lang.Object) 0.0f);
java.util.Locale locale37 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale39 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale41 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale43 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale45 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray46 = new java.util.Locale[] { locale37, locale39, locale41, locale43, locale45 };
java.util.Set<java.util.Locale> localeSet47 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray46);
java.util.List<java.io.Serializable> serializableList48 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray46);
org.junit.Assert.assertNotSame("", (java.lang.Object) localeArray46, (java.lang.Object) 0.0f);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", (java.lang.Object[]) localeArray29, (java.lang.Object[]) localeArray46);
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", (java.lang.Object[]) localeArray12, (java.lang.Object[]) localeArray29);
java.util.concurrent.ExecutorService[][][] executorServiceArray53 = new java.util.concurrent.ExecutorService[][][] {};
java.util.Set<java.util.concurrent.ExecutorService[][]> executorServiceArraySet54 = org.apache.lucene.util.LuceneTestCase.asSet(executorServiceArray53);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object[]) localeArray12, (java.lang.Object[]) executorServiceArray53);
}
@Test
public void test2633() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2633");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.failfast", indexReader8, 1, postingsEnum10, postingsEnum11);
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests0.setUp();
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.monster");
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) kuromojiAnalysisTests0);
}
@Test
public void test2634() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2634");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("random", 10.0d, (double) 100L);
}
@Test
public void test2635() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2635");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("hi!", (float) 10, (float) (-1L), (float) (short) 10);
}
@Test
public void test2636() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2636");
java.lang.String[] strArray7 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet8 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray7);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests9 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests9.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet8, (java.lang.Object) kuromojiAnalysisTests9);
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
kuromojiAnalysisTests9.assertDocsEnumEquals("tests.badapples", postingsEnum14, postingsEnum15, true);
org.junit.rules.TestRule testRule18 = kuromojiAnalysisTests9.ruleChain;
kuromojiAnalysisTests9.setUp();
org.apache.lucene.index.IndexReader indexReader21 = null;
org.apache.lucene.index.Terms terms22 = null;
org.apache.lucene.index.Terms terms23 = null;
kuromojiAnalysisTests9.assertTermsEquals("tests.badapples", indexReader21, terms22, terms23, false);
org.junit.rules.RuleChain ruleChain26 = null;
kuromojiAnalysisTests9.failureAndSuccessEvents = ruleChain26;
org.apache.lucene.index.NumericDocValues numericDocValues30 = null;
org.apache.lucene.index.NumericDocValues numericDocValues31 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests9.assertDocValuesEquals("tests.awaitsfix", (int) (byte) -1, numericDocValues30, numericDocValues31);
}
@Test
public void test2637() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2637");
byte[] byteArray4 = new byte[] { (byte) -1, (byte) 10, (byte) -1, (byte) 10 };
byte[] byteArray5 = new byte[] {};
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(byteArray4, byteArray5);
}
@Test
public void test2638() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2638");
byte[] byteArray2 = new byte[] { (byte) 100, (byte) 1 };
byte[] byteArray3 = new byte[] {};
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(byteArray2, byteArray3);
}
@Test
public void test2639() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2639");
long[] longArray4 = new long[] { 1 };
long[] longArray6 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray4, longArray6);
long[] longArray10 = new long[] { 1 };
long[] longArray12 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray10, longArray12);
org.junit.Assert.assertArrayEquals("random", longArray6, longArray12);
long[] longArray19 = new long[] { 1 };
long[] longArray21 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray19, longArray21);
long[] longArray25 = new long[] { 1 };
long[] longArray27 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray25, longArray27);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray21, longArray25);
long[] longArray32 = new long[] { 1 };
long[] longArray34 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray32, longArray34);
org.junit.Assert.assertArrayEquals("hi!", longArray25, longArray32);
long[] longArray40 = new long[] { 1 };
long[] longArray42 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray40, longArray42);
long[] longArray46 = new long[] { 1 };
long[] longArray48 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray46, longArray48);
org.junit.Assert.assertArrayEquals("random", longArray42, longArray48);
org.junit.Assert.assertArrayEquals(longArray32, longArray42);
org.junit.Assert.assertArrayEquals(longArray6, longArray42);
long[] longArray56 = new long[] { 1 };
long[] longArray58 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray56, longArray58);
long[] longArray62 = new long[] { 1 };
long[] longArray64 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray62, longArray64);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray58, longArray62);
org.junit.Assert.assertArrayEquals(longArray42, longArray58);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests68 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader70 = null;
org.apache.lucene.index.Fields fields71 = null;
org.apache.lucene.index.Fields fields72 = null;
kuromojiAnalysisTests68.assertFieldsEquals("europarl.lines.txt.gz", indexReader70, fields71, fields72, false);
kuromojiAnalysisTests68.ensureCleanedUp();
kuromojiAnalysisTests68.resetCheckIndexStatus();
kuromojiAnalysisTests68.ensureCleanedUp();
kuromojiAnalysisTests68.ensureCheckIndexPassed();
kuromojiAnalysisTests68.restoreIndexWriterMaxDocs();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests80 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader82 = null;
org.apache.lucene.index.Fields fields83 = null;
org.apache.lucene.index.Fields fields84 = null;
kuromojiAnalysisTests80.assertFieldsEquals("europarl.lines.txt.gz", indexReader82, fields83, fields84, false);
kuromojiAnalysisTests80.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain89 = kuromojiAnalysisTests80.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain89;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain89;
kuromojiAnalysisTests68.failureAndSuccessEvents = ruleChain89;
kuromojiAnalysisTests68.tearDown();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame("tests.maxfailures", (java.lang.Object) longArray42, (java.lang.Object) kuromojiAnalysisTests68);
}
@Test
public void test2640() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2640");
java.lang.reflect.GenericDeclaration[][] genericDeclarationArray1 = new java.lang.reflect.GenericDeclaration[][] {};
java.util.Set<java.lang.reflect.GenericDeclaration[]> genericDeclarationArraySet2 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray1);
java.lang.reflect.GenericDeclaration[] genericDeclarationArray4 = new java.lang.reflect.GenericDeclaration[] {};
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet5 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray4);
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet6 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray4);
org.junit.Assert.assertNotEquals((java.lang.Object) 1, (java.lang.Object) genericDeclarationArray4);
java.util.Set<java.lang.reflect.AnnotatedElement> annotatedElementSet8 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.reflect.AnnotatedElement[]) genericDeclarationArray4);
org.junit.Assert.assertEquals("", (java.lang.Object[]) genericDeclarationArray1, (java.lang.Object[]) genericDeclarationArray4);
int[][] intArray10 = new int[][] {};
int[][] intArray11 = new int[][] {};
int[][] intArray12 = new int[][] {};
int[][] intArray13 = new int[][] {};
int[][][] intArray14 = new int[][][] { intArray10, intArray11, intArray12, intArray13 };
int[][] intArray15 = new int[][] {};
int[][] intArray16 = new int[][] {};
int[][] intArray17 = new int[][] {};
int[][] intArray18 = new int[][] {};
int[][][] intArray19 = new int[][][] { intArray15, intArray16, intArray17, intArray18 };
int[][][][] intArray20 = new int[][][][] { intArray14, intArray19 };
java.util.Set<int[][][]> intArraySet21 = org.apache.lucene.util.LuceneTestCase.asSet(intArray20);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals((java.lang.Object[]) genericDeclarationArray1, (java.lang.Object[]) intArray20);
}
@Test
public void test2641() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2641");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.awaitsfix", (double) (short) 100, 0.0d);
}
@Test
public void test2642() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2642");
int[] intArray3 = new int[] { '#' };
int[] intArray5 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray3, intArray5);
int[] intArray8 = new int[] { '#' };
int[] intArray10 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray8, intArray10);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray3, intArray8);
int[] intArray15 = new int[] { '#' };
int[] intArray17 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray15, intArray17);
int[] intArray20 = new int[] { '#' };
int[] intArray22 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray20, intArray22);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray15, intArray20);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", intArray3, intArray20);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) "europarl.lines.txt.gz");
}
@Test
public void test2643() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2643");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals((double) (byte) 1, (double) (-1L), 10.0d);
}
@Test
public void test2644() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2644");
double[] doubleArray5 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray10 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray5, doubleArray10, (double) (byte) 100);
double[] doubleArray19 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray24 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray19, doubleArray24, (double) (byte) 100);
double[] doubleArray32 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray37 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray32, doubleArray37, (double) (byte) 100);
org.junit.Assert.assertArrayEquals("", doubleArray19, doubleArray32, (double) 0);
org.junit.Assert.assertArrayEquals(doubleArray5, doubleArray19, (-1.0d));
double[] doubleArray50 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray55 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray50, doubleArray55, (double) (byte) 100);
double[] doubleArray63 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray68 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray63, doubleArray68, (double) (byte) 100);
org.junit.Assert.assertArrayEquals("", doubleArray50, doubleArray63, (double) 0);
org.junit.Assert.assertArrayEquals(doubleArray19, doubleArray63, 0.0d);
double[] doubleArray80 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray85 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray80, doubleArray85, (double) (byte) 100);
// during test generation this statement threw an exception of type org.junit.internal.ArrayComparisonFailure in error
org.junit.Assert.assertArrayEquals(doubleArray19, doubleArray85, (double) 2);
}
@Test
public void test2645() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2645");
java.util.List[] listArray1 = new java.util.List[0];
@SuppressWarnings("unchecked")
java.util.List<java.io.Serializable>[] serializableListArray2 = (java.util.List<java.io.Serializable>[]) listArray1;
java.util.Set<java.util.List<java.io.Serializable>> serializableListSet3 = org.apache.lucene.util.LuceneTestCase.asSet(serializableListArray2);
java.util.Set<java.util.List<java.io.Serializable>> serializableListSet4 = org.apache.lucene.util.LuceneTestCase.asSet(serializableListArray2);
java.util.Set<java.util.List<java.io.Serializable>> serializableListSet5 = org.apache.lucene.util.LuceneTestCase.asSet(serializableListArray2);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) serializableListSet5);
}
@Test
public void test2646() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2646");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("<unknown>", (long) 1, (long) (short) 10);
}
@Test
public void test2647() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2647");
byte[] byteArray6 = new byte[] { (byte) -1, (byte) -1, (byte) -1, (byte) 0, (byte) -1, (byte) 100 };
byte[] byteArray8 = new byte[] {};
byte[] byteArray9 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray8, byteArray9);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(byteArray6, byteArray9);
}
@Test
public void test2648() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2648");
java.util.Locale locale3 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale5 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale7 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale9 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale11 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray12 = new java.util.Locale[] { locale3, locale5, locale7, locale9, locale11 };
java.util.Set<java.util.Locale> localeSet13 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray12);
java.util.List<java.io.Serializable> serializableList14 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray12);
java.util.Set<java.lang.Cloneable> cloneableSet15 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray12);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray12, (java.lang.Object) (byte) -1);
java.util.Locale locale20 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale22 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale24 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale26 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale28 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray29 = new java.util.Locale[] { locale20, locale22, locale24, locale26, locale28 };
java.util.Set<java.util.Locale> localeSet30 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray29);
java.util.List<java.io.Serializable> serializableList31 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray29);
java.util.Set<java.lang.Cloneable> cloneableSet32 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray29);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray29, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray12, (java.lang.Object[]) localeArray29);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests36 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader38 = null;
org.apache.lucene.index.Fields fields39 = null;
org.apache.lucene.index.Fields fields40 = null;
kuromojiAnalysisTests36.assertFieldsEquals("europarl.lines.txt.gz", indexReader38, fields39, fields40, false);
kuromojiAnalysisTests36.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain45 = kuromojiAnalysisTests36.failureAndSuccessEvents;
kuromojiAnalysisTests36.setUp();
org.junit.Assert.assertNotSame("tests.nightly", (java.lang.Object) localeArray12, (java.lang.Object) kuromojiAnalysisTests36);
org.apache.lucene.index.IndexReader indexReader49 = null;
org.apache.lucene.index.PostingsEnum postingsEnum51 = null;
org.apache.lucene.index.PostingsEnum postingsEnum52 = null;
kuromojiAnalysisTests36.assertDocsSkippingEquals("tests.awaitsfix", indexReader49, 10, postingsEnum51, postingsEnum52, true);
kuromojiAnalysisTests36.resetCheckIndexStatus();
org.apache.lucene.index.PostingsEnum postingsEnum57 = null;
org.apache.lucene.index.PostingsEnum postingsEnum58 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests36.assertDocsAndPositionsEnumEquals("tests.nightly", postingsEnum57, postingsEnum58);
}
@Test
public void test2649() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2649");
double[] doubleArray4 = new double[] { (-1.0f), 4, '4' };
double[] doubleArray8 = new double[] { (-1.0f), 4, '4' };
double[] doubleArray12 = new double[] { (-1.0f), 4, '4' };
double[] doubleArray16 = new double[] { (-1.0f), 4, '4' };
double[] doubleArray20 = new double[] { (-1.0f), 4, '4' };
double[] doubleArray24 = new double[] { (-1.0f), 4, '4' };
double[][] doubleArray25 = new double[][] { doubleArray4, doubleArray8, doubleArray12, doubleArray16, doubleArray20, doubleArray24 };
double[][][] doubleArray26 = new double[][][] { doubleArray25 };
java.util.Set<double[][]> doubleArraySet27 = org.apache.lucene.util.LuceneTestCase.asSet(doubleArray26);
java.lang.Object[] objArray28 = new java.lang.Object[] {};
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.slow", (java.lang.Object[]) doubleArray26, objArray28);
}
@Test
public void test2650() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2650");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.resetCheckIndexStatus();
java.lang.String str12 = kuromojiAnalysisTests1.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests1);
kuromojiAnalysisTests1.tearDown();
kuromojiAnalysisTests1.setUp();
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.PostingsEnum postingsEnum19 = null;
org.apache.lucene.index.PostingsEnum postingsEnum20 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("", indexReader17, (int) '#', postingsEnum19, postingsEnum20);
kuromojiAnalysisTests1.ensureCleanedUp();
org.apache.lucene.index.PostingsEnum postingsEnum24 = null;
org.apache.lucene.index.PostingsEnum postingsEnum25 = null;
kuromojiAnalysisTests1.assertDocsEnumEquals("tests.weekly", postingsEnum24, postingsEnum25, false);
org.apache.lucene.index.PostingsEnum postingsEnum29 = null;
org.apache.lucene.index.PostingsEnum postingsEnum30 = null;
kuromojiAnalysisTests1.assertDocsEnumEquals("enwiki.random.lines.txt", postingsEnum29, postingsEnum30, true);
kuromojiAnalysisTests1.setUp();
org.apache.lucene.index.IndexReader indexReader35 = null;
org.apache.lucene.index.PostingsEnum postingsEnum37 = null;
org.apache.lucene.index.PostingsEnum postingsEnum38 = null;
kuromojiAnalysisTests1.assertDocsSkippingEquals("tests.weekly", indexReader35, 10, postingsEnum37, postingsEnum38, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("random");
kuromojiAnalysisTests1.setIndexWriterMaxDocs((int) (short) 0);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests45 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader47 = null;
org.apache.lucene.index.Fields fields48 = null;
org.apache.lucene.index.Fields fields49 = null;
kuromojiAnalysisTests45.assertFieldsEquals("europarl.lines.txt.gz", indexReader47, fields48, fields49, false);
org.apache.lucene.index.IndexReader indexReader53 = null;
org.apache.lucene.index.PostingsEnum postingsEnum55 = null;
org.apache.lucene.index.PostingsEnum postingsEnum56 = null;
kuromojiAnalysisTests45.assertPositionsSkippingEquals("hi!", indexReader53, (int) (byte) 0, postingsEnum55, postingsEnum56);
org.apache.lucene.index.IndexReader indexReader59 = null;
org.apache.lucene.index.Terms terms60 = null;
org.apache.lucene.index.Terms terms61 = null;
kuromojiAnalysisTests45.assertTermsEquals("random", indexReader59, terms60, terms61, true);
kuromojiAnalysisTests45.setUp();
kuromojiAnalysisTests45.setIndexWriterMaxDocs((-1));
kuromojiAnalysisTests45.assertPathHasBeenCleared("tests.monster");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests69 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader71 = null;
org.apache.lucene.index.Fields fields72 = null;
org.apache.lucene.index.Fields fields73 = null;
kuromojiAnalysisTests69.assertFieldsEquals("europarl.lines.txt.gz", indexReader71, fields72, fields73, false);
kuromojiAnalysisTests69.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain78 = kuromojiAnalysisTests69.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain78;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain78;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain78;
kuromojiAnalysisTests45.failureAndSuccessEvents = ruleChain78;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain78;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object) (short) 0, (java.lang.Object) ruleChain78);
}
@Test
public void test2651() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2651");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.resetCheckIndexStatus();
kuromojiAnalysisTests0.ensureCleanedUp();
java.lang.String str10 = kuromojiAnalysisTests0.getTestName();
kuromojiAnalysisTests0.resetCheckIndexStatus();
org.junit.rules.TestRule testRule12 = kuromojiAnalysisTests0.ruleChain;
kuromojiAnalysisTests0.setUp();
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests0.tearDown();
kuromojiAnalysisTests0.setIndexWriterMaxDocs((int) (byte) -1);
kuromojiAnalysisTests0.ensureAllSearchContextsReleased();
org.apache.lucene.index.NumericDocValues numericDocValues21 = null;
org.apache.lucene.index.NumericDocValues numericDocValues22 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("tests.awaitsfix", 1, numericDocValues21, numericDocValues22);
}
@Test
public void test2652() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2652");
java.util.Locale locale4 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale6 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale8 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale10 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale12 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray13 = new java.util.Locale[] { locale4, locale6, locale8, locale10, locale12 };
java.util.Set<java.util.Locale> localeSet14 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray13);
java.util.List<java.io.Serializable> serializableList15 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray13);
java.util.Set<java.lang.Cloneable> cloneableSet16 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray13);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray13, (java.lang.Object) (byte) -1);
java.util.Locale locale21 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale23 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale25 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale27 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale29 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray30 = new java.util.Locale[] { locale21, locale23, locale25, locale27, locale29 };
java.util.Set<java.util.Locale> localeSet31 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray30);
java.util.List<java.io.Serializable> serializableList32 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray30);
java.util.Set<java.lang.Cloneable> cloneableSet33 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray30);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray30, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray13, (java.lang.Object[]) localeArray30);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests37 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader39 = null;
org.apache.lucene.index.Fields fields40 = null;
org.apache.lucene.index.Fields fields41 = null;
kuromojiAnalysisTests37.assertFieldsEquals("europarl.lines.txt.gz", indexReader39, fields40, fields41, false);
org.apache.lucene.index.IndexReader indexReader45 = null;
org.apache.lucene.index.PostingsEnum postingsEnum47 = null;
org.apache.lucene.index.PostingsEnum postingsEnum48 = null;
kuromojiAnalysisTests37.assertPositionsSkippingEquals("tests.failfast", indexReader45, 1, postingsEnum47, postingsEnum48);
kuromojiAnalysisTests37.setIndexWriterMaxDocs(0);
kuromojiAnalysisTests37.ensureCleanedUp();
kuromojiAnalysisTests37.resetCheckIndexStatus();
org.junit.Assert.assertNotSame("tests.badapples", (java.lang.Object) localeArray30, (java.lang.Object) kuromojiAnalysisTests37);
java.util.Locale locale57 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale59 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale61 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale63 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale65 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray66 = new java.util.Locale[] { locale57, locale59, locale61, locale63, locale65 };
java.util.Set<java.util.Locale> localeSet67 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray66);
java.util.List<java.io.Serializable> serializableList68 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray66);
java.util.Set<java.lang.Cloneable> cloneableSet69 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray66);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray66, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray30, (java.lang.Object[]) localeArray66);
java.util.Locale locale75 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale77 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale79 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale81 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale83 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray84 = new java.util.Locale[] { locale75, locale77, locale79, locale81, locale83 };
java.util.Set<java.util.Locale> localeSet85 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray84);
java.util.List<java.io.Serializable> serializableList86 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray84);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray66, (java.lang.Object[]) localeArray84);
org.apache.lucene.store.MockDirectoryWrapper.Throttling throttling90 = org.apache.lucene.util.LuceneTestCase.TEST_THROTTLING;
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray91 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] { throttling90 };
java.util.List<org.apache.lucene.store.MockDirectoryWrapper.Throttling> throttlingList92 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, throttlingArray91);
org.junit.Assert.assertNotNull("europarl.lines.txt.gz", (java.lang.Object) throttlingArray91);
java.util.Set<java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>> throttlingEnumSet94 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>[]) throttlingArray91);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", (java.lang.Object[]) localeArray66, (java.lang.Object[]) throttlingArray91);
}
@Test
public void test2653() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2653");
byte[] byteArray1 = null;
byte[] byteArray3 = new byte[] {};
byte[] byteArray4 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray3, byteArray4);
byte[] byteArray7 = new byte[] {};
byte[] byteArray8 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray7, byteArray8);
org.junit.Assert.assertArrayEquals(byteArray4, byteArray8);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.failfast", byteArray1, byteArray4);
}
@Test
public void test2654() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2654");
long[] longArray3 = new long[] { 1 };
long[] longArray5 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray3, longArray5);
long[] longArray9 = new long[] { 1 };
long[] longArray11 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray9, longArray11);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray5, longArray9);
long[] longArray17 = new long[] { 1 };
long[] longArray19 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray17, longArray19);
long[] longArray23 = new long[] { 1 };
long[] longArray25 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray23, longArray25);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray19, longArray23);
long[] longArray31 = new long[] { 1 };
long[] longArray33 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray31, longArray33);
long[] longArray38 = new long[] { 1 };
long[] longArray40 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray38, longArray40);
long[] longArray44 = new long[] { 1 };
long[] longArray46 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray44, longArray46);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray40, longArray44);
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", longArray31, longArray44);
org.junit.Assert.assertArrayEquals(longArray19, longArray31);
long[] longArray54 = new long[] { 1 };
long[] longArray56 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray54, longArray56);
long[] longArray60 = new long[] { 1 };
long[] longArray62 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray60, longArray62);
org.junit.Assert.assertArrayEquals("random", longArray56, longArray62);
org.junit.Assert.assertArrayEquals(longArray31, longArray62);
org.junit.Assert.assertArrayEquals(longArray5, longArray31);
long[] longArray68 = new long[] { 10L };
// during test generation this statement threw an exception of type org.junit.internal.ArrayComparisonFailure in error
org.junit.Assert.assertArrayEquals(longArray31, longArray68);
}
@Test
public void test2655() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2655");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals("tests.nightly", (double) (short) 0, 0.0d, 1.0d);
}
@Test
public void test2656() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2656");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests0.setIndexWriterMaxDocs((int) (byte) 10);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.ensureCheckIndexPassed();
org.apache.lucene.index.NumericDocValues numericDocValues7 = null;
org.apache.lucene.index.NumericDocValues numericDocValues8 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("tests.weekly", 4, numericDocValues7, numericDocValues8);
}
@Test
public void test2657() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2657");
java.lang.reflect.GenericDeclaration[] genericDeclarationArray2 = new java.lang.reflect.GenericDeclaration[] {};
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet3 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray2);
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet4 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray2);
java.lang.reflect.GenericDeclaration[][] genericDeclarationArray6 = new java.lang.reflect.GenericDeclaration[][] {};
java.util.Set<java.lang.reflect.GenericDeclaration[]> genericDeclarationArraySet7 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray6);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests8 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.Fields fields11 = null;
org.apache.lucene.index.Fields fields12 = null;
kuromojiAnalysisTests8.assertFieldsEquals("europarl.lines.txt.gz", indexReader10, fields11, fields12, false);
org.apache.lucene.index.IndexReader indexReader16 = null;
org.apache.lucene.index.PostingsEnum postingsEnum18 = null;
org.apache.lucene.index.PostingsEnum postingsEnum19 = null;
kuromojiAnalysisTests8.assertPositionsSkippingEquals("tests.failfast", indexReader16, 1, postingsEnum18, postingsEnum19);
kuromojiAnalysisTests8.setIndexWriterMaxDocs(0);
kuromojiAnalysisTests8.ensureCleanedUp();
kuromojiAnalysisTests8.resetCheckIndexStatus();
kuromojiAnalysisTests8.restoreIndexWriterMaxDocs();
org.apache.lucene.index.IndexReader indexReader27 = null;
org.apache.lucene.index.Fields fields28 = null;
org.apache.lucene.index.Fields fields29 = null;
kuromojiAnalysisTests8.assertFieldsEquals("enwiki.random.lines.txt", indexReader27, fields28, fields29, false);
org.apache.lucene.index.IndexReader indexReader33 = null;
org.apache.lucene.index.PostingsEnum postingsEnum35 = null;
org.apache.lucene.index.PostingsEnum postingsEnum36 = null;
kuromojiAnalysisTests8.assertDocsSkippingEquals("tests.weekly", indexReader33, (int) (byte) 0, postingsEnum35, postingsEnum36, true);
org.junit.Assert.assertNotSame("tests.weekly", (java.lang.Object) genericDeclarationArray6, (java.lang.Object) "tests.weekly");
java.util.concurrent.ExecutorService[] executorServiceArray40 = new java.util.concurrent.ExecutorService[] {};
boolean boolean41 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray40);
org.junit.Assert.assertEquals((java.lang.Object[]) genericDeclarationArray6, (java.lang.Object[]) executorServiceArray40);
org.junit.Assert.assertEquals("tests.badapples", (java.lang.Object[]) genericDeclarationArray2, (java.lang.Object[]) executorServiceArray40);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull("tests.awaitsfix", (java.lang.Object) "tests.badapples");
}
@Test
public void test2658() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2658");
java.lang.String[] strArray7 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet8 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray7);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests9 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests9.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet8, (java.lang.Object) kuromojiAnalysisTests9);
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
kuromojiAnalysisTests9.assertDocsEnumEquals("tests.badapples", postingsEnum14, postingsEnum15, true);
org.junit.rules.TestRule testRule18 = kuromojiAnalysisTests9.ruleChain;
org.apache.lucene.index.IndexReader indexReader20 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
kuromojiAnalysisTests9.assertDocsSkippingEquals("tests.maxfailures", indexReader20, (int) (byte) 100, postingsEnum22, postingsEnum23, false);
kuromojiAnalysisTests9.ensureCleanedUp();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests28 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader30 = null;
org.apache.lucene.index.Fields fields31 = null;
org.apache.lucene.index.Fields fields32 = null;
kuromojiAnalysisTests28.assertFieldsEquals("europarl.lines.txt.gz", indexReader30, fields31, fields32, false);
kuromojiAnalysisTests28.ensureCleanedUp();
kuromojiAnalysisTests28.resetCheckIndexStatus();
kuromojiAnalysisTests28.setIndexWriterMaxDocs((int) (byte) 0);
org.junit.rules.RuleChain ruleChain39 = kuromojiAnalysisTests28.failureAndSuccessEvents;
org.junit.Assert.assertNotNull("tests.monster", (java.lang.Object) kuromojiAnalysisTests28);
org.junit.Assert.assertNotEquals((java.lang.Object) kuromojiAnalysisTests9, (java.lang.Object) "tests.monster");
org.apache.lucene.index.NumericDocValues numericDocValues44 = null;
org.apache.lucene.index.NumericDocValues numericDocValues45 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests9.assertDocValuesEquals("europarl.lines.txt.gz", 1, numericDocValues44, numericDocValues45);
}
@Test
public void test2659() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2659");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests1.setIndexWriterMaxDocs((int) (byte) 10);
org.apache.lucene.index.IndexReader indexReader5 = null;
org.apache.lucene.index.Terms terms6 = null;
org.apache.lucene.index.Terms terms7 = null;
kuromojiAnalysisTests1.assertTermsEquals("tests.weekly", indexReader5, terms6, terms7, true);
kuromojiAnalysisTests1.setIndexWriterMaxDocs((int) '#');
java.lang.String str12 = kuromojiAnalysisTests1.getTestName();
org.junit.rules.TestRule testRule13 = kuromojiAnalysisTests1.ruleChain;
org.apache.lucene.util.LuceneTestCase.classRules = testRule13;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull("tests.failfast", (java.lang.Object) testRule13);
}
@Test
public void test2660() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2660");
short[] shortArray3 = new short[] { (short) 10 };
short[] shortArray5 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray3, shortArray5);
short[] shortArray10 = new short[] { (short) 10 };
short[] shortArray12 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray10, shortArray12);
short[] shortArray16 = new short[] { (short) 10 };
short[] shortArray18 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray16, shortArray18);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray12, shortArray18);
org.junit.Assert.assertArrayEquals(shortArray5, shortArray18);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests22 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader24 = null;
org.apache.lucene.index.Fields fields25 = null;
org.apache.lucene.index.Fields fields26 = null;
kuromojiAnalysisTests22.assertFieldsEquals("europarl.lines.txt.gz", indexReader24, fields25, fields26, false);
kuromojiAnalysisTests22.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests22.tearDown();
org.apache.lucene.index.IndexReader indexReader33 = null;
org.apache.lucene.index.Terms terms34 = null;
org.apache.lucene.index.Terms terms35 = null;
kuromojiAnalysisTests22.assertTermsEquals("tests.weekly", indexReader33, terms34, terms35, true);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.failfast", (java.lang.Object) shortArray5, (java.lang.Object) terms34);
}
@Test
public void test2661() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2661");
java.lang.reflect.GenericDeclaration[] genericDeclarationArray2 = new java.lang.reflect.GenericDeclaration[] {};
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet3 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray2);
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet4 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray2);
java.util.List<java.lang.reflect.AnnotatedElement> annotatedElementList5 = org.elasticsearch.test.ESTestCase.randomSubsetOf(0, (java.lang.reflect.AnnotatedElement[]) genericDeclarationArray2);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests8 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.Fields fields11 = null;
org.apache.lucene.index.Fields fields12 = null;
kuromojiAnalysisTests8.assertFieldsEquals("europarl.lines.txt.gz", indexReader10, fields11, fields12, false);
org.apache.lucene.index.IndexReader indexReader16 = null;
org.apache.lucene.index.PostingsEnum postingsEnum18 = null;
org.apache.lucene.index.PostingsEnum postingsEnum19 = null;
kuromojiAnalysisTests8.assertPositionsSkippingEquals("hi!", indexReader16, (int) (byte) 0, postingsEnum18, postingsEnum19);
org.apache.lucene.index.IndexReader indexReader22 = null;
org.apache.lucene.index.Terms terms23 = null;
org.apache.lucene.index.Terms terms24 = null;
kuromojiAnalysisTests8.assertTermsEquals("random", indexReader22, terms23, terms24, true);
kuromojiAnalysisTests8.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum29 = null;
org.apache.lucene.index.PostingsEnum postingsEnum30 = null;
kuromojiAnalysisTests8.assertDocsEnumEquals("tests.nightly", postingsEnum29, postingsEnum30, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests33 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader35 = null;
org.apache.lucene.index.Fields fields36 = null;
org.apache.lucene.index.Fields fields37 = null;
kuromojiAnalysisTests33.assertFieldsEquals("europarl.lines.txt.gz", indexReader35, fields36, fields37, false);
kuromojiAnalysisTests33.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain42 = kuromojiAnalysisTests33.failureAndSuccessEvents;
kuromojiAnalysisTests33.ensureAllSearchContextsReleased();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests44 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader46 = null;
org.apache.lucene.index.Fields fields47 = null;
org.apache.lucene.index.Fields fields48 = null;
kuromojiAnalysisTests44.assertFieldsEquals("europarl.lines.txt.gz", indexReader46, fields47, fields48, false);
org.apache.lucene.index.IndexReader indexReader52 = null;
org.apache.lucene.index.PostingsEnum postingsEnum54 = null;
org.apache.lucene.index.PostingsEnum postingsEnum55 = null;
kuromojiAnalysisTests44.assertPositionsSkippingEquals("hi!", indexReader52, (int) (byte) 0, postingsEnum54, postingsEnum55);
kuromojiAnalysisTests44.ensureCheckIndexPassed();
org.elasticsearch.index.analysis.KuromojiAnalysisTests[] kuromojiAnalysisTestsArray58 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests[] { kuromojiAnalysisTests8, kuromojiAnalysisTests33, kuromojiAnalysisTests44 };
java.util.Set<org.elasticsearch.index.analysis.KuromojiAnalysisTests> kuromojiAnalysisTestsSet59 = org.apache.lucene.util.LuceneTestCase.asSet(kuromojiAnalysisTestsArray58);
java.util.Set<org.junit.Assert> assertSet60 = org.apache.lucene.util.LuceneTestCase.asSet((org.junit.Assert[]) kuromojiAnalysisTestsArray58);
org.junit.rules.RuleChain[] ruleChainArray61 = new org.junit.rules.RuleChain[] {};
org.junit.rules.RuleChain[][] ruleChainArray62 = new org.junit.rules.RuleChain[][] { ruleChainArray61 };
java.util.Set<org.junit.rules.RuleChain[]> ruleChainArraySet63 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray62);
org.junit.Assert.assertNotEquals("tests.failfast", (java.lang.Object) kuromojiAnalysisTestsArray58, (java.lang.Object) ruleChainArray62);
java.util.List<org.elasticsearch.index.analysis.KuromojiAnalysisTests> kuromojiAnalysisTestsList65 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 1, kuromojiAnalysisTestsArray58);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.awaitsfix", (java.lang.Object[]) genericDeclarationArray2, (java.lang.Object[]) kuromojiAnalysisTestsArray58);
}
@Test
public void test2662() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2662");
java.util.concurrent.ExecutorService[] executorServiceArray1 = new java.util.concurrent.ExecutorService[] {};
boolean boolean2 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
java.util.concurrent.ExecutorService[] executorServiceArray3 = new java.util.concurrent.ExecutorService[] {};
boolean boolean4 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray3);
boolean boolean5 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray3);
boolean boolean6 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray3);
boolean boolean7 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray3);
boolean boolean8 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray3);
boolean boolean9 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray3);
org.junit.Assert.assertEquals((java.lang.Object[]) executorServiceArray1, (java.lang.Object[]) executorServiceArray3);
java.lang.Object[] objArray11 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("random", (java.lang.Object[]) executorServiceArray3, objArray11);
}
@Test
public void test2663() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2663");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("random", (double) 1, (double) 10, 1.0d);
}
@Test
public void test2664() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2664");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.tearDown();
kuromojiAnalysisTests0.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
kuromojiAnalysisTests0.assertDocsSkippingEquals("hi!", indexReader10, 10, postingsEnum12, postingsEnum13, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests16 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader18 = null;
org.apache.lucene.index.Fields fields19 = null;
org.apache.lucene.index.Fields fields20 = null;
kuromojiAnalysisTests16.assertFieldsEquals("europarl.lines.txt.gz", indexReader18, fields19, fields20, false);
kuromojiAnalysisTests16.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests16.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests16.overrideTestDefaultQueryCache();
kuromojiAnalysisTests16.ensureCheckIndexPassed();
org.junit.rules.RuleChain ruleChain29 = kuromojiAnalysisTests16.failureAndSuccessEvents;
kuromojiAnalysisTests0.failureAndSuccessEvents = ruleChain29;
java.lang.String str31 = kuromojiAnalysisTests0.getTestName();
org.junit.rules.TestRule testRule32 = kuromojiAnalysisTests0.ruleChain;
org.apache.lucene.index.PostingsEnum postingsEnum34 = null;
org.apache.lucene.index.PostingsEnum postingsEnum35 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("tests.slow", postingsEnum34, postingsEnum35);
}
@Test
public void test2665() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2665");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) 0.0f, (double) 1.0f);
}
@Test
public void test2666() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2666");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.failfast");
kuromojiAnalysisTests1.tearDown();
kuromojiAnalysisTests1.ensureAllSearchContextsReleased();
org.junit.rules.RuleChain ruleChain13 = kuromojiAnalysisTests1.failureAndSuccessEvents;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
org.apache.lucene.index.PostingsEnum postingsEnum16 = null;
kuromojiAnalysisTests1.assertDocsEnumEquals("", postingsEnum15, postingsEnum16, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests20 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader22 = null;
org.apache.lucene.index.Fields fields23 = null;
org.apache.lucene.index.Fields fields24 = null;
kuromojiAnalysisTests20.assertFieldsEquals("europarl.lines.txt.gz", indexReader22, fields23, fields24, false);
kuromojiAnalysisTests20.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain29 = kuromojiAnalysisTests20.failureAndSuccessEvents;
kuromojiAnalysisTests20.ensureAllSearchContextsReleased();
org.junit.Assert.assertNotNull("europarl.lines.txt.gz", (java.lang.Object) kuromojiAnalysisTests20);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame("tests.weekly", (java.lang.Object) true, (java.lang.Object) kuromojiAnalysisTests20);
}
@Test
public void test2667() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2667");
byte[] byteArray5 = new byte[] { (byte) -1, (byte) 10, (byte) 1, (byte) 0 };
byte[] byteArray7 = new byte[] {};
byte[] byteArray8 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray7, byteArray8);
byte[] byteArray11 = new byte[] {};
byte[] byteArray12 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray11, byteArray12);
org.junit.Assert.assertArrayEquals(byteArray7, byteArray12);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("", byteArray5, byteArray12);
}
@Test
public void test2668() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2668");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) 1.0f, (double) 0L);
}
@Test
public void test2669() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2669");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((long) '#', (long) (byte) 100);
}
@Test
public void test2670() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2670");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.TestRule testRule10 = kuromojiAnalysisTests1.ruleChain;
org.apache.lucene.util.LuceneTestCase.classRules = testRule10;
java.lang.Class<?> wildcardClass12 = testRule10.getClass();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests13 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Fields fields16 = null;
org.apache.lucene.index.Fields fields17 = null;
kuromojiAnalysisTests13.assertFieldsEquals("europarl.lines.txt.gz", indexReader15, fields16, fields17, false);
org.apache.lucene.index.IndexReader indexReader21 = null;
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
org.apache.lucene.index.PostingsEnum postingsEnum24 = null;
kuromojiAnalysisTests13.assertPositionsSkippingEquals("hi!", indexReader21, (int) (byte) 0, postingsEnum23, postingsEnum24);
org.apache.lucene.index.IndexReader indexReader27 = null;
org.apache.lucene.index.Terms terms28 = null;
org.apache.lucene.index.Terms terms29 = null;
kuromojiAnalysisTests13.assertTermsEquals("random", indexReader27, terms28, terms29, true);
kuromojiAnalysisTests13.setUp();
org.apache.lucene.index.IndexReader indexReader34 = null;
org.apache.lucene.index.PostingsEnum postingsEnum36 = null;
org.apache.lucene.index.PostingsEnum postingsEnum37 = null;
kuromojiAnalysisTests13.assertPositionsSkippingEquals("tests.failfast", indexReader34, (int) '4', postingsEnum36, postingsEnum37);
kuromojiAnalysisTests13.assertPathHasBeenCleared("tests.awaitsfix");
kuromojiAnalysisTests13.resetCheckIndexStatus();
java.lang.Class<?> wildcardClass42 = kuromojiAnalysisTests13.getClass();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests43 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader45 = null;
org.apache.lucene.index.Fields fields46 = null;
org.apache.lucene.index.Fields fields47 = null;
kuromojiAnalysisTests43.assertFieldsEquals("europarl.lines.txt.gz", indexReader45, fields46, fields47, false);
kuromojiAnalysisTests43.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests43.tearDown();
org.apache.lucene.index.IndexReader indexReader54 = null;
org.apache.lucene.index.Terms terms55 = null;
org.apache.lucene.index.Terms terms56 = null;
kuromojiAnalysisTests43.assertTermsEquals("tests.weekly", indexReader54, terms55, terms56, true);
java.lang.Class<?> wildcardClass59 = kuromojiAnalysisTests43.getClass();
java.lang.Class[] classArray61 = new java.lang.Class[3];
@SuppressWarnings("unchecked")
java.lang.Class<?>[] wildcardClassArray62 = (java.lang.Class<?>[]) classArray61;
wildcardClassArray62[0] = wildcardClass12;
wildcardClassArray62[1] = wildcardClass42;
wildcardClassArray62[2] = wildcardClass59;
java.util.List<java.lang.Class<?>> wildcardClassList69 = org.elasticsearch.test.ESTestCase.randomSubsetOf(3, wildcardClassArray62);
int[][][][] intArray71 = new int[][][][] {};
int[][][][] intArray72 = new int[][][][] {};
int[][][][] intArray73 = new int[][][][] {};
int[][][][] intArray74 = new int[][][][] {};
int[][][][] intArray75 = new int[][][][] {};
int[][][][][] intArray76 = new int[][][][][] { intArray71, intArray72, intArray73, intArray74, intArray75 };
int[][][][] intArray77 = new int[][][][] {};
int[][][][] intArray78 = new int[][][][] {};
int[][][][] intArray79 = new int[][][][] {};
int[][][][] intArray80 = new int[][][][] {};
int[][][][] intArray81 = new int[][][][] {};
int[][][][][] intArray82 = new int[][][][][] { intArray77, intArray78, intArray79, intArray80, intArray81 };
int[][][][][][] intArray83 = new int[][][][][][] { intArray76, intArray82 };
java.util.List<int[][][][][]> intArrayList84 = org.elasticsearch.test.ESTestCase.randomSubsetOf(0, intArray83);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals((java.lang.Object[]) wildcardClassArray62, (java.lang.Object[]) intArray83);
}
@Test
public void test2671() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2671");
java.lang.Object obj1 = null;
int[][][][] intArray4 = new int[][][][] {};
int[][][][] intArray5 = new int[][][][] {};
int[][][][] intArray6 = new int[][][][] {};
int[][][][] intArray7 = new int[][][][] {};
int[][][][] intArray8 = new int[][][][] {};
int[][][][][] intArray9 = new int[][][][][] { intArray4, intArray5, intArray6, intArray7, intArray8 };
int[][][][] intArray10 = new int[][][][] {};
int[][][][] intArray11 = new int[][][][] {};
int[][][][] intArray12 = new int[][][][] {};
int[][][][] intArray13 = new int[][][][] {};
int[][][][] intArray14 = new int[][][][] {};
int[][][][][] intArray15 = new int[][][][][] { intArray10, intArray11, intArray12, intArray13, intArray14 };
int[][][][][][] intArray16 = new int[][][][][][] { intArray9, intArray15 };
java.util.List<int[][][][][]> intArrayList17 = org.elasticsearch.test.ESTestCase.randomSubsetOf(0, intArray16);
java.util.List<int[][][][][]> intArrayList18 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, intArray16);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame("tests.failfast", obj1, (java.lang.Object) intArray16);
}
@Test
public void test2672() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2672");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("enwiki.random.lines.txt", (double) 'a', 0.0d, (double) '#');
}
@Test
public void test2673() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2673");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
java.lang.String[] strArray14 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet15 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray14);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests16 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests16.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet15, (java.lang.Object) kuromojiAnalysisTests16);
org.apache.lucene.index.PostingsEnum postingsEnum21 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
kuromojiAnalysisTests16.assertDocsEnumEquals("tests.badapples", postingsEnum21, postingsEnum22, true);
org.junit.rules.TestRule testRule25 = kuromojiAnalysisTests16.ruleChain;
org.apache.lucene.index.IndexReader indexReader27 = null;
org.apache.lucene.index.PostingsEnum postingsEnum29 = null;
org.apache.lucene.index.PostingsEnum postingsEnum30 = null;
kuromojiAnalysisTests16.assertDocsSkippingEquals("tests.maxfailures", indexReader27, (int) (byte) 100, postingsEnum29, postingsEnum30, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests33 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader35 = null;
org.apache.lucene.index.Fields fields36 = null;
org.apache.lucene.index.Fields fields37 = null;
kuromojiAnalysisTests33.assertFieldsEquals("europarl.lines.txt.gz", indexReader35, fields36, fields37, false);
kuromojiAnalysisTests33.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain42 = kuromojiAnalysisTests33.failureAndSuccessEvents;
kuromojiAnalysisTests16.failureAndSuccessEvents = ruleChain42;
kuromojiAnalysisTests0.failureAndSuccessEvents = ruleChain42;
org.apache.lucene.index.PostingsEnum postingsEnum46 = null;
org.apache.lucene.index.PostingsEnum postingsEnum47 = null;
kuromojiAnalysisTests0.assertDocsEnumEquals("<unknown>", postingsEnum46, postingsEnum47, true);
kuromojiAnalysisTests0.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader52 = null;
org.apache.lucene.index.Fields fields53 = null;
org.apache.lucene.index.Fields fields54 = null;
kuromojiAnalysisTests0.assertFieldsEquals("tests.awaitsfix", indexReader52, fields53, fields54, false);
org.apache.lucene.index.IndexReader indexReader58 = null;
org.apache.lucene.index.Fields fields59 = null;
org.apache.lucene.index.Fields fields60 = null;
kuromojiAnalysisTests0.assertFieldsEquals("random", indexReader58, fields59, fields60, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests63 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests63.setIndexWriterMaxDocs((int) (byte) 10);
org.apache.lucene.index.IndexReader indexReader67 = null;
org.apache.lucene.index.Terms terms68 = null;
org.apache.lucene.index.Terms terms69 = null;
kuromojiAnalysisTests63.assertTermsEquals("tests.weekly", indexReader67, terms68, terms69, true);
kuromojiAnalysisTests63.setIndexWriterMaxDocs((int) '#');
kuromojiAnalysisTests63.overrideTestDefaultQueryCache();
kuromojiAnalysisTests63.ensureCheckIndexPassed();
kuromojiAnalysisTests63.setUp();
kuromojiAnalysisTests63.resetCheckIndexStatus();
org.junit.rules.RuleChain ruleChain78 = kuromojiAnalysisTests63.failureAndSuccessEvents;
kuromojiAnalysisTests0.failureAndSuccessEvents = ruleChain78;
org.apache.lucene.index.NumericDocValues numericDocValues82 = null;
org.apache.lucene.index.NumericDocValues numericDocValues83 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("random", 1, numericDocValues82, numericDocValues83);
}
@Test
public void test2674() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2674");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((long) 3, (long) (byte) 1);
}
@Test
public void test2675() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2675");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.awaitsfix", (float) 0L, (float) 1, (float) (-1));
}
@Test
public void test2676() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2676");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.overrideTestDefaultQueryCache();
kuromojiAnalysisTests1.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
kuromojiAnalysisTests1.assertDocsSkippingEquals("tests.slow", indexReader12, (int) (short) -1, postingsEnum14, postingsEnum15, false);
kuromojiAnalysisTests1.ensureCleanedUp();
org.junit.rules.RuleChain ruleChain19 = kuromojiAnalysisTests1.failureAndSuccessEvents;
byte[] byteArray22 = new byte[] {};
byte[] byteArray23 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray22, byteArray23);
byte[] byteArray26 = new byte[] {};
byte[] byteArray27 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray26, byteArray27);
byte[] byteArray30 = new byte[] {};
byte[] byteArray31 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray30, byteArray31);
org.junit.Assert.assertArrayEquals(byteArray27, byteArray31);
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", byteArray23, byteArray31);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame("tests.failfast", (java.lang.Object) ruleChain19, (java.lang.Object) byteArray23);
}
@Test
public void test2677() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2677");
float[] floatArray9 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray16 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray9, floatArray16, (float) (byte) 100);
float[] floatArray27 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray34 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray27, floatArray34, (float) (byte) 100);
float[] floatArray44 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray51 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray44, floatArray51, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray27, floatArray44, (float) (-1));
org.junit.Assert.assertArrayEquals(floatArray9, floatArray44, (float) 1L);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests58 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader60 = null;
org.apache.lucene.index.Fields fields61 = null;
org.apache.lucene.index.Fields fields62 = null;
kuromojiAnalysisTests58.assertFieldsEquals("europarl.lines.txt.gz", indexReader60, fields61, fields62, false);
kuromojiAnalysisTests58.ensureCleanedUp();
kuromojiAnalysisTests58.resetCheckIndexStatus();
org.junit.rules.TestRule testRule67 = kuromojiAnalysisTests58.ruleChain;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests68 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader70 = null;
org.apache.lucene.index.Fields fields71 = null;
org.apache.lucene.index.Fields fields72 = null;
kuromojiAnalysisTests68.assertFieldsEquals("europarl.lines.txt.gz", indexReader70, fields71, fields72, false);
kuromojiAnalysisTests68.ensureCleanedUp();
kuromojiAnalysisTests68.ensureCleanedUp();
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests58, (java.lang.Object) kuromojiAnalysisTests68);
org.apache.lucene.index.IndexReader indexReader79 = null;
org.apache.lucene.index.PostingsEnum postingsEnum81 = null;
org.apache.lucene.index.PostingsEnum postingsEnum82 = null;
kuromojiAnalysisTests68.assertPositionsSkippingEquals("tests.slow", indexReader79, (-1), postingsEnum81, postingsEnum82);
org.junit.Assert.assertNotEquals("tests.weekly", (java.lang.Object) floatArray44, (java.lang.Object) kuromojiAnalysisTests68);
float[] floatArray86 = new float[] { 4 };
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.monster", floatArray44, floatArray86, (float) (-1));
}
@Test
public void test2678() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2678");
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures2 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures3 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures2);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures4 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures5 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures4);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures6 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures7 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures6);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures8 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures9 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures8);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures[] testRuleIgnoreAfterMaxFailuresArray10 = new org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures[] { testRuleIgnoreAfterMaxFailures3, testRuleIgnoreAfterMaxFailures5, testRuleIgnoreAfterMaxFailures6, testRuleIgnoreAfterMaxFailures8 };
java.util.List<org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures> testRuleIgnoreAfterMaxFailuresList11 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, testRuleIgnoreAfterMaxFailuresArray10);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests12 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.Fields fields15 = null;
org.apache.lucene.index.Fields fields16 = null;
kuromojiAnalysisTests12.assertFieldsEquals("europarl.lines.txt.gz", indexReader14, fields15, fields16, false);
org.apache.lucene.index.IndexReader indexReader20 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
kuromojiAnalysisTests12.assertPositionsSkippingEquals("hi!", indexReader20, (int) (byte) 0, postingsEnum22, postingsEnum23);
org.apache.lucene.index.IndexReader indexReader26 = null;
org.apache.lucene.index.Terms terms27 = null;
org.apache.lucene.index.Terms terms28 = null;
kuromojiAnalysisTests12.assertTermsEquals("random", indexReader26, terms27, terms28, true);
kuromojiAnalysisTests12.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum33 = null;
org.apache.lucene.index.PostingsEnum postingsEnum34 = null;
kuromojiAnalysisTests12.assertDocsEnumEquals("tests.nightly", postingsEnum33, postingsEnum34, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests37 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader39 = null;
org.apache.lucene.index.Fields fields40 = null;
org.apache.lucene.index.Fields fields41 = null;
kuromojiAnalysisTests37.assertFieldsEquals("europarl.lines.txt.gz", indexReader39, fields40, fields41, false);
kuromojiAnalysisTests37.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests37.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests37.ensureCleanedUp();
org.junit.Assert.assertNotEquals((java.lang.Object) kuromojiAnalysisTests12, (java.lang.Object) kuromojiAnalysisTests37);
org.junit.Assert.assertNotNull((java.lang.Object) kuromojiAnalysisTests12);
org.apache.lucene.index.IndexReader indexReader52 = null;
org.apache.lucene.index.PostingsEnum postingsEnum54 = null;
org.apache.lucene.index.PostingsEnum postingsEnum55 = null;
kuromojiAnalysisTests12.assertPositionsSkippingEquals("tests.awaitsfix", indexReader52, (int) (short) 100, postingsEnum54, postingsEnum55);
kuromojiAnalysisTests12.ensureCheckIndexPassed();
kuromojiAnalysisTests12.assertPathHasBeenCleared("tests.awaitsfix");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.slow", (java.lang.Object) testRuleIgnoreAfterMaxFailuresList11, (java.lang.Object) kuromojiAnalysisTests12);
}
@Test
public void test2679() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2679");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (byte) 0, (double) 100L, (double) '#');
}
@Test
public void test2680() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2680");
char[] charArray2 = new char[] {};
char[] charArray3 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray2, charArray3);
char[] charArray5 = new char[] {};
char[] charArray6 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray5, charArray6);
char[] charArray8 = new char[] {};
char[] charArray9 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray8, charArray9);
org.junit.Assert.assertArrayEquals(charArray6, charArray9);
org.junit.Assert.assertArrayEquals("random", charArray3, charArray6);
char[] charArray13 = new char[] {};
char[] charArray14 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray13, charArray14);
char[] charArray16 = new char[] {};
char[] charArray17 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray16, charArray17);
org.junit.Assert.assertArrayEquals(charArray14, charArray17);
org.junit.Assert.assertArrayEquals(charArray6, charArray14);
char[] charArray22 = new char[] {};
char[] charArray23 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray22, charArray23);
char[] charArray25 = new char[] {};
char[] charArray26 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray25, charArray26);
org.junit.Assert.assertArrayEquals(charArray23, charArray26);
char[] charArray29 = new char[] {};
char[] charArray30 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray29, charArray30);
char[] charArray32 = new char[] {};
char[] charArray33 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray32, charArray33);
org.junit.Assert.assertArrayEquals(charArray30, charArray33);
org.junit.Assert.assertArrayEquals("tests.monster", charArray26, charArray33);
org.junit.Assert.assertArrayEquals(charArray6, charArray26);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests40 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader42 = null;
org.apache.lucene.index.Fields fields43 = null;
org.apache.lucene.index.Fields fields44 = null;
kuromojiAnalysisTests40.assertFieldsEquals("europarl.lines.txt.gz", indexReader42, fields43, fields44, false);
kuromojiAnalysisTests40.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain49 = kuromojiAnalysisTests40.failureAndSuccessEvents;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests50 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader52 = null;
org.apache.lucene.index.Fields fields53 = null;
org.apache.lucene.index.Fields fields54 = null;
kuromojiAnalysisTests50.assertFieldsEquals("europarl.lines.txt.gz", indexReader52, fields53, fields54, false);
kuromojiAnalysisTests50.ensureCleanedUp();
kuromojiAnalysisTests50.resetCheckIndexStatus();
org.junit.rules.TestRule testRule59 = kuromojiAnalysisTests50.ruleChain;
org.junit.Assert.assertNotSame("hi!", (java.lang.Object) kuromojiAnalysisTests40, (java.lang.Object) testRule59);
kuromojiAnalysisTests40.setIndexWriterMaxDocs((int) (byte) 0);
org.junit.rules.TestRule testRule63 = kuromojiAnalysisTests40.ruleChain;
org.apache.lucene.util.LuceneTestCase.classRules = testRule63;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests65 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader67 = null;
org.apache.lucene.index.Fields fields68 = null;
org.apache.lucene.index.Fields fields69 = null;
kuromojiAnalysisTests65.assertFieldsEquals("europarl.lines.txt.gz", indexReader67, fields68, fields69, false);
kuromojiAnalysisTests65.ensureCleanedUp();
kuromojiAnalysisTests65.resetCheckIndexStatus();
kuromojiAnalysisTests65.ensureCleanedUp();
kuromojiAnalysisTests65.ensureCheckIndexPassed();
kuromojiAnalysisTests65.restoreIndexWriterMaxDocs();
org.apache.lucene.index.IndexReader indexReader78 = null;
org.apache.lucene.index.Fields fields79 = null;
org.apache.lucene.index.Fields fields80 = null;
kuromojiAnalysisTests65.assertFieldsEquals("tests.awaitsfix", indexReader78, fields79, fields80, true);
org.junit.Assert.assertNotSame("tests.awaitsfix", (java.lang.Object) testRule63, (java.lang.Object) fields80);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame("europarl.lines.txt.gz", (java.lang.Object) charArray26, (java.lang.Object) testRule63);
}
@Test
public void test2681() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2681");
long[] longArray5 = new long[] { ' ', 'a', (byte) 10, 100 };
long[] longArray10 = new long[] { ' ', 'a', (byte) 10, 100 };
long[] longArray15 = new long[] { ' ', 'a', (byte) 10, 100 };
long[] longArray20 = new long[] { ' ', 'a', (byte) 10, 100 };
long[] longArray25 = new long[] { ' ', 'a', (byte) 10, 100 };
long[][] longArray26 = new long[][] { longArray5, longArray10, longArray15, longArray20, longArray25 };
java.util.List<long[]> longArrayList27 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, longArray26);
java.util.Locale locale32 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale34 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale36 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale38 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale40 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray41 = new java.util.Locale[] { locale32, locale34, locale36, locale38, locale40 };
java.util.Set<java.util.Locale> localeSet42 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray41);
java.util.List<java.io.Serializable> serializableList43 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray41);
java.util.Set<java.lang.Cloneable> cloneableSet44 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray41);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray41, (java.lang.Object) (byte) -1);
java.util.Locale locale49 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale51 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale53 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale55 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale57 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray58 = new java.util.Locale[] { locale49, locale51, locale53, locale55, locale57 };
java.util.Set<java.util.Locale> localeSet59 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray58);
java.util.List<java.io.Serializable> serializableList60 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray58);
java.util.Set<java.lang.Cloneable> cloneableSet61 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray58);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray58, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray41, (java.lang.Object[]) localeArray58);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests65 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader67 = null;
org.apache.lucene.index.Fields fields68 = null;
org.apache.lucene.index.Fields fields69 = null;
kuromojiAnalysisTests65.assertFieldsEquals("europarl.lines.txt.gz", indexReader67, fields68, fields69, false);
org.apache.lucene.index.IndexReader indexReader73 = null;
org.apache.lucene.index.PostingsEnum postingsEnum75 = null;
org.apache.lucene.index.PostingsEnum postingsEnum76 = null;
kuromojiAnalysisTests65.assertPositionsSkippingEquals("tests.failfast", indexReader73, 1, postingsEnum75, postingsEnum76);
kuromojiAnalysisTests65.setIndexWriterMaxDocs(0);
kuromojiAnalysisTests65.ensureCleanedUp();
kuromojiAnalysisTests65.resetCheckIndexStatus();
org.junit.Assert.assertNotSame("tests.badapples", (java.lang.Object) localeArray58, (java.lang.Object) kuromojiAnalysisTests65);
java.util.Locale locale85 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale87 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale89 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale91 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale93 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray94 = new java.util.Locale[] { locale85, locale87, locale89, locale91, locale93 };
java.util.Set<java.util.Locale> localeSet95 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray94);
java.util.List<java.io.Serializable> serializableList96 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray94);
org.junit.Assert.assertEquals("random", (java.lang.Object[]) localeArray58, (java.lang.Object[]) localeArray94);
// during test generation this statement threw an exception of type org.junit.internal.ArrayComparisonFailure in error
org.junit.Assert.assertArrayEquals((java.lang.Object[]) longArray26, (java.lang.Object[]) localeArray94);
}
@Test
public void test2682() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2682");
char[] charArray3 = new char[] {};
char[] charArray4 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray3, charArray4);
char[] charArray6 = new char[] {};
char[] charArray7 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray6, charArray7);
char[] charArray9 = new char[] {};
char[] charArray10 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray9, charArray10);
org.junit.Assert.assertArrayEquals(charArray7, charArray10);
char[] charArray13 = new char[] {};
char[] charArray14 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray13, charArray14);
org.junit.Assert.assertArrayEquals(charArray7, charArray14);
org.junit.Assert.assertArrayEquals("tests.slow", charArray4, charArray14);
char[] charArray18 = new char[] {};
char[] charArray19 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray18, charArray19);
char[] charArray21 = new char[] {};
char[] charArray22 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray21, charArray22);
org.junit.Assert.assertArrayEquals(charArray18, charArray22);
org.junit.Assert.assertArrayEquals("tests.badapples", charArray4, charArray22);
char[] charArray26 = new char[] {};
char[] charArray27 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray26, charArray27);
char[] charArray29 = new char[] {};
char[] charArray30 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray29, charArray30);
org.junit.Assert.assertArrayEquals(charArray27, charArray30);
org.junit.Assert.assertArrayEquals("tests.slow", charArray22, charArray27);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) charArray27);
}
@Test
public void test2683() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2683");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.failfast", (long) (byte) 0, (long) (byte) 10);
}
@Test
public void test2684() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2684");
int[] intArray4 = new int[] { '#' };
int[] intArray6 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray4, intArray6);
int[] intArray9 = new int[] { '#' };
int[] intArray11 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray9, intArray11);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray4, intArray9);
int[] intArray16 = new int[] { '#' };
int[] intArray18 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray16, intArray18);
int[] intArray21 = new int[] { '#' };
int[] intArray23 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray21, intArray23);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray16, intArray21);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", intArray4, intArray21);
int[] intArray28 = new int[] { '#' };
int[] intArray30 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray28, intArray30);
org.junit.Assert.assertArrayEquals("tests.slow", intArray4, intArray28);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests33 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader35 = null;
org.apache.lucene.index.Fields fields36 = null;
org.apache.lucene.index.Fields fields37 = null;
kuromojiAnalysisTests33.assertFieldsEquals("europarl.lines.txt.gz", indexReader35, fields36, fields37, false);
java.lang.String[] strArray47 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet48 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray47);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests49 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests49.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet48, (java.lang.Object) kuromojiAnalysisTests49);
org.apache.lucene.index.PostingsEnum postingsEnum54 = null;
org.apache.lucene.index.PostingsEnum postingsEnum55 = null;
kuromojiAnalysisTests49.assertDocsEnumEquals("tests.badapples", postingsEnum54, postingsEnum55, true);
org.junit.rules.TestRule testRule58 = kuromojiAnalysisTests49.ruleChain;
org.apache.lucene.index.IndexReader indexReader60 = null;
org.apache.lucene.index.PostingsEnum postingsEnum62 = null;
org.apache.lucene.index.PostingsEnum postingsEnum63 = null;
kuromojiAnalysisTests49.assertDocsSkippingEquals("tests.maxfailures", indexReader60, (int) (byte) 100, postingsEnum62, postingsEnum63, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests66 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader68 = null;
org.apache.lucene.index.Fields fields69 = null;
org.apache.lucene.index.Fields fields70 = null;
kuromojiAnalysisTests66.assertFieldsEquals("europarl.lines.txt.gz", indexReader68, fields69, fields70, false);
kuromojiAnalysisTests66.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain75 = kuromojiAnalysisTests66.failureAndSuccessEvents;
kuromojiAnalysisTests49.failureAndSuccessEvents = ruleChain75;
kuromojiAnalysisTests33.failureAndSuccessEvents = ruleChain75;
kuromojiAnalysisTests33.assertPathHasBeenCleared("<unknown>");
org.apache.lucene.index.IndexReader indexReader81 = null;
org.apache.lucene.index.Fields fields82 = null;
org.apache.lucene.index.Fields fields83 = null;
kuromojiAnalysisTests33.assertFieldsEquals("europarl.lines.txt.gz", indexReader81, fields82, fields83, false);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object) intArray4, (java.lang.Object) fields82);
}
@Test
public void test2685() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2685");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("hi!", indexReader8, (int) (byte) 0, postingsEnum10, postingsEnum11);
kuromojiAnalysisTests0.setIndexWriterMaxDocs((int) (short) 0);
org.apache.lucene.index.NumericDocValues numericDocValues17 = null;
org.apache.lucene.index.NumericDocValues numericDocValues18 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("", 0, numericDocValues17, numericDocValues18);
}
@Test
public void test2686() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2686");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (-1.0f), (double) 'a', (double) 1L);
}
@Test
public void test2687() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2687");
java.lang.Object obj1 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotNull("europarl.lines.txt.gz", obj1);
}
@Test
public void test2688() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2688");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("random", (double) 2, (double) (byte) 0);
}
@Test
public void test2689() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2689");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.monster", (double) 100.0f, (double) (byte) -1, (double) (short) -1);
}
@Test
public void test2690() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2690");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("hi!", 100.0d, (double) 100);
}
@Test
public void test2691() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2691");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("enwiki.random.lines.txt", (long) (short) 10, (long) 3);
}
@Test
public void test2692() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2692");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals("", (double) 1L, 0.0d, (double) 10);
}
@Test
public void test2693() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2693");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) '#', (-1.0d));
}
@Test
public void test2694() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2694");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.badapples", (double) (byte) 100, (double) (byte) 10);
}
@Test
public void test2695() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2695");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.badapples", (double) 1, 100.0d);
}
@Test
public void test2696() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2696");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.slow", (double) 3, (double) 100L);
}
@Test
public void test2697() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2697");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.slow", (long) (short) 1, (long) (short) -1);
}
@Test
public void test2698() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2698");
java.lang.Object obj1 = null;
java.util.Locale locale5 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale7 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale9 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale11 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale13 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray14 = new java.util.Locale[] { locale5, locale7, locale9, locale11, locale13 };
java.util.Set<java.util.Locale> localeSet15 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray14);
java.util.Locale locale18 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale20 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale22 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale24 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale26 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray27 = new java.util.Locale[] { locale18, locale20, locale22, locale24, locale26 };
java.util.Set<java.util.Locale> localeSet28 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray27);
java.util.List<java.io.Serializable> serializableList29 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray27);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray14, (java.lang.Object[]) localeArray27);
java.util.Locale locale33 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale35 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale37 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale39 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale41 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray42 = new java.util.Locale[] { locale33, locale35, locale37, locale39, locale41 };
java.util.Set<java.util.Locale> localeSet43 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray42);
java.util.List<java.io.Serializable> serializableList44 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray42);
java.util.Set<java.lang.Cloneable> cloneableSet45 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray42);
org.junit.Assert.assertArrayEquals("tests.slow", (java.lang.Object[]) localeArray27, (java.lang.Object[]) localeArray42);
org.junit.Assert.assertNotSame((java.lang.Object) 0.0f, (java.lang.Object) localeArray42);
java.util.Locale locale50 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale52 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale54 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale56 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale58 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray59 = new java.util.Locale[] { locale50, locale52, locale54, locale56, locale58 };
java.util.Set<java.util.Locale> localeSet60 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray59);
java.util.List<java.io.Serializable> serializableList61 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray59);
java.util.Set<java.lang.Cloneable> cloneableSet62 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray59);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray59, (java.lang.Object) (byte) -1);
java.util.Locale locale67 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale69 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale71 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale73 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale75 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray76 = new java.util.Locale[] { locale67, locale69, locale71, locale73, locale75 };
java.util.Set<java.util.Locale> localeSet77 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray76);
java.util.List<java.io.Serializable> serializableList78 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray76);
java.util.Set<java.lang.Cloneable> cloneableSet79 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray76);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray76, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray59, (java.lang.Object[]) localeArray76);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray42, (java.lang.Object[]) localeArray76);
org.junit.Assert.assertNotEquals("tests.awaitsfix", obj1, (java.lang.Object) localeArray42);
org.junit.Assert.assertNotNull((java.lang.Object) localeArray42);
java.util.List[] listArray87 = new java.util.List[0];
@SuppressWarnings("unchecked")
java.util.List<java.io.Serializable>[] serializableListArray88 = (java.util.List<java.io.Serializable>[]) listArray87;
java.util.Set<java.util.List<java.io.Serializable>> serializableListSet89 = org.apache.lucene.util.LuceneTestCase.asSet(serializableListArray88);
java.util.Set<java.util.List<java.io.Serializable>> serializableListSet90 = org.apache.lucene.util.LuceneTestCase.asSet(serializableListArray88);
java.util.Set<java.util.List<java.io.Serializable>> serializableListSet91 = org.apache.lucene.util.LuceneTestCase.asSet(serializableListArray88);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object[]) localeArray42, (java.lang.Object[]) serializableListArray88);
}
@Test
public void test2699() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2699");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((float) '4', (float) 100L, (float) (byte) 0);
}
@Test
public void test2700() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2700");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (short) 100, (double) (-1));
}
@Test
public void test2701() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2701");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.TestRule testRule10 = kuromojiAnalysisTests1.ruleChain;
org.junit.rules.TestRule testRule11 = kuromojiAnalysisTests1.ruleChain;
org.apache.lucene.index.IndexReader indexReader13 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
org.apache.lucene.index.PostingsEnum postingsEnum16 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.slow", indexReader13, (int) (short) 1, postingsEnum15, postingsEnum16);
org.junit.rules.TestRule testRule18 = kuromojiAnalysisTests1.ruleChain;
org.apache.lucene.index.IndexReader indexReader20 = null;
org.apache.lucene.index.Terms terms21 = null;
org.apache.lucene.index.Terms terms22 = null;
kuromojiAnalysisTests1.assertTermsEquals("", indexReader20, terms21, terms22, false);
kuromojiAnalysisTests1.tearDown();
org.junit.rules.RuleChain ruleChain26 = kuromojiAnalysisTests1.failureAndSuccessEvents;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull("random", (java.lang.Object) ruleChain26);
}
@Test
public void test2702() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2702");
java.util.Locale locale2 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale4 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale6 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale8 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale10 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray11 = new java.util.Locale[] { locale2, locale4, locale6, locale8, locale10 };
java.util.Set<java.util.Locale> localeSet12 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray11);
java.util.Locale locale15 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale17 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale19 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale21 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale23 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray24 = new java.util.Locale[] { locale15, locale17, locale19, locale21, locale23 };
java.util.Set<java.util.Locale> localeSet25 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray24);
java.util.List<java.io.Serializable> serializableList26 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray24);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray11, (java.lang.Object[]) localeArray24);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests28 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader30 = null;
org.apache.lucene.index.Fields fields31 = null;
org.apache.lucene.index.Fields fields32 = null;
kuromojiAnalysisTests28.assertFieldsEquals("europarl.lines.txt.gz", indexReader30, fields31, fields32, false);
kuromojiAnalysisTests28.tearDown();
kuromojiAnalysisTests28.ensureAllSearchContextsReleased();
org.junit.rules.RuleChain[] ruleChainArray37 = new org.junit.rules.RuleChain[] {};
org.junit.rules.RuleChain[][] ruleChainArray38 = new org.junit.rules.RuleChain[][] { ruleChainArray37 };
java.util.Set<org.junit.rules.RuleChain[]> ruleChainArraySet39 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray38);
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests28, (java.lang.Object) ruleChainArray38);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.awaitsfix", (java.lang.Object[]) localeArray11, (java.lang.Object[]) ruleChainArray38);
}
@Test
public void test2703() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2703");
java.lang.String[] strArray7 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet8 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray7);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests9 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests9.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet8, (java.lang.Object) kuromojiAnalysisTests9);
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
kuromojiAnalysisTests9.assertDocsEnumEquals("tests.badapples", postingsEnum14, postingsEnum15, true);
org.junit.rules.TestRule testRule18 = kuromojiAnalysisTests9.ruleChain;
kuromojiAnalysisTests9.setUp();
org.apache.lucene.index.IndexReader indexReader21 = null;
org.apache.lucene.index.Terms terms22 = null;
org.apache.lucene.index.Terms terms23 = null;
kuromojiAnalysisTests9.assertTermsEquals("tests.slow", indexReader21, terms22, terms23, false);
kuromojiAnalysisTests9.setUp();
org.apache.lucene.index.NumericDocValues numericDocValues29 = null;
org.apache.lucene.index.NumericDocValues numericDocValues30 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests9.assertDocValuesEquals("tests.failfast", 10, numericDocValues29, numericDocValues30);
}
@Test
public void test2704() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2704");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.slow", 0L, (long) (byte) -1);
}
@Test
public void test2705() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2705");
char[] charArray1 = new char[] {};
char[] charArray2 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray1, charArray2);
char[] charArray5 = new char[] {};
char[] charArray6 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray5, charArray6);
char[] charArray8 = new char[] {};
char[] charArray9 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray8, charArray9);
org.junit.Assert.assertArrayEquals(charArray6, charArray9);
char[] charArray12 = new char[] {};
char[] charArray13 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray12, charArray13);
char[] charArray15 = new char[] {};
char[] charArray16 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray15, charArray16);
org.junit.Assert.assertArrayEquals(charArray13, charArray16);
org.junit.Assert.assertArrayEquals("tests.monster", charArray9, charArray16);
org.junit.Assert.assertArrayEquals(charArray2, charArray9);
char[] charArray22 = new char[] {};
char[] charArray23 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray22, charArray23);
char[] charArray25 = new char[] {};
char[] charArray26 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray25, charArray26);
char[] charArray28 = new char[] {};
char[] charArray29 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray28, charArray29);
org.junit.Assert.assertArrayEquals(charArray26, charArray29);
org.junit.Assert.assertArrayEquals("random", charArray23, charArray26);
char[] charArray33 = new char[] {};
char[] charArray34 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray33, charArray34);
char[] charArray36 = new char[] {};
char[] charArray37 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray36, charArray37);
org.junit.Assert.assertArrayEquals(charArray34, charArray37);
org.junit.Assert.assertArrayEquals(charArray23, charArray34);
char[] charArray41 = new char[] {};
char[] charArray42 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray41, charArray42);
char[] charArray45 = new char[] {};
char[] charArray46 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray45, charArray46);
char[] charArray48 = new char[] {};
char[] charArray49 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray48, charArray49);
org.junit.Assert.assertArrayEquals(charArray46, charArray49);
char[] charArray52 = new char[] {};
char[] charArray53 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray52, charArray53);
char[] charArray55 = new char[] {};
char[] charArray56 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray55, charArray56);
org.junit.Assert.assertArrayEquals(charArray53, charArray56);
org.junit.Assert.assertArrayEquals("tests.monster", charArray49, charArray56);
org.junit.Assert.assertArrayEquals(charArray42, charArray49);
org.junit.Assert.assertArrayEquals(charArray34, charArray49);
org.junit.Assert.assertArrayEquals(charArray2, charArray34);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests63 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader65 = null;
org.apache.lucene.index.Fields fields66 = null;
org.apache.lucene.index.Fields fields67 = null;
kuromojiAnalysisTests63.assertFieldsEquals("europarl.lines.txt.gz", indexReader65, fields66, fields67, false);
org.apache.lucene.index.IndexReader indexReader71 = null;
org.apache.lucene.index.PostingsEnum postingsEnum73 = null;
org.apache.lucene.index.PostingsEnum postingsEnum74 = null;
kuromojiAnalysisTests63.assertPositionsSkippingEquals("hi!", indexReader71, (int) (byte) 0, postingsEnum73, postingsEnum74);
org.apache.lucene.index.IndexReader indexReader77 = null;
org.apache.lucene.index.Terms terms78 = null;
org.apache.lucene.index.Terms terms79 = null;
kuromojiAnalysisTests63.assertTermsEquals("random", indexReader77, terms78, terms79, true);
kuromojiAnalysisTests63.setUp();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.monster", (java.lang.Object) charArray34, (java.lang.Object) kuromojiAnalysisTests63);
}
@Test
public void test2706() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2706");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.TestRule testRule10 = kuromojiAnalysisTests1.ruleChain;
org.junit.rules.TestRule testRule11 = kuromojiAnalysisTests1.ruleChain;
org.apache.lucene.index.IndexReader indexReader13 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
org.apache.lucene.index.PostingsEnum postingsEnum16 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.slow", indexReader13, (int) (short) 1, postingsEnum15, postingsEnum16);
org.junit.rules.TestRule testRule18 = kuromojiAnalysisTests1.ruleChain;
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
org.apache.lucene.index.IndexReader indexReader21 = null;
org.apache.lucene.index.Terms terms22 = null;
org.apache.lucene.index.Terms terms23 = null;
kuromojiAnalysisTests1.assertTermsEquals("tests.slow", indexReader21, terms22, terms23, true);
org.junit.rules.TestRule testRule26 = kuromojiAnalysisTests1.ruleChain;
float[][] floatArray29 = new float[][] {};
java.util.Set<float[]> floatArraySet30 = org.apache.lucene.util.LuceneTestCase.asSet(floatArray29);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests31 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader33 = null;
org.apache.lucene.index.Fields fields34 = null;
org.apache.lucene.index.Fields fields35 = null;
kuromojiAnalysisTests31.assertFieldsEquals("europarl.lines.txt.gz", indexReader33, fields34, fields35, false);
kuromojiAnalysisTests31.ensureCleanedUp();
kuromojiAnalysisTests31.ensureCleanedUp();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests40 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader42 = null;
org.apache.lucene.index.Fields fields43 = null;
org.apache.lucene.index.Fields fields44 = null;
kuromojiAnalysisTests40.assertFieldsEquals("europarl.lines.txt.gz", indexReader42, fields43, fields44, false);
org.apache.lucene.index.IndexReader indexReader48 = null;
org.apache.lucene.index.PostingsEnum postingsEnum50 = null;
org.apache.lucene.index.PostingsEnum postingsEnum51 = null;
kuromojiAnalysisTests40.assertPositionsSkippingEquals("tests.failfast", indexReader48, 1, postingsEnum50, postingsEnum51);
kuromojiAnalysisTests40.setIndexWriterMaxDocs(0);
org.apache.lucene.index.IndexReader indexReader56 = null;
org.apache.lucene.index.Fields fields57 = null;
org.apache.lucene.index.Fields fields58 = null;
kuromojiAnalysisTests40.assertFieldsEquals("tests.slow", indexReader56, fields57, fields58, false);
kuromojiAnalysisTests40.resetCheckIndexStatus();
org.junit.rules.TestRule testRule62 = kuromojiAnalysisTests40.ruleChain;
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests31, (java.lang.Object) testRule62);
org.apache.lucene.index.IndexReader indexReader65 = null;
org.apache.lucene.index.PostingsEnum postingsEnum67 = null;
org.apache.lucene.index.PostingsEnum postingsEnum68 = null;
kuromojiAnalysisTests31.assertDocsSkippingEquals("tests.weekly", indexReader65, 0, postingsEnum67, postingsEnum68, false);
kuromojiAnalysisTests31.tearDown();
org.junit.Assert.assertNotSame("", (java.lang.Object) floatArray29, (java.lang.Object) kuromojiAnalysisTests31);
java.util.List<float[]> floatArrayList73 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, floatArray29);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("<unknown>", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) floatArray29);
}
@Test
public void test2707() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2707");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.resetCheckIndexStatus();
kuromojiAnalysisTests1.assertPathHasBeenCleared("random");
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Terms terms16 = null;
org.apache.lucene.index.Terms terms17 = null;
kuromojiAnalysisTests1.assertTermsEquals("tests.failfast", indexReader15, terms16, terms17, true);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.badapples");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests24 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader26 = null;
org.apache.lucene.index.Fields fields27 = null;
org.apache.lucene.index.Fields fields28 = null;
kuromojiAnalysisTests24.assertFieldsEquals("europarl.lines.txt.gz", indexReader26, fields27, fields28, false);
kuromojiAnalysisTests24.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain33 = kuromojiAnalysisTests24.failureAndSuccessEvents;
kuromojiAnalysisTests24.resetCheckIndexStatus();
java.lang.String str35 = kuromojiAnalysisTests24.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests24);
kuromojiAnalysisTests24.tearDown();
kuromojiAnalysisTests24.overrideTestDefaultQueryCache();
kuromojiAnalysisTests24.ensureAllSearchContextsReleased();
org.junit.Assert.assertNotNull("<unknown>", (java.lang.Object) kuromojiAnalysisTests24);
org.junit.Assert.assertNotNull((java.lang.Object) kuromojiAnalysisTests24);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame("tests.monster", (java.lang.Object) "tests.badapples", (java.lang.Object) kuromojiAnalysisTests24);
}
@Test
public void test2708() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2708");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("enwiki.random.lines.txt", (double) '#', (double) 100.0f, (-1.0d));
}
@Test
public void test2709() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2709");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.slow", (long) (byte) 100, 1L);
}
@Test
public void test2710() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2710");
float[] floatArray8 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray15 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray8, floatArray15, (float) (byte) 100);
float[] floatArray26 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray33 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray26, floatArray33, (float) (byte) 100);
float[] floatArray43 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray50 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray43, floatArray50, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray26, floatArray43, (float) (-1));
org.junit.Assert.assertArrayEquals(floatArray8, floatArray43, (float) 1L);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests57 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader59 = null;
org.apache.lucene.index.Fields fields60 = null;
org.apache.lucene.index.Fields fields61 = null;
kuromojiAnalysisTests57.assertFieldsEquals("europarl.lines.txt.gz", indexReader59, fields60, fields61, false);
kuromojiAnalysisTests57.ensureCleanedUp();
kuromojiAnalysisTests57.resetCheckIndexStatus();
org.junit.rules.TestRule testRule66 = kuromojiAnalysisTests57.ruleChain;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests67 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader69 = null;
org.apache.lucene.index.Fields fields70 = null;
org.apache.lucene.index.Fields fields71 = null;
kuromojiAnalysisTests67.assertFieldsEquals("europarl.lines.txt.gz", indexReader69, fields70, fields71, false);
kuromojiAnalysisTests67.ensureCleanedUp();
kuromojiAnalysisTests67.ensureCleanedUp();
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests57, (java.lang.Object) kuromojiAnalysisTests67);
org.apache.lucene.index.IndexReader indexReader78 = null;
org.apache.lucene.index.PostingsEnum postingsEnum80 = null;
org.apache.lucene.index.PostingsEnum postingsEnum81 = null;
kuromojiAnalysisTests67.assertPositionsSkippingEquals("tests.slow", indexReader78, (-1), postingsEnum80, postingsEnum81);
org.junit.Assert.assertNotEquals("tests.weekly", (java.lang.Object) floatArray43, (java.lang.Object) kuromojiAnalysisTests67);
float[] floatArray84 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(floatArray43, floatArray84, 1.0f);
}
@Test
public void test2711() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2711");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((long) 100, (-1L));
}
@Test
public void test2712() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2712");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals((double) (short) 1, 1.0d, (double) '4');
}
@Test
public void test2713() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2713");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals("tests.badapples", (double) (short) 10, (double) 0L, (double) 'a');
}
@Test
public void test2714() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2714");
java.lang.String[] strArray8 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet9 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray8);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests10 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests10.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet9, (java.lang.Object) kuromojiAnalysisTests10);
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
org.apache.lucene.index.PostingsEnum postingsEnum16 = null;
kuromojiAnalysisTests10.assertDocsEnumEquals("tests.badapples", postingsEnum15, postingsEnum16, true);
org.junit.rules.TestRule testRule19 = kuromojiAnalysisTests10.ruleChain;
kuromojiAnalysisTests10.ensureAllSearchContextsReleased();
kuromojiAnalysisTests10.setIndexWriterMaxDocs((int) (byte) 0);
org.apache.lucene.index.IndexReader indexReader24 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
org.apache.lucene.index.PostingsEnum postingsEnum27 = null;
kuromojiAnalysisTests10.assertPositionsSkippingEquals("europarl.lines.txt.gz", indexReader24, (int) (short) -1, postingsEnum26, postingsEnum27);
kuromojiAnalysisTests10.overrideTestDefaultQueryCache();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests31 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader33 = null;
org.apache.lucene.index.Fields fields34 = null;
org.apache.lucene.index.Fields fields35 = null;
kuromojiAnalysisTests31.assertFieldsEquals("europarl.lines.txt.gz", indexReader33, fields34, fields35, false);
org.apache.lucene.index.IndexReader indexReader39 = null;
org.apache.lucene.index.PostingsEnum postingsEnum41 = null;
org.apache.lucene.index.PostingsEnum postingsEnum42 = null;
kuromojiAnalysisTests31.assertPositionsSkippingEquals("hi!", indexReader39, (int) (byte) 0, postingsEnum41, postingsEnum42);
kuromojiAnalysisTests31.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests31.resetCheckIndexStatus();
kuromojiAnalysisTests31.setUp();
kuromojiAnalysisTests31.overrideTestDefaultQueryCache();
org.junit.Assert.assertNotSame((java.lang.Object) "enwiki.random.lines.txt", (java.lang.Object) kuromojiAnalysisTests31);
org.junit.rules.RuleChain ruleChain49 = kuromojiAnalysisTests31.failureAndSuccessEvents;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.weekly", (java.lang.Object) kuromojiAnalysisTests10, (java.lang.Object) kuromojiAnalysisTests31);
}
@Test
public void test2715() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2715");
java.util.Locale locale2 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.badapples");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull("tests.awaitsfix", (java.lang.Object) "tests.badapples");
}
@Test
public void test2716() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2716");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals((double) (-1L), (double) ' ', (double) 100L);
}
@Test
public void test2717() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2717");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.resetCheckIndexStatus();
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.ensureCheckIndexPassed();
java.lang.String str11 = kuromojiAnalysisTests0.getTestName();
kuromojiAnalysisTests0.tearDown();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests13 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Fields fields16 = null;
org.apache.lucene.index.Fields fields17 = null;
kuromojiAnalysisTests13.assertFieldsEquals("europarl.lines.txt.gz", indexReader15, fields16, fields17, false);
kuromojiAnalysisTests13.ensureCleanedUp();
kuromojiAnalysisTests13.ensureCleanedUp();
org.junit.rules.TestRule testRule22 = kuromojiAnalysisTests13.ruleChain;
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests0, (java.lang.Object) testRule22);
org.apache.lucene.index.PostingsEnum postingsEnum25 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("tests.maxfailures", postingsEnum25, postingsEnum26);
}
@Test
public void test2718() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2718");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (short) 1, (double) 2);
}
@Test
public void test2719() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2719");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.failfast", indexReader9, 1, postingsEnum11, postingsEnum12);
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Fields fields16 = null;
org.apache.lucene.index.Fields fields17 = null;
kuromojiAnalysisTests1.assertFieldsEquals("tests.slow", indexReader15, fields16, fields17, true);
org.junit.rules.TestRule testRule20 = kuromojiAnalysisTests1.ruleChain;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests21 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader23 = null;
org.apache.lucene.index.Fields fields24 = null;
org.apache.lucene.index.Fields fields25 = null;
kuromojiAnalysisTests21.assertFieldsEquals("europarl.lines.txt.gz", indexReader23, fields24, fields25, false);
java.lang.String[] strArray35 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet36 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray35);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests37 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests37.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet36, (java.lang.Object) kuromojiAnalysisTests37);
org.apache.lucene.index.PostingsEnum postingsEnum42 = null;
org.apache.lucene.index.PostingsEnum postingsEnum43 = null;
kuromojiAnalysisTests37.assertDocsEnumEquals("tests.badapples", postingsEnum42, postingsEnum43, true);
org.junit.rules.TestRule testRule46 = kuromojiAnalysisTests37.ruleChain;
org.apache.lucene.index.IndexReader indexReader48 = null;
org.apache.lucene.index.PostingsEnum postingsEnum50 = null;
org.apache.lucene.index.PostingsEnum postingsEnum51 = null;
kuromojiAnalysisTests37.assertDocsSkippingEquals("tests.maxfailures", indexReader48, (int) (byte) 100, postingsEnum50, postingsEnum51, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests54 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader56 = null;
org.apache.lucene.index.Fields fields57 = null;
org.apache.lucene.index.Fields fields58 = null;
kuromojiAnalysisTests54.assertFieldsEquals("europarl.lines.txt.gz", indexReader56, fields57, fields58, false);
kuromojiAnalysisTests54.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain63 = kuromojiAnalysisTests54.failureAndSuccessEvents;
kuromojiAnalysisTests37.failureAndSuccessEvents = ruleChain63;
kuromojiAnalysisTests21.failureAndSuccessEvents = ruleChain63;
kuromojiAnalysisTests1.failureAndSuccessEvents = ruleChain63;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests67 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader69 = null;
org.apache.lucene.index.Fields fields70 = null;
org.apache.lucene.index.Fields fields71 = null;
kuromojiAnalysisTests67.assertFieldsEquals("europarl.lines.txt.gz", indexReader69, fields70, fields71, false);
kuromojiAnalysisTests67.ensureCleanedUp();
org.junit.Assert.assertNotSame("tests.awaitsfix", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) kuromojiAnalysisTests67);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) kuromojiAnalysisTests67);
}
@Test
public void test2720() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2720");
java.lang.Object obj0 = null;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests1.setUp();
kuromojiAnalysisTests1.ensureCheckIndexPassed();
kuromojiAnalysisTests1.setIndexWriterMaxDocs((int) (short) 100);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(obj0, (java.lang.Object) (short) 100);
}
@Test
public void test2721() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2721");
java.lang.Object obj1 = null;
java.lang.Object obj2 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotSame("tests.nightly", obj1, obj2);
}
@Test
public void test2722() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2722");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.TestRule testRule10 = kuromojiAnalysisTests1.ruleChain;
int[] intArray15 = new int[] { '#' };
int[] intArray17 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray15, intArray17);
int[] intArray20 = new int[] { '#' };
int[] intArray22 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray20, intArray22);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray15, intArray20);
int[] intArray27 = new int[] { '#' };
int[] intArray29 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray27, intArray29);
int[] intArray32 = new int[] { '#' };
int[] intArray34 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray32, intArray34);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray27, intArray32);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", intArray15, intArray32);
int[] intArray41 = new int[] { '#' };
int[] intArray43 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray41, intArray43);
int[] intArray46 = new int[] { '#' };
int[] intArray48 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray46, intArray48);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray41, intArray46);
int[] intArray53 = new int[] { '#' };
int[] intArray55 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray53, intArray55);
int[] intArray58 = new int[] { '#' };
int[] intArray60 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray58, intArray60);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray53, intArray58);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", intArray41, intArray58);
org.junit.Assert.assertArrayEquals("random", intArray32, intArray41);
org.junit.Assert.assertNotSame("tests.maxfailures", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) intArray32);
kuromojiAnalysisTests1.ensureAllSearchContextsReleased();
kuromojiAnalysisTests1.setUp();
org.apache.lucene.index.IndexReader indexReader69 = null;
org.apache.lucene.index.PostingsEnum postingsEnum71 = null;
org.apache.lucene.index.PostingsEnum postingsEnum72 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("random", indexReader69, 0, postingsEnum71, postingsEnum72);
byte[] byteArray76 = new byte[] {};
byte[] byteArray77 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray76, byteArray77);
byte[] byteArray80 = new byte[] {};
byte[] byteArray81 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray80, byteArray81);
byte[] byteArray84 = new byte[] {};
byte[] byteArray85 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray84, byteArray85);
org.junit.Assert.assertArrayEquals(byteArray81, byteArray85);
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", byteArray77, byteArray85);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame((java.lang.Object) 0, (java.lang.Object) byteArray85);
}
@Test
public void test2723() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2723");
long[] longArray3 = new long[] { 1 };
long[] longArray5 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray3, longArray5);
long[] longArray9 = new long[] { 1 };
long[] longArray11 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray9, longArray11);
org.junit.Assert.assertArrayEquals("random", longArray5, longArray11);
long[] longArray17 = new long[] { 1 };
long[] longArray19 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray17, longArray19);
long[] longArray24 = new long[] { 1 };
long[] longArray26 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray24, longArray26);
long[] longArray30 = new long[] { 1 };
long[] longArray32 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray30, longArray32);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray26, longArray30);
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", longArray17, longArray30);
org.junit.Assert.assertArrayEquals(longArray11, longArray17);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests37 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader39 = null;
org.apache.lucene.index.Fields fields40 = null;
org.apache.lucene.index.Fields fields41 = null;
kuromojiAnalysisTests37.assertFieldsEquals("europarl.lines.txt.gz", indexReader39, fields40, fields41, false);
kuromojiAnalysisTests37.ensureCleanedUp();
kuromojiAnalysisTests37.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader47 = null;
org.apache.lucene.index.PostingsEnum postingsEnum49 = null;
org.apache.lucene.index.PostingsEnum postingsEnum50 = null;
kuromojiAnalysisTests37.assertPositionsSkippingEquals("hi!", indexReader47, 1, postingsEnum49, postingsEnum50);
kuromojiAnalysisTests37.assertPathHasBeenCleared("europarl.lines.txt.gz");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object) longArray11, (java.lang.Object) "europarl.lines.txt.gz");
}
@Test
public void test2724() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2724");
java.lang.String[] strArray7 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet8 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray7);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests9 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests9.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet8, (java.lang.Object) kuromojiAnalysisTests9);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests13 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Fields fields16 = null;
org.apache.lucene.index.Fields fields17 = null;
kuromojiAnalysisTests13.assertFieldsEquals("europarl.lines.txt.gz", indexReader15, fields16, fields17, false);
kuromojiAnalysisTests13.ensureCleanedUp();
kuromojiAnalysisTests13.resetCheckIndexStatus();
kuromojiAnalysisTests13.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader24 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
org.apache.lucene.index.PostingsEnum postingsEnum27 = null;
kuromojiAnalysisTests13.assertPositionsSkippingEquals("", indexReader24, (int) (byte) 0, postingsEnum26, postingsEnum27);
org.junit.Assert.assertNotEquals((java.lang.Object) "tests.failfast", (java.lang.Object) kuromojiAnalysisTests13);
kuromojiAnalysisTests13.setUp();
org.apache.lucene.index.NumericDocValues numericDocValues33 = null;
org.apache.lucene.index.NumericDocValues numericDocValues34 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests13.assertDocValuesEquals("random", 0, numericDocValues33, numericDocValues34);
}
@Test
public void test2725() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2725");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("hi!", indexReader8, (int) (byte) 0, postingsEnum10, postingsEnum11);
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.Terms terms15 = null;
org.apache.lucene.index.Terms terms16 = null;
kuromojiAnalysisTests0.assertTermsEquals("random", indexReader14, terms15, terms16, true);
kuromojiAnalysisTests0.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum21 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
kuromojiAnalysisTests0.assertDocsEnumEquals("tests.nightly", postingsEnum21, postingsEnum22, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests25 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader27 = null;
org.apache.lucene.index.Fields fields28 = null;
org.apache.lucene.index.Fields fields29 = null;
kuromojiAnalysisTests25.assertFieldsEquals("europarl.lines.txt.gz", indexReader27, fields28, fields29, false);
kuromojiAnalysisTests25.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests25.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests25.ensureCleanedUp();
org.junit.Assert.assertNotEquals((java.lang.Object) kuromojiAnalysisTests0, (java.lang.Object) kuromojiAnalysisTests25);
kuromojiAnalysisTests0.ensureAllSearchContextsReleased();
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.ensureCheckIndexPassed();
org.apache.lucene.index.IndexReader indexReader42 = null;
org.apache.lucene.index.PostingsEnum postingsEnum44 = null;
org.apache.lucene.index.PostingsEnum postingsEnum45 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("europarl.lines.txt.gz", indexReader42, (int) (short) 100, postingsEnum44, postingsEnum45);
org.apache.lucene.index.IndexReader indexReader48 = null;
org.apache.lucene.index.Terms terms49 = null;
org.apache.lucene.index.Terms terms50 = null;
kuromojiAnalysisTests0.assertTermsEquals("tests.maxfailures", indexReader48, terms49, terms50, true);
org.junit.Assert.assertNotNull((java.lang.Object) kuromojiAnalysisTests0);
kuromojiAnalysisTests0.ensureCleanedUp();
org.apache.lucene.index.NumericDocValues numericDocValues57 = null;
org.apache.lucene.index.NumericDocValues numericDocValues58 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("tests.monster", (int) (short) 1, numericDocValues57, numericDocValues58);
}
@Test
public void test2726() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2726");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.nightly", (double) (short) 0, (double) (short) -1);
}
@Test
public void test2727() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2727");
java.util.Locale locale3 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale5 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale7 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale9 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale11 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray12 = new java.util.Locale[] { locale3, locale5, locale7, locale9, locale11 };
java.util.Set<java.util.Locale> localeSet13 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray12);
java.util.List<java.io.Serializable> serializableList14 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray12);
org.junit.Assert.assertNotSame("", (java.lang.Object) localeArray12, (java.lang.Object) 0.0f);
java.util.concurrent.ExecutorService[][][][] executorServiceArray17 = new java.util.concurrent.ExecutorService[][][][] {};
java.util.Set<java.util.concurrent.ExecutorService[][][]> executorServiceArraySet18 = org.apache.lucene.util.LuceneTestCase.asSet(executorServiceArray17);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray12, (java.lang.Object[]) executorServiceArray17);
}
@Test
public void test2728() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2728");
double[] doubleArray6 = new double[] { 1.0d, 10.0f, (byte) 100, (short) 1, 10 };
double[] doubleArray12 = new double[] { 1.0d, 10.0f, (byte) 100, (short) 1, 10 };
double[][] doubleArray13 = new double[][] { doubleArray6, doubleArray12 };
double[] doubleArray19 = new double[] { 1.0d, 10.0f, (byte) 100, (short) 1, 10 };
double[] doubleArray25 = new double[] { 1.0d, 10.0f, (byte) 100, (short) 1, 10 };
double[][] doubleArray26 = new double[][] { doubleArray19, doubleArray25 };
double[] doubleArray32 = new double[] { 1.0d, 10.0f, (byte) 100, (short) 1, 10 };
double[] doubleArray38 = new double[] { 1.0d, 10.0f, (byte) 100, (short) 1, 10 };
double[][] doubleArray39 = new double[][] { doubleArray32, doubleArray38 };
double[] doubleArray45 = new double[] { 1.0d, 10.0f, (byte) 100, (short) 1, 10 };
double[] doubleArray51 = new double[] { 1.0d, 10.0f, (byte) 100, (short) 1, 10 };
double[][] doubleArray52 = new double[][] { doubleArray45, doubleArray51 };
double[][][] doubleArray53 = new double[][][] { doubleArray13, doubleArray26, doubleArray39, doubleArray52 };
java.util.Set<double[][]> doubleArraySet54 = org.apache.lucene.util.LuceneTestCase.asSet(doubleArray53);
org.apache.lucene.store.MockDirectoryWrapper.Throttling throttling57 = org.apache.lucene.util.LuceneTestCase.TEST_THROTTLING;
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray58 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] { throttling57 };
java.util.List<org.apache.lucene.store.MockDirectoryWrapper.Throttling> throttlingList59 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, throttlingArray58);
org.junit.Assert.assertNotNull("europarl.lines.txt.gz", (java.lang.Object) throttlingArray58);
java.util.Set<java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>> throttlingEnumSet61 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>[]) throttlingArray58);
java.util.Set<org.apache.lucene.store.MockDirectoryWrapper.Throttling> throttlingSet62 = org.apache.lucene.util.LuceneTestCase.asSet(throttlingArray58);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.failfast", (java.lang.Object[]) doubleArray53, (java.lang.Object[]) throttlingArray58);
}
@Test
public void test2729() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2729");
double[] doubleArray7 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray12 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray7, doubleArray12, (double) (byte) 100);
double[] doubleArray20 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray25 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray20, doubleArray25, (double) (byte) 100);
org.junit.Assert.assertArrayEquals("", doubleArray7, doubleArray20, (double) 0);
double[] doubleArray30 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.nightly", doubleArray20, doubleArray30, (double) (short) 10);
}
@Test
public void test2730() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2730");
long[] longArray6 = new long[] { ' ', 'a', (byte) 10, 100 };
long[] longArray11 = new long[] { ' ', 'a', (byte) 10, 100 };
long[] longArray16 = new long[] { ' ', 'a', (byte) 10, 100 };
long[] longArray21 = new long[] { ' ', 'a', (byte) 10, 100 };
long[] longArray26 = new long[] { ' ', 'a', (byte) 10, 100 };
long[][] longArray27 = new long[][] { longArray6, longArray11, longArray16, longArray21, longArray26 };
java.util.List<long[]> longArrayList28 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, longArray27);
java.util.Set<long[]> longArraySet29 = org.apache.lucene.util.LuceneTestCase.asSet(longArray27);
java.util.concurrent.ExecutorService[] executorServiceArray30 = new java.util.concurrent.ExecutorService[] {};
boolean boolean31 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray30);
java.util.concurrent.ExecutorService[] executorServiceArray32 = new java.util.concurrent.ExecutorService[] {};
boolean boolean33 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray32);
boolean boolean34 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray32);
boolean boolean35 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray32);
boolean boolean36 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray32);
boolean boolean37 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray32);
boolean boolean38 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray32);
org.junit.Assert.assertEquals((java.lang.Object[]) executorServiceArray30, (java.lang.Object[]) executorServiceArray32);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("<unknown>", (java.lang.Object[]) longArray27, (java.lang.Object[]) executorServiceArray30);
}
@Test
public void test2731() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2731");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("enwiki.random.lines.txt", 0.0d, (double) (byte) 1, (double) 0L);
}
@Test
public void test2732() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2732");
java.util.concurrent.ExecutorService[] executorServiceArray2 = new java.util.concurrent.ExecutorService[] {};
boolean boolean3 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray2);
java.util.concurrent.ExecutorService[] executorServiceArray4 = new java.util.concurrent.ExecutorService[] {};
boolean boolean5 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean6 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean7 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean8 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean9 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean10 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
org.junit.Assert.assertEquals((java.lang.Object[]) executorServiceArray2, (java.lang.Object[]) executorServiceArray4);
java.util.concurrent.ExecutorService[] executorServiceArray12 = new java.util.concurrent.ExecutorService[] {};
boolean boolean13 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray12);
boolean boolean14 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray12);
boolean boolean15 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray12);
boolean boolean16 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray12);
boolean boolean17 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray12);
org.junit.Assert.assertEquals("tests.badapples", (java.lang.Object[]) executorServiceArray2, (java.lang.Object[]) executorServiceArray12);
java.util.Locale locale20 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray21 = new java.util.Locale[] { locale20 };
java.util.Locale locale23 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray24 = new java.util.Locale[] { locale23 };
java.util.Locale locale26 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray27 = new java.util.Locale[] { locale26 };
java.util.Locale locale29 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray30 = new java.util.Locale[] { locale29 };
java.util.Locale[][] localeArray31 = new java.util.Locale[][] { localeArray21, localeArray24, localeArray27, localeArray30 };
java.util.Locale locale33 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray34 = new java.util.Locale[] { locale33 };
java.util.Locale locale36 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray37 = new java.util.Locale[] { locale36 };
java.util.Locale locale39 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray40 = new java.util.Locale[] { locale39 };
java.util.Locale locale42 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray43 = new java.util.Locale[] { locale42 };
java.util.Locale[][] localeArray44 = new java.util.Locale[][] { localeArray34, localeArray37, localeArray40, localeArray43 };
java.util.Locale locale46 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray47 = new java.util.Locale[] { locale46 };
java.util.Locale locale49 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray50 = new java.util.Locale[] { locale49 };
java.util.Locale locale52 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray53 = new java.util.Locale[] { locale52 };
java.util.Locale locale55 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray56 = new java.util.Locale[] { locale55 };
java.util.Locale[][] localeArray57 = new java.util.Locale[][] { localeArray47, localeArray50, localeArray53, localeArray56 };
java.util.Locale locale59 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray60 = new java.util.Locale[] { locale59 };
java.util.Locale locale62 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray63 = new java.util.Locale[] { locale62 };
java.util.Locale locale65 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray66 = new java.util.Locale[] { locale65 };
java.util.Locale locale68 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray69 = new java.util.Locale[] { locale68 };
java.util.Locale[][] localeArray70 = new java.util.Locale[][] { localeArray60, localeArray63, localeArray66, localeArray69 };
java.util.Locale[][][] localeArray71 = new java.util.Locale[][][] { localeArray31, localeArray44, localeArray57, localeArray70 };
java.util.Set<java.util.Locale[][]> localeArraySet72 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray71);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("random", (java.lang.Object[]) executorServiceArray2, (java.lang.Object[]) localeArray71);
}
@Test
public void test2733() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2733");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) '4', (-1.0d), (double) (byte) 1);
}
@Test
public void test2734() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2734");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.monster", (long) 10, (-1L));
}
@Test
public void test2735() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2735");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((float) 'a', (float) (short) 10, (float) 10L);
}
@Test
public void test2736() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2736");
byte[] byteArray6 = new byte[] { (byte) 0, (byte) 0, (byte) 10, (byte) 10, (byte) 100, (byte) 100 };
byte[] byteArray8 = new byte[] {};
byte[] byteArray9 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray8, byteArray9);
byte[] byteArray12 = new byte[] {};
byte[] byteArray13 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray12, byteArray13);
org.junit.Assert.assertArrayEquals(byteArray9, byteArray13);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(byteArray6, byteArray13);
}
@Test
public void test2737() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2737");
int[] intArray1 = null;
int[] intArray5 = new int[] { '#' };
int[] intArray7 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray5, intArray7);
int[] intArray10 = new int[] { '#' };
int[] intArray12 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray10, intArray12);
org.junit.Assert.assertArrayEquals("tests.nightly", intArray5, intArray10);
int[] intArray17 = new int[] { '#' };
int[] intArray19 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray17, intArray19);
int[] intArray22 = new int[] { '#' };
int[] intArray24 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray22, intArray24);
org.junit.Assert.assertArrayEquals("tests.nightly", intArray17, intArray22);
int[] intArray28 = new int[] { '#' };
int[] intArray30 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray28, intArray30);
org.junit.Assert.assertArrayEquals(intArray22, intArray28);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray10, intArray22);
int[] intArray37 = new int[] { '#' };
int[] intArray39 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray37, intArray39);
int[] intArray42 = new int[] { '#' };
int[] intArray44 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray42, intArray44);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray37, intArray42);
int[] intArray49 = new int[] { '#' };
int[] intArray51 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray49, intArray51);
int[] intArray54 = new int[] { '#' };
int[] intArray56 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray54, intArray56);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray49, intArray54);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", intArray37, intArray54);
int[] intArray61 = new int[] { '#' };
int[] intArray63 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray61, intArray63);
org.junit.Assert.assertArrayEquals(intArray54, intArray63);
org.junit.Assert.assertArrayEquals(intArray10, intArray54);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.failfast", intArray1, intArray10);
}
@Test
public void test2738() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2738");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals((-1.0d), (double) (-1), (double) 10.0f);
}
@Test
public void test2739() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2739");
java.lang.String[] strArray7 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet8 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray7);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests9 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests9.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet8, (java.lang.Object) kuromojiAnalysisTests9);
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
kuromojiAnalysisTests9.assertDocsEnumEquals("tests.badapples", postingsEnum14, postingsEnum15, true);
org.junit.rules.TestRule testRule18 = kuromojiAnalysisTests9.ruleChain;
org.apache.lucene.index.IndexReader indexReader20 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
kuromojiAnalysisTests9.assertDocsSkippingEquals("tests.maxfailures", indexReader20, (int) (byte) 100, postingsEnum22, postingsEnum23, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests26 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader28 = null;
org.apache.lucene.index.Fields fields29 = null;
org.apache.lucene.index.Fields fields30 = null;
kuromojiAnalysisTests26.assertFieldsEquals("europarl.lines.txt.gz", indexReader28, fields29, fields30, false);
kuromojiAnalysisTests26.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain35 = kuromojiAnalysisTests26.failureAndSuccessEvents;
kuromojiAnalysisTests9.failureAndSuccessEvents = ruleChain35;
kuromojiAnalysisTests9.ensureCheckIndexPassed();
java.lang.String str38 = kuromojiAnalysisTests9.getTestName();
kuromojiAnalysisTests9.resetCheckIndexStatus();
kuromojiAnalysisTests9.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum42 = null;
org.apache.lucene.index.PostingsEnum postingsEnum43 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests9.assertDocsAndPositionsEnumEquals("tests.maxfailures", postingsEnum42, postingsEnum43);
}
@Test
public void test2740() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2740");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("<unknown>", (double) (-1.0f), (double) (byte) 1, (double) (-1L));
}
@Test
public void test2741() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2741");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.failfast", (float) '4', (float) 3, (float) '#');
}
@Test
public void test2742() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2742");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("random", indexReader2, fields3, fields4, true);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.Fields fields9 = null;
org.apache.lucene.index.Fields fields10 = null;
kuromojiAnalysisTests0.assertFieldsEquals("tests.slow", indexReader8, fields9, fields10, false);
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("enwiki.random.lines.txt", postingsEnum14, postingsEnum15);
}
@Test
public void test2743() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2743");
byte[] byteArray1 = new byte[] {};
byte[] byteArray2 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray1, byteArray2);
byte[] byteArray5 = new byte[] {};
byte[] byteArray6 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray5, byteArray6);
byte[] byteArray9 = new byte[] {};
byte[] byteArray10 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray9, byteArray10);
org.junit.Assert.assertArrayEquals(byteArray6, byteArray10);
org.junit.Assert.assertArrayEquals(byteArray2, byteArray6);
byte[] byteArray14 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(byteArray6, byteArray14);
}
@Test
public void test2744() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2744");
short[] shortArray1 = null;
short[] shortArray4 = new short[] { (short) 10 };
short[] shortArray6 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray4, shortArray6);
short[] shortArray10 = new short[] { (short) 10 };
short[] shortArray12 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray10, shortArray12);
org.junit.Assert.assertArrayEquals(shortArray6, shortArray10);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.awaitsfix", shortArray1, shortArray6);
}
@Test
public void test2745() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2745");
char[] charArray2 = new char[] {};
char[] charArray3 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray2, charArray3);
char[] charArray5 = new char[] {};
char[] charArray6 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray5, charArray6);
char[] charArray8 = new char[] {};
char[] charArray9 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray8, charArray9);
org.junit.Assert.assertArrayEquals(charArray6, charArray9);
char[] charArray12 = new char[] {};
char[] charArray13 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray12, charArray13);
org.junit.Assert.assertArrayEquals(charArray6, charArray13);
org.junit.Assert.assertArrayEquals("tests.slow", charArray3, charArray13);
char[] charArray17 = new char[] {};
char[] charArray18 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray17, charArray18);
char[] charArray20 = new char[] {};
char[] charArray21 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray20, charArray21);
org.junit.Assert.assertArrayEquals(charArray17, charArray21);
org.junit.Assert.assertArrayEquals("tests.badapples", charArray3, charArray21);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests25 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader27 = null;
org.apache.lucene.index.Fields fields28 = null;
org.apache.lucene.index.Fields fields29 = null;
kuromojiAnalysisTests25.assertFieldsEquals("europarl.lines.txt.gz", indexReader27, fields28, fields29, false);
kuromojiAnalysisTests25.ensureCleanedUp();
kuromojiAnalysisTests25.resetCheckIndexStatus();
kuromojiAnalysisTests25.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader36 = null;
org.apache.lucene.index.PostingsEnum postingsEnum38 = null;
org.apache.lucene.index.PostingsEnum postingsEnum39 = null;
kuromojiAnalysisTests25.assertPositionsSkippingEquals("", indexReader36, (int) (byte) 0, postingsEnum38, postingsEnum39);
kuromojiAnalysisTests25.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader43 = null;
org.apache.lucene.index.PostingsEnum postingsEnum45 = null;
org.apache.lucene.index.PostingsEnum postingsEnum46 = null;
kuromojiAnalysisTests25.assertDocsSkippingEquals("<unknown>", indexReader43, (int) ' ', postingsEnum45, postingsEnum46, false);
kuromojiAnalysisTests25.setUp();
org.apache.lucene.index.IndexReader indexReader51 = null;
org.apache.lucene.index.PostingsEnum postingsEnum53 = null;
org.apache.lucene.index.PostingsEnum postingsEnum54 = null;
kuromojiAnalysisTests25.assertDocsSkippingEquals("tests.failfast", indexReader51, 1, postingsEnum53, postingsEnum54, false);
kuromojiAnalysisTests25.overrideTestDefaultQueryCache();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame((java.lang.Object) "tests.badapples", (java.lang.Object) kuromojiAnalysisTests25);
}
@Test
public void test2746() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2746");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.failfast", indexReader8, 1, postingsEnum10, postingsEnum11);
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.Fields fields15 = null;
org.apache.lucene.index.Fields fields16 = null;
kuromojiAnalysisTests0.assertFieldsEquals("tests.slow", indexReader14, fields15, fields16, true);
org.junit.rules.TestRule testRule19 = kuromojiAnalysisTests0.ruleChain;
java.lang.String str20 = kuromojiAnalysisTests0.getTestName();
kuromojiAnalysisTests0.setUp();
int[][] intArray22 = new int[][] {};
java.util.Set<int[]> intArraySet23 = org.apache.lucene.util.LuceneTestCase.asSet(intArray22);
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests0, (java.lang.Object) intArray22);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests25 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader27 = null;
org.apache.lucene.index.Fields fields28 = null;
org.apache.lucene.index.Fields fields29 = null;
kuromojiAnalysisTests25.assertFieldsEquals("europarl.lines.txt.gz", indexReader27, fields28, fields29, false);
kuromojiAnalysisTests25.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain34 = kuromojiAnalysisTests25.failureAndSuccessEvents;
kuromojiAnalysisTests25.resetCheckIndexStatus();
kuromojiAnalysisTests25.restoreIndexWriterMaxDocs();
org.junit.rules.TestRule testRule37 = kuromojiAnalysisTests25.ruleChain;
java.util.Locale locale43 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale45 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale47 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale49 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale51 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray52 = new java.util.Locale[] { locale43, locale45, locale47, locale49, locale51 };
java.util.Set<java.util.Locale> localeSet53 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray52);
java.util.List<java.io.Serializable> serializableList54 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray52);
org.junit.Assert.assertNotSame("", (java.lang.Object) localeArray52, (java.lang.Object) 0.0f);
java.util.Locale locale60 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale62 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale64 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale66 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale68 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray69 = new java.util.Locale[] { locale60, locale62, locale64, locale66, locale68 };
java.util.Set<java.util.Locale> localeSet70 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray69);
java.util.List<java.io.Serializable> serializableList71 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray69);
org.junit.Assert.assertNotSame("", (java.lang.Object) localeArray69, (java.lang.Object) 0.0f);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", (java.lang.Object[]) localeArray52, (java.lang.Object[]) localeArray69);
java.util.Locale locale76 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale78 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale80 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale82 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale84 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray85 = new java.util.Locale[] { locale76, locale78, locale80, locale82, locale84 };
java.util.Set<java.util.Locale> localeSet86 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray85);
org.junit.Assert.assertArrayEquals("tests.nightly", (java.lang.Object[]) localeArray52, (java.lang.Object[]) localeArray85);
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests25, (java.lang.Object) localeArray85);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals((java.lang.Object[]) intArray22, (java.lang.Object[]) localeArray85);
}
@Test
public void test2747() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2747");
java.util.concurrent.ExecutorService executorService1 = null;
java.util.concurrent.ExecutorService[] executorServiceArray2 = new java.util.concurrent.ExecutorService[] { executorService1 };
boolean boolean3 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray2);
boolean boolean4 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray2);
boolean boolean5 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray2);
boolean boolean6 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray2);
boolean boolean7 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray2);
java.util.Locale locale13 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale15 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale17 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale19 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale21 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray22 = new java.util.Locale[] { locale13, locale15, locale17, locale19, locale21 };
java.util.Set<java.util.Locale> localeSet23 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray22);
java.util.List<java.io.Serializable> serializableList24 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray22);
org.junit.Assert.assertNotSame("", (java.lang.Object) localeArray22, (java.lang.Object) 0.0f);
java.util.Locale locale30 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale32 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale34 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale36 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale38 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray39 = new java.util.Locale[] { locale30, locale32, locale34, locale36, locale38 };
java.util.Set<java.util.Locale> localeSet40 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray39);
java.util.List<java.io.Serializable> serializableList41 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray39);
org.junit.Assert.assertNotSame("", (java.lang.Object) localeArray39, (java.lang.Object) 0.0f);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", (java.lang.Object[]) localeArray22, (java.lang.Object[]) localeArray39);
java.util.Locale locale46 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale48 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale50 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale52 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale54 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray55 = new java.util.Locale[] { locale46, locale48, locale50, locale52, locale54 };
java.util.Set<java.util.Locale> localeSet56 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray55);
org.junit.Assert.assertArrayEquals("tests.nightly", (java.lang.Object[]) localeArray22, (java.lang.Object[]) localeArray55);
java.lang.Object obj58 = new java.lang.Object();
org.junit.Assert.assertNotSame((java.lang.Object) localeArray22, obj58);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.weekly", (java.lang.Object[]) executorServiceArray2, (java.lang.Object[]) localeArray22);
}
@Test
public void test2748() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2748");
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures0 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures1 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures0);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures2 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures3 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures2);
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures4 = null;
org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures testRuleIgnoreAfterMaxFailures5 = org.apache.lucene.util.LuceneTestCase.replaceMaxFailureRule(testRuleIgnoreAfterMaxFailures4);
org.junit.rules.TestRule[] testRuleArray6 = new org.junit.rules.TestRule[] { testRuleIgnoreAfterMaxFailures0, testRuleIgnoreAfterMaxFailures3, testRuleIgnoreAfterMaxFailures5 };
java.util.Set<org.junit.rules.TestRule> testRuleSet7 = org.apache.lucene.util.LuceneTestCase.asSet(testRuleArray6);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests8 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.Fields fields11 = null;
org.apache.lucene.index.Fields fields12 = null;
kuromojiAnalysisTests8.assertFieldsEquals("europarl.lines.txt.gz", indexReader10, fields11, fields12, false);
kuromojiAnalysisTests8.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests8.setUp();
kuromojiAnalysisTests8.ensureCheckIndexPassed();
kuromojiAnalysisTests8.resetCheckIndexStatus();
org.junit.Assert.assertNotEquals((java.lang.Object) testRuleArray6, (java.lang.Object) kuromojiAnalysisTests8);
org.junit.rules.RuleChain ruleChain21 = kuromojiAnalysisTests8.failureAndSuccessEvents;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) kuromojiAnalysisTests8);
}
@Test
public void test2749() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2749");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) 4, (double) (byte) 1, (double) 1);
}
@Test
public void test2750() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2750");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) 100L, (double) 1.0f);
}
@Test
public void test2751() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2751");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests3 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader5 = null;
org.apache.lucene.index.Fields fields6 = null;
org.apache.lucene.index.Fields fields7 = null;
kuromojiAnalysisTests3.assertFieldsEquals("europarl.lines.txt.gz", indexReader5, fields6, fields7, false);
org.apache.lucene.index.IndexReader indexReader11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
kuromojiAnalysisTests3.assertPositionsSkippingEquals("hi!", indexReader11, (int) (byte) 0, postingsEnum13, postingsEnum14);
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.Terms terms18 = null;
org.apache.lucene.index.Terms terms19 = null;
kuromojiAnalysisTests3.assertTermsEquals("random", indexReader17, terms18, terms19, true);
kuromojiAnalysisTests3.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum24 = null;
org.apache.lucene.index.PostingsEnum postingsEnum25 = null;
kuromojiAnalysisTests3.assertDocsEnumEquals("tests.nightly", postingsEnum24, postingsEnum25, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests28 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader30 = null;
org.apache.lucene.index.Fields fields31 = null;
org.apache.lucene.index.Fields fields32 = null;
kuromojiAnalysisTests28.assertFieldsEquals("europarl.lines.txt.gz", indexReader30, fields31, fields32, false);
kuromojiAnalysisTests28.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain37 = kuromojiAnalysisTests28.failureAndSuccessEvents;
kuromojiAnalysisTests28.ensureAllSearchContextsReleased();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests39 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader41 = null;
org.apache.lucene.index.Fields fields42 = null;
org.apache.lucene.index.Fields fields43 = null;
kuromojiAnalysisTests39.assertFieldsEquals("europarl.lines.txt.gz", indexReader41, fields42, fields43, false);
org.apache.lucene.index.IndexReader indexReader47 = null;
org.apache.lucene.index.PostingsEnum postingsEnum49 = null;
org.apache.lucene.index.PostingsEnum postingsEnum50 = null;
kuromojiAnalysisTests39.assertPositionsSkippingEquals("hi!", indexReader47, (int) (byte) 0, postingsEnum49, postingsEnum50);
kuromojiAnalysisTests39.ensureCheckIndexPassed();
org.elasticsearch.index.analysis.KuromojiAnalysisTests[] kuromojiAnalysisTestsArray53 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests[] { kuromojiAnalysisTests3, kuromojiAnalysisTests28, kuromojiAnalysisTests39 };
java.util.Set<org.elasticsearch.index.analysis.KuromojiAnalysisTests> kuromojiAnalysisTestsSet54 = org.apache.lucene.util.LuceneTestCase.asSet(kuromojiAnalysisTestsArray53);
java.util.Set<org.junit.Assert> assertSet55 = org.apache.lucene.util.LuceneTestCase.asSet((org.junit.Assert[]) kuromojiAnalysisTestsArray53);
org.junit.rules.RuleChain[] ruleChainArray56 = new org.junit.rules.RuleChain[] {};
org.junit.rules.RuleChain[][] ruleChainArray57 = new org.junit.rules.RuleChain[][] { ruleChainArray56 };
java.util.Set<org.junit.rules.RuleChain[]> ruleChainArraySet58 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray57);
org.junit.Assert.assertNotEquals("tests.failfast", (java.lang.Object) kuromojiAnalysisTestsArray53, (java.lang.Object) ruleChainArray57);
java.util.List<org.elasticsearch.index.analysis.KuromojiAnalysisTests> kuromojiAnalysisTestsList60 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 1, kuromojiAnalysisTestsArray53);
java.util.Set<org.apache.lucene.util.LuceneTestCase> luceneTestCaseSet61 = org.apache.lucene.util.LuceneTestCase.asSet((org.apache.lucene.util.LuceneTestCase[]) kuromojiAnalysisTestsArray53);
java.lang.Object[] objArray62 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("", (java.lang.Object[]) kuromojiAnalysisTestsArray53, objArray62);
}
@Test
public void test2752() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2752");
java.lang.String[] strArray4 = new java.lang.String[] { "europarl.lines.txt.gz", "tests.badapples", "random" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet5 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray4);
org.junit.Assert.assertNotEquals((java.lang.Object) (short) -1, (java.lang.Object) strArray4);
org.apache.lucene.store.MockDirectoryWrapper.Throttling throttling10 = org.apache.lucene.util.LuceneTestCase.TEST_THROTTLING;
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray11 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] { throttling10 };
java.util.List<org.apache.lucene.store.MockDirectoryWrapper.Throttling> throttlingList12 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, throttlingArray11);
org.junit.Assert.assertNotNull("europarl.lines.txt.gz", (java.lang.Object) throttlingArray11);
java.util.Set<java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>> throttlingEnumSet14 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>[]) throttlingArray11);
org.apache.lucene.store.MockDirectoryWrapper.Throttling throttling16 = org.apache.lucene.util.LuceneTestCase.TEST_THROTTLING;
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray17 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] { throttling16 };
java.util.List<org.apache.lucene.store.MockDirectoryWrapper.Throttling> throttlingList18 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, throttlingArray17);
java.util.Set<java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>> throttlingEnumSet19 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>[]) throttlingArray17);
org.junit.Assert.assertEquals("tests.failfast", (java.lang.Object[]) throttlingArray11, (java.lang.Object[]) throttlingArray17);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals((java.lang.Object[]) strArray4, (java.lang.Object[]) throttlingArray17);
}
@Test
public void test2753() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2753");
java.util.Locale locale3 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale5 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale7 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale9 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale11 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray12 = new java.util.Locale[] { locale3, locale5, locale7, locale9, locale11 };
java.util.Set<java.util.Locale> localeSet13 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray12);
java.util.List<java.io.Serializable> serializableList14 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray12);
java.util.Set<java.lang.Cloneable> cloneableSet15 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray12);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray12, (java.lang.Object) (byte) -1);
java.util.Locale locale20 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale22 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale24 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale26 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale28 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray29 = new java.util.Locale[] { locale20, locale22, locale24, locale26, locale28 };
java.util.Set<java.util.Locale> localeSet30 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray29);
java.util.Locale locale33 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale35 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale37 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale39 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale41 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray42 = new java.util.Locale[] { locale33, locale35, locale37, locale39, locale41 };
java.util.Set<java.util.Locale> localeSet43 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray42);
java.util.List<java.io.Serializable> serializableList44 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray42);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray29, (java.lang.Object[]) localeArray42);
java.util.Locale locale48 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale50 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale52 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale54 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale56 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray57 = new java.util.Locale[] { locale48, locale50, locale52, locale54, locale56 };
java.util.Set<java.util.Locale> localeSet58 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray57);
java.util.List<java.io.Serializable> serializableList59 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray57);
java.util.Set<java.lang.Cloneable> cloneableSet60 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray57);
org.junit.Assert.assertArrayEquals("tests.slow", (java.lang.Object[]) localeArray42, (java.lang.Object[]) localeArray57);
org.junit.Assert.assertArrayEquals("tests.awaitsfix", (java.lang.Object[]) localeArray12, (java.lang.Object[]) localeArray42);
java.util.Set<java.lang.Cloneable> cloneableSet63 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray12);
java.lang.Object[] objArray64 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray12, objArray64);
}
@Test
public void test2754() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2754");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests2 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader4 = null;
org.apache.lucene.index.Fields fields5 = null;
org.apache.lucene.index.Fields fields6 = null;
kuromojiAnalysisTests2.assertFieldsEquals("europarl.lines.txt.gz", indexReader4, fields5, fields6, false);
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
kuromojiAnalysisTests2.assertPositionsSkippingEquals("hi!", indexReader10, (int) (byte) 0, postingsEnum12, postingsEnum13);
org.apache.lucene.index.IndexReader indexReader16 = null;
org.apache.lucene.index.Terms terms17 = null;
org.apache.lucene.index.Terms terms18 = null;
kuromojiAnalysisTests2.assertTermsEquals("random", indexReader16, terms17, terms18, true);
kuromojiAnalysisTests2.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
org.apache.lucene.index.PostingsEnum postingsEnum24 = null;
kuromojiAnalysisTests2.assertDocsEnumEquals("tests.nightly", postingsEnum23, postingsEnum24, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests27 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader29 = null;
org.apache.lucene.index.Fields fields30 = null;
org.apache.lucene.index.Fields fields31 = null;
kuromojiAnalysisTests27.assertFieldsEquals("europarl.lines.txt.gz", indexReader29, fields30, fields31, false);
kuromojiAnalysisTests27.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain36 = kuromojiAnalysisTests27.failureAndSuccessEvents;
kuromojiAnalysisTests27.ensureAllSearchContextsReleased();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests38 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader40 = null;
org.apache.lucene.index.Fields fields41 = null;
org.apache.lucene.index.Fields fields42 = null;
kuromojiAnalysisTests38.assertFieldsEquals("europarl.lines.txt.gz", indexReader40, fields41, fields42, false);
org.apache.lucene.index.IndexReader indexReader46 = null;
org.apache.lucene.index.PostingsEnum postingsEnum48 = null;
org.apache.lucene.index.PostingsEnum postingsEnum49 = null;
kuromojiAnalysisTests38.assertPositionsSkippingEquals("hi!", indexReader46, (int) (byte) 0, postingsEnum48, postingsEnum49);
kuromojiAnalysisTests38.ensureCheckIndexPassed();
org.elasticsearch.index.analysis.KuromojiAnalysisTests[] kuromojiAnalysisTestsArray52 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests[] { kuromojiAnalysisTests2, kuromojiAnalysisTests27, kuromojiAnalysisTests38 };
java.util.Set<org.elasticsearch.index.analysis.KuromojiAnalysisTests> kuromojiAnalysisTestsSet53 = org.apache.lucene.util.LuceneTestCase.asSet(kuromojiAnalysisTestsArray52);
java.util.Set<org.junit.Assert> assertSet54 = org.apache.lucene.util.LuceneTestCase.asSet((org.junit.Assert[]) kuromojiAnalysisTestsArray52);
org.junit.rules.RuleChain[] ruleChainArray55 = new org.junit.rules.RuleChain[] {};
org.junit.rules.RuleChain[][] ruleChainArray56 = new org.junit.rules.RuleChain[][] { ruleChainArray55 };
java.util.Set<org.junit.rules.RuleChain[]> ruleChainArraySet57 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray56);
org.junit.Assert.assertNotEquals("tests.failfast", (java.lang.Object) kuromojiAnalysisTestsArray52, (java.lang.Object) ruleChainArray56);
org.apache.lucene.store.MockDirectoryWrapper.Throttling throttling63 = org.apache.lucene.util.LuceneTestCase.TEST_THROTTLING;
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray64 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] { throttling63 };
java.util.List<org.apache.lucene.store.MockDirectoryWrapper.Throttling> throttlingList65 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, throttlingArray64);
org.junit.Assert.assertNotNull("europarl.lines.txt.gz", (java.lang.Object) throttlingArray64);
java.util.Set<java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>> throttlingEnumSet67 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>[]) throttlingArray64);
org.apache.lucene.store.MockDirectoryWrapper.Throttling throttling69 = org.apache.lucene.util.LuceneTestCase.TEST_THROTTLING;
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray70 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] { throttling69 };
java.util.List<org.apache.lucene.store.MockDirectoryWrapper.Throttling> throttlingList71 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, throttlingArray70);
java.util.Set<java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>> throttlingEnumSet72 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>[]) throttlingArray70);
org.junit.Assert.assertEquals("tests.failfast", (java.lang.Object[]) throttlingArray64, (java.lang.Object[]) throttlingArray70);
org.junit.Assert.assertNotNull("<unknown>", (java.lang.Object) throttlingArray64);
// during test generation this statement threw an exception of type org.junit.internal.ArrayComparisonFailure in error
org.junit.Assert.assertArrayEquals("tests.slow", (java.lang.Object[]) ruleChainArray56, (java.lang.Object[]) throttlingArray64);
}
@Test
public void test2755() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2755");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (-1), (double) 100);
}
@Test
public void test2756() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2756");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
java.lang.String[] strArray14 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet15 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray14);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests16 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests16.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet15, (java.lang.Object) kuromojiAnalysisTests16);
org.apache.lucene.index.PostingsEnum postingsEnum21 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
kuromojiAnalysisTests16.assertDocsEnumEquals("tests.badapples", postingsEnum21, postingsEnum22, true);
org.junit.rules.TestRule testRule25 = kuromojiAnalysisTests16.ruleChain;
org.apache.lucene.index.IndexReader indexReader27 = null;
org.apache.lucene.index.PostingsEnum postingsEnum29 = null;
org.apache.lucene.index.PostingsEnum postingsEnum30 = null;
kuromojiAnalysisTests16.assertDocsSkippingEquals("tests.maxfailures", indexReader27, (int) (byte) 100, postingsEnum29, postingsEnum30, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests33 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader35 = null;
org.apache.lucene.index.Fields fields36 = null;
org.apache.lucene.index.Fields fields37 = null;
kuromojiAnalysisTests33.assertFieldsEquals("europarl.lines.txt.gz", indexReader35, fields36, fields37, false);
kuromojiAnalysisTests33.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain42 = kuromojiAnalysisTests33.failureAndSuccessEvents;
kuromojiAnalysisTests16.failureAndSuccessEvents = ruleChain42;
kuromojiAnalysisTests0.failureAndSuccessEvents = ruleChain42;
org.apache.lucene.index.PostingsEnum postingsEnum46 = null;
org.apache.lucene.index.PostingsEnum postingsEnum47 = null;
kuromojiAnalysisTests0.assertDocsEnumEquals("<unknown>", postingsEnum46, postingsEnum47, true);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
java.lang.String[] strArray59 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet60 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray59);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests61 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests61.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet60, (java.lang.Object) kuromojiAnalysisTests61);
org.apache.lucene.index.PostingsEnum postingsEnum66 = null;
org.apache.lucene.index.PostingsEnum postingsEnum67 = null;
kuromojiAnalysisTests61.assertDocsEnumEquals("tests.badapples", postingsEnum66, postingsEnum67, true);
org.junit.rules.TestRule testRule70 = kuromojiAnalysisTests61.ruleChain;
org.apache.lucene.index.IndexReader indexReader72 = null;
org.apache.lucene.index.PostingsEnum postingsEnum74 = null;
org.apache.lucene.index.PostingsEnum postingsEnum75 = null;
kuromojiAnalysisTests61.assertDocsSkippingEquals("tests.maxfailures", indexReader72, (int) (byte) 100, postingsEnum74, postingsEnum75, false);
kuromojiAnalysisTests61.resetCheckIndexStatus();
kuromojiAnalysisTests61.ensureCleanedUp();
org.junit.Assert.assertNotNull((java.lang.Object) kuromojiAnalysisTests61);
kuromojiAnalysisTests61.ensureCleanedUp();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object) kuromojiAnalysisTests0, (java.lang.Object) kuromojiAnalysisTests61);
}
@Test
public void test2757() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2757");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.PostingsEnum postingsEnum3 = null;
org.apache.lucene.index.PostingsEnum postingsEnum4 = null;
kuromojiAnalysisTests1.assertDocsEnumEquals("", postingsEnum3, postingsEnum4, false);
org.junit.rules.TestRule testRule7 = kuromojiAnalysisTests1.ruleChain;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests8 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.Fields fields11 = null;
org.apache.lucene.index.Fields fields12 = null;
kuromojiAnalysisTests8.assertFieldsEquals("europarl.lines.txt.gz", indexReader10, fields11, fields12, false);
kuromojiAnalysisTests8.ensureCleanedUp();
kuromojiAnalysisTests8.assertPathHasBeenCleared("tests.failfast");
kuromojiAnalysisTests8.tearDown();
org.junit.Assert.assertNotEquals("europarl.lines.txt.gz", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) kuromojiAnalysisTests8);
kuromojiAnalysisTests1.setUp();
java.lang.String[] strArray28 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet29 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray28);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests30 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests30.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet29, (java.lang.Object) kuromojiAnalysisTests30);
org.apache.lucene.index.PostingsEnum postingsEnum35 = null;
org.apache.lucene.index.PostingsEnum postingsEnum36 = null;
kuromojiAnalysisTests30.assertDocsEnumEquals("tests.badapples", postingsEnum35, postingsEnum36, true);
org.junit.rules.TestRule testRule39 = kuromojiAnalysisTests30.ruleChain;
org.apache.lucene.index.IndexReader indexReader41 = null;
org.apache.lucene.index.PostingsEnum postingsEnum43 = null;
org.apache.lucene.index.PostingsEnum postingsEnum44 = null;
kuromojiAnalysisTests30.assertDocsSkippingEquals("tests.maxfailures", indexReader41, (int) (byte) 100, postingsEnum43, postingsEnum44, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests47 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader49 = null;
org.apache.lucene.index.Fields fields50 = null;
org.apache.lucene.index.Fields fields51 = null;
kuromojiAnalysisTests47.assertFieldsEquals("europarl.lines.txt.gz", indexReader49, fields50, fields51, false);
kuromojiAnalysisTests47.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain56 = kuromojiAnalysisTests47.failureAndSuccessEvents;
kuromojiAnalysisTests30.failureAndSuccessEvents = ruleChain56;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain56;
kuromojiAnalysisTests1.failureAndSuccessEvents = ruleChain56;
org.junit.Assert.assertNotNull((java.lang.Object) kuromojiAnalysisTests1);
org.apache.lucene.index.PostingsEnum postingsEnum62 = null;
org.apache.lucene.index.PostingsEnum postingsEnum63 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests1.assertDocsAndPositionsEnumEquals("tests.slow", postingsEnum62, postingsEnum63);
}
@Test
public void test2758() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2758");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals("tests.monster", (double) (-1), (double) (-1L), 10.0d);
}
@Test
public void test2759() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2759");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader11 = null;
org.apache.lucene.index.Terms terms12 = null;
org.apache.lucene.index.Terms terms13 = null;
kuromojiAnalysisTests1.assertTermsEquals("", indexReader11, terms12, terms13, false);
kuromojiAnalysisTests1.resetCheckIndexStatus();
kuromojiAnalysisTests1.ensureAllSearchContextsReleased();
kuromojiAnalysisTests1.setIndexWriterMaxDocs(0);
org.apache.lucene.index.IndexReader indexReader21 = null;
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
org.apache.lucene.index.PostingsEnum postingsEnum24 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.slow", indexReader21, (int) ' ', postingsEnum23, postingsEnum24);
org.junit.rules.RuleChain ruleChain26 = kuromojiAnalysisTests1.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain26;
java.lang.Object obj28 = null;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests30 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader32 = null;
org.apache.lucene.index.Fields fields33 = null;
org.apache.lucene.index.Fields fields34 = null;
kuromojiAnalysisTests30.assertFieldsEquals("europarl.lines.txt.gz", indexReader32, fields33, fields34, false);
kuromojiAnalysisTests30.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain39 = kuromojiAnalysisTests30.failureAndSuccessEvents;
kuromojiAnalysisTests30.resetCheckIndexStatus();
java.lang.String str41 = kuromojiAnalysisTests30.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests30);
kuromojiAnalysisTests30.tearDown();
kuromojiAnalysisTests30.overrideTestDefaultQueryCache();
org.junit.Assert.assertNotSame(obj28, (java.lang.Object) kuromojiAnalysisTests30);
org.junit.rules.RuleChain ruleChain46 = kuromojiAnalysisTests30.failureAndSuccessEvents;
org.apache.lucene.index.IndexReader indexReader48 = null;
org.apache.lucene.index.PostingsEnum postingsEnum50 = null;
org.apache.lucene.index.PostingsEnum postingsEnum51 = null;
kuromojiAnalysisTests30.assertDocsSkippingEquals("tests.maxfailures", indexReader48, 1, postingsEnum50, postingsEnum51, false);
org.apache.lucene.index.IndexReader indexReader55 = null;
org.apache.lucene.index.Terms terms56 = null;
org.apache.lucene.index.Terms terms57 = null;
kuromojiAnalysisTests30.assertTermsEquals("tests.nightly", indexReader55, terms56, terms57, false);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame("tests.badapples", (java.lang.Object) ruleChain26, (java.lang.Object) false);
}
@Test
public void test2760() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2760");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.awaitsfix", (float) 10L, (float) (short) 1, (float) 1L);
}
@Test
public void test2761() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2761");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests2 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader4 = null;
org.apache.lucene.index.Fields fields5 = null;
org.apache.lucene.index.Fields fields6 = null;
kuromojiAnalysisTests2.assertFieldsEquals("europarl.lines.txt.gz", indexReader4, fields5, fields6, false);
kuromojiAnalysisTests2.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests2.restoreIndexWriterMaxDocs();
org.apache.lucene.index.IndexReader indexReader13 = null;
org.apache.lucene.index.Terms terms14 = null;
org.apache.lucene.index.Terms terms15 = null;
kuromojiAnalysisTests2.assertTermsEquals("europarl.lines.txt.gz", indexReader13, terms14, terms15, true);
org.junit.Assert.assertNotNull("tests.nightly", (java.lang.Object) kuromojiAnalysisTests2);
java.util.Locale locale22 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale24 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale26 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale28 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale30 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray31 = new java.util.Locale[] { locale22, locale24, locale26, locale28, locale30 };
java.util.Set<java.util.Locale> localeSet32 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray31);
java.util.List<java.io.Serializable> serializableList33 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray31);
java.util.Set<java.lang.Cloneable> cloneableSet34 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray31);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray31, (java.lang.Object) (byte) -1);
java.util.Locale locale39 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale41 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale43 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale45 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale47 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray48 = new java.util.Locale[] { locale39, locale41, locale43, locale45, locale47 };
java.util.Set<java.util.Locale> localeSet49 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray48);
java.util.List<java.io.Serializable> serializableList50 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray48);
java.util.Set<java.lang.Cloneable> cloneableSet51 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray48);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray48, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray31, (java.lang.Object[]) localeArray48);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests55 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader57 = null;
org.apache.lucene.index.Fields fields58 = null;
org.apache.lucene.index.Fields fields59 = null;
kuromojiAnalysisTests55.assertFieldsEquals("europarl.lines.txt.gz", indexReader57, fields58, fields59, false);
org.apache.lucene.index.IndexReader indexReader63 = null;
org.apache.lucene.index.PostingsEnum postingsEnum65 = null;
org.apache.lucene.index.PostingsEnum postingsEnum66 = null;
kuromojiAnalysisTests55.assertPositionsSkippingEquals("tests.failfast", indexReader63, 1, postingsEnum65, postingsEnum66);
kuromojiAnalysisTests55.setIndexWriterMaxDocs(0);
kuromojiAnalysisTests55.ensureCleanedUp();
kuromojiAnalysisTests55.resetCheckIndexStatus();
org.junit.Assert.assertNotSame("tests.badapples", (java.lang.Object) localeArray48, (java.lang.Object) kuromojiAnalysisTests55);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("random", (java.lang.Object) kuromojiAnalysisTests2, (java.lang.Object) "tests.badapples");
}
@Test
public void test2762() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2762");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (short) 0, (double) '#', (double) (short) -1);
}
@Test
public void test2763() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2763");
short[] shortArray1 = null;
short[] shortArray6 = new short[] { (short) 10 };
short[] shortArray8 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray6, shortArray8);
short[] shortArray12 = new short[] { (short) 10 };
short[] shortArray14 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray12, shortArray14);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", shortArray8, shortArray14);
float[] floatArray25 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray32 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray25, floatArray32, (float) (byte) 100);
short[] shortArray38 = new short[] { (short) 10 };
short[] shortArray40 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray38, shortArray40);
short[] shortArray45 = new short[] { (short) 10 };
short[] shortArray47 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray45, shortArray47);
short[] shortArray51 = new short[] { (short) 10 };
short[] shortArray53 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray51, shortArray53);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray47, shortArray53);
org.junit.Assert.assertArrayEquals("tests.nightly", shortArray38, shortArray47);
org.junit.Assert.assertNotSame((java.lang.Object) (byte) 100, (java.lang.Object) shortArray38);
short[] shortArray60 = new short[] { (short) 10 };
short[] shortArray62 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray60, shortArray62);
short[] shortArray66 = new short[] { (short) 10 };
short[] shortArray68 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray66, shortArray68);
org.junit.Assert.assertArrayEquals(shortArray62, shortArray66);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", shortArray38, shortArray62);
org.junit.Assert.assertArrayEquals("<unknown>", shortArray8, shortArray62);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", shortArray1, shortArray8);
}
@Test
public void test2764() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2764");
java.util.concurrent.ExecutorService[] executorServiceArray1 = new java.util.concurrent.ExecutorService[] {};
boolean boolean2 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
boolean boolean3 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
boolean boolean4 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
java.lang.reflect.GenericDeclaration[][] genericDeclarationArray5 = new java.lang.reflect.GenericDeclaration[][] {};
java.util.Set<java.lang.reflect.GenericDeclaration[]> genericDeclarationArraySet6 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray5);
java.util.Set<java.lang.reflect.AnnotatedElement[]> annotatedElementArraySet7 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.reflect.AnnotatedElement[][]) genericDeclarationArray5);
org.junit.Assert.assertEquals((java.lang.Object[]) executorServiceArray1, (java.lang.Object[]) genericDeclarationArray5);
boolean boolean9 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
org.elasticsearch.index.analysis.KuromojiAnalysisTests[] kuromojiAnalysisTestsArray10 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests[] {};
org.elasticsearch.index.analysis.KuromojiAnalysisTests[] kuromojiAnalysisTestsArray11 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests[] {};
org.elasticsearch.index.analysis.KuromojiAnalysisTests[] kuromojiAnalysisTestsArray12 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests[] {};
org.elasticsearch.index.analysis.KuromojiAnalysisTests[] kuromojiAnalysisTestsArray13 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests[] {};
org.elasticsearch.index.analysis.KuromojiAnalysisTests[] kuromojiAnalysisTestsArray14 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests[] {};
org.elasticsearch.index.analysis.KuromojiAnalysisTests[][] kuromojiAnalysisTestsArray15 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests[][] { kuromojiAnalysisTestsArray10, kuromojiAnalysisTestsArray11, kuromojiAnalysisTestsArray12, kuromojiAnalysisTestsArray13, kuromojiAnalysisTestsArray14 };
java.util.Set<org.elasticsearch.index.analysis.KuromojiAnalysisTests[]> kuromojiAnalysisTestsArraySet16 = org.apache.lucene.util.LuceneTestCase.asSet(kuromojiAnalysisTestsArray15);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.failfast", (java.lang.Object[]) executorServiceArray1, (java.lang.Object[]) kuromojiAnalysisTestsArray15);
}
@Test
public void test2765() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2765");
java.lang.Object obj0 = null;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.failfast", indexReader9, 1, postingsEnum11, postingsEnum12);
kuromojiAnalysisTests1.setIndexWriterMaxDocs(0);
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.PostingsEnum postingsEnum19 = null;
org.apache.lucene.index.PostingsEnum postingsEnum20 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("", indexReader17, (int) (byte) 100, postingsEnum19, postingsEnum20);
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.overrideTestDefaultQueryCache();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame(obj0, (java.lang.Object) kuromojiAnalysisTests1);
}
@Test
public void test2766() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2766");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.failfast", indexReader8, 1, postingsEnum10, postingsEnum11);
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests0.tearDown();
kuromojiAnalysisTests0.resetCheckIndexStatus();
org.apache.lucene.index.PostingsEnum postingsEnum17 = null;
org.apache.lucene.index.PostingsEnum postingsEnum18 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("<unknown>", postingsEnum17, postingsEnum18);
}
@Test
public void test2767() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2767");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("<unknown>", (double) (byte) 0, 10.0d);
}
@Test
public void test2768() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2768");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertFalse("tests.badapples", true);
}
@Test
public void test2769() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2769");
java.lang.Object[] objArray0 = null;
int[] intArray5 = new int[] { (byte) -1, ' ', 100, (short) 1 };
int[] intArray10 = new int[] { (byte) -1, ' ', 100, (short) 1 };
int[][] intArray11 = new int[][] { intArray5, intArray10 };
java.util.Set<int[]> intArraySet12 = org.apache.lucene.util.LuceneTestCase.asSet(intArray11);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(objArray0, (java.lang.Object[]) intArray11);
}
@Test
public void test2770() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2770");
java.util.Locale locale4 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale6 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale8 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale10 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale12 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray13 = new java.util.Locale[] { locale4, locale6, locale8, locale10, locale12 };
java.util.Set<java.util.Locale> localeSet14 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray13);
java.util.List<java.io.Serializable> serializableList15 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray13);
java.util.Set<java.lang.Cloneable> cloneableSet16 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray13);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray13, (java.lang.Object) (byte) -1);
java.util.Locale locale21 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale23 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale25 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale27 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale29 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray30 = new java.util.Locale[] { locale21, locale23, locale25, locale27, locale29 };
java.util.Set<java.util.Locale> localeSet31 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray30);
java.util.Locale locale34 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale36 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale38 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale40 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale42 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray43 = new java.util.Locale[] { locale34, locale36, locale38, locale40, locale42 };
java.util.Set<java.util.Locale> localeSet44 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray43);
java.util.List<java.io.Serializable> serializableList45 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray43);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray30, (java.lang.Object[]) localeArray43);
java.util.Locale locale49 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale51 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale53 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale55 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale57 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray58 = new java.util.Locale[] { locale49, locale51, locale53, locale55, locale57 };
java.util.Set<java.util.Locale> localeSet59 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray58);
java.util.List<java.io.Serializable> serializableList60 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray58);
java.util.Set<java.lang.Cloneable> cloneableSet61 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray58);
org.junit.Assert.assertArrayEquals("tests.slow", (java.lang.Object[]) localeArray43, (java.lang.Object[]) localeArray58);
org.junit.Assert.assertArrayEquals("tests.awaitsfix", (java.lang.Object[]) localeArray13, (java.lang.Object[]) localeArray43);
java.util.Locale locale66 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale68 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale70 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale72 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale74 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray75 = new java.util.Locale[] { locale66, locale68, locale70, locale72, locale74 };
java.util.Set<java.util.Locale> localeSet76 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray75);
java.util.List<java.io.Serializable> serializableList77 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray75);
org.junit.Assert.assertNotNull((java.lang.Object) localeArray75);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray43, (java.lang.Object[]) localeArray75);
org.apache.lucene.store.MockDirectoryWrapper.Throttling throttling81 = org.apache.lucene.util.LuceneTestCase.TEST_THROTTLING;
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray82 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] { throttling81 };
java.util.List<org.apache.lucene.store.MockDirectoryWrapper.Throttling> throttlingList83 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, throttlingArray82);
java.util.Set<java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>> throttlingEnumSet84 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>[]) throttlingArray82);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.awaitsfix", (java.lang.Object[]) localeArray43, (java.lang.Object[]) throttlingArray82);
}
@Test
public void test2771() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2771");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests2 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.PostingsEnum postingsEnum4 = null;
org.apache.lucene.index.PostingsEnum postingsEnum5 = null;
kuromojiAnalysisTests2.assertDocsEnumEquals("", postingsEnum4, postingsEnum5, false);
org.junit.rules.TestRule testRule8 = kuromojiAnalysisTests2.ruleChain;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests9 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader11 = null;
org.apache.lucene.index.Fields fields12 = null;
org.apache.lucene.index.Fields fields13 = null;
kuromojiAnalysisTests9.assertFieldsEquals("europarl.lines.txt.gz", indexReader11, fields12, fields13, false);
kuromojiAnalysisTests9.ensureCleanedUp();
kuromojiAnalysisTests9.assertPathHasBeenCleared("tests.failfast");
kuromojiAnalysisTests9.tearDown();
org.junit.Assert.assertNotEquals("europarl.lines.txt.gz", (java.lang.Object) kuromojiAnalysisTests2, (java.lang.Object) kuromojiAnalysisTests9);
kuromojiAnalysisTests2.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
org.apache.lucene.index.PostingsEnum postingsEnum24 = null;
kuromojiAnalysisTests2.assertDocsEnumEquals("tests.weekly", postingsEnum23, postingsEnum24, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests27 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader29 = null;
org.apache.lucene.index.Fields fields30 = null;
org.apache.lucene.index.Fields fields31 = null;
kuromojiAnalysisTests27.assertFieldsEquals("europarl.lines.txt.gz", indexReader29, fields30, fields31, false);
kuromojiAnalysisTests27.ensureCleanedUp();
kuromojiAnalysisTests27.overrideTestDefaultQueryCache();
kuromojiAnalysisTests27.restoreIndexWriterMaxDocs();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("hi!", (java.lang.Object) "tests.weekly", (java.lang.Object) kuromojiAnalysisTests27);
}
@Test
public void test2772() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2772");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.resetCheckIndexStatus();
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.ensureCheckIndexPassed();
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
org.apache.lucene.index.IndexReader indexReader13 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
org.apache.lucene.index.PostingsEnum postingsEnum16 = null;
kuromojiAnalysisTests0.assertDocsSkippingEquals("tests.weekly", indexReader13, (int) (short) 100, postingsEnum15, postingsEnum16, true);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.maxfailures");
org.junit.rules.RuleChain ruleChain22 = kuromojiAnalysisTests0.failureAndSuccessEvents;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) ruleChain22);
}
@Test
public void test2773() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2773");
java.util.concurrent.ExecutorService executorService1 = null;
java.util.concurrent.ExecutorService[] executorServiceArray2 = new java.util.concurrent.ExecutorService[] { executorService1 };
boolean boolean3 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray2);
boolean boolean4 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray2);
double[] doubleArray11 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray16 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray11, doubleArray16, (double) (byte) 100);
double[] doubleArray25 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray30 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray25, doubleArray30, (double) (byte) 100);
double[] doubleArray38 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray43 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray38, doubleArray43, (double) (byte) 100);
org.junit.Assert.assertArrayEquals("", doubleArray25, doubleArray38, (double) 0);
org.junit.Assert.assertArrayEquals(doubleArray11, doubleArray25, (-1.0d));
double[] doubleArray56 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray61 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray56, doubleArray61, (double) (byte) 100);
double[] doubleArray69 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray74 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray69, doubleArray74, (double) (byte) 100);
org.junit.Assert.assertArrayEquals("", doubleArray56, doubleArray69, (double) 0);
org.junit.Assert.assertArrayEquals("random", doubleArray11, doubleArray69, (double) 10.0f);
org.junit.Assert.assertNotSame("tests.weekly", (java.lang.Object) executorServiceArray2, (java.lang.Object) "random");
boolean boolean82 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray2);
boolean boolean83 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray2);
boolean boolean84 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray2);
boolean boolean85 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray2);
boolean boolean86 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray2);
org.junit.rules.RuleChain[] ruleChainArray87 = new org.junit.rules.RuleChain[] {};
org.junit.rules.RuleChain[][] ruleChainArray88 = new org.junit.rules.RuleChain[][] { ruleChainArray87 };
java.util.Set<org.junit.rules.RuleChain[]> ruleChainArraySet89 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray88);
java.util.Set<org.junit.rules.TestRule[]> testRuleArraySet90 = org.apache.lucene.util.LuceneTestCase.asSet((org.junit.rules.TestRule[][]) ruleChainArray88);
// during test generation this statement threw an exception of type org.junit.internal.ArrayComparisonFailure in error
org.junit.Assert.assertEquals((java.lang.Object[]) executorServiceArray2, (java.lang.Object[]) ruleChainArray88);
}
@Test
public void test2774() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2774");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("europarl.lines.txt.gz", (double) 0.0f, (double) 1);
}
@Test
public void test2775() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2775");
int[] intArray3 = new int[] { (byte) 100, '4' };
int[] intArray6 = new int[] { '#' };
int[] intArray8 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray6, intArray8);
int[] intArray13 = new int[] { '#' };
int[] intArray15 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray13, intArray15);
int[] intArray18 = new int[] { '#' };
int[] intArray20 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray18, intArray20);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray13, intArray18);
int[] intArray25 = new int[] { '#' };
int[] intArray27 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray25, intArray27);
int[] intArray30 = new int[] { '#' };
int[] intArray32 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray30, intArray32);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray25, intArray30);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", intArray13, intArray30);
int[] intArray37 = new int[] { '#' };
int[] intArray39 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray37, intArray39);
org.junit.Assert.assertArrayEquals(intArray30, intArray39);
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", intArray6, intArray30);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.nightly", intArray3, intArray6);
}
@Test
public void test2776() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2776");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (byte) 100, (double) 0.0f);
}
@Test
public void test2777() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2777");
java.util.Locale locale2 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale4 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale6 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray7 = new java.util.Locale[] { locale2, locale4, locale6 };
java.util.Locale locale9 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale11 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale13 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray14 = new java.util.Locale[] { locale9, locale11, locale13 };
java.util.Locale locale16 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale18 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale20 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray21 = new java.util.Locale[] { locale16, locale18, locale20 };
java.util.Locale locale23 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale25 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale27 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray28 = new java.util.Locale[] { locale23, locale25, locale27 };
java.util.Locale locale30 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale32 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale34 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray35 = new java.util.Locale[] { locale30, locale32, locale34 };
java.util.Locale locale37 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale39 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale41 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray42 = new java.util.Locale[] { locale37, locale39, locale41 };
java.util.Locale[][] localeArray43 = new java.util.Locale[][] { localeArray7, localeArray14, localeArray21, localeArray28, localeArray35, localeArray42 };
java.util.Set<java.util.Locale[]> localeArraySet44 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray43);
double[] doubleArray50 = new double[] { 1.0d, 10.0f, (byte) 100, (short) 1, 10 };
double[] doubleArray56 = new double[] { 1.0d, 10.0f, (byte) 100, (short) 1, 10 };
double[][] doubleArray57 = new double[][] { doubleArray50, doubleArray56 };
double[] doubleArray63 = new double[] { 1.0d, 10.0f, (byte) 100, (short) 1, 10 };
double[] doubleArray69 = new double[] { 1.0d, 10.0f, (byte) 100, (short) 1, 10 };
double[][] doubleArray70 = new double[][] { doubleArray63, doubleArray69 };
double[] doubleArray76 = new double[] { 1.0d, 10.0f, (byte) 100, (short) 1, 10 };
double[] doubleArray82 = new double[] { 1.0d, 10.0f, (byte) 100, (short) 1, 10 };
double[][] doubleArray83 = new double[][] { doubleArray76, doubleArray82 };
double[] doubleArray89 = new double[] { 1.0d, 10.0f, (byte) 100, (short) 1, 10 };
double[] doubleArray95 = new double[] { 1.0d, 10.0f, (byte) 100, (short) 1, 10 };
double[][] doubleArray96 = new double[][] { doubleArray89, doubleArray95 };
double[][][] doubleArray97 = new double[][][] { doubleArray57, doubleArray70, doubleArray83, doubleArray96 };
java.util.Set<double[][]> doubleArraySet98 = org.apache.lucene.util.LuceneTestCase.asSet(doubleArray97);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.failfast", (java.lang.Object[]) localeArray43, (java.lang.Object[]) doubleArray97);
}
@Test
public void test2778() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2778");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("", (long) (short) 10, (long) 4);
}
@Test
public void test2779() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2779");
float[] floatArray0 = null;
float[] floatArray9 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray16 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray9, floatArray16, (float) (byte) 100);
float[] floatArray27 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray34 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray27, floatArray34, (float) (byte) 100);
float[] floatArray44 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray51 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray44, floatArray51, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray27, floatArray44, (float) (-1));
org.junit.Assert.assertArrayEquals(floatArray9, floatArray44, (float) 1L);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests58 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader60 = null;
org.apache.lucene.index.Fields fields61 = null;
org.apache.lucene.index.Fields fields62 = null;
kuromojiAnalysisTests58.assertFieldsEquals("europarl.lines.txt.gz", indexReader60, fields61, fields62, false);
kuromojiAnalysisTests58.ensureCleanedUp();
kuromojiAnalysisTests58.resetCheckIndexStatus();
org.junit.rules.TestRule testRule67 = kuromojiAnalysisTests58.ruleChain;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests68 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader70 = null;
org.apache.lucene.index.Fields fields71 = null;
org.apache.lucene.index.Fields fields72 = null;
kuromojiAnalysisTests68.assertFieldsEquals("europarl.lines.txt.gz", indexReader70, fields71, fields72, false);
kuromojiAnalysisTests68.ensureCleanedUp();
kuromojiAnalysisTests68.ensureCleanedUp();
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests58, (java.lang.Object) kuromojiAnalysisTests68);
org.apache.lucene.index.IndexReader indexReader79 = null;
org.apache.lucene.index.PostingsEnum postingsEnum81 = null;
org.apache.lucene.index.PostingsEnum postingsEnum82 = null;
kuromojiAnalysisTests68.assertPositionsSkippingEquals("tests.slow", indexReader79, (-1), postingsEnum81, postingsEnum82);
org.junit.Assert.assertNotEquals("tests.weekly", (java.lang.Object) floatArray44, (java.lang.Object) kuromojiAnalysisTests68);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(floatArray0, floatArray44, 100.0f);
}
@Test
public void test2780() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2780");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (short) -1, (double) 2, (double) (-1));
}
@Test
public void test2781() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2781");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((float) (byte) 1, (float) '#', (float) 3);
}
@Test
public void test2782() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2782");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests2 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader4 = null;
org.apache.lucene.index.Fields fields5 = null;
org.apache.lucene.index.Fields fields6 = null;
kuromojiAnalysisTests2.assertFieldsEquals("europarl.lines.txt.gz", indexReader4, fields5, fields6, false);
kuromojiAnalysisTests2.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain11 = kuromojiAnalysisTests2.failureAndSuccessEvents;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests12 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.Fields fields15 = null;
org.apache.lucene.index.Fields fields16 = null;
kuromojiAnalysisTests12.assertFieldsEquals("europarl.lines.txt.gz", indexReader14, fields15, fields16, false);
kuromojiAnalysisTests12.ensureCleanedUp();
kuromojiAnalysisTests12.resetCheckIndexStatus();
org.junit.rules.TestRule testRule21 = kuromojiAnalysisTests12.ruleChain;
org.junit.Assert.assertNotSame("hi!", (java.lang.Object) kuromojiAnalysisTests2, (java.lang.Object) testRule21);
kuromojiAnalysisTests2.setIndexWriterMaxDocs((int) (byte) 0);
org.junit.rules.TestRule testRule25 = kuromojiAnalysisTests2.ruleChain;
java.lang.Object obj26 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame("<unknown>", (java.lang.Object) testRule25, obj26);
}
@Test
public void test2783() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2783");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) 100.0f, (double) (-1.0f), (double) ' ');
}
@Test
public void test2784() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2784");
float[] floatArray2 = new float[] { (short) 1 };
float[] floatArray12 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray19 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray12, floatArray19, (float) (byte) 100);
float[] floatArray29 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray36 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray29, floatArray36, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray12, floatArray29, (float) (-1));
float[] floatArray48 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray55 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray48, floatArray55, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("", floatArray29, floatArray48, (float) (-1L));
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.slow", floatArray2, floatArray29, (float) (byte) 1);
}
@Test
public void test2785() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2785");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.maxfailures", (double) (-1L), (double) (-1));
}
@Test
public void test2786() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2786");
java.lang.Object[] objArray1 = null;
java.lang.reflect.GenericDeclaration[] genericDeclarationArray2 = new java.lang.reflect.GenericDeclaration[] {};
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet3 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray2);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("enwiki.random.lines.txt", objArray1, (java.lang.Object[]) genericDeclarationArray2);
}
@Test
public void test2787() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2787");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.monster", (float) 10L, (float) '#', (float) (byte) -1);
}
@Test
public void test2788() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2788");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.awaitsfix", 0.0d, (double) (byte) 100);
}
@Test
public void test2789() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2789");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) 1L, (double) (short) 10);
}
@Test
public void test2790() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2790");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.failfast", indexReader8, 1, postingsEnum10, postingsEnum11);
kuromojiAnalysisTests0.setIndexWriterMaxDocs(0);
kuromojiAnalysisTests0.ensureCleanedUp();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests16 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader18 = null;
org.apache.lucene.index.Fields fields19 = null;
org.apache.lucene.index.Fields fields20 = null;
kuromojiAnalysisTests16.assertFieldsEquals("europarl.lines.txt.gz", indexReader18, fields19, fields20, false);
kuromojiAnalysisTests16.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain25 = kuromojiAnalysisTests16.failureAndSuccessEvents;
kuromojiAnalysisTests16.setUp();
java.util.Locale locale29 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale31 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale33 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale35 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale37 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray38 = new java.util.Locale[] { locale29, locale31, locale33, locale35, locale37 };
java.util.Set<java.util.Locale> localeSet39 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray38);
java.util.Locale locale42 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale44 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale46 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale48 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale50 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray51 = new java.util.Locale[] { locale42, locale44, locale46, locale48, locale50 };
java.util.Set<java.util.Locale> localeSet52 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray51);
java.util.List<java.io.Serializable> serializableList53 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray51);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray38, (java.lang.Object[]) localeArray51);
java.util.Locale locale57 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale59 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale61 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale63 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale65 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray66 = new java.util.Locale[] { locale57, locale59, locale61, locale63, locale65 };
java.util.Set<java.util.Locale> localeSet67 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray66);
java.util.List<java.io.Serializable> serializableList68 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray66);
java.util.Set<java.lang.Cloneable> cloneableSet69 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray66);
org.junit.Assert.assertArrayEquals("tests.slow", (java.lang.Object[]) localeArray51, (java.lang.Object[]) localeArray66);
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests16, (java.lang.Object) localeArray66);
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests0, (java.lang.Object) kuromojiAnalysisTests16);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests74 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader76 = null;
org.apache.lucene.index.Fields fields77 = null;
org.apache.lucene.index.Fields fields78 = null;
kuromojiAnalysisTests74.assertFieldsEquals("europarl.lines.txt.gz", indexReader76, fields77, fields78, false);
kuromojiAnalysisTests74.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain83 = kuromojiAnalysisTests74.failureAndSuccessEvents;
kuromojiAnalysisTests74.resetCheckIndexStatus();
kuromojiAnalysisTests74.restoreIndexWriterMaxDocs();
org.junit.rules.TestRule testRule86 = kuromojiAnalysisTests74.ruleChain;
org.junit.Assert.assertNotNull((java.lang.Object) kuromojiAnalysisTests74);
org.junit.rules.RuleChain ruleChain88 = kuromojiAnalysisTests74.failureAndSuccessEvents;
org.junit.Assert.assertNotNull("enwiki.random.lines.txt", (java.lang.Object) ruleChain88);
kuromojiAnalysisTests0.failureAndSuccessEvents = ruleChain88;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertPathHasBeenCleared("");
}
@Test
public void test2791() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2791");
long[] longArray0 = null;
long[] longArray3 = new long[] { 1 };
long[] longArray5 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray3, longArray5);
long[] longArray11 = new long[] { 1 };
long[] longArray13 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray11, longArray13);
long[] longArray17 = new long[] { 1 };
long[] longArray19 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray17, longArray19);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray13, longArray17);
long[] longArray24 = new long[] { 1 };
long[] longArray26 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray24, longArray26);
org.junit.Assert.assertArrayEquals("hi!", longArray17, longArray24);
org.junit.Assert.assertArrayEquals(longArray5, longArray17);
long[] longArray32 = new long[] { 1 };
long[] longArray34 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray32, longArray34);
long[] longArray40 = new long[] { 1 };
long[] longArray42 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray40, longArray42);
long[] longArray46 = new long[] { 1 };
long[] longArray48 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray46, longArray48);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray42, longArray46);
long[] longArray53 = new long[] { 1 };
long[] longArray55 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray53, longArray55);
org.junit.Assert.assertArrayEquals("hi!", longArray46, longArray53);
org.junit.Assert.assertArrayEquals(longArray34, longArray46);
org.junit.Assert.assertArrayEquals(longArray5, longArray46);
long[] longArray63 = new long[] { 1 };
long[] longArray65 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray63, longArray65);
long[] longArray69 = new long[] { 1 };
long[] longArray71 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray69, longArray71);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray65, longArray69);
long[] longArray77 = new long[] { 1 };
long[] longArray79 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray77, longArray79);
long[] longArray84 = new long[] { 1 };
long[] longArray86 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray84, longArray86);
long[] longArray90 = new long[] { 1 };
long[] longArray92 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray90, longArray92);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray86, longArray90);
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", longArray77, longArray90);
org.junit.Assert.assertArrayEquals(longArray65, longArray77);
org.junit.Assert.assertArrayEquals(longArray5, longArray65);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(longArray0, longArray65);
}
@Test
public void test2792() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2792");
java.util.Locale locale3 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale5 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale7 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale9 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale11 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray12 = new java.util.Locale[] { locale3, locale5, locale7, locale9, locale11 };
java.util.Set<java.util.Locale> localeSet13 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray12);
java.util.List<java.io.Serializable> serializableList14 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray12);
java.util.Set<java.lang.Cloneable> cloneableSet15 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray12);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray12, (java.lang.Object) (byte) -1);
java.util.Locale locale20 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale22 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale24 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale26 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale28 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray29 = new java.util.Locale[] { locale20, locale22, locale24, locale26, locale28 };
java.util.Set<java.util.Locale> localeSet30 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray29);
java.util.List<java.io.Serializable> serializableList31 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray29);
java.util.Set<java.lang.Cloneable> cloneableSet32 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray29);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray29, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray12, (java.lang.Object[]) localeArray29);
java.util.concurrent.ExecutorService[][][] executorServiceArray36 = new java.util.concurrent.ExecutorService[][][] {};
java.util.concurrent.ExecutorService[][][] executorServiceArray37 = new java.util.concurrent.ExecutorService[][][] {};
java.util.concurrent.ExecutorService[][][] executorServiceArray38 = new java.util.concurrent.ExecutorService[][][] {};
java.util.concurrent.ExecutorService[][][] executorServiceArray39 = new java.util.concurrent.ExecutorService[][][] {};
java.util.concurrent.ExecutorService[][][] executorServiceArray40 = new java.util.concurrent.ExecutorService[][][] {};
java.util.concurrent.ExecutorService[][][][] executorServiceArray41 = new java.util.concurrent.ExecutorService[][][][] { executorServiceArray36, executorServiceArray37, executorServiceArray38, executorServiceArray39, executorServiceArray40 };
java.util.Set<java.util.concurrent.ExecutorService[][][]> executorServiceArraySet42 = org.apache.lucene.util.LuceneTestCase.asSet(executorServiceArray41);
// during test generation this statement threw an exception of type org.junit.internal.ArrayComparisonFailure in error
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", (java.lang.Object[]) localeArray29, (java.lang.Object[]) executorServiceArray41);
}
@Test
public void test2793() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2793");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.overrideTestDefaultQueryCache();
kuromojiAnalysisTests0.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
kuromojiAnalysisTests0.assertDocsSkippingEquals("tests.slow", indexReader11, (int) (short) -1, postingsEnum13, postingsEnum14, false);
org.apache.lucene.index.IndexReader indexReader18 = null;
org.apache.lucene.index.PostingsEnum postingsEnum20 = null;
org.apache.lucene.index.PostingsEnum postingsEnum21 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("", indexReader18, (int) '4', postingsEnum20, postingsEnum21);
java.lang.Object obj24 = new java.lang.Object();
org.junit.Assert.assertNotNull("hi!", obj24);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame((java.lang.Object) '4', (java.lang.Object) "hi!");
}
@Test
public void test2794() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2794");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain9 = kuromojiAnalysisTests0.failureAndSuccessEvents;
kuromojiAnalysisTests0.resetCheckIndexStatus();
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests0.tearDown();
org.apache.lucene.index.NumericDocValues numericDocValues15 = null;
org.apache.lucene.index.NumericDocValues numericDocValues16 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("tests.nightly", (int) (byte) 0, numericDocValues15, numericDocValues16);
}
@Test
public void test2795() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2795");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals((double) 'a', (double) 10L, (double) (byte) 100);
}
@Test
public void test2796() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2796");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.failfast", (double) (short) 10, (double) (byte) -1);
}
@Test
public void test2797() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2797");
short[] shortArray0 = null;
short[] shortArray4 = new short[] { (short) 10 };
short[] shortArray6 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray4, shortArray6);
short[] shortArray10 = new short[] { (short) 10 };
short[] shortArray12 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray10, shortArray12);
org.junit.Assert.assertArrayEquals(shortArray6, shortArray10);
short[] shortArray18 = new short[] { (short) 10 };
short[] shortArray20 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray18, shortArray20);
short[] shortArray25 = new short[] { (short) 10 };
short[] shortArray27 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray25, shortArray27);
short[] shortArray31 = new short[] { (short) 10 };
short[] shortArray33 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray31, shortArray33);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray27, shortArray33);
org.junit.Assert.assertArrayEquals(shortArray20, shortArray33);
short[] shortArray40 = new short[] { (short) 10 };
short[] shortArray42 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray40, shortArray42);
short[] shortArray46 = new short[] { (short) 10 };
short[] shortArray48 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray46, shortArray48);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray42, shortArray48);
org.junit.Assert.assertArrayEquals(shortArray20, shortArray48);
short[] shortArray56 = new short[] { (short) 10 };
short[] shortArray58 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray56, shortArray58);
short[] shortArray62 = new short[] { (short) 10 };
short[] shortArray64 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray62, shortArray64);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray58, shortArray64);
short[] shortArray70 = new short[] { (short) 10 };
short[] shortArray72 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray70, shortArray72);
short[] shortArray76 = new short[] { (short) 10 };
short[] shortArray78 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray76, shortArray78);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", shortArray72, shortArray78);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray58, shortArray78);
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", shortArray48, shortArray58);
org.junit.Assert.assertArrayEquals(shortArray10, shortArray58);
short[] shortArray87 = new short[] { (short) 10 };
short[] shortArray89 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray87, shortArray89);
short[] shortArray93 = new short[] { (short) 10 };
short[] shortArray95 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray93, shortArray95);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray89, shortArray95);
org.junit.Assert.assertArrayEquals("", shortArray58, shortArray89);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(shortArray0, shortArray89);
}
@Test
public void test2798() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2798");
short[] shortArray3 = new short[] { (short) 10 };
short[] shortArray5 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray3, shortArray5);
short[] shortArray9 = new short[] { (short) 10 };
short[] shortArray11 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray9, shortArray11);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray5, shortArray11);
short[] shortArray17 = new short[] { (short) 10 };
short[] shortArray19 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray17, shortArray19);
short[] shortArray24 = new short[] { (short) 10 };
short[] shortArray26 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray24, shortArray26);
short[] shortArray30 = new short[] { (short) 10 };
short[] shortArray32 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray30, shortArray32);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray26, shortArray32);
org.junit.Assert.assertArrayEquals("tests.nightly", shortArray17, shortArray26);
org.junit.Assert.assertArrayEquals(shortArray11, shortArray26);
short[] shortArray40 = new short[] { (short) 10 };
short[] shortArray42 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray40, shortArray42);
short[] shortArray46 = new short[] { (short) 10 };
short[] shortArray48 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray46, shortArray48);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", shortArray42, shortArray48);
short[] shortArray54 = new short[] { (short) 10 };
short[] shortArray56 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray54, shortArray56);
short[] shortArray60 = new short[] { (short) 10 };
short[] shortArray62 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray60, shortArray62);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray56, shortArray62);
org.junit.Assert.assertArrayEquals(shortArray48, shortArray56);
org.junit.Assert.assertArrayEquals(shortArray11, shortArray48);
short[] shortArray69 = new short[] { (byte) 1, (byte) -1 };
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(shortArray11, shortArray69);
}
@Test
public void test2799() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2799");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((long) (byte) 1, (long) 4);
}
@Test
public void test2800() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2800");
java.util.Locale locale2 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale4 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale6 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray7 = new java.util.Locale[] { locale2, locale4, locale6 };
java.util.Locale locale9 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale11 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale13 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray14 = new java.util.Locale[] { locale9, locale11, locale13 };
java.util.Locale locale16 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale18 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale20 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray21 = new java.util.Locale[] { locale16, locale18, locale20 };
java.util.Locale locale23 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale25 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale27 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray28 = new java.util.Locale[] { locale23, locale25, locale27 };
java.util.Locale locale30 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale32 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale34 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray35 = new java.util.Locale[] { locale30, locale32, locale34 };
java.util.Locale locale37 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale39 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale41 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray42 = new java.util.Locale[] { locale37, locale39, locale41 };
java.util.Locale[][] localeArray43 = new java.util.Locale[][] { localeArray7, localeArray14, localeArray21, localeArray28, localeArray35, localeArray42 };
java.util.Set<java.util.Locale[]> localeArraySet44 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray43);
java.util.List<java.util.Locale[]> localeArrayList45 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, localeArray43);
java.lang.Object[] objArray46 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object[]) localeArray43, objArray46);
}
@Test
public void test2801() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2801");
org.apache.lucene.search.QueryCachingPolicy queryCachingPolicy0 = org.apache.lucene.util.LuceneTestCase.MAYBE_CACHE_POLICY;
java.lang.Class<?> wildcardClass1 = queryCachingPolicy0.getClass();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) queryCachingPolicy0);
}
@Test
public void test2802() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2802");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.resetCheckIndexStatus();
java.lang.String str12 = kuromojiAnalysisTests1.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests1);
kuromojiAnalysisTests1.tearDown();
kuromojiAnalysisTests1.setUp();
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.PostingsEnum postingsEnum19 = null;
org.apache.lucene.index.PostingsEnum postingsEnum20 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("", indexReader17, (int) '#', postingsEnum19, postingsEnum20);
org.apache.lucene.index.NumericDocValues numericDocValues24 = null;
org.apache.lucene.index.NumericDocValues numericDocValues25 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests1.assertDocValuesEquals("tests.slow", 0, numericDocValues24, numericDocValues25);
}
@Test
public void test2803() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2803");
java.lang.reflect.GenericDeclaration[][] genericDeclarationArray1 = new java.lang.reflect.GenericDeclaration[][] {};
java.util.Set<java.lang.reflect.GenericDeclaration[]> genericDeclarationArraySet2 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray1);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests3 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader5 = null;
org.apache.lucene.index.Fields fields6 = null;
org.apache.lucene.index.Fields fields7 = null;
kuromojiAnalysisTests3.assertFieldsEquals("europarl.lines.txt.gz", indexReader5, fields6, fields7, false);
org.apache.lucene.index.IndexReader indexReader11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
kuromojiAnalysisTests3.assertPositionsSkippingEquals("tests.failfast", indexReader11, 1, postingsEnum13, postingsEnum14);
kuromojiAnalysisTests3.setIndexWriterMaxDocs(0);
kuromojiAnalysisTests3.ensureCleanedUp();
kuromojiAnalysisTests3.resetCheckIndexStatus();
kuromojiAnalysisTests3.restoreIndexWriterMaxDocs();
org.apache.lucene.index.IndexReader indexReader22 = null;
org.apache.lucene.index.Fields fields23 = null;
org.apache.lucene.index.Fields fields24 = null;
kuromojiAnalysisTests3.assertFieldsEquals("enwiki.random.lines.txt", indexReader22, fields23, fields24, false);
org.apache.lucene.index.IndexReader indexReader28 = null;
org.apache.lucene.index.PostingsEnum postingsEnum30 = null;
org.apache.lucene.index.PostingsEnum postingsEnum31 = null;
kuromojiAnalysisTests3.assertDocsSkippingEquals("tests.weekly", indexReader28, (int) (byte) 0, postingsEnum30, postingsEnum31, true);
org.junit.Assert.assertNotSame("tests.weekly", (java.lang.Object) genericDeclarationArray1, (java.lang.Object) "tests.weekly");
java.util.concurrent.ExecutorService[] executorServiceArray35 = new java.util.concurrent.ExecutorService[] {};
boolean boolean36 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray35);
org.junit.Assert.assertEquals((java.lang.Object[]) genericDeclarationArray1, (java.lang.Object[]) executorServiceArray35);
int[] intArray42 = new int[] { (short) -1, (short) 10, (short) 10, (byte) -1 };
int[] intArray47 = new int[] { (short) -1, (short) 10, (short) 10, (byte) -1 };
int[] intArray52 = new int[] { (short) -1, (short) 10, (short) 10, (byte) -1 };
int[] intArray57 = new int[] { (short) -1, (short) 10, (short) 10, (byte) -1 };
int[] intArray62 = new int[] { (short) -1, (short) 10, (short) 10, (byte) -1 };
int[][] intArray63 = new int[][] { intArray42, intArray47, intArray52, intArray57, intArray62 };
java.util.Set<int[]> intArraySet64 = org.apache.lucene.util.LuceneTestCase.asSet(intArray63);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals((java.lang.Object[]) genericDeclarationArray1, (java.lang.Object[]) intArray63);
}
@Test
public void test2804() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2804");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.overrideTestDefaultQueryCache();
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests0.ensureCleanedUp();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) kuromojiAnalysisTests0);
}
@Test
public void test2805() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2805");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain9 = kuromojiAnalysisTests0.failureAndSuccessEvents;
kuromojiAnalysisTests0.resetCheckIndexStatus();
kuromojiAnalysisTests0.assertPathHasBeenCleared("random");
kuromojiAnalysisTests0.tearDown();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests14 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader16 = null;
org.apache.lucene.index.Fields fields17 = null;
org.apache.lucene.index.Fields fields18 = null;
kuromojiAnalysisTests14.assertFieldsEquals("europarl.lines.txt.gz", indexReader16, fields17, fields18, false);
org.apache.lucene.index.IndexReader indexReader22 = null;
org.apache.lucene.index.PostingsEnum postingsEnum24 = null;
org.apache.lucene.index.PostingsEnum postingsEnum25 = null;
kuromojiAnalysisTests14.assertPositionsSkippingEquals("tests.failfast", indexReader22, 1, postingsEnum24, postingsEnum25);
org.apache.lucene.index.IndexReader indexReader28 = null;
org.apache.lucene.index.Fields fields29 = null;
org.apache.lucene.index.Fields fields30 = null;
kuromojiAnalysisTests14.assertFieldsEquals("tests.slow", indexReader28, fields29, fields30, true);
org.junit.rules.TestRule testRule33 = kuromojiAnalysisTests14.ruleChain;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests34 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader36 = null;
org.apache.lucene.index.Fields fields37 = null;
org.apache.lucene.index.Fields fields38 = null;
kuromojiAnalysisTests34.assertFieldsEquals("europarl.lines.txt.gz", indexReader36, fields37, fields38, false);
java.lang.String[] strArray48 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet49 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray48);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests50 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests50.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet49, (java.lang.Object) kuromojiAnalysisTests50);
org.apache.lucene.index.PostingsEnum postingsEnum55 = null;
org.apache.lucene.index.PostingsEnum postingsEnum56 = null;
kuromojiAnalysisTests50.assertDocsEnumEquals("tests.badapples", postingsEnum55, postingsEnum56, true);
org.junit.rules.TestRule testRule59 = kuromojiAnalysisTests50.ruleChain;
org.apache.lucene.index.IndexReader indexReader61 = null;
org.apache.lucene.index.PostingsEnum postingsEnum63 = null;
org.apache.lucene.index.PostingsEnum postingsEnum64 = null;
kuromojiAnalysisTests50.assertDocsSkippingEquals("tests.maxfailures", indexReader61, (int) (byte) 100, postingsEnum63, postingsEnum64, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests67 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader69 = null;
org.apache.lucene.index.Fields fields70 = null;
org.apache.lucene.index.Fields fields71 = null;
kuromojiAnalysisTests67.assertFieldsEquals("europarl.lines.txt.gz", indexReader69, fields70, fields71, false);
kuromojiAnalysisTests67.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain76 = kuromojiAnalysisTests67.failureAndSuccessEvents;
kuromojiAnalysisTests50.failureAndSuccessEvents = ruleChain76;
kuromojiAnalysisTests34.failureAndSuccessEvents = ruleChain76;
kuromojiAnalysisTests14.failureAndSuccessEvents = ruleChain76;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain76;
kuromojiAnalysisTests0.failureAndSuccessEvents = ruleChain76;
kuromojiAnalysisTests0.assertPathHasBeenCleared("enwiki.random.lines.txt");
org.apache.lucene.index.PostingsEnum postingsEnum85 = null;
org.apache.lucene.index.PostingsEnum postingsEnum86 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("random", postingsEnum85, postingsEnum86);
}
@Test
public void test2806() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2806");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
org.junit.rules.TestRule testRule9 = kuromojiAnalysisTests0.ruleChain;
org.junit.rules.TestRule testRule10 = kuromojiAnalysisTests0.ruleChain;
org.apache.lucene.index.IndexReader indexReader12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.slow", indexReader12, (int) (short) 1, postingsEnum14, postingsEnum15);
org.junit.rules.TestRule testRule17 = kuromojiAnalysisTests0.ruleChain;
org.apache.lucene.index.IndexReader indexReader19 = null;
org.apache.lucene.index.Terms terms20 = null;
org.apache.lucene.index.Terms terms21 = null;
kuromojiAnalysisTests0.assertTermsEquals("", indexReader19, terms20, terms21, false);
kuromojiAnalysisTests0.tearDown();
org.junit.rules.RuleChain ruleChain25 = null;
kuromojiAnalysisTests0.failureAndSuccessEvents = ruleChain25;
org.apache.lucene.index.PostingsEnum postingsEnum28 = null;
org.apache.lucene.index.PostingsEnum postingsEnum29 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("tests.nightly", postingsEnum28, postingsEnum29);
}
@Test
public void test2807() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2807");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(100.0f, (float) 10L, (float) ' ');
}
@Test
public void test2808() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2808");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain9 = kuromojiAnalysisTests0.failureAndSuccessEvents;
kuromojiAnalysisTests0.resetCheckIndexStatus();
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
org.junit.rules.TestRule testRule12 = kuromojiAnalysisTests0.ruleChain;
org.apache.lucene.index.NumericDocValues numericDocValues15 = null;
org.apache.lucene.index.NumericDocValues numericDocValues16 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("<unknown>", (int) ' ', numericDocValues15, numericDocValues16);
}
@Test
public void test2809() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2809");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((float) (-1), (float) 10L, (float) (byte) -1);
}
@Test
public void test2810() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2810");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((float) ' ', 0.0f, (float) 10);
}
@Test
public void test2811() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2811");
byte[] byteArray1 = null;
byte[] byteArray3 = new byte[] {};
byte[] byteArray4 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray3, byteArray4);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("<unknown>", byteArray1, byteArray3);
}
@Test
public void test2812() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2812");
float[] floatArray0 = null;
float[] floatArray9 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray16 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray9, floatArray16, (float) (byte) 100);
float[] floatArray26 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray33 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray26, floatArray33, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray9, floatArray26, (float) (-1));
float[] floatArray46 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray53 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray46, floatArray53, (float) (byte) 100);
float[] floatArray63 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray70 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray63, floatArray70, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray46, floatArray63, (float) (-1));
org.junit.Assert.assertArrayEquals(floatArray26, floatArray63, (float) 1);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(floatArray0, floatArray26, 1.0f);
}
@Test
public void test2813() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2813");
java.lang.String[] strArray1 = new java.lang.String[] {};
java.lang.String[] strArray2 = new java.lang.String[] {};
java.lang.String[] strArray3 = new java.lang.String[] {};
java.lang.String[] strArray4 = new java.lang.String[] {};
java.lang.String[][] strArray5 = new java.lang.String[][] { strArray1, strArray2, strArray3, strArray4 };
java.util.Set<java.lang.String[]> strArraySet6 = org.apache.lucene.util.LuceneTestCase.asSet(strArray5);
java.util.List<java.lang.String[]> strArrayList7 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, strArray5);
org.junit.rules.RuleChain[] ruleChainArray8 = new org.junit.rules.RuleChain[] {};
org.junit.rules.RuleChain[][] ruleChainArray9 = new org.junit.rules.RuleChain[][] { ruleChainArray8 };
java.util.Set<org.junit.rules.RuleChain[]> ruleChainArraySet10 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray9);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object[]) strArray5, (java.lang.Object[]) ruleChainArray9);
}
@Test
public void test2814() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2814");
byte[] byteArray1 = null;
byte[] byteArray3 = new byte[] {};
byte[] byteArray4 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray3, byteArray4);
byte[] byteArray7 = new byte[] {};
byte[] byteArray8 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray7, byteArray8);
byte[] byteArray11 = new byte[] {};
byte[] byteArray12 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray11, byteArray12);
byte[] byteArray15 = new byte[] {};
byte[] byteArray16 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray15, byteArray16);
org.junit.Assert.assertArrayEquals(byteArray12, byteArray16);
org.junit.Assert.assertArrayEquals(byteArray8, byteArray12);
org.junit.Assert.assertArrayEquals(byteArray3, byteArray12);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.slow", byteArray1, byteArray12);
}
@Test
public void test2815() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2815");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("hi!", indexReader9, (int) (byte) 0, postingsEnum11, postingsEnum12);
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Terms terms16 = null;
org.apache.lucene.index.Terms terms17 = null;
kuromojiAnalysisTests1.assertTermsEquals("random", indexReader15, terms16, terms17, true);
kuromojiAnalysisTests1.setUp();
kuromojiAnalysisTests1.setIndexWriterMaxDocs((-1));
kuromojiAnalysisTests1.setIndexWriterMaxDocs((int) 'a');
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.badapples");
org.apache.lucene.index.IndexReader indexReader28 = null;
org.apache.lucene.index.PostingsEnum postingsEnum30 = null;
org.apache.lucene.index.PostingsEnum postingsEnum31 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("random", indexReader28, (int) (short) 10, postingsEnum30, postingsEnum31);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests33 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader35 = null;
org.apache.lucene.index.Fields fields36 = null;
org.apache.lucene.index.Fields fields37 = null;
kuromojiAnalysisTests33.assertFieldsEquals("europarl.lines.txt.gz", indexReader35, fields36, fields37, false);
kuromojiAnalysisTests33.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests33.tearDown();
org.apache.lucene.index.IndexReader indexReader44 = null;
org.apache.lucene.index.PostingsEnum postingsEnum46 = null;
org.apache.lucene.index.PostingsEnum postingsEnum47 = null;
kuromojiAnalysisTests33.assertDocsSkippingEquals("", indexReader44, (int) (short) 1, postingsEnum46, postingsEnum47, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests50 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader52 = null;
org.apache.lucene.index.Fields fields53 = null;
org.apache.lucene.index.Fields fields54 = null;
kuromojiAnalysisTests50.assertFieldsEquals("europarl.lines.txt.gz", indexReader52, fields53, fields54, false);
org.apache.lucene.index.IndexReader indexReader58 = null;
org.apache.lucene.index.PostingsEnum postingsEnum60 = null;
org.apache.lucene.index.PostingsEnum postingsEnum61 = null;
kuromojiAnalysisTests50.assertPositionsSkippingEquals("tests.failfast", indexReader58, 1, postingsEnum60, postingsEnum61);
org.apache.lucene.index.IndexReader indexReader64 = null;
org.apache.lucene.index.PostingsEnum postingsEnum66 = null;
org.apache.lucene.index.PostingsEnum postingsEnum67 = null;
kuromojiAnalysisTests50.assertPositionsSkippingEquals("<unknown>", indexReader64, (int) '#', postingsEnum66, postingsEnum67);
kuromojiAnalysisTests50.assertPathHasBeenCleared("tests.nightly");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests71 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader73 = null;
org.apache.lucene.index.Fields fields74 = null;
org.apache.lucene.index.Fields fields75 = null;
kuromojiAnalysisTests71.assertFieldsEquals("europarl.lines.txt.gz", indexReader73, fields74, fields75, false);
kuromojiAnalysisTests71.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain80 = kuromojiAnalysisTests71.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain80;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain80;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain80;
kuromojiAnalysisTests50.failureAndSuccessEvents = ruleChain80;
org.junit.Assert.assertNotSame((java.lang.Object) false, (java.lang.Object) ruleChain80);
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain80;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain80;
java.lang.Class<?> wildcardClass88 = ruleChain80.getClass();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("random", (java.lang.Object) postingsEnum31, (java.lang.Object) wildcardClass88);
}
@Test
public void test2816() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2816");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((long) 3, (long) '4');
}
@Test
public void test2817() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2817");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("hi!", indexReader9, (int) (byte) 0, postingsEnum11, postingsEnum12);
kuromojiAnalysisTests1.ensureCheckIndexPassed();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests15 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.junit.Assert.assertNotSame("tests.slow", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) kuromojiAnalysisTests15);
kuromojiAnalysisTests15.ensureAllSearchContextsReleased();
kuromojiAnalysisTests15.ensureAllSearchContextsReleased();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests15.assertPathHasBeenCleared("");
}
@Test
public void test2818() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2818");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals("hi!", 0.0d, 0.0d, (double) (short) 0);
}
@Test
public void test2819() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2819");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.tearDown();
kuromojiAnalysisTests0.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
kuromojiAnalysisTests0.assertDocsSkippingEquals("hi!", indexReader10, 10, postingsEnum12, postingsEnum13, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests16 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader18 = null;
org.apache.lucene.index.Fields fields19 = null;
org.apache.lucene.index.Fields fields20 = null;
kuromojiAnalysisTests16.assertFieldsEquals("europarl.lines.txt.gz", indexReader18, fields19, fields20, false);
kuromojiAnalysisTests16.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests16.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests16.overrideTestDefaultQueryCache();
kuromojiAnalysisTests16.ensureCheckIndexPassed();
org.junit.rules.RuleChain ruleChain29 = kuromojiAnalysisTests16.failureAndSuccessEvents;
kuromojiAnalysisTests0.failureAndSuccessEvents = ruleChain29;
org.junit.rules.TestRule testRule31 = kuromojiAnalysisTests0.ruleChain;
org.apache.lucene.index.NumericDocValues numericDocValues34 = null;
org.apache.lucene.index.NumericDocValues numericDocValues35 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("tests.awaitsfix", (int) 'a', numericDocValues34, numericDocValues35);
}
@Test
public void test2820() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2820");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) 10L, (double) 100L);
}
@Test
public void test2821() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2821");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.overrideTestDefaultQueryCache();
kuromojiAnalysisTests0.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
kuromojiAnalysisTests0.assertDocsSkippingEquals("tests.slow", indexReader11, (int) (short) -1, postingsEnum13, postingsEnum14, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.setIndexWriterMaxDocs((int) '#');
org.apache.lucene.index.PostingsEnum postingsEnum21 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("hi!", postingsEnum21, postingsEnum22);
}
@Test
public void test2822() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2822");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("hi!", (double) (short) 1, (double) 1L);
}
@Test
public void test2823() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2823");
org.junit.rules.RuleChain[] ruleChainArray0 = new org.junit.rules.RuleChain[] {};
org.junit.rules.RuleChain[][] ruleChainArray1 = new org.junit.rules.RuleChain[][] { ruleChainArray0 };
java.util.Set<org.junit.rules.RuleChain[]> ruleChainArraySet2 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray1);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests3 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests3.setIndexWriterMaxDocs((int) (byte) 10);
kuromojiAnalysisTests3.ensureCleanedUp();
kuromojiAnalysisTests3.resetCheckIndexStatus();
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.Terms terms10 = null;
org.apache.lucene.index.Terms terms11 = null;
kuromojiAnalysisTests3.assertTermsEquals("tests.badapples", indexReader9, terms10, terms11, false);
kuromojiAnalysisTests3.ensureCleanedUp();
kuromojiAnalysisTests3.restoreIndexWriterMaxDocs();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame((java.lang.Object) ruleChainArray1, (java.lang.Object) kuromojiAnalysisTests3);
}
@Test
public void test2824() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2824");
java.lang.Object obj0 = null;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests2 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader4 = null;
org.apache.lucene.index.Fields fields5 = null;
org.apache.lucene.index.Fields fields6 = null;
kuromojiAnalysisTests2.assertFieldsEquals("europarl.lines.txt.gz", indexReader4, fields5, fields6, false);
kuromojiAnalysisTests2.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain11 = kuromojiAnalysisTests2.failureAndSuccessEvents;
kuromojiAnalysisTests2.resetCheckIndexStatus();
java.lang.String str13 = kuromojiAnalysisTests2.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests2);
kuromojiAnalysisTests2.tearDown();
kuromojiAnalysisTests2.overrideTestDefaultQueryCache();
org.junit.Assert.assertNotSame(obj0, (java.lang.Object) kuromojiAnalysisTests2);
kuromojiAnalysisTests2.ensureCleanedUp();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) kuromojiAnalysisTests2);
}
@Test
public void test2825() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2825");
byte[] byteArray0 = null;
byte[] byteArray3 = new byte[] {};
byte[] byteArray4 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray3, byteArray4);
byte[] byteArray7 = new byte[] {};
byte[] byteArray8 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray7, byteArray8);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", byteArray4, byteArray8);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(byteArray0, byteArray8);
}
@Test
public void test2826() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2826");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("", (double) (byte) 0, 1.0d);
}
@Test
public void test2827() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2827");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.failfast", indexReader9, 1, postingsEnum11, postingsEnum12);
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests1.setUp();
kuromojiAnalysisTests1.ensureCheckIndexPassed();
kuromojiAnalysisTests1.ensureAllSearchContextsReleased();
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.maxfailures");
java.util.Locale locale25 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale27 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale29 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale31 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale33 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray34 = new java.util.Locale[] { locale25, locale27, locale29, locale31, locale33 };
java.util.Set<java.util.Locale> localeSet35 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray34);
java.util.List<java.io.Serializable> serializableList36 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray34);
org.junit.Assert.assertNotSame("", (java.lang.Object) localeArray34, (java.lang.Object) 0.0f);
java.util.Locale locale42 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale44 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale46 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale48 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale50 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray51 = new java.util.Locale[] { locale42, locale44, locale46, locale48, locale50 };
java.util.Set<java.util.Locale> localeSet52 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray51);
java.util.List<java.io.Serializable> serializableList53 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray51);
org.junit.Assert.assertNotSame("", (java.lang.Object) localeArray51, (java.lang.Object) 0.0f);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", (java.lang.Object[]) localeArray34, (java.lang.Object[]) localeArray51);
java.util.Locale locale59 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale61 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale63 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale65 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale67 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray68 = new java.util.Locale[] { locale59, locale61, locale63, locale65, locale67 };
java.util.Set<java.util.Locale> localeSet69 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray68);
java.util.List<java.io.Serializable> serializableList70 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray68);
java.util.Set<java.lang.Cloneable> cloneableSet71 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray68);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray51, (java.lang.Object[]) localeArray68);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests74 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader76 = null;
org.apache.lucene.index.Fields fields77 = null;
org.apache.lucene.index.Fields fields78 = null;
kuromojiAnalysisTests74.assertFieldsEquals("europarl.lines.txt.gz", indexReader76, fields77, fields78, false);
kuromojiAnalysisTests74.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain83 = kuromojiAnalysisTests74.failureAndSuccessEvents;
kuromojiAnalysisTests74.resetCheckIndexStatus();
java.lang.String str85 = kuromojiAnalysisTests74.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests74);
kuromojiAnalysisTests74.tearDown();
kuromojiAnalysisTests74.overrideTestDefaultQueryCache();
kuromojiAnalysisTests74.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests74.overrideTestDefaultQueryCache();
org.junit.Assert.assertNotEquals("", (java.lang.Object) localeArray51, (java.lang.Object) kuromojiAnalysisTests74);
kuromojiAnalysisTests74.ensureAllSearchContextsReleased();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.failfast", (java.lang.Object) "tests.maxfailures", (java.lang.Object) kuromojiAnalysisTests74);
}
@Test
public void test2828() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2828");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(0.0f, (float) (short) 10, (float) (short) 1);
}
@Test
public void test2829() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2829");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests1.setIndexWriterMaxDocs((int) (byte) 10);
org.apache.lucene.index.IndexReader indexReader5 = null;
org.apache.lucene.index.Terms terms6 = null;
org.apache.lucene.index.Terms terms7 = null;
kuromojiAnalysisTests1.assertTermsEquals("tests.weekly", indexReader5, terms6, terms7, true);
kuromojiAnalysisTests1.setIndexWriterMaxDocs((int) '#');
java.lang.String str12 = kuromojiAnalysisTests1.getTestName();
org.junit.rules.TestRule testRule13 = kuromojiAnalysisTests1.ruleChain;
java.lang.Object obj14 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("random", (java.lang.Object) kuromojiAnalysisTests1, obj14);
}
@Test
public void test2830() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2830");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) 10.0f, (double) (short) 0, (double) 3);
}
@Test
public void test2831() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2831");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(100.0f, (float) '4', (float) 10L);
}
@Test
public void test2832() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2832");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests0.setIndexWriterMaxDocs((int) (byte) 10);
org.apache.lucene.index.IndexReader indexReader4 = null;
org.apache.lucene.index.Terms terms5 = null;
org.apache.lucene.index.Terms terms6 = null;
kuromojiAnalysisTests0.assertTermsEquals("tests.weekly", indexReader4, terms5, terms6, true);
kuromojiAnalysisTests0.setIndexWriterMaxDocs((int) '#');
kuromojiAnalysisTests0.overrideTestDefaultQueryCache();
kuromojiAnalysisTests0.ensureCheckIndexPassed();
kuromojiAnalysisTests0.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
org.apache.lucene.index.PostingsEnum postingsEnum16 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("tests.monster", postingsEnum15, postingsEnum16);
}
@Test
public void test2833() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2833");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("europarl.lines.txt.gz", (double) 10.0f, (double) 4, (double) 1);
}
@Test
public void test2834() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2834");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("random", (double) (byte) 10, (double) (short) -1);
}
@Test
public void test2835() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2835");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests1.setIndexWriterMaxDocs((int) (byte) 10);
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.ensureCheckIndexPassed();
org.junit.Assert.assertNotNull("tests.weekly", (java.lang.Object) kuromojiAnalysisTests1);
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
org.junit.rules.TestRule testRule8 = kuromojiAnalysisTests1.ruleChain;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests9 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader11 = null;
org.apache.lucene.index.Fields fields12 = null;
org.apache.lucene.index.Fields fields13 = null;
kuromojiAnalysisTests9.assertFieldsEquals("europarl.lines.txt.gz", indexReader11, fields12, fields13, false);
kuromojiAnalysisTests9.ensureCleanedUp();
kuromojiAnalysisTests9.ensureCleanedUp();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests18 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader20 = null;
org.apache.lucene.index.Fields fields21 = null;
org.apache.lucene.index.Fields fields22 = null;
kuromojiAnalysisTests18.assertFieldsEquals("europarl.lines.txt.gz", indexReader20, fields21, fields22, false);
org.apache.lucene.index.IndexReader indexReader26 = null;
org.apache.lucene.index.PostingsEnum postingsEnum28 = null;
org.apache.lucene.index.PostingsEnum postingsEnum29 = null;
kuromojiAnalysisTests18.assertPositionsSkippingEquals("tests.failfast", indexReader26, 1, postingsEnum28, postingsEnum29);
kuromojiAnalysisTests18.setIndexWriterMaxDocs(0);
org.apache.lucene.index.IndexReader indexReader34 = null;
org.apache.lucene.index.Fields fields35 = null;
org.apache.lucene.index.Fields fields36 = null;
kuromojiAnalysisTests18.assertFieldsEquals("tests.slow", indexReader34, fields35, fields36, false);
kuromojiAnalysisTests18.resetCheckIndexStatus();
org.junit.rules.TestRule testRule40 = kuromojiAnalysisTests18.ruleChain;
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests9, (java.lang.Object) testRule40);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) kuromojiAnalysisTests9);
}
@Test
public void test2836() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2836");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.nightly", (double) 1, (double) (short) 10, (double) (short) 1);
}
@Test
public void test2837() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2837");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("hi!", indexReader8, (int) (byte) 0, postingsEnum10, postingsEnum11);
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("tests.maxfailures", postingsEnum14, postingsEnum15);
}
@Test
public void test2838() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2838");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) 10, (double) 4);
}
@Test
public void test2839() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2839");
java.util.Locale locale5 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale7 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale9 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale11 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale13 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray14 = new java.util.Locale[] { locale5, locale7, locale9, locale11, locale13 };
java.util.Set<java.util.Locale> localeSet15 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray14);
java.util.List<java.io.Serializable> serializableList16 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray14);
java.util.Set<java.lang.Cloneable> cloneableSet17 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray14);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray14, (java.lang.Object) (byte) -1);
java.util.Locale locale22 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale24 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale26 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale28 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale30 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray31 = new java.util.Locale[] { locale22, locale24, locale26, locale28, locale30 };
java.util.Set<java.util.Locale> localeSet32 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray31);
java.util.List<java.io.Serializable> serializableList33 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray31);
java.util.Set<java.lang.Cloneable> cloneableSet34 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray31);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray31, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray14, (java.lang.Object[]) localeArray31);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests38 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader40 = null;
org.apache.lucene.index.Fields fields41 = null;
org.apache.lucene.index.Fields fields42 = null;
kuromojiAnalysisTests38.assertFieldsEquals("europarl.lines.txt.gz", indexReader40, fields41, fields42, false);
org.apache.lucene.index.IndexReader indexReader46 = null;
org.apache.lucene.index.PostingsEnum postingsEnum48 = null;
org.apache.lucene.index.PostingsEnum postingsEnum49 = null;
kuromojiAnalysisTests38.assertPositionsSkippingEquals("tests.failfast", indexReader46, 1, postingsEnum48, postingsEnum49);
kuromojiAnalysisTests38.setIndexWriterMaxDocs(0);
kuromojiAnalysisTests38.ensureCleanedUp();
kuromojiAnalysisTests38.resetCheckIndexStatus();
org.junit.Assert.assertNotSame("tests.badapples", (java.lang.Object) localeArray31, (java.lang.Object) kuromojiAnalysisTests38);
java.util.Locale locale58 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale60 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale62 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale64 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale66 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray67 = new java.util.Locale[] { locale58, locale60, locale62, locale64, locale66 };
java.util.Set<java.util.Locale> localeSet68 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray67);
java.util.List<java.io.Serializable> serializableList69 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray67);
org.junit.Assert.assertEquals("random", (java.lang.Object[]) localeArray31, (java.lang.Object[]) localeArray67);
java.util.Set<java.io.Serializable> serializableSet71 = org.apache.lucene.util.LuceneTestCase.asSet((java.io.Serializable[]) localeArray31);
java.lang.Iterable[] iterableArray73 = new java.lang.Iterable[0];
@SuppressWarnings("unchecked")
java.lang.Iterable<java.util.Locale>[] localeIterableArray74 = (java.lang.Iterable<java.util.Locale>[]) iterableArray73;
java.util.Set<java.lang.Iterable<java.util.Locale>> localeIterableSet75 = org.apache.lucene.util.LuceneTestCase.asSet(localeIterableArray74);
java.util.Set<java.lang.Iterable<java.util.Locale>> localeIterableSet76 = org.apache.lucene.util.LuceneTestCase.asSet(localeIterableArray74);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("", (java.lang.Object[]) localeArray31, (java.lang.Object[]) localeIterableArray74);
}
@Test
public void test2840() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2840");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain10;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain10;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests13 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Fields fields16 = null;
org.apache.lucene.index.Fields fields17 = null;
kuromojiAnalysisTests13.assertFieldsEquals("europarl.lines.txt.gz", indexReader15, fields16, fields17, false);
kuromojiAnalysisTests13.ensureCleanedUp();
kuromojiAnalysisTests13.assertPathHasBeenCleared("tests.failfast");
kuromojiAnalysisTests13.tearDown();
kuromojiAnalysisTests13.ensureAllSearchContextsReleased();
kuromojiAnalysisTests13.ensureCleanedUp();
org.junit.Assert.assertNotEquals((java.lang.Object) ruleChain10, (java.lang.Object) kuromojiAnalysisTests13);
org.junit.Assert.assertNotNull("<unknown>", (java.lang.Object) kuromojiAnalysisTests13);
org.apache.lucene.index.PostingsEnum postingsEnum29 = null;
org.apache.lucene.index.PostingsEnum postingsEnum30 = null;
kuromojiAnalysisTests13.assertDocsEnumEquals("<unknown>", postingsEnum29, postingsEnum30, true);
org.apache.lucene.index.IndexReader indexReader34 = null;
org.apache.lucene.index.Terms terms35 = null;
org.apache.lucene.index.Terms terms36 = null;
kuromojiAnalysisTests13.assertTermsEquals("tests.maxfailures", indexReader34, terms35, terms36, false);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotNull((java.lang.Object) indexReader34);
}
@Test
public void test2841() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2841");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.failfast", indexReader8, 1, postingsEnum10, postingsEnum11);
kuromojiAnalysisTests0.setIndexWriterMaxDocs(0);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.resetCheckIndexStatus();
java.lang.Class<?> wildcardClass17 = kuromojiAnalysisTests0.getClass();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests18 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader20 = null;
org.apache.lucene.index.Fields fields21 = null;
org.apache.lucene.index.Fields fields22 = null;
kuromojiAnalysisTests18.assertFieldsEquals("europarl.lines.txt.gz", indexReader20, fields21, fields22, false);
kuromojiAnalysisTests18.ensureCleanedUp();
kuromojiAnalysisTests18.overrideTestDefaultQueryCache();
kuromojiAnalysisTests18.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader29 = null;
org.apache.lucene.index.Fields fields30 = null;
org.apache.lucene.index.Fields fields31 = null;
kuromojiAnalysisTests18.assertFieldsEquals("europarl.lines.txt.gz", indexReader29, fields30, fields31, false);
kuromojiAnalysisTests18.ensureCleanedUp();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests35 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader37 = null;
org.apache.lucene.index.Fields fields38 = null;
org.apache.lucene.index.Fields fields39 = null;
kuromojiAnalysisTests35.assertFieldsEquals("europarl.lines.txt.gz", indexReader37, fields38, fields39, false);
java.lang.String[] strArray49 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet50 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray49);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests51 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests51.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet50, (java.lang.Object) kuromojiAnalysisTests51);
org.apache.lucene.index.PostingsEnum postingsEnum56 = null;
org.apache.lucene.index.PostingsEnum postingsEnum57 = null;
kuromojiAnalysisTests51.assertDocsEnumEquals("tests.badapples", postingsEnum56, postingsEnum57, true);
org.junit.rules.TestRule testRule60 = kuromojiAnalysisTests51.ruleChain;
org.apache.lucene.index.IndexReader indexReader62 = null;
org.apache.lucene.index.PostingsEnum postingsEnum64 = null;
org.apache.lucene.index.PostingsEnum postingsEnum65 = null;
kuromojiAnalysisTests51.assertDocsSkippingEquals("tests.maxfailures", indexReader62, (int) (byte) 100, postingsEnum64, postingsEnum65, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests68 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader70 = null;
org.apache.lucene.index.Fields fields71 = null;
org.apache.lucene.index.Fields fields72 = null;
kuromojiAnalysisTests68.assertFieldsEquals("europarl.lines.txt.gz", indexReader70, fields71, fields72, false);
kuromojiAnalysisTests68.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain77 = kuromojiAnalysisTests68.failureAndSuccessEvents;
kuromojiAnalysisTests51.failureAndSuccessEvents = ruleChain77;
kuromojiAnalysisTests35.failureAndSuccessEvents = ruleChain77;
kuromojiAnalysisTests18.failureAndSuccessEvents = ruleChain77;
kuromojiAnalysisTests18.assertPathHasBeenCleared("random");
kuromojiAnalysisTests18.ensureCheckIndexPassed();
kuromojiAnalysisTests18.overrideTestDefaultQueryCache();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object) kuromojiAnalysisTests0, (java.lang.Object) kuromojiAnalysisTests18);
}
@Test
public void test2842() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2842");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("europarl.lines.txt.gz", (long) (short) 100, (long) (short) 10);
}
@Test
public void test2843() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2843");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (short) 100, (double) 3);
}
@Test
public void test2844() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2844");
float[] floatArray0 = null;
float[] floatArray9 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray16 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray9, floatArray16, (float) (byte) 100);
float[] floatArray27 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray34 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray27, floatArray34, (float) (byte) 100);
float[] floatArray44 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray51 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray44, floatArray51, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray27, floatArray44, (float) (-1));
org.junit.Assert.assertArrayEquals("tests.weekly", floatArray9, floatArray27, (float) (byte) 0);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(floatArray0, floatArray9, (float) ' ');
}
@Test
public void test2845() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2845");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.weekly", (float) 1, 0.0f, (float) (byte) 0);
}
@Test
public void test2846() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2846");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests2 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader4 = null;
org.apache.lucene.index.Fields fields5 = null;
org.apache.lucene.index.Fields fields6 = null;
kuromojiAnalysisTests2.assertFieldsEquals("europarl.lines.txt.gz", indexReader4, fields5, fields6, false);
kuromojiAnalysisTests2.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain11 = kuromojiAnalysisTests2.failureAndSuccessEvents;
kuromojiAnalysisTests2.resetCheckIndexStatus();
java.lang.String str13 = kuromojiAnalysisTests2.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests2);
kuromojiAnalysisTests2.tearDown();
kuromojiAnalysisTests2.setUp();
org.apache.lucene.index.IndexReader indexReader18 = null;
org.apache.lucene.index.PostingsEnum postingsEnum20 = null;
org.apache.lucene.index.PostingsEnum postingsEnum21 = null;
kuromojiAnalysisTests2.assertPositionsSkippingEquals("", indexReader18, (int) '#', postingsEnum20, postingsEnum21);
org.apache.lucene.index.IndexReader indexReader24 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
org.apache.lucene.index.PostingsEnum postingsEnum27 = null;
kuromojiAnalysisTests2.assertPositionsSkippingEquals("tests.weekly", indexReader24, (int) (short) 10, postingsEnum26, postingsEnum27);
org.junit.rules.RuleChain ruleChain29 = kuromojiAnalysisTests2.failureAndSuccessEvents;
kuromojiAnalysisTests2.ensureCheckIndexPassed();
kuromojiAnalysisTests2.ensureCheckIndexPassed();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests32 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader34 = null;
org.apache.lucene.index.Fields fields35 = null;
org.apache.lucene.index.Fields fields36 = null;
kuromojiAnalysisTests32.assertFieldsEquals("europarl.lines.txt.gz", indexReader34, fields35, fields36, false);
kuromojiAnalysisTests32.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain41 = kuromojiAnalysisTests32.failureAndSuccessEvents;
kuromojiAnalysisTests32.resetCheckIndexStatus();
kuromojiAnalysisTests32.assertPathHasBeenCleared("random");
java.lang.String str45 = kuromojiAnalysisTests32.getTestName();
org.apache.lucene.index.PostingsEnum postingsEnum47 = null;
org.apache.lucene.index.PostingsEnum postingsEnum48 = null;
kuromojiAnalysisTests32.assertDocsEnumEquals("", postingsEnum47, postingsEnum48, false);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame("tests.maxfailures", (java.lang.Object) kuromojiAnalysisTests2, (java.lang.Object) kuromojiAnalysisTests32);
}
@Test
public void test2847() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2847");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.resetCheckIndexStatus();
java.lang.String str12 = kuromojiAnalysisTests1.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests1);
kuromojiAnalysisTests1.tearDown();
kuromojiAnalysisTests1.setUp();
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.PostingsEnum postingsEnum19 = null;
org.apache.lucene.index.PostingsEnum postingsEnum20 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("", indexReader17, (int) '#', postingsEnum19, postingsEnum20);
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.overrideTestDefaultQueryCache();
org.apache.lucene.index.NumericDocValues numericDocValues26 = null;
org.apache.lucene.index.NumericDocValues numericDocValues27 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests1.assertDocValuesEquals("tests.slow", 100, numericDocValues26, numericDocValues27);
}
@Test
public void test2848() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2848");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((long) 2, (long) '#');
}
@Test
public void test2849() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2849");
byte[] byteArray2 = new byte[] {};
byte[] byteArray3 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray2, byteArray3);
byte[] byteArray6 = new byte[] {};
byte[] byteArray7 = new byte[] {};
org.junit.Assert.assertArrayEquals("tests.maxfailures", byteArray6, byteArray7);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", byteArray3, byteArray7);
short[] shortArray12 = new short[] { (short) 10 };
short[] shortArray14 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray12, shortArray14);
short[] shortArray20 = new short[] { (short) 10 };
short[] shortArray22 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray20, shortArray22);
short[] shortArray26 = new short[] { (short) 10 };
short[] shortArray28 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray26, shortArray28);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray22, shortArray28);
short[] shortArray34 = new short[] { (short) 10 };
short[] shortArray36 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray34, shortArray36);
short[] shortArray40 = new short[] { (short) 10 };
short[] shortArray42 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray40, shortArray42);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", shortArray36, shortArray42);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray22, shortArray42);
org.junit.Assert.assertArrayEquals(shortArray14, shortArray42);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object) byteArray3, (java.lang.Object) shortArray14);
}
@Test
public void test2850() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2850");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.overrideTestDefaultQueryCache();
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
org.junit.rules.RuleChain ruleChain11 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.setUp();
kuromojiAnalysisTests1.ensureCheckIndexPassed();
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
long[] longArray19 = new long[] { 1 };
long[] longArray21 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray19, longArray21);
long[] longArray26 = new long[] { 1 };
long[] longArray28 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray26, longArray28);
long[] longArray32 = new long[] { 1 };
long[] longArray34 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray32, longArray34);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray28, longArray32);
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", longArray19, longArray32);
long[] longArray41 = new long[] { 1 };
long[] longArray43 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray41, longArray43);
long[] longArray47 = new long[] { 1 };
long[] longArray49 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray47, longArray49);
org.junit.Assert.assertArrayEquals("random", longArray43, longArray49);
long[] longArray55 = new long[] { 1 };
long[] longArray57 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray55, longArray57);
long[] longArray62 = new long[] { 1 };
long[] longArray64 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray62, longArray64);
long[] longArray68 = new long[] { 1 };
long[] longArray70 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray68, longArray70);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray64, longArray68);
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", longArray55, longArray68);
org.junit.Assert.assertArrayEquals(longArray49, longArray55);
org.junit.Assert.assertArrayEquals("tests.slow", longArray19, longArray49);
long[] longArray79 = new long[] { 1 };
long[] longArray81 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray79, longArray81);
long[] longArray86 = new long[] { 1 };
long[] longArray88 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray86, longArray88);
long[] longArray92 = new long[] { 1 };
long[] longArray94 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray92, longArray94);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray88, longArray92);
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", longArray79, longArray92);
org.junit.Assert.assertArrayEquals(longArray49, longArray92);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.badapples", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) longArray92);
}
@Test
public void test2851() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2851");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (short) 10, (double) 1);
}
@Test
public void test2852() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2852");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals("<unknown>", (-1.0d), 0.0d, (double) 100);
}
@Test
public void test2853() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2853");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests1.setIndexWriterMaxDocs((int) (byte) 10);
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.ensureCheckIndexPassed();
org.junit.Assert.assertNotNull("tests.weekly", (java.lang.Object) kuromojiAnalysisTests1);
org.junit.rules.TestRule testRule7 = kuromojiAnalysisTests1.ruleChain;
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.Terms terms10 = null;
org.apache.lucene.index.Terms terms11 = null;
kuromojiAnalysisTests1.assertTermsEquals("enwiki.random.lines.txt", indexReader9, terms10, terms11, true);
org.apache.lucene.index.NumericDocValues numericDocValues16 = null;
org.apache.lucene.index.NumericDocValues numericDocValues17 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests1.assertDocValuesEquals("tests.slow", (int) (short) 1, numericDocValues16, numericDocValues17);
}
@Test
public void test2854() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2854");
java.lang.String[] strArray7 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet8 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray7);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests9 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests9.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet8, (java.lang.Object) kuromojiAnalysisTests9);
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
kuromojiAnalysisTests9.assertDocsEnumEquals("tests.badapples", postingsEnum14, postingsEnum15, true);
org.junit.rules.TestRule testRule18 = kuromojiAnalysisTests9.ruleChain;
org.apache.lucene.index.IndexReader indexReader20 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
kuromojiAnalysisTests9.assertDocsSkippingEquals("tests.maxfailures", indexReader20, (int) (byte) 100, postingsEnum22, postingsEnum23, false);
kuromojiAnalysisTests9.ensureCleanedUp();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests28 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader30 = null;
org.apache.lucene.index.Fields fields31 = null;
org.apache.lucene.index.Fields fields32 = null;
kuromojiAnalysisTests28.assertFieldsEquals("europarl.lines.txt.gz", indexReader30, fields31, fields32, false);
kuromojiAnalysisTests28.ensureCleanedUp();
kuromojiAnalysisTests28.resetCheckIndexStatus();
kuromojiAnalysisTests28.setIndexWriterMaxDocs((int) (byte) 0);
org.junit.rules.RuleChain ruleChain39 = kuromojiAnalysisTests28.failureAndSuccessEvents;
org.junit.Assert.assertNotNull("tests.monster", (java.lang.Object) kuromojiAnalysisTests28);
org.junit.Assert.assertNotEquals((java.lang.Object) kuromojiAnalysisTests9, (java.lang.Object) "tests.monster");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests43 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader45 = null;
org.apache.lucene.index.Fields fields46 = null;
org.apache.lucene.index.Fields fields47 = null;
kuromojiAnalysisTests43.assertFieldsEquals("europarl.lines.txt.gz", indexReader45, fields46, fields47, false);
kuromojiAnalysisTests43.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain52 = kuromojiAnalysisTests43.failureAndSuccessEvents;
kuromojiAnalysisTests43.resetCheckIndexStatus();
java.lang.String str54 = kuromojiAnalysisTests43.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests43);
kuromojiAnalysisTests43.tearDown();
kuromojiAnalysisTests43.overrideTestDefaultQueryCache();
kuromojiAnalysisTests43.restoreIndexWriterMaxDocs();
org.junit.rules.RuleChain ruleChain59 = kuromojiAnalysisTests43.failureAndSuccessEvents;
kuromojiAnalysisTests43.ensureAllSearchContextsReleased();
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests9, (java.lang.Object) kuromojiAnalysisTests43);
java.lang.Object obj62 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object) kuromojiAnalysisTests9, obj62);
}
@Test
public void test2855() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2855");
java.util.concurrent.ExecutorService[] executorServiceArray0 = new java.util.concurrent.ExecutorService[] {};
boolean boolean1 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray0);
boolean boolean2 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray0);
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray4 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] {};
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray5 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] {};
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray6 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] {};
org.apache.lucene.store.MockDirectoryWrapper.Throttling[][] throttlingArray7 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[][] { throttlingArray4, throttlingArray5, throttlingArray6 };
java.util.List<org.apache.lucene.store.MockDirectoryWrapper.Throttling[]> throttlingArrayList8 = org.elasticsearch.test.ESTestCase.randomSubsetOf(0, throttlingArray7);
java.util.Set<org.apache.lucene.store.MockDirectoryWrapper.Throttling[]> throttlingArraySet9 = org.apache.lucene.util.LuceneTestCase.asSet(throttlingArray7);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals((java.lang.Object[]) executorServiceArray0, (java.lang.Object[]) throttlingArray7);
}
@Test
public void test2856() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2856");
double[] doubleArray6 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray11 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray6, doubleArray11, (double) (byte) 100);
double[] doubleArray21 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray26 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray21, doubleArray26, (double) (byte) 100);
double[] doubleArray35 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray40 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray35, doubleArray40, (double) (byte) 100);
double[] doubleArray48 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray53 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray48, doubleArray53, (double) (byte) 100);
org.junit.Assert.assertArrayEquals("", doubleArray35, doubleArray48, (double) 0);
org.junit.Assert.assertArrayEquals(doubleArray21, doubleArray35, (-1.0d));
double[] doubleArray66 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray71 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray66, doubleArray71, (double) (byte) 100);
double[] doubleArray79 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray84 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray79, doubleArray84, (double) (byte) 100);
org.junit.Assert.assertArrayEquals("", doubleArray66, doubleArray79, (double) 0);
org.junit.Assert.assertArrayEquals("random", doubleArray21, doubleArray79, (double) 10.0f);
java.lang.Object obj91 = null;
org.junit.Assert.assertNotEquals("", (java.lang.Object) doubleArray79, obj91);
org.junit.Assert.assertArrayEquals(doubleArray6, doubleArray79, (double) (short) 0);
double[] doubleArray95 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.badapples", doubleArray79, doubleArray95, (double) 100L);
}
@Test
public void test2857() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2857");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.resetCheckIndexStatus();
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
org.junit.rules.TestRule testRule13 = kuromojiAnalysisTests1.ruleChain;
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
org.apache.lucene.index.IndexReader indexReader16 = null;
org.apache.lucene.index.PostingsEnum postingsEnum18 = null;
org.apache.lucene.index.PostingsEnum postingsEnum19 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.awaitsfix", indexReader16, 2, postingsEnum18, postingsEnum19);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests21 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader23 = null;
org.apache.lucene.index.Fields fields24 = null;
org.apache.lucene.index.Fields fields25 = null;
kuromojiAnalysisTests21.assertFieldsEquals("europarl.lines.txt.gz", indexReader23, fields24, fields25, false);
kuromojiAnalysisTests21.ensureCleanedUp();
kuromojiAnalysisTests21.assertPathHasBeenCleared("tests.failfast");
org.apache.lucene.index.IndexReader indexReader32 = null;
org.apache.lucene.index.PostingsEnum postingsEnum34 = null;
org.apache.lucene.index.PostingsEnum postingsEnum35 = null;
kuromojiAnalysisTests21.assertPositionsSkippingEquals("tests.slow", indexReader32, (int) (short) 10, postingsEnum34, postingsEnum35);
org.apache.lucene.index.IndexReader indexReader38 = null;
org.apache.lucene.index.PostingsEnum postingsEnum40 = null;
org.apache.lucene.index.PostingsEnum postingsEnum41 = null;
kuromojiAnalysisTests21.assertDocsSkippingEquals("<unknown>", indexReader38, (-1), postingsEnum40, postingsEnum41, false);
kuromojiAnalysisTests21.assertPathHasBeenCleared("tests.maxfailures");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame("europarl.lines.txt.gz", (java.lang.Object) "tests.awaitsfix", (java.lang.Object) "tests.maxfailures");
}
@Test
public void test2858() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2858");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.resetCheckIndexStatus();
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests1.tearDown();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests15 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.Fields fields18 = null;
org.apache.lucene.index.Fields fields19 = null;
kuromojiAnalysisTests15.assertFieldsEquals("europarl.lines.txt.gz", indexReader17, fields18, fields19, false);
kuromojiAnalysisTests15.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain24 = kuromojiAnalysisTests15.failureAndSuccessEvents;
kuromojiAnalysisTests15.resetCheckIndexStatus();
java.lang.String str26 = kuromojiAnalysisTests15.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests15);
kuromojiAnalysisTests15.tearDown();
kuromojiAnalysisTests15.overrideTestDefaultQueryCache();
org.junit.rules.RuleChain ruleChain30 = kuromojiAnalysisTests15.failureAndSuccessEvents;
kuromojiAnalysisTests1.failureAndSuccessEvents = ruleChain30;
org.apache.lucene.index.PostingsEnum postingsEnum33 = null;
org.apache.lucene.index.PostingsEnum postingsEnum34 = null;
kuromojiAnalysisTests1.assertDocsEnumEquals("", postingsEnum33, postingsEnum34, true);
kuromojiAnalysisTests1.ensureCleanedUp();
org.junit.rules.TestRule testRule38 = kuromojiAnalysisTests1.ruleChain;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests39 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader41 = null;
org.apache.lucene.index.Fields fields42 = null;
org.apache.lucene.index.Fields fields43 = null;
kuromojiAnalysisTests39.assertFieldsEquals("europarl.lines.txt.gz", indexReader41, fields42, fields43, false);
kuromojiAnalysisTests39.ensureCleanedUp();
kuromojiAnalysisTests39.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader49 = null;
org.apache.lucene.index.PostingsEnum postingsEnum51 = null;
org.apache.lucene.index.PostingsEnum postingsEnum52 = null;
kuromojiAnalysisTests39.assertPositionsSkippingEquals("hi!", indexReader49, 1, postingsEnum51, postingsEnum52);
kuromojiAnalysisTests39.assertPathHasBeenCleared("tests.badapples");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests56 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader58 = null;
org.apache.lucene.index.Fields fields59 = null;
org.apache.lucene.index.Fields fields60 = null;
kuromojiAnalysisTests56.assertFieldsEquals("europarl.lines.txt.gz", indexReader58, fields59, fields60, false);
kuromojiAnalysisTests56.ensureCleanedUp();
kuromojiAnalysisTests56.resetCheckIndexStatus();
kuromojiAnalysisTests56.ensureCleanedUp();
kuromojiAnalysisTests56.ensureCheckIndexPassed();
kuromojiAnalysisTests56.restoreIndexWriterMaxDocs();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests68 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader70 = null;
org.apache.lucene.index.Fields fields71 = null;
org.apache.lucene.index.Fields fields72 = null;
kuromojiAnalysisTests68.assertFieldsEquals("europarl.lines.txt.gz", indexReader70, fields71, fields72, false);
kuromojiAnalysisTests68.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain77 = kuromojiAnalysisTests68.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain77;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain77;
kuromojiAnalysisTests56.failureAndSuccessEvents = ruleChain77;
kuromojiAnalysisTests39.failureAndSuccessEvents = ruleChain77;
org.junit.Assert.assertNotEquals("enwiki.random.lines.txt", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) ruleChain77);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) ruleChain77);
}
@Test
public void test2859() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2859");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((float) (short) -1, 100.0f, (float) (-1));
}
@Test
public void test2860() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2860");
java.util.Locale locale2 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale4 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale6 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray7 = new java.util.Locale[] { locale2, locale4, locale6 };
java.util.Locale locale9 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale11 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale13 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray14 = new java.util.Locale[] { locale9, locale11, locale13 };
java.util.Locale locale16 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale18 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale20 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray21 = new java.util.Locale[] { locale16, locale18, locale20 };
java.util.Locale locale23 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale25 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale27 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray28 = new java.util.Locale[] { locale23, locale25, locale27 };
java.util.Locale locale30 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale32 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale34 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray35 = new java.util.Locale[] { locale30, locale32, locale34 };
java.util.Locale locale37 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale39 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale41 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray42 = new java.util.Locale[] { locale37, locale39, locale41 };
java.util.Locale[][] localeArray43 = new java.util.Locale[][] { localeArray7, localeArray14, localeArray21, localeArray28, localeArray35, localeArray42 };
java.util.Set<java.util.Locale[]> localeArraySet44 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray43);
java.util.List<java.util.Locale[]> localeArrayList45 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, localeArray43);
double[] doubleArray48 = new double[] { 100, (short) 100 };
double[] doubleArray51 = new double[] { 100, (short) 100 };
double[] doubleArray54 = new double[] { 100, (short) 100 };
double[][] doubleArray55 = new double[][] { doubleArray48, doubleArray51, doubleArray54 };
java.util.Set<double[]> doubleArraySet56 = org.apache.lucene.util.LuceneTestCase.asSet(doubleArray55);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame((java.lang.Object) localeArray43, (java.lang.Object) doubleArray55);
}
@Test
public void test2861() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2861");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests1.setIndexWriterMaxDocs((int) (byte) 10);
org.apache.lucene.index.IndexReader indexReader5 = null;
org.apache.lucene.index.Terms terms6 = null;
org.apache.lucene.index.Terms terms7 = null;
kuromojiAnalysisTests1.assertTermsEquals("tests.weekly", indexReader5, terms6, terms7, true);
kuromojiAnalysisTests1.setIndexWriterMaxDocs((int) '#');
kuromojiAnalysisTests1.setUp();
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.Fields fields15 = null;
org.apache.lucene.index.Fields fields16 = null;
kuromojiAnalysisTests1.assertFieldsEquals("hi!", indexReader14, fields15, fields16, true);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull("hi!", (java.lang.Object) true);
}
@Test
public void test2862() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2862");
java.util.List[] listArray1 = new java.util.List[0];
@SuppressWarnings("unchecked")
java.util.List<java.io.Serializable>[] serializableListArray2 = (java.util.List<java.io.Serializable>[]) listArray1;
java.util.Set<java.util.List<java.io.Serializable>> serializableListSet3 = org.apache.lucene.util.LuceneTestCase.asSet(serializableListArray2);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests4 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader6 = null;
org.apache.lucene.index.Fields fields7 = null;
org.apache.lucene.index.Fields fields8 = null;
kuromojiAnalysisTests4.assertFieldsEquals("europarl.lines.txt.gz", indexReader6, fields7, fields8, false);
org.apache.lucene.index.IndexReader indexReader12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
kuromojiAnalysisTests4.assertPositionsSkippingEquals("hi!", indexReader12, (int) (byte) 0, postingsEnum14, postingsEnum15);
org.apache.lucene.index.IndexReader indexReader18 = null;
org.apache.lucene.index.Terms terms19 = null;
org.apache.lucene.index.Terms terms20 = null;
kuromojiAnalysisTests4.assertTermsEquals("random", indexReader18, terms19, terms20, true);
kuromojiAnalysisTests4.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum25 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
kuromojiAnalysisTests4.assertDocsEnumEquals("tests.nightly", postingsEnum25, postingsEnum26, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests29 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader31 = null;
org.apache.lucene.index.Fields fields32 = null;
org.apache.lucene.index.Fields fields33 = null;
kuromojiAnalysisTests29.assertFieldsEquals("europarl.lines.txt.gz", indexReader31, fields32, fields33, false);
kuromojiAnalysisTests29.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain38 = kuromojiAnalysisTests29.failureAndSuccessEvents;
kuromojiAnalysisTests29.ensureAllSearchContextsReleased();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests40 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader42 = null;
org.apache.lucene.index.Fields fields43 = null;
org.apache.lucene.index.Fields fields44 = null;
kuromojiAnalysisTests40.assertFieldsEquals("europarl.lines.txt.gz", indexReader42, fields43, fields44, false);
org.apache.lucene.index.IndexReader indexReader48 = null;
org.apache.lucene.index.PostingsEnum postingsEnum50 = null;
org.apache.lucene.index.PostingsEnum postingsEnum51 = null;
kuromojiAnalysisTests40.assertPositionsSkippingEquals("hi!", indexReader48, (int) (byte) 0, postingsEnum50, postingsEnum51);
kuromojiAnalysisTests40.ensureCheckIndexPassed();
org.elasticsearch.index.analysis.KuromojiAnalysisTests[] kuromojiAnalysisTestsArray54 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests[] { kuromojiAnalysisTests4, kuromojiAnalysisTests29, kuromojiAnalysisTests40 };
java.util.Set<org.elasticsearch.index.analysis.KuromojiAnalysisTests> kuromojiAnalysisTestsSet55 = org.apache.lucene.util.LuceneTestCase.asSet(kuromojiAnalysisTestsArray54);
java.util.Set<org.junit.Assert> assertSet56 = org.apache.lucene.util.LuceneTestCase.asSet((org.junit.Assert[]) kuromojiAnalysisTestsArray54);
java.util.Set<org.elasticsearch.test.ESTestCase> eSTestCaseSet57 = org.apache.lucene.util.LuceneTestCase.asSet((org.elasticsearch.test.ESTestCase[]) kuromojiAnalysisTestsArray54);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object[]) serializableListArray2, (java.lang.Object[]) kuromojiAnalysisTestsArray54);
}
@Test
public void test2863() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2863");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.failfast");
kuromojiAnalysisTests0.tearDown();
kuromojiAnalysisTests0.ensureAllSearchContextsReleased();
kuromojiAnalysisTests0.resetCheckIndexStatus();
kuromojiAnalysisTests0.ensureCheckIndexPassed();
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
org.apache.lucene.index.PostingsEnum postingsEnum16 = null;
kuromojiAnalysisTests0.assertDocsEnumEquals("tests.maxfailures", postingsEnum15, postingsEnum16, true);
org.apache.lucene.index.NumericDocValues numericDocValues21 = null;
org.apache.lucene.index.NumericDocValues numericDocValues22 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("tests.monster", 0, numericDocValues21, numericDocValues22);
}
@Test
public void test2864() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2864");
int[] intArray0 = null;
int[] intArray3 = new int[] { '#' };
int[] intArray5 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray3, intArray5);
int[] intArray8 = new int[] { '#' };
int[] intArray10 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray8, intArray10);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray3, intArray8);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(intArray0, intArray8);
}
@Test
public void test2865() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2865");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
kuromojiAnalysisTests0.assertDocsSkippingEquals("random", indexReader10, (int) (byte) -1, postingsEnum12, postingsEnum13, false);
java.lang.reflect.GenericDeclaration[] genericDeclarationArray17 = new java.lang.reflect.GenericDeclaration[] {};
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet18 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray17);
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet19 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray17);
org.junit.Assert.assertNotEquals((java.lang.Object) 1, (java.lang.Object) genericDeclarationArray17);
java.util.Set<java.lang.reflect.AnnotatedElement> annotatedElementSet21 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.reflect.AnnotatedElement[]) genericDeclarationArray17);
org.junit.Assert.assertNotSame((java.lang.Object) postingsEnum12, (java.lang.Object) genericDeclarationArray17);
java.util.Locale locale25 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale27 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale29 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale31 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale33 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray34 = new java.util.Locale[] { locale25, locale27, locale29, locale31, locale33 };
java.util.Set<java.util.Locale> localeSet35 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray34);
java.lang.String[] strArray39 = new java.lang.String[] { "europarl.lines.txt.gz", "tests.badapples", "random" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet40 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray39);
org.junit.Assert.assertNotEquals("europarl.lines.txt.gz", (java.lang.Object) localeSet35, (java.lang.Object) strArray39);
java.util.Locale locale43 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale45 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale47 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale49 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale51 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray52 = new java.util.Locale[] { locale43, locale45, locale47, locale49, locale51 };
java.util.Set<java.util.Locale> localeSet53 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray52);
java.util.Locale locale55 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale57 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale59 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale61 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale63 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray64 = new java.util.Locale[] { locale55, locale57, locale59, locale61, locale63 };
java.util.Set<java.util.Locale> localeSet65 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray64);
java.util.Set[] setArray67 = new java.util.Set[3];
@SuppressWarnings("unchecked")
java.util.Set<java.util.Locale>[] localeSetArray68 = (java.util.Set<java.util.Locale>[]) setArray67;
localeSetArray68[0] = localeSet35;
localeSetArray68[1] = localeSet53;
localeSetArray68[2] = localeSet65;
java.util.Set<java.util.Set<java.util.Locale>> localeSetSet75 = org.apache.lucene.util.LuceneTestCase.asSet(localeSetArray68);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object[]) genericDeclarationArray17, (java.lang.Object[]) localeSetArray68);
}
@Test
public void test2866() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2866");
java.lang.Object[] objArray0 = null;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.failfast", indexReader9, 1, postingsEnum11, postingsEnum12);
kuromojiAnalysisTests1.setIndexWriterMaxDocs(0);
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.Fields fields18 = null;
org.apache.lucene.index.Fields fields19 = null;
kuromojiAnalysisTests1.assertFieldsEquals("tests.slow", indexReader17, fields18, fields19, false);
kuromojiAnalysisTests1.resetCheckIndexStatus();
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.ensureCleanedUp();
java.util.Locale locale28 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale30 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale32 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale34 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale36 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray37 = new java.util.Locale[] { locale28, locale30, locale32, locale34, locale36 };
java.util.Set<java.util.Locale> localeSet38 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray37);
java.util.List<java.io.Serializable> serializableList39 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray37);
java.util.Set<java.lang.Cloneable> cloneableSet40 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray37);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray37, (java.lang.Object) (byte) -1);
java.util.Locale locale45 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale47 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale49 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale51 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale53 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray54 = new java.util.Locale[] { locale45, locale47, locale49, locale51, locale53 };
java.util.Set<java.util.Locale> localeSet55 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray54);
java.util.Locale locale58 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale60 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale62 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale64 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale66 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray67 = new java.util.Locale[] { locale58, locale60, locale62, locale64, locale66 };
java.util.Set<java.util.Locale> localeSet68 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray67);
java.util.List<java.io.Serializable> serializableList69 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray67);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray54, (java.lang.Object[]) localeArray67);
java.util.Locale locale73 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale75 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale77 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale79 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale81 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray82 = new java.util.Locale[] { locale73, locale75, locale77, locale79, locale81 };
java.util.Set<java.util.Locale> localeSet83 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray82);
java.util.List<java.io.Serializable> serializableList84 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray82);
java.util.Set<java.lang.Cloneable> cloneableSet85 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray82);
org.junit.Assert.assertArrayEquals("tests.slow", (java.lang.Object[]) localeArray67, (java.lang.Object[]) localeArray82);
org.junit.Assert.assertArrayEquals("tests.awaitsfix", (java.lang.Object[]) localeArray37, (java.lang.Object[]) localeArray67);
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) localeArray37);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(objArray0, (java.lang.Object[]) localeArray37);
}
@Test
public void test2867() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2867");
java.util.Locale locale4 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale6 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale8 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale10 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale12 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray13 = new java.util.Locale[] { locale4, locale6, locale8, locale10, locale12 };
java.util.Set<java.util.Locale> localeSet14 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray13);
java.util.List<java.io.Serializable> serializableList15 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray13);
org.junit.Assert.assertNotSame("", (java.lang.Object) localeArray13, (java.lang.Object) 0.0f);
java.util.Locale locale21 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale23 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale25 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale27 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale29 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray30 = new java.util.Locale[] { locale21, locale23, locale25, locale27, locale29 };
java.util.Set<java.util.Locale> localeSet31 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray30);
java.util.List<java.io.Serializable> serializableList32 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray30);
java.util.Set<java.lang.Cloneable> cloneableSet33 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray30);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray30, (java.lang.Object) (byte) -1);
org.junit.Assert.assertNotNull("enwiki.random.lines.txt", (java.lang.Object) localeArray30);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray13, (java.lang.Object[]) localeArray30);
java.lang.Iterable[][] iterableArray39 = new java.lang.Iterable[0][];
@SuppressWarnings("unchecked")
java.lang.Iterable<java.util.Locale>[][] localeIterableArray40 = (java.lang.Iterable<java.util.Locale>[][]) iterableArray39;
java.util.Set<java.lang.Iterable<java.util.Locale>[]> localeIterableArraySet41 = org.apache.lucene.util.LuceneTestCase.asSet(localeIterableArray40);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.badapples", (java.lang.Object[]) localeArray30, (java.lang.Object[]) localeIterableArray40);
}
@Test
public void test2868() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2868");
java.util.Locale locale3 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale5 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale7 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale9 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale11 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray12 = new java.util.Locale[] { locale3, locale5, locale7, locale9, locale11 };
java.util.Set<java.util.Locale> localeSet13 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray12);
java.util.Locale locale16 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale18 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale20 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale22 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale24 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray25 = new java.util.Locale[] { locale16, locale18, locale20, locale22, locale24 };
java.util.Set<java.util.Locale> localeSet26 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray25);
java.util.List<java.io.Serializable> serializableList27 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray25);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray12, (java.lang.Object[]) localeArray25);
java.util.Locale locale31 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale33 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale35 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale37 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale39 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray40 = new java.util.Locale[] { locale31, locale33, locale35, locale37, locale39 };
java.util.Set<java.util.Locale> localeSet41 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray40);
java.util.List<java.io.Serializable> serializableList42 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray40);
java.util.Set<java.lang.Cloneable> cloneableSet43 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray40);
org.junit.Assert.assertArrayEquals("tests.slow", (java.lang.Object[]) localeArray25, (java.lang.Object[]) localeArray40);
org.junit.Assert.assertNotSame((java.lang.Object) 0.0f, (java.lang.Object) localeArray40);
java.util.Locale locale48 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale50 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale52 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale54 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale56 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray57 = new java.util.Locale[] { locale48, locale50, locale52, locale54, locale56 };
java.util.Set<java.util.Locale> localeSet58 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray57);
java.util.List<java.io.Serializable> serializableList59 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray57);
java.util.Set<java.lang.Cloneable> cloneableSet60 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray57);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray57, (java.lang.Object) (byte) -1);
java.util.Locale locale65 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale67 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale69 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale71 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale73 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray74 = new java.util.Locale[] { locale65, locale67, locale69, locale71, locale73 };
java.util.Set<java.util.Locale> localeSet75 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray74);
java.util.List<java.io.Serializable> serializableList76 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray74);
java.util.Set<java.lang.Cloneable> cloneableSet77 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray74);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray74, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray57, (java.lang.Object[]) localeArray74);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray40, (java.lang.Object[]) localeArray74);
int[] intArray86 = new int[] { (byte) -1, ' ', 100, (short) 1 };
int[] intArray91 = new int[] { (byte) -1, ' ', 100, (short) 1 };
int[][] intArray92 = new int[][] { intArray86, intArray91 };
java.util.Set<int[]> intArraySet93 = org.apache.lucene.util.LuceneTestCase.asSet(intArray92);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray74, (java.lang.Object[]) intArray92);
}
@Test
public void test2869() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2869");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests11 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader13 = null;
org.apache.lucene.index.Fields fields14 = null;
org.apache.lucene.index.Fields fields15 = null;
kuromojiAnalysisTests11.assertFieldsEquals("europarl.lines.txt.gz", indexReader13, fields14, fields15, false);
kuromojiAnalysisTests11.ensureCleanedUp();
kuromojiAnalysisTests11.resetCheckIndexStatus();
org.junit.rules.TestRule testRule20 = kuromojiAnalysisTests11.ruleChain;
org.junit.Assert.assertNotSame("hi!", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) testRule20);
kuromojiAnalysisTests1.resetCheckIndexStatus();
org.apache.lucene.index.IndexReader indexReader24 = null;
org.apache.lucene.index.Fields fields25 = null;
org.apache.lucene.index.Fields fields26 = null;
kuromojiAnalysisTests1.assertFieldsEquals("tests.maxfailures", indexReader24, fields25, fields26, false);
org.apache.lucene.index.NumericDocValues numericDocValues31 = null;
org.apache.lucene.index.NumericDocValues numericDocValues32 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests1.assertDocValuesEquals("tests.nightly", (int) (short) 100, numericDocValues31, numericDocValues32);
}
@Test
public void test2870() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2870");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals("enwiki.random.lines.txt", (-1L), (long) (-1));
}
@Test
public void test2871() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2871");
double[] doubleArray6 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray11 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray6, doubleArray11, (double) (byte) 100);
double[] doubleArray20 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray25 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray20, doubleArray25, (double) (byte) 100);
double[] doubleArray33 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray38 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray33, doubleArray38, (double) (byte) 100);
org.junit.Assert.assertArrayEquals("", doubleArray20, doubleArray33, (double) 0);
org.junit.Assert.assertArrayEquals(doubleArray6, doubleArray20, (-1.0d));
double[] doubleArray51 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray56 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray51, doubleArray56, (double) (byte) 100);
double[] doubleArray64 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray69 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray64, doubleArray69, (double) (byte) 100);
org.junit.Assert.assertArrayEquals("", doubleArray51, doubleArray64, (double) 0);
double[] doubleArray79 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray84 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray79, doubleArray84, (double) (byte) 100);
org.junit.Assert.assertArrayEquals(doubleArray64, doubleArray79, 0.0d);
org.junit.Assert.assertArrayEquals(doubleArray20, doubleArray64, 0.0d);
double[] doubleArray91 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("", doubleArray20, doubleArray91, (double) (short) -1);
}
@Test
public void test2872() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2872");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests1.setIndexWriterMaxDocs((int) (byte) 10);
org.apache.lucene.index.IndexReader indexReader5 = null;
org.apache.lucene.index.Terms terms6 = null;
org.apache.lucene.index.Terms terms7 = null;
kuromojiAnalysisTests1.assertTermsEquals("tests.weekly", indexReader5, terms6, terms7, true);
kuromojiAnalysisTests1.setIndexWriterMaxDocs((int) '#');
org.apache.lucene.index.IndexReader indexReader13 = null;
org.apache.lucene.index.Fields fields14 = null;
org.apache.lucene.index.Fields fields15 = null;
kuromojiAnalysisTests1.assertFieldsEquals("tests.badapples", indexReader13, fields14, fields15, false);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object) 100.0d, (java.lang.Object) fields14);
}
@Test
public void test2873() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2873");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) 1, (double) (byte) 10, (double) (byte) -1);
}
@Test
public void test2874() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2874");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("hi!", indexReader9, (int) (byte) 0, postingsEnum11, postingsEnum12);
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Terms terms16 = null;
org.apache.lucene.index.Terms terms17 = null;
kuromojiAnalysisTests1.assertTermsEquals("random", indexReader15, terms16, terms17, true);
kuromojiAnalysisTests1.setUp();
kuromojiAnalysisTests1.tearDown();
org.apache.lucene.index.IndexReader indexReader23 = null;
org.apache.lucene.index.Fields fields24 = null;
org.apache.lucene.index.Fields fields25 = null;
kuromojiAnalysisTests1.assertFieldsEquals("", indexReader23, fields24, fields25, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests28 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader30 = null;
org.apache.lucene.index.Fields fields31 = null;
org.apache.lucene.index.Fields fields32 = null;
kuromojiAnalysisTests28.assertFieldsEquals("europarl.lines.txt.gz", indexReader30, fields31, fields32, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests35 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader37 = null;
org.apache.lucene.index.Fields fields38 = null;
org.apache.lucene.index.Fields fields39 = null;
kuromojiAnalysisTests35.assertFieldsEquals("europarl.lines.txt.gz", indexReader37, fields38, fields39, false);
org.apache.lucene.index.IndexReader indexReader43 = null;
org.apache.lucene.index.PostingsEnum postingsEnum45 = null;
org.apache.lucene.index.PostingsEnum postingsEnum46 = null;
kuromojiAnalysisTests35.assertPositionsSkippingEquals("hi!", indexReader43, (int) (byte) 0, postingsEnum45, postingsEnum46);
org.elasticsearch.test.ESTestCase[] eSTestCaseArray48 = new org.elasticsearch.test.ESTestCase[] { kuromojiAnalysisTests1, kuromojiAnalysisTests28, kuromojiAnalysisTests35 };
java.util.List<org.elasticsearch.test.ESTestCase> eSTestCaseList49 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, eSTestCaseArray48);
java.util.Locale locale51 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass52 = locale51.getClass();
java.util.Locale locale54 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass55 = locale54.getClass();
java.util.Locale locale57 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass58 = locale57.getClass();
java.util.Locale locale60 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass61 = locale60.getClass();
java.util.Locale locale63 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass64 = locale63.getClass();
java.lang.reflect.AnnotatedElement[] annotatedElementArray65 = new java.lang.reflect.AnnotatedElement[] { wildcardClass52, wildcardClass55, wildcardClass58, wildcardClass61, wildcardClass64 };
java.util.Set<java.lang.reflect.AnnotatedElement> annotatedElementSet66 = org.apache.lucene.util.LuceneTestCase.asSet(annotatedElementArray65);
java.lang.Object obj67 = null;
org.junit.Assert.assertNotEquals((java.lang.Object) annotatedElementArray65, obj67);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object[]) eSTestCaseArray48, (java.lang.Object[]) annotatedElementArray65);
}
@Test
public void test2875() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2875");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.ensureAllSearchContextsReleased();
org.junit.Assert.assertNotNull("europarl.lines.txt.gz", (java.lang.Object) kuromojiAnalysisTests1);
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum16 = null;
org.apache.lucene.index.PostingsEnum postingsEnum17 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("random", indexReader14, (int) (short) 0, postingsEnum16, postingsEnum17);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.monster");
java.lang.String str21 = kuromojiAnalysisTests1.getTestName();
org.apache.lucene.index.NumericDocValues numericDocValues24 = null;
org.apache.lucene.index.NumericDocValues numericDocValues25 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests1.assertDocValuesEquals("enwiki.random.lines.txt", (int) '4', numericDocValues24, numericDocValues25);
}
@Test
public void test2876() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2876");
java.lang.String[] strArray1 = new java.lang.String[] { "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet2 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray1);
java.lang.Object[] objArray3 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals((java.lang.Object[]) strArray1, objArray3);
}
@Test
public void test2877() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2877");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.Terms terms11 = null;
org.apache.lucene.index.Terms terms12 = null;
kuromojiAnalysisTests0.assertTermsEquals("", indexReader10, terms11, terms12, false);
kuromojiAnalysisTests0.resetCheckIndexStatus();
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.setUp();
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.ensureCheckIndexPassed();
org.apache.lucene.index.NumericDocValues numericDocValues22 = null;
org.apache.lucene.index.NumericDocValues numericDocValues23 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("tests.slow", (int) (byte) 10, numericDocValues22, numericDocValues23);
}
@Test
public void test2878() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2878");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.resetCheckIndexStatus();
kuromojiAnalysisTests0.ensureCleanedUp();
java.lang.String str10 = kuromojiAnalysisTests0.getTestName();
kuromojiAnalysisTests0.resetCheckIndexStatus();
org.junit.rules.TestRule testRule12 = kuromojiAnalysisTests0.ruleChain;
kuromojiAnalysisTests0.setUp();
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests0.tearDown();
java.lang.String[] strArray23 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet24 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray23);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests25 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests25.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet24, (java.lang.Object) kuromojiAnalysisTests25);
org.apache.lucene.index.PostingsEnum postingsEnum30 = null;
org.apache.lucene.index.PostingsEnum postingsEnum31 = null;
kuromojiAnalysisTests25.assertDocsEnumEquals("tests.badapples", postingsEnum30, postingsEnum31, true);
org.junit.rules.TestRule testRule34 = kuromojiAnalysisTests25.ruleChain;
org.apache.lucene.index.IndexReader indexReader36 = null;
org.apache.lucene.index.PostingsEnum postingsEnum38 = null;
org.apache.lucene.index.PostingsEnum postingsEnum39 = null;
kuromojiAnalysisTests25.assertDocsSkippingEquals("tests.maxfailures", indexReader36, (int) (byte) 100, postingsEnum38, postingsEnum39, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests42 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader44 = null;
org.apache.lucene.index.Fields fields45 = null;
org.apache.lucene.index.Fields fields46 = null;
kuromojiAnalysisTests42.assertFieldsEquals("europarl.lines.txt.gz", indexReader44, fields45, fields46, false);
kuromojiAnalysisTests42.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain51 = kuromojiAnalysisTests42.failureAndSuccessEvents;
kuromojiAnalysisTests25.failureAndSuccessEvents = ruleChain51;
kuromojiAnalysisTests0.failureAndSuccessEvents = ruleChain51;
org.apache.lucene.index.IndexReader indexReader55 = null;
org.apache.lucene.index.PostingsEnum postingsEnum57 = null;
org.apache.lucene.index.PostingsEnum postingsEnum58 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.badapples", indexReader55, 100, postingsEnum57, postingsEnum58);
org.apache.lucene.index.PostingsEnum postingsEnum61 = null;
org.apache.lucene.index.PostingsEnum postingsEnum62 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("tests.weekly", postingsEnum61, postingsEnum62);
}
@Test
public void test2879() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2879");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain9 = kuromojiAnalysisTests0.failureAndSuccessEvents;
kuromojiAnalysisTests0.resetCheckIndexStatus();
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
org.junit.rules.TestRule testRule12 = kuromojiAnalysisTests0.ruleChain;
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests0.resetCheckIndexStatus();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests15 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.Fields fields18 = null;
org.apache.lucene.index.Fields fields19 = null;
kuromojiAnalysisTests15.assertFieldsEquals("europarl.lines.txt.gz", indexReader17, fields18, fields19, false);
org.apache.lucene.index.IndexReader indexReader23 = null;
org.apache.lucene.index.PostingsEnum postingsEnum25 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
kuromojiAnalysisTests15.assertPositionsSkippingEquals("tests.failfast", indexReader23, 1, postingsEnum25, postingsEnum26);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests28 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader30 = null;
org.apache.lucene.index.Fields fields31 = null;
org.apache.lucene.index.Fields fields32 = null;
kuromojiAnalysisTests28.assertFieldsEquals("europarl.lines.txt.gz", indexReader30, fields31, fields32, false);
kuromojiAnalysisTests28.ensureCleanedUp();
kuromojiAnalysisTests28.resetCheckIndexStatus();
kuromojiAnalysisTests28.ensureCleanedUp();
kuromojiAnalysisTests28.ensureCheckIndexPassed();
kuromojiAnalysisTests28.restoreIndexWriterMaxDocs();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests40 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader42 = null;
org.apache.lucene.index.Fields fields43 = null;
org.apache.lucene.index.Fields fields44 = null;
kuromojiAnalysisTests40.assertFieldsEquals("europarl.lines.txt.gz", indexReader42, fields43, fields44, false);
kuromojiAnalysisTests40.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain49 = kuromojiAnalysisTests40.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain49;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain49;
kuromojiAnalysisTests28.failureAndSuccessEvents = ruleChain49;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests55 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader57 = null;
org.apache.lucene.index.Fields fields58 = null;
org.apache.lucene.index.Fields fields59 = null;
kuromojiAnalysisTests55.assertFieldsEquals("europarl.lines.txt.gz", indexReader57, fields58, fields59, false);
kuromojiAnalysisTests55.ensureCleanedUp();
kuromojiAnalysisTests55.resetCheckIndexStatus();
kuromojiAnalysisTests55.ensureCleanedUp();
java.lang.String str65 = kuromojiAnalysisTests55.getTestName();
org.apache.lucene.index.IndexReader indexReader67 = null;
org.apache.lucene.index.Fields fields68 = null;
org.apache.lucene.index.Fields fields69 = null;
kuromojiAnalysisTests55.assertFieldsEquals("<unknown>", indexReader67, fields68, fields69, true);
kuromojiAnalysisTests55.ensureAllSearchContextsReleased();
org.junit.Assert.assertNotSame("tests.monster", (java.lang.Object) 10, (java.lang.Object) kuromojiAnalysisTests55);
org.junit.Assert.assertNotSame((java.lang.Object) ruleChain49, (java.lang.Object) 10);
kuromojiAnalysisTests15.failureAndSuccessEvents = ruleChain49;
kuromojiAnalysisTests0.failureAndSuccessEvents = ruleChain49;
org.apache.lucene.index.PostingsEnum postingsEnum78 = null;
org.apache.lucene.index.PostingsEnum postingsEnum79 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("europarl.lines.txt.gz", postingsEnum78, postingsEnum79);
}
@Test
public void test2880() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2880");
java.util.Locale locale2 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale4 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale6 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray7 = new java.util.Locale[] { locale2, locale4, locale6 };
java.util.Locale locale9 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale11 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale13 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray14 = new java.util.Locale[] { locale9, locale11, locale13 };
java.util.Locale locale16 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale18 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale20 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray21 = new java.util.Locale[] { locale16, locale18, locale20 };
java.util.Locale locale23 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale25 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale27 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray28 = new java.util.Locale[] { locale23, locale25, locale27 };
java.util.Locale locale30 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale32 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale34 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray35 = new java.util.Locale[] { locale30, locale32, locale34 };
java.util.Locale locale37 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale locale39 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
java.util.Locale locale41 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray42 = new java.util.Locale[] { locale37, locale39, locale41 };
java.util.Locale[][] localeArray43 = new java.util.Locale[][] { localeArray7, localeArray14, localeArray21, localeArray28, localeArray35, localeArray42 };
java.util.Set<java.util.Locale[]> localeArraySet44 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray43);
java.util.List<java.util.Locale[]> localeArrayList45 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, localeArray43);
java.util.Set<java.util.Locale[]> localeArraySet46 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray43);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) localeArray43);
}
@Test
public void test2881() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2881");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((long) (byte) 10, (long) 100);
}
@Test
public void test2882() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2882");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests11 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader13 = null;
org.apache.lucene.index.Fields fields14 = null;
org.apache.lucene.index.Fields fields15 = null;
kuromojiAnalysisTests11.assertFieldsEquals("europarl.lines.txt.gz", indexReader13, fields14, fields15, false);
kuromojiAnalysisTests11.ensureCleanedUp();
kuromojiAnalysisTests11.resetCheckIndexStatus();
org.junit.rules.TestRule testRule20 = kuromojiAnalysisTests11.ruleChain;
org.junit.Assert.assertNotSame("hi!", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) testRule20);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests22 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader24 = null;
org.apache.lucene.index.Fields fields25 = null;
org.apache.lucene.index.Fields fields26 = null;
kuromojiAnalysisTests22.assertFieldsEquals("europarl.lines.txt.gz", indexReader24, fields25, fields26, false);
org.apache.lucene.index.IndexReader indexReader30 = null;
org.apache.lucene.index.PostingsEnum postingsEnum32 = null;
org.apache.lucene.index.PostingsEnum postingsEnum33 = null;
kuromojiAnalysisTests22.assertPositionsSkippingEquals("hi!", indexReader30, (int) (byte) 0, postingsEnum32, postingsEnum33);
org.apache.lucene.index.IndexReader indexReader36 = null;
org.apache.lucene.index.Terms terms37 = null;
org.apache.lucene.index.Terms terms38 = null;
kuromojiAnalysisTests22.assertTermsEquals("random", indexReader36, terms37, terms38, true);
kuromojiAnalysisTests22.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum43 = null;
org.apache.lucene.index.PostingsEnum postingsEnum44 = null;
kuromojiAnalysisTests22.assertDocsEnumEquals("tests.nightly", postingsEnum43, postingsEnum44, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests47 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader49 = null;
org.apache.lucene.index.Fields fields50 = null;
org.apache.lucene.index.Fields fields51 = null;
kuromojiAnalysisTests47.assertFieldsEquals("europarl.lines.txt.gz", indexReader49, fields50, fields51, false);
kuromojiAnalysisTests47.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests47.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests47.ensureCleanedUp();
org.junit.Assert.assertNotEquals((java.lang.Object) kuromojiAnalysisTests22, (java.lang.Object) kuromojiAnalysisTests47);
kuromojiAnalysisTests22.ensureAllSearchContextsReleased();
kuromojiAnalysisTests22.ensureCleanedUp();
kuromojiAnalysisTests22.ensureCheckIndexPassed();
org.apache.lucene.index.IndexReader indexReader64 = null;
org.apache.lucene.index.PostingsEnum postingsEnum66 = null;
org.apache.lucene.index.PostingsEnum postingsEnum67 = null;
kuromojiAnalysisTests22.assertPositionsSkippingEquals("europarl.lines.txt.gz", indexReader64, (int) (short) 100, postingsEnum66, postingsEnum67);
java.lang.String str69 = kuromojiAnalysisTests22.getTestName();
java.lang.String str70 = kuromojiAnalysisTests22.getTestName();
org.apache.lucene.index.IndexReader indexReader72 = null;
org.apache.lucene.index.PostingsEnum postingsEnum74 = null;
org.apache.lucene.index.PostingsEnum postingsEnum75 = null;
kuromojiAnalysisTests22.assertPositionsSkippingEquals("<unknown>", indexReader72, (int) (byte) 10, postingsEnum74, postingsEnum75);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) kuromojiAnalysisTests22);
}
@Test
public void test2883() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2883");
int[] intArray1 = null;
int[] intArray6 = new int[] { '#' };
int[] intArray8 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray6, intArray8);
int[] intArray11 = new int[] { '#' };
int[] intArray13 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray11, intArray13);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray6, intArray11);
int[] intArray18 = new int[] { '#' };
int[] intArray20 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray18, intArray20);
int[] intArray23 = new int[] { '#' };
int[] intArray25 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray23, intArray25);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray18, intArray23);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", intArray6, intArray23);
int[] intArray30 = new int[] { '#' };
int[] intArray32 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray30, intArray32);
org.junit.Assert.assertArrayEquals(intArray23, intArray32);
int[] intArray40 = new int[] { '#' };
int[] intArray42 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray40, intArray42);
int[] intArray45 = new int[] { '#' };
int[] intArray47 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray45, intArray47);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray40, intArray45);
int[] intArray52 = new int[] { '#' };
int[] intArray54 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray52, intArray54);
int[] intArray57 = new int[] { '#' };
int[] intArray59 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray57, intArray59);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray52, intArray57);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", intArray40, intArray57);
int[] intArray64 = new int[] { '#' };
int[] intArray66 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray64, intArray66);
org.junit.Assert.assertArrayEquals("tests.slow", intArray40, intArray64);
int[] intArray70 = new int[] { '#' };
int[] intArray72 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray70, intArray72);
org.junit.Assert.assertArrayEquals("tests.slow", intArray40, intArray72);
org.junit.Assert.assertArrayEquals("hi!", intArray32, intArray40);
int[] intArray78 = new int[] { '#' };
int[] intArray80 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray78, intArray80);
int[] intArray83 = new int[] { '#' };
int[] intArray85 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray83, intArray85);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray78, intArray83);
org.junit.Assert.assertArrayEquals(intArray40, intArray83);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("<unknown>", intArray1, intArray83);
}
@Test
public void test2884() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2884");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((float) (byte) 1, (float) (short) 100, (float) 0);
}
@Test
public void test2885() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2885");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.maxfailures", (double) (short) 1, (double) 0L);
}
@Test
public void test2886() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2886");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.nightly", (double) 100.0f, 0.0d, (double) 1);
}
@Test
public void test2887() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2887");
java.util.concurrent.ExecutorService[] executorServiceArray1 = new java.util.concurrent.ExecutorService[] {};
boolean boolean2 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
boolean boolean3 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
java.util.concurrent.ExecutorService[] executorServiceArray4 = new java.util.concurrent.ExecutorService[] {};
boolean boolean5 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean6 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean7 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean8 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean9 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean10 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
org.junit.Assert.assertEquals((java.lang.Object[]) executorServiceArray1, (java.lang.Object[]) executorServiceArray4);
boolean boolean12 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
java.util.Locale locale17 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale19 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale21 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale23 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale25 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray26 = new java.util.Locale[] { locale17, locale19, locale21, locale23, locale25 };
java.util.Set<java.util.Locale> localeSet27 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray26);
java.util.List<java.io.Serializable> serializableList28 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray26);
java.util.Set<java.lang.Cloneable> cloneableSet29 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray26);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray26, (java.lang.Object) (byte) -1);
java.util.Locale locale34 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale36 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale38 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale40 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale42 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray43 = new java.util.Locale[] { locale34, locale36, locale38, locale40, locale42 };
java.util.Set<java.util.Locale> localeSet44 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray43);
java.util.List<java.io.Serializable> serializableList45 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray43);
java.util.Set<java.lang.Cloneable> cloneableSet46 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray43);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray43, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray26, (java.lang.Object[]) localeArray43);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests50 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader52 = null;
org.apache.lucene.index.Fields fields53 = null;
org.apache.lucene.index.Fields fields54 = null;
kuromojiAnalysisTests50.assertFieldsEquals("europarl.lines.txt.gz", indexReader52, fields53, fields54, false);
org.apache.lucene.index.IndexReader indexReader58 = null;
org.apache.lucene.index.PostingsEnum postingsEnum60 = null;
org.apache.lucene.index.PostingsEnum postingsEnum61 = null;
kuromojiAnalysisTests50.assertPositionsSkippingEquals("tests.failfast", indexReader58, 1, postingsEnum60, postingsEnum61);
kuromojiAnalysisTests50.setIndexWriterMaxDocs(0);
kuromojiAnalysisTests50.ensureCleanedUp();
kuromojiAnalysisTests50.resetCheckIndexStatus();
org.junit.Assert.assertNotSame("tests.badapples", (java.lang.Object) localeArray43, (java.lang.Object) kuromojiAnalysisTests50);
java.util.Locale locale70 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale72 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale74 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale76 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale78 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray79 = new java.util.Locale[] { locale70, locale72, locale74, locale76, locale78 };
java.util.Set<java.util.Locale> localeSet80 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray79);
java.util.List<java.io.Serializable> serializableList81 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray79);
org.junit.Assert.assertEquals("random", (java.lang.Object[]) localeArray43, (java.lang.Object[]) localeArray79);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("hi!", (java.lang.Object[]) executorServiceArray4, (java.lang.Object[]) localeArray79);
}
@Test
public void test2888() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2888");
long[] longArray6 = new long[] { ' ', 'a', (byte) 10, 100 };
long[] longArray11 = new long[] { ' ', 'a', (byte) 10, 100 };
long[] longArray16 = new long[] { ' ', 'a', (byte) 10, 100 };
long[] longArray21 = new long[] { ' ', 'a', (byte) 10, 100 };
long[] longArray26 = new long[] { ' ', 'a', (byte) 10, 100 };
long[][] longArray27 = new long[][] { longArray6, longArray11, longArray16, longArray21, longArray26 };
java.util.List<long[]> longArrayList28 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, longArray27);
java.util.Set<long[]> longArraySet29 = org.apache.lucene.util.LuceneTestCase.asSet(longArray27);
java.util.Locale locale34 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale36 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale38 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale40 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale42 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray43 = new java.util.Locale[] { locale34, locale36, locale38, locale40, locale42 };
java.util.Set<java.util.Locale> localeSet44 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray43);
java.util.List<java.io.Serializable> serializableList45 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray43);
java.util.Set<java.lang.Cloneable> cloneableSet46 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray43);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray43, (java.lang.Object) (byte) -1);
java.util.Locale locale51 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale53 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale55 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale57 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale59 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray60 = new java.util.Locale[] { locale51, locale53, locale55, locale57, locale59 };
java.util.Set<java.util.Locale> localeSet61 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray60);
java.util.List<java.io.Serializable> serializableList62 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray60);
java.util.Set<java.lang.Cloneable> cloneableSet63 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray60);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray60, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray43, (java.lang.Object[]) localeArray60);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests67 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader69 = null;
org.apache.lucene.index.Fields fields70 = null;
org.apache.lucene.index.Fields fields71 = null;
kuromojiAnalysisTests67.assertFieldsEquals("europarl.lines.txt.gz", indexReader69, fields70, fields71, false);
kuromojiAnalysisTests67.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain76 = kuromojiAnalysisTests67.failureAndSuccessEvents;
kuromojiAnalysisTests67.setUp();
org.junit.Assert.assertNotSame("tests.nightly", (java.lang.Object) localeArray43, (java.lang.Object) kuromojiAnalysisTests67);
kuromojiAnalysisTests67.setIndexWriterMaxDocs((int) (short) 1);
kuromojiAnalysisTests67.restoreIndexWriterMaxDocs();
org.apache.lucene.store.MockDirectoryWrapper.Throttling throttling84 = org.apache.lucene.util.LuceneTestCase.TEST_THROTTLING;
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray85 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] { throttling84 };
java.util.List<org.apache.lucene.store.MockDirectoryWrapper.Throttling> throttlingList86 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, throttlingArray85);
org.junit.Assert.assertNotNull("europarl.lines.txt.gz", (java.lang.Object) throttlingArray85);
java.util.Set<java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>> throttlingEnumSet88 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>[]) throttlingArray85);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) kuromojiAnalysisTests67, (java.lang.Object) throttlingArray85);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.failfast", (java.lang.Object[]) longArray27, (java.lang.Object[]) throttlingArray85);
}
@Test
public void test2889() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2889");
short[] shortArray3 = new short[] { (short) 10 };
short[] shortArray5 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray3, shortArray5);
short[] shortArray10 = new short[] { (short) 10 };
short[] shortArray12 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray10, shortArray12);
short[] shortArray16 = new short[] { (short) 10 };
short[] shortArray18 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray16, shortArray18);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray12, shortArray18);
org.junit.Assert.assertArrayEquals(shortArray5, shortArray18);
short[] shortArray25 = new short[] { (short) 10 };
short[] shortArray27 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray25, shortArray27);
short[] shortArray31 = new short[] { (short) 10 };
short[] shortArray33 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray31, shortArray33);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", shortArray27, shortArray33);
short[] shortArray39 = new short[] { (short) 10 };
short[] shortArray41 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray39, shortArray41);
short[] shortArray45 = new short[] { (short) 10 };
short[] shortArray47 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray45, shortArray47);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray41, shortArray47);
org.junit.Assert.assertArrayEquals(shortArray33, shortArray41);
org.junit.Assert.assertArrayEquals(shortArray5, shortArray33);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests52 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader54 = null;
org.apache.lucene.index.Fields fields55 = null;
org.apache.lucene.index.Fields fields56 = null;
kuromojiAnalysisTests52.assertFieldsEquals("europarl.lines.txt.gz", indexReader54, fields55, fields56, false);
org.apache.lucene.index.IndexReader indexReader60 = null;
org.apache.lucene.index.PostingsEnum postingsEnum62 = null;
org.apache.lucene.index.PostingsEnum postingsEnum63 = null;
kuromojiAnalysisTests52.assertPositionsSkippingEquals("tests.failfast", indexReader60, 1, postingsEnum62, postingsEnum63);
kuromojiAnalysisTests52.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests52.tearDown();
java.util.Locale locale68 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.weekly");
org.junit.Assert.assertNotEquals((java.lang.Object) kuromojiAnalysisTests52, (java.lang.Object) "tests.weekly");
org.apache.lucene.index.IndexReader indexReader71 = null;
org.apache.lucene.index.Terms terms72 = null;
org.apache.lucene.index.Terms terms73 = null;
kuromojiAnalysisTests52.assertTermsEquals("enwiki.random.lines.txt", indexReader71, terms72, terms73, false);
org.apache.lucene.index.IndexReader indexReader77 = null;
org.apache.lucene.index.PostingsEnum postingsEnum79 = null;
org.apache.lucene.index.PostingsEnum postingsEnum80 = null;
kuromojiAnalysisTests52.assertPositionsSkippingEquals("<unknown>", indexReader77, (int) (byte) 10, postingsEnum79, postingsEnum80);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.monster", (java.lang.Object) shortArray5, (java.lang.Object) (byte) 10);
}
@Test
public void test2890() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2890");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.resetCheckIndexStatus();
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
org.junit.rules.TestRule testRule13 = kuromojiAnalysisTests1.ruleChain;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests14 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader16 = null;
org.apache.lucene.index.Fields fields17 = null;
org.apache.lucene.index.Fields fields18 = null;
kuromojiAnalysisTests14.assertFieldsEquals("europarl.lines.txt.gz", indexReader16, fields17, fields18, false);
kuromojiAnalysisTests14.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain23 = kuromojiAnalysisTests14.failureAndSuccessEvents;
kuromojiAnalysisTests14.resetCheckIndexStatus();
kuromojiAnalysisTests14.assertPathHasBeenCleared("random");
java.lang.String str27 = kuromojiAnalysisTests14.getTestName();
org.junit.rules.RuleChain ruleChain28 = kuromojiAnalysisTests14.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain28;
kuromojiAnalysisTests1.failureAndSuccessEvents = ruleChain28;
kuromojiAnalysisTests1.setUp();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull("europarl.lines.txt.gz", (java.lang.Object) kuromojiAnalysisTests1);
}
@Test
public void test2891() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2891");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("europarl.lines.txt.gz", (float) 10L, (float) (byte) 0, (float) (byte) 1);
}
@Test
public void test2892() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2892");
long[] longArray4 = new long[] { 1 };
long[] longArray6 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray4, longArray6);
long[] longArray10 = new long[] { 1 };
long[] longArray12 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray10, longArray12);
org.junit.Assert.assertArrayEquals("random", longArray6, longArray12);
long[] longArray19 = new long[] { 1 };
long[] longArray21 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray19, longArray21);
long[] longArray25 = new long[] { 1 };
long[] longArray27 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray25, longArray27);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray21, longArray25);
long[] longArray32 = new long[] { 1 };
long[] longArray34 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray32, longArray34);
org.junit.Assert.assertArrayEquals("hi!", longArray25, longArray32);
long[] longArray40 = new long[] { 1 };
long[] longArray42 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray40, longArray42);
long[] longArray46 = new long[] { 1 };
long[] longArray48 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray46, longArray48);
org.junit.Assert.assertArrayEquals("random", longArray42, longArray48);
org.junit.Assert.assertArrayEquals(longArray32, longArray42);
org.junit.Assert.assertArrayEquals(longArray6, longArray42);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests53 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader55 = null;
org.apache.lucene.index.Fields fields56 = null;
org.apache.lucene.index.Fields fields57 = null;
kuromojiAnalysisTests53.assertFieldsEquals("europarl.lines.txt.gz", indexReader55, fields56, fields57, false);
kuromojiAnalysisTests53.ensureCleanedUp();
kuromojiAnalysisTests53.assertPathHasBeenCleared("tests.failfast");
org.apache.lucene.index.IndexReader indexReader64 = null;
org.apache.lucene.index.PostingsEnum postingsEnum66 = null;
org.apache.lucene.index.PostingsEnum postingsEnum67 = null;
kuromojiAnalysisTests53.assertPositionsSkippingEquals("tests.slow", indexReader64, (int) (short) 10, postingsEnum66, postingsEnum67);
org.apache.lucene.index.IndexReader indexReader70 = null;
org.apache.lucene.index.Terms terms71 = null;
org.apache.lucene.index.Terms terms72 = null;
kuromojiAnalysisTests53.assertTermsEquals("tests.failfast", indexReader70, terms71, terms72, false);
kuromojiAnalysisTests53.overrideTestDefaultQueryCache();
org.junit.Assert.assertNotEquals((java.lang.Object) longArray42, (java.lang.Object) kuromojiAnalysisTests53);
long[] longArray82 = new long[] { (short) 0, 0, (-1), 4, (short) -1 };
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.slow", longArray42, longArray82);
}
@Test
public void test2893() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2893");
short[] shortArray4 = new short[] { (short) 10 };
short[] shortArray6 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray4, shortArray6);
short[] shortArray11 = new short[] { (short) 10 };
short[] shortArray13 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray11, shortArray13);
short[] shortArray17 = new short[] { (short) 10 };
short[] shortArray19 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray17, shortArray19);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray13, shortArray19);
org.junit.Assert.assertArrayEquals(shortArray6, shortArray19);
short[] shortArray26 = new short[] { (short) 10 };
short[] shortArray28 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray26, shortArray28);
short[] shortArray32 = new short[] { (short) 10 };
short[] shortArray34 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray32, shortArray34);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray28, shortArray34);
org.junit.Assert.assertArrayEquals("random", shortArray6, shortArray34);
short[] shortArray41 = new short[] { (short) 10 };
short[] shortArray43 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray41, shortArray43);
short[] shortArray47 = new short[] { (short) 10 };
short[] shortArray49 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray47, shortArray49);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", shortArray43, shortArray49);
short[] shortArray54 = new short[] { (short) 10 };
short[] shortArray56 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray54, shortArray56);
short[] shortArray61 = new short[] { (short) 10 };
short[] shortArray63 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray61, shortArray63);
short[] shortArray67 = new short[] { (short) 10 };
short[] shortArray69 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray67, shortArray69);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray63, shortArray69);
org.junit.Assert.assertArrayEquals(shortArray56, shortArray69);
short[] shortArray76 = new short[] { (short) 10 };
short[] shortArray78 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray76, shortArray78);
short[] shortArray82 = new short[] { (short) 10 };
short[] shortArray84 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray82, shortArray84);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray78, shortArray84);
org.junit.Assert.assertArrayEquals(shortArray56, shortArray84);
org.junit.Assert.assertArrayEquals(shortArray43, shortArray84);
org.junit.Assert.assertArrayEquals(shortArray6, shortArray84);
short[] shortArray90 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.slow", shortArray84, shortArray90);
}
@Test
public void test2894() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2894");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.failfast", indexReader9, 1, postingsEnum11, postingsEnum12);
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests1.setUp();
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests1.setUp();
kuromojiAnalysisTests1.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader20 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.awaitsfix", indexReader20, 4, postingsEnum22, postingsEnum23);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotNull("tests.badapples", (java.lang.Object) postingsEnum23);
}
@Test
public void test2895() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2895");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.maxfailures", (double) 1L, (double) 100.0f, (double) 0.0f);
}
@Test
public void test2896() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2896");
java.lang.Object[] objArray0 = null;
float[][] floatArray1 = new float[][] {};
java.util.Set<float[]> floatArraySet2 = org.apache.lucene.util.LuceneTestCase.asSet(floatArray1);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(objArray0, (java.lang.Object[]) floatArray1);
}
@Test
public void test2897() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2897");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.resetCheckIndexStatus();
kuromojiAnalysisTests1.ensureCleanedUp();
java.lang.String str11 = kuromojiAnalysisTests1.getTestName();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull("tests.badapples", (java.lang.Object) kuromojiAnalysisTests1);
}
@Test
public void test2898() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2898");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) '#', (double) 100.0f, (double) 10);
}
@Test
public void test2899() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2899");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((float) (short) 10, (float) 100, (float) 1L);
}
@Test
public void test2900() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2900");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("hi!", (long) (short) -1, (long) '#');
}
@Test
public void test2901() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2901");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.resetCheckIndexStatus();
java.lang.String str12 = kuromojiAnalysisTests1.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests1);
kuromojiAnalysisTests1.tearDown();
kuromojiAnalysisTests1.overrideTestDefaultQueryCache();
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests1.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader19 = null;
org.apache.lucene.index.PostingsEnum postingsEnum21 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.monster", indexReader19, 0, postingsEnum21, postingsEnum22);
org.apache.lucene.index.IndexReader indexReader25 = null;
org.apache.lucene.index.Terms terms26 = null;
org.apache.lucene.index.Terms terms27 = null;
kuromojiAnalysisTests1.assertTermsEquals("tests.failfast", indexReader25, terms26, terms27, true);
kuromojiAnalysisTests1.setIndexWriterMaxDocs((int) (byte) 1);
org.apache.lucene.index.NumericDocValues numericDocValues34 = null;
org.apache.lucene.index.NumericDocValues numericDocValues35 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests1.assertDocValuesEquals("tests.weekly", (int) (byte) -1, numericDocValues34, numericDocValues35);
}
@Test
public void test2902() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2902");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) 'a', (double) 0.0f, 0.0d);
}
@Test
public void test2903() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2903");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
org.junit.rules.TestRule testRule9 = kuromojiAnalysisTests0.ruleChain;
org.junit.rules.TestRule testRule10 = kuromojiAnalysisTests0.ruleChain;
kuromojiAnalysisTests0.resetCheckIndexStatus();
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("tests.monster", postingsEnum14, postingsEnum15);
}
@Test
public void test2904() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2904");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests2 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader4 = null;
org.apache.lucene.index.Fields fields5 = null;
org.apache.lucene.index.Fields fields6 = null;
kuromojiAnalysisTests2.assertFieldsEquals("europarl.lines.txt.gz", indexReader4, fields5, fields6, false);
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
kuromojiAnalysisTests2.assertPositionsSkippingEquals("hi!", indexReader10, (int) (byte) 0, postingsEnum12, postingsEnum13);
org.apache.lucene.index.IndexReader indexReader16 = null;
org.apache.lucene.index.Terms terms17 = null;
org.apache.lucene.index.Terms terms18 = null;
kuromojiAnalysisTests2.assertTermsEquals("random", indexReader16, terms17, terms18, true);
kuromojiAnalysisTests2.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum23 = null;
org.apache.lucene.index.PostingsEnum postingsEnum24 = null;
kuromojiAnalysisTests2.assertDocsEnumEquals("tests.nightly", postingsEnum23, postingsEnum24, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests27 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader29 = null;
org.apache.lucene.index.Fields fields30 = null;
org.apache.lucene.index.Fields fields31 = null;
kuromojiAnalysisTests27.assertFieldsEquals("europarl.lines.txt.gz", indexReader29, fields30, fields31, false);
kuromojiAnalysisTests27.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain36 = kuromojiAnalysisTests27.failureAndSuccessEvents;
kuromojiAnalysisTests27.ensureAllSearchContextsReleased();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests38 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader40 = null;
org.apache.lucene.index.Fields fields41 = null;
org.apache.lucene.index.Fields fields42 = null;
kuromojiAnalysisTests38.assertFieldsEquals("europarl.lines.txt.gz", indexReader40, fields41, fields42, false);
org.apache.lucene.index.IndexReader indexReader46 = null;
org.apache.lucene.index.PostingsEnum postingsEnum48 = null;
org.apache.lucene.index.PostingsEnum postingsEnum49 = null;
kuromojiAnalysisTests38.assertPositionsSkippingEquals("hi!", indexReader46, (int) (byte) 0, postingsEnum48, postingsEnum49);
kuromojiAnalysisTests38.ensureCheckIndexPassed();
org.elasticsearch.index.analysis.KuromojiAnalysisTests[] kuromojiAnalysisTestsArray52 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests[] { kuromojiAnalysisTests2, kuromojiAnalysisTests27, kuromojiAnalysisTests38 };
java.util.Set<org.elasticsearch.index.analysis.KuromojiAnalysisTests> kuromojiAnalysisTestsSet53 = org.apache.lucene.util.LuceneTestCase.asSet(kuromojiAnalysisTestsArray52);
java.util.Set<org.junit.Assert> assertSet54 = org.apache.lucene.util.LuceneTestCase.asSet((org.junit.Assert[]) kuromojiAnalysisTestsArray52);
org.junit.rules.RuleChain[] ruleChainArray55 = new org.junit.rules.RuleChain[] {};
org.junit.rules.RuleChain[][] ruleChainArray56 = new org.junit.rules.RuleChain[][] { ruleChainArray55 };
java.util.Set<org.junit.rules.RuleChain[]> ruleChainArraySet57 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray56);
org.junit.Assert.assertNotEquals("tests.failfast", (java.lang.Object) kuromojiAnalysisTestsArray52, (java.lang.Object) ruleChainArray56);
int[][] intArray59 = new int[][] {};
java.util.Set<int[]> intArraySet60 = org.apache.lucene.util.LuceneTestCase.asSet(intArray59);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("hi!", (java.lang.Object[]) ruleChainArray56, (java.lang.Object[]) intArray59);
}
@Test
public void test2905() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2905");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(100.0f, (float) 10, (float) (short) 0);
}
@Test
public void test2906() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2906");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((float) 10, (float) 0, (float) 1L);
}
@Test
public void test2907() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2907");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("hi!", indexReader8, (int) (byte) 0, postingsEnum10, postingsEnum11);
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.Terms terms15 = null;
org.apache.lucene.index.Terms terms16 = null;
kuromojiAnalysisTests0.assertTermsEquals("random", indexReader14, terms15, terms16, true);
kuromojiAnalysisTests0.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum21 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
kuromojiAnalysisTests0.assertDocsEnumEquals("tests.nightly", postingsEnum21, postingsEnum22, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests25 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader27 = null;
org.apache.lucene.index.Fields fields28 = null;
org.apache.lucene.index.Fields fields29 = null;
kuromojiAnalysisTests25.assertFieldsEquals("europarl.lines.txt.gz", indexReader27, fields28, fields29, false);
kuromojiAnalysisTests25.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests25.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests25.ensureCleanedUp();
org.junit.Assert.assertNotEquals((java.lang.Object) kuromojiAnalysisTests0, (java.lang.Object) kuromojiAnalysisTests25);
org.junit.Assert.assertNotNull((java.lang.Object) kuromojiAnalysisTests0);
org.apache.lucene.index.IndexReader indexReader40 = null;
org.apache.lucene.index.PostingsEnum postingsEnum42 = null;
org.apache.lucene.index.PostingsEnum postingsEnum43 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.awaitsfix", indexReader40, (int) (short) 100, postingsEnum42, postingsEnum43);
org.apache.lucene.index.NumericDocValues numericDocValues47 = null;
org.apache.lucene.index.NumericDocValues numericDocValues48 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("tests.monster", 0, numericDocValues47, numericDocValues48);
}
@Test
public void test2908() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2908");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.failfast", indexReader8, 1, postingsEnum10, postingsEnum11);
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests0.setUp();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests15 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.Fields fields18 = null;
org.apache.lucene.index.Fields fields19 = null;
kuromojiAnalysisTests15.assertFieldsEquals("europarl.lines.txt.gz", indexReader17, fields18, fields19, false);
org.apache.lucene.index.IndexReader indexReader23 = null;
org.apache.lucene.index.PostingsEnum postingsEnum25 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
kuromojiAnalysisTests15.assertPositionsSkippingEquals("hi!", indexReader23, (int) (byte) 0, postingsEnum25, postingsEnum26);
java.lang.String str28 = kuromojiAnalysisTests15.getTestName();
org.apache.lucene.index.IndexReader indexReader30 = null;
org.apache.lucene.index.PostingsEnum postingsEnum32 = null;
org.apache.lucene.index.PostingsEnum postingsEnum33 = null;
kuromojiAnalysisTests15.assertDocsSkippingEquals("<unknown>", indexReader30, 100, postingsEnum32, postingsEnum33, false);
org.junit.rules.RuleChain ruleChain36 = kuromojiAnalysisTests15.failureAndSuccessEvents;
kuromojiAnalysisTests0.failureAndSuccessEvents = ruleChain36;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertPathHasBeenCleared("");
}
@Test
public void test2909() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2909");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("", (double) 10L, (double) (short) 1);
}
@Test
public void test2910() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2910");
java.lang.Object obj0 = null;
char[] charArray3 = new char[] {};
char[] charArray4 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray3, charArray4);
char[] charArray6 = new char[] {};
char[] charArray7 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray6, charArray7);
org.junit.Assert.assertArrayEquals(charArray4, charArray7);
char[] charArray10 = new char[] {};
char[] charArray11 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray10, charArray11);
char[] charArray13 = new char[] {};
char[] charArray14 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray13, charArray14);
org.junit.Assert.assertArrayEquals(charArray11, charArray14);
org.junit.Assert.assertArrayEquals("tests.monster", charArray7, charArray14);
char[] charArray19 = new char[] {};
char[] charArray20 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray19, charArray20);
char[] charArray22 = new char[] {};
char[] charArray23 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray22, charArray23);
char[] charArray25 = new char[] {};
char[] charArray26 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray25, charArray26);
org.junit.Assert.assertArrayEquals(charArray23, charArray26);
org.junit.Assert.assertArrayEquals("random", charArray20, charArray23);
org.junit.Assert.assertArrayEquals("tests.badapples", charArray14, charArray23);
char[] charArray32 = new char[] {};
char[] charArray33 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray32, charArray33);
char[] charArray35 = new char[] {};
char[] charArray36 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray35, charArray36);
char[] charArray38 = new char[] {};
char[] charArray39 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray38, charArray39);
org.junit.Assert.assertArrayEquals(charArray36, charArray39);
org.junit.Assert.assertArrayEquals("random", charArray33, charArray36);
char[] charArray43 = new char[] {};
char[] charArray44 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray43, charArray44);
char[] charArray46 = new char[] {};
char[] charArray47 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray46, charArray47);
org.junit.Assert.assertArrayEquals(charArray44, charArray47);
org.junit.Assert.assertArrayEquals(charArray33, charArray44);
org.junit.Assert.assertArrayEquals(charArray14, charArray33);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(obj0, (java.lang.Object) charArray33);
}
@Test
public void test2911() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2911");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("hi!", indexReader8, (int) (byte) 0, postingsEnum10, postingsEnum11);
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.Terms terms15 = null;
org.apache.lucene.index.Terms terms16 = null;
kuromojiAnalysisTests0.assertTermsEquals("random", indexReader14, terms15, terms16, true);
java.lang.String str19 = kuromojiAnalysisTests0.getTestName();
org.apache.lucene.index.NumericDocValues numericDocValues22 = null;
org.apache.lucene.index.NumericDocValues numericDocValues23 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("tests.awaitsfix", (int) ' ', numericDocValues22, numericDocValues23);
}
@Test
public void test2912() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2912");
java.util.concurrent.ExecutorService[][] executorServiceArray1 = new java.util.concurrent.ExecutorService[][] {};
java.util.concurrent.ExecutorService[][] executorServiceArray2 = new java.util.concurrent.ExecutorService[][] {};
java.util.concurrent.ExecutorService[][][] executorServiceArray3 = new java.util.concurrent.ExecutorService[][][] { executorServiceArray1, executorServiceArray2 };
java.util.concurrent.ExecutorService[][][][] executorServiceArray4 = new java.util.concurrent.ExecutorService[][][][] { executorServiceArray3 };
java.util.concurrent.ExecutorService[][] executorServiceArray5 = new java.util.concurrent.ExecutorService[][] {};
java.util.concurrent.ExecutorService[][] executorServiceArray6 = new java.util.concurrent.ExecutorService[][] {};
java.util.concurrent.ExecutorService[][][] executorServiceArray7 = new java.util.concurrent.ExecutorService[][][] { executorServiceArray5, executorServiceArray6 };
java.util.concurrent.ExecutorService[][][][] executorServiceArray8 = new java.util.concurrent.ExecutorService[][][][] { executorServiceArray7 };
java.util.concurrent.ExecutorService[][][][][] executorServiceArray9 = new java.util.concurrent.ExecutorService[][][][][] { executorServiceArray4, executorServiceArray8 };
java.util.Set<java.util.concurrent.ExecutorService[][][][]> executorServiceArraySet10 = org.apache.lucene.util.LuceneTestCase.asSet(executorServiceArray9);
org.apache.lucene.store.MockDirectoryWrapper.Throttling throttling14 = org.apache.lucene.util.LuceneTestCase.TEST_THROTTLING;
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray15 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] { throttling14 };
java.util.List<org.apache.lucene.store.MockDirectoryWrapper.Throttling> throttlingList16 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, throttlingArray15);
org.junit.Assert.assertNotNull("europarl.lines.txt.gz", (java.lang.Object) throttlingArray15);
java.util.Set<java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>> throttlingEnumSet18 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>[]) throttlingArray15);
org.apache.lucene.store.MockDirectoryWrapper.Throttling throttling20 = org.apache.lucene.util.LuceneTestCase.TEST_THROTTLING;
org.apache.lucene.store.MockDirectoryWrapper.Throttling[] throttlingArray21 = new org.apache.lucene.store.MockDirectoryWrapper.Throttling[] { throttling20 };
java.util.List<org.apache.lucene.store.MockDirectoryWrapper.Throttling> throttlingList22 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 0, throttlingArray21);
java.util.Set<java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>> throttlingEnumSet23 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Enum<org.apache.lucene.store.MockDirectoryWrapper.Throttling>[]) throttlingArray21);
org.junit.Assert.assertEquals("tests.failfast", (java.lang.Object[]) throttlingArray15, (java.lang.Object[]) throttlingArray21);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", (java.lang.Object[]) executorServiceArray9, (java.lang.Object[]) throttlingArray15);
}
@Test
public void test2913() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2913");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
org.junit.rules.TestRule testRule9 = kuromojiAnalysisTests0.ruleChain;
org.junit.rules.TestRule testRule10 = kuromojiAnalysisTests0.ruleChain;
org.apache.lucene.index.IndexReader indexReader12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.slow", indexReader12, (int) (short) 1, postingsEnum14, postingsEnum15);
org.junit.rules.TestRule testRule17 = kuromojiAnalysisTests0.ruleChain;
org.apache.lucene.index.IndexReader indexReader19 = null;
org.apache.lucene.index.Terms terms20 = null;
org.apache.lucene.index.Terms terms21 = null;
kuromojiAnalysisTests0.assertTermsEquals("", indexReader19, terms20, terms21, false);
kuromojiAnalysisTests0.tearDown();
org.junit.rules.RuleChain ruleChain25 = kuromojiAnalysisTests0.failureAndSuccessEvents;
kuromojiAnalysisTests0.ensureAllSearchContextsReleased();
kuromojiAnalysisTests0.resetCheckIndexStatus();
org.apache.lucene.index.PostingsEnum postingsEnum29 = null;
org.apache.lucene.index.PostingsEnum postingsEnum30 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("europarl.lines.txt.gz", postingsEnum29, postingsEnum30);
}
@Test
public void test2914() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2914");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.failfast", indexReader9, 1, postingsEnum11, postingsEnum12);
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests15 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.Fields fields18 = null;
org.apache.lucene.index.Fields fields19 = null;
kuromojiAnalysisTests15.assertFieldsEquals("europarl.lines.txt.gz", indexReader17, fields18, fields19, false);
org.apache.lucene.index.IndexReader indexReader23 = null;
org.apache.lucene.index.PostingsEnum postingsEnum25 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
kuromojiAnalysisTests15.assertPositionsSkippingEquals("hi!", indexReader23, (int) (byte) 0, postingsEnum25, postingsEnum26);
org.apache.lucene.index.IndexReader indexReader29 = null;
org.apache.lucene.index.Terms terms30 = null;
org.apache.lucene.index.Terms terms31 = null;
kuromojiAnalysisTests15.assertTermsEquals("random", indexReader29, terms30, terms31, true);
kuromojiAnalysisTests15.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum36 = null;
org.apache.lucene.index.PostingsEnum postingsEnum37 = null;
kuromojiAnalysisTests15.assertDocsEnumEquals("tests.nightly", postingsEnum36, postingsEnum37, true);
kuromojiAnalysisTests15.tearDown();
java.lang.Object obj41 = null;
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests15, obj41);
kuromojiAnalysisTests15.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotEquals((java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) kuromojiAnalysisTests15);
kuromojiAnalysisTests15.assertPathHasBeenCleared("europarl.lines.txt.gz");
org.junit.rules.RuleChain ruleChain48 = kuromojiAnalysisTests15.failureAndSuccessEvents;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests49 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader51 = null;
org.apache.lucene.index.Fields fields52 = null;
org.apache.lucene.index.Fields fields53 = null;
kuromojiAnalysisTests49.assertFieldsEquals("europarl.lines.txt.gz", indexReader51, fields52, fields53, false);
kuromojiAnalysisTests49.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain58 = kuromojiAnalysisTests49.failureAndSuccessEvents;
kuromojiAnalysisTests49.ensureAllSearchContextsReleased();
org.apache.lucene.index.IndexReader indexReader61 = null;
org.apache.lucene.index.PostingsEnum postingsEnum63 = null;
org.apache.lucene.index.PostingsEnum postingsEnum64 = null;
kuromojiAnalysisTests49.assertDocsSkippingEquals("enwiki.random.lines.txt", indexReader61, 100, postingsEnum63, postingsEnum64, false);
org.apache.lucene.index.IndexReader indexReader68 = null;
org.apache.lucene.index.Fields fields69 = null;
org.apache.lucene.index.Fields fields70 = null;
kuromojiAnalysisTests49.assertFieldsEquals("tests.monster", indexReader68, fields69, fields70, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests73 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader75 = null;
org.apache.lucene.index.Fields fields76 = null;
org.apache.lucene.index.Fields fields77 = null;
kuromojiAnalysisTests73.assertFieldsEquals("europarl.lines.txt.gz", indexReader75, fields76, fields77, false);
kuromojiAnalysisTests73.ensureCleanedUp();
kuromojiAnalysisTests73.resetCheckIndexStatus();
kuromojiAnalysisTests73.setIndexWriterMaxDocs((int) (byte) 0);
org.junit.rules.RuleChain ruleChain84 = kuromojiAnalysisTests73.failureAndSuccessEvents;
kuromojiAnalysisTests49.failureAndSuccessEvents = ruleChain84;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.weekly", (java.lang.Object) ruleChain48, (java.lang.Object) kuromojiAnalysisTests49);
}
@Test
public void test2915() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2915");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.badapples", indexReader10, 10, postingsEnum12, postingsEnum13);
kuromojiAnalysisTests1.ensureCheckIndexPassed();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests16 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader18 = null;
org.apache.lucene.index.Fields fields19 = null;
org.apache.lucene.index.Fields fields20 = null;
kuromojiAnalysisTests16.assertFieldsEquals("europarl.lines.txt.gz", indexReader18, fields19, fields20, false);
org.apache.lucene.index.IndexReader indexReader24 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
org.apache.lucene.index.PostingsEnum postingsEnum27 = null;
kuromojiAnalysisTests16.assertPositionsSkippingEquals("tests.failfast", indexReader24, 1, postingsEnum26, postingsEnum27);
kuromojiAnalysisTests16.setIndexWriterMaxDocs(0);
kuromojiAnalysisTests16.ensureCleanedUp();
kuromojiAnalysisTests16.resetCheckIndexStatus();
kuromojiAnalysisTests16.restoreIndexWriterMaxDocs();
org.apache.lucene.index.IndexReader indexReader35 = null;
org.apache.lucene.index.Fields fields36 = null;
org.apache.lucene.index.Fields fields37 = null;
kuromojiAnalysisTests16.assertFieldsEquals("enwiki.random.lines.txt", indexReader35, fields36, fields37, false);
org.apache.lucene.index.IndexReader indexReader41 = null;
org.apache.lucene.index.Terms terms42 = null;
org.apache.lucene.index.Terms terms43 = null;
kuromojiAnalysisTests16.assertTermsEquals("tests.failfast", indexReader41, terms42, terms43, false);
org.apache.lucene.index.IndexReader indexReader47 = null;
org.apache.lucene.index.PostingsEnum postingsEnum49 = null;
org.apache.lucene.index.PostingsEnum postingsEnum50 = null;
kuromojiAnalysisTests16.assertPositionsSkippingEquals("tests.awaitsfix", indexReader47, 10, postingsEnum49, postingsEnum50);
org.junit.rules.RuleChain ruleChain52 = kuromojiAnalysisTests16.failureAndSuccessEvents;
kuromojiAnalysisTests1.failureAndSuccessEvents = ruleChain52;
java.lang.String[] strArray61 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet62 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray61);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests63 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests63.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet62, (java.lang.Object) kuromojiAnalysisTests63);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests67 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader69 = null;
org.apache.lucene.index.Fields fields70 = null;
org.apache.lucene.index.Fields fields71 = null;
kuromojiAnalysisTests67.assertFieldsEquals("europarl.lines.txt.gz", indexReader69, fields70, fields71, false);
kuromojiAnalysisTests67.ensureCleanedUp();
kuromojiAnalysisTests67.resetCheckIndexStatus();
kuromojiAnalysisTests67.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader78 = null;
org.apache.lucene.index.PostingsEnum postingsEnum80 = null;
org.apache.lucene.index.PostingsEnum postingsEnum81 = null;
kuromojiAnalysisTests67.assertPositionsSkippingEquals("", indexReader78, (int) (byte) 0, postingsEnum80, postingsEnum81);
org.junit.Assert.assertNotEquals((java.lang.Object) "tests.failfast", (java.lang.Object) kuromojiAnalysisTests67);
kuromojiAnalysisTests67.setUp();
kuromojiAnalysisTests67.overrideTestDefaultQueryCache();
kuromojiAnalysisTests67.assertPathHasBeenCleared("random");
kuromojiAnalysisTests67.setUp();
org.junit.rules.RuleChain ruleChain89 = kuromojiAnalysisTests67.failureAndSuccessEvents;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.failfast", (java.lang.Object) ruleChain52, (java.lang.Object) kuromojiAnalysisTests67);
}
@Test
public void test2916() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2916");
char[] charArray6 = new char[] { ' ', '#', '4', 'a', 'a', '4' };
char[] charArray8 = new char[] {};
char[] charArray9 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray8, charArray9);
char[] charArray12 = new char[] {};
char[] charArray13 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray12, charArray13);
char[] charArray15 = new char[] {};
char[] charArray16 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray15, charArray16);
org.junit.Assert.assertArrayEquals(charArray13, charArray16);
char[] charArray19 = new char[] {};
char[] charArray20 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray19, charArray20);
char[] charArray22 = new char[] {};
char[] charArray23 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray22, charArray23);
org.junit.Assert.assertArrayEquals(charArray20, charArray23);
org.junit.Assert.assertArrayEquals("tests.monster", charArray16, charArray23);
org.junit.Assert.assertArrayEquals(charArray9, charArray16);
char[] charArray28 = new char[] {};
char[] charArray29 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray28, charArray29);
char[] charArray32 = new char[] {};
char[] charArray33 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray32, charArray33);
char[] charArray35 = new char[] {};
char[] charArray36 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray35, charArray36);
org.junit.Assert.assertArrayEquals(charArray33, charArray36);
char[] charArray39 = new char[] {};
char[] charArray40 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray39, charArray40);
char[] charArray42 = new char[] {};
char[] charArray43 = new char[] {};
org.junit.Assert.assertArrayEquals(charArray42, charArray43);
org.junit.Assert.assertArrayEquals(charArray40, charArray43);
org.junit.Assert.assertArrayEquals("tests.monster", charArray36, charArray43);
org.junit.Assert.assertArrayEquals(charArray29, charArray36);
org.junit.Assert.assertArrayEquals("random", charArray9, charArray36);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(charArray6, charArray36);
}
@Test
public void test2917() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2917");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.badapples", (long) '#', (long) (byte) 10);
}
@Test
public void test2918() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2918");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain9 = kuromojiAnalysisTests0.failureAndSuccessEvents;
kuromojiAnalysisTests0.resetCheckIndexStatus();
java.lang.String str11 = kuromojiAnalysisTests0.getTestName();
kuromojiAnalysisTests0.setUp();
kuromojiAnalysisTests0.ensureCheckIndexPassed();
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
org.apache.lucene.index.PostingsEnum postingsEnum16 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("random", postingsEnum15, postingsEnum16);
}
@Test
public void test2919() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2919");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.ensureCleanedUp();
kuromojiAnalysisTests1.overrideTestDefaultQueryCache();
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
org.junit.rules.RuleChain ruleChain11 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.setUp();
kuromojiAnalysisTests1.ensureCheckIndexPassed();
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests1.overrideTestDefaultQueryCache();
org.junit.rules.TestRule testRule16 = kuromojiAnalysisTests1.ruleChain;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests17 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader19 = null;
org.apache.lucene.index.Fields fields20 = null;
org.apache.lucene.index.Fields fields21 = null;
kuromojiAnalysisTests17.assertFieldsEquals("europarl.lines.txt.gz", indexReader19, fields20, fields21, false);
kuromojiAnalysisTests17.ensureCleanedUp();
kuromojiAnalysisTests17.overrideTestDefaultQueryCache();
kuromojiAnalysisTests17.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader28 = null;
org.apache.lucene.index.PostingsEnum postingsEnum30 = null;
org.apache.lucene.index.PostingsEnum postingsEnum31 = null;
kuromojiAnalysisTests17.assertDocsSkippingEquals("tests.slow", indexReader28, (int) (short) -1, postingsEnum30, postingsEnum31, false);
kuromojiAnalysisTests17.assertPathHasBeenCleared("tests.slow");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests36 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader38 = null;
org.apache.lucene.index.Fields fields39 = null;
org.apache.lucene.index.Fields fields40 = null;
kuromojiAnalysisTests36.assertFieldsEquals("europarl.lines.txt.gz", indexReader38, fields39, fields40, false);
kuromojiAnalysisTests36.ensureCleanedUp();
kuromojiAnalysisTests36.overrideTestDefaultQueryCache();
kuromojiAnalysisTests36.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader47 = null;
org.apache.lucene.index.PostingsEnum postingsEnum49 = null;
org.apache.lucene.index.PostingsEnum postingsEnum50 = null;
kuromojiAnalysisTests36.assertDocsSkippingEquals("tests.slow", indexReader47, (int) (short) -1, postingsEnum49, postingsEnum50, false);
kuromojiAnalysisTests36.ensureCleanedUp();
org.apache.lucene.index.PostingsEnum postingsEnum55 = null;
org.apache.lucene.index.PostingsEnum postingsEnum56 = null;
kuromojiAnalysisTests36.assertDocsEnumEquals("", postingsEnum55, postingsEnum56, false);
org.junit.rules.RuleChain ruleChain59 = kuromojiAnalysisTests36.failureAndSuccessEvents;
kuromojiAnalysisTests17.failureAndSuccessEvents = ruleChain59;
org.junit.Assert.assertNotSame("europarl.lines.txt.gz", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) ruleChain59);
org.apache.lucene.index.NumericDocValues numericDocValues64 = null;
org.apache.lucene.index.NumericDocValues numericDocValues65 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests1.assertDocValuesEquals("tests.slow", 1, numericDocValues64, numericDocValues65);
}
@Test
public void test2920() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2920");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.slow", (float) (short) 100, (float) (byte) -1, (float) ' ');
}
@Test
public void test2921() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2921");
java.lang.String[] strArray7 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet8 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray7);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests9 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests9.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet8, (java.lang.Object) kuromojiAnalysisTests9);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests13 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Fields fields16 = null;
org.apache.lucene.index.Fields fields17 = null;
kuromojiAnalysisTests13.assertFieldsEquals("europarl.lines.txt.gz", indexReader15, fields16, fields17, false);
kuromojiAnalysisTests13.ensureCleanedUp();
kuromojiAnalysisTests13.resetCheckIndexStatus();
kuromojiAnalysisTests13.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader24 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
org.apache.lucene.index.PostingsEnum postingsEnum27 = null;
kuromojiAnalysisTests13.assertPositionsSkippingEquals("", indexReader24, (int) (byte) 0, postingsEnum26, postingsEnum27);
org.junit.Assert.assertNotEquals((java.lang.Object) "tests.failfast", (java.lang.Object) kuromojiAnalysisTests13);
org.apache.lucene.index.IndexReader indexReader31 = null;
org.apache.lucene.index.Fields fields32 = null;
org.apache.lucene.index.Fields fields33 = null;
kuromojiAnalysisTests13.assertFieldsEquals("tests.failfast", indexReader31, fields32, fields33, false);
org.junit.rules.RuleChain ruleChain36 = kuromojiAnalysisTests13.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain36;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) ruleChain36);
}
@Test
public void test2922() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2922");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(0.0d, (double) (byte) 1);
}
@Test
public void test2923() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2923");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) 0L, (double) 'a');
}
@Test
public void test2924() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2924");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests0.setIndexWriterMaxDocs((int) (byte) 10);
org.apache.lucene.index.IndexReader indexReader4 = null;
org.apache.lucene.index.Terms terms5 = null;
org.apache.lucene.index.Terms terms6 = null;
kuromojiAnalysisTests0.assertTermsEquals("tests.weekly", indexReader4, terms5, terms6, true);
kuromojiAnalysisTests0.setIndexWriterMaxDocs((int) '#');
java.lang.String str11 = kuromojiAnalysisTests0.getTestName();
org.junit.rules.TestRule testRule12 = kuromojiAnalysisTests0.ruleChain;
kuromojiAnalysisTests0.ensureAllSearchContextsReleased();
org.junit.rules.RuleChain ruleChain14 = kuromojiAnalysisTests0.failureAndSuccessEvents;
java.lang.Object obj15 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame((java.lang.Object) kuromojiAnalysisTests0, obj15);
}
@Test
public void test2925() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2925");
short[] shortArray4 = new short[] { (short) 10 };
short[] shortArray6 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray4, shortArray6);
short[] shortArray10 = new short[] { (short) 10 };
short[] shortArray12 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray10, shortArray12);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", shortArray6, shortArray12);
short[] shortArray18 = new short[] { (short) 10 };
short[] shortArray20 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray18, shortArray20);
short[] shortArray24 = new short[] { (short) 10 };
short[] shortArray26 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray24, shortArray26);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray20, shortArray26);
org.junit.Assert.assertArrayEquals(shortArray12, shortArray20);
short[] shortArray30 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.monster", shortArray12, shortArray30);
}
@Test
public void test2926() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2926");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals("tests.awaitsfix", 10.0d, (double) 0L, (double) '#');
}
@Test
public void test2927() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2927");
java.util.Locale locale4 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale6 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale8 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale10 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale12 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray13 = new java.util.Locale[] { locale4, locale6, locale8, locale10, locale12 };
java.util.Set<java.util.Locale> localeSet14 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray13);
java.util.List<java.io.Serializable> serializableList15 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray13);
java.util.Set<java.lang.Cloneable> cloneableSet16 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray13);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray13, (java.lang.Object) (byte) -1);
java.util.Locale locale21 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale23 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale25 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale27 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale29 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray30 = new java.util.Locale[] { locale21, locale23, locale25, locale27, locale29 };
java.util.Set<java.util.Locale> localeSet31 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray30);
java.util.List<java.io.Serializable> serializableList32 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray30);
java.util.Set<java.lang.Cloneable> cloneableSet33 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray30);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray30, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray13, (java.lang.Object[]) localeArray30);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests37 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader39 = null;
org.apache.lucene.index.Fields fields40 = null;
org.apache.lucene.index.Fields fields41 = null;
kuromojiAnalysisTests37.assertFieldsEquals("europarl.lines.txt.gz", indexReader39, fields40, fields41, false);
kuromojiAnalysisTests37.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain46 = kuromojiAnalysisTests37.failureAndSuccessEvents;
kuromojiAnalysisTests37.setUp();
org.junit.Assert.assertNotSame("tests.nightly", (java.lang.Object) localeArray13, (java.lang.Object) kuromojiAnalysisTests37);
double[] doubleArray51 = new double[] { 100, (short) 100 };
double[] doubleArray54 = new double[] { 100, (short) 100 };
double[] doubleArray57 = new double[] { 100, (short) 100 };
double[][] doubleArray58 = new double[][] { doubleArray51, doubleArray54, doubleArray57 };
java.util.Set<double[]> doubleArraySet59 = org.apache.lucene.util.LuceneTestCase.asSet(doubleArray58);
java.util.Set<double[]> doubleArraySet60 = org.apache.lucene.util.LuceneTestCase.asSet(doubleArray58);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.maxfailures", (java.lang.Object[]) localeArray13, (java.lang.Object[]) doubleArray58);
}
@Test
public void test2928() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2928");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((long) '#', (long) (short) 1);
}
@Test
public void test2929() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2929");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) 10L, (double) (-1L), (double) (short) 10);
}
@Test
public void test2930() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2930");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.ensureCleanedUp();
kuromojiAnalysisTests0.resetCheckIndexStatus();
kuromojiAnalysisTests0.ensureCleanedUp();
java.lang.String str10 = kuromojiAnalysisTests0.getTestName();
kuromojiAnalysisTests0.resetCheckIndexStatus();
org.junit.rules.TestRule testRule12 = kuromojiAnalysisTests0.ruleChain;
kuromojiAnalysisTests0.setUp();
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
org.apache.lucene.index.IndexReader indexReader16 = null;
org.apache.lucene.index.PostingsEnum postingsEnum18 = null;
org.apache.lucene.index.PostingsEnum postingsEnum19 = null;
kuromojiAnalysisTests0.assertDocsSkippingEquals("tests.failfast", indexReader16, 0, postingsEnum18, postingsEnum19, true);
kuromojiAnalysisTests0.resetCheckIndexStatus();
org.apache.lucene.index.NumericDocValues numericDocValues25 = null;
org.apache.lucene.index.NumericDocValues numericDocValues26 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("", 0, numericDocValues25, numericDocValues26);
}
@Test
public void test2931() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2931");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
org.junit.rules.TestRule testRule9 = kuromojiAnalysisTests0.ruleChain;
org.junit.rules.TestRule testRule10 = kuromojiAnalysisTests0.ruleChain;
org.apache.lucene.index.IndexReader indexReader12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.slow", indexReader12, (int) (short) 1, postingsEnum14, postingsEnum15);
org.junit.rules.TestRule testRule17 = kuromojiAnalysisTests0.ruleChain;
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
java.lang.Object obj20 = null;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests21 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader23 = null;
org.apache.lucene.index.Fields fields24 = null;
org.apache.lucene.index.Fields fields25 = null;
kuromojiAnalysisTests21.assertFieldsEquals("europarl.lines.txt.gz", indexReader23, fields24, fields25, false);
kuromojiAnalysisTests21.ensureCleanedUp();
kuromojiAnalysisTests21.resetCheckIndexStatus();
kuromojiAnalysisTests21.setIndexWriterMaxDocs((int) (byte) 0);
org.junit.Assert.assertNotEquals("tests.awaitsfix", obj20, (java.lang.Object) kuromojiAnalysisTests21);
kuromojiAnalysisTests21.resetCheckIndexStatus();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests35 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests35.setIndexWriterMaxDocs((int) (byte) 10);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests39 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader41 = null;
org.apache.lucene.index.Fields fields42 = null;
org.apache.lucene.index.Fields fields43 = null;
kuromojiAnalysisTests39.assertFieldsEquals("europarl.lines.txt.gz", indexReader41, fields42, fields43, false);
kuromojiAnalysisTests39.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain48 = kuromojiAnalysisTests39.failureAndSuccessEvents;
kuromojiAnalysisTests39.resetCheckIndexStatus();
java.lang.String str50 = kuromojiAnalysisTests39.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests39);
kuromojiAnalysisTests39.tearDown();
kuromojiAnalysisTests39.overrideTestDefaultQueryCache();
kuromojiAnalysisTests39.restoreIndexWriterMaxDocs();
org.junit.rules.RuleChain ruleChain55 = kuromojiAnalysisTests39.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain55;
kuromojiAnalysisTests35.failureAndSuccessEvents = ruleChain55;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests59 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader61 = null;
org.apache.lucene.index.Fields fields62 = null;
org.apache.lucene.index.Fields fields63 = null;
kuromojiAnalysisTests59.assertFieldsEquals("europarl.lines.txt.gz", indexReader61, fields62, fields63, false);
kuromojiAnalysisTests59.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain68 = kuromojiAnalysisTests59.failureAndSuccessEvents;
kuromojiAnalysisTests59.resetCheckIndexStatus();
java.lang.String str70 = kuromojiAnalysisTests59.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests59);
kuromojiAnalysisTests59.restoreIndexWriterMaxDocs();
org.apache.lucene.index.PostingsEnum postingsEnum74 = null;
org.apache.lucene.index.PostingsEnum postingsEnum75 = null;
kuromojiAnalysisTests59.assertDocsEnumEquals("<unknown>", postingsEnum74, postingsEnum75, false);
org.apache.lucene.index.PostingsEnum postingsEnum79 = null;
org.apache.lucene.index.PostingsEnum postingsEnum80 = null;
kuromojiAnalysisTests59.assertDocsEnumEquals("tests.weekly", postingsEnum79, postingsEnum80, false);
kuromojiAnalysisTests59.ensureAllSearchContextsReleased();
org.junit.rules.RuleChain ruleChain84 = kuromojiAnalysisTests59.failureAndSuccessEvents;
org.junit.Assert.assertNotSame("tests.monster", (java.lang.Object) ruleChain55, (java.lang.Object) ruleChain84);
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests21, (java.lang.Object) ruleChain55);
kuromojiAnalysisTests0.failureAndSuccessEvents = ruleChain55;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) ruleChain55);
}
@Test
public void test2932() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2932");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.resetCheckIndexStatus();
java.lang.String str12 = kuromojiAnalysisTests1.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests1);
kuromojiAnalysisTests1.tearDown();
short[] shortArray19 = new short[] { (short) 10 };
short[] shortArray21 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray19, shortArray21);
short[] shortArray25 = new short[] { (short) 10 };
short[] shortArray27 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray25, shortArray27);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray21, shortArray27);
short[] shortArray33 = new short[] { (short) 10 };
short[] shortArray35 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray33, shortArray35);
short[] shortArray40 = new short[] { (short) 10 };
short[] shortArray42 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray40, shortArray42);
short[] shortArray46 = new short[] { (short) 10 };
short[] shortArray48 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray46, shortArray48);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray42, shortArray48);
org.junit.Assert.assertArrayEquals(shortArray35, shortArray48);
short[] shortArray55 = new short[] { (short) 10 };
short[] shortArray57 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray55, shortArray57);
short[] shortArray61 = new short[] { (short) 10 };
short[] shortArray63 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray61, shortArray63);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray57, shortArray63);
org.junit.Assert.assertArrayEquals(shortArray35, shortArray63);
short[] shortArray71 = new short[] { (short) 10 };
short[] shortArray73 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray71, shortArray73);
short[] shortArray77 = new short[] { (short) 10 };
short[] shortArray79 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray77, shortArray79);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray73, shortArray79);
short[] shortArray85 = new short[] { (short) 10 };
short[] shortArray87 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray85, shortArray87);
short[] shortArray91 = new short[] { (short) 10 };
short[] shortArray93 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray91, shortArray93);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", shortArray87, shortArray93);
org.junit.Assert.assertArrayEquals("tests.badapples", shortArray73, shortArray93);
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", shortArray63, shortArray73);
org.junit.Assert.assertArrayEquals("", shortArray21, shortArray73);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) "");
}
@Test
public void test2933() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2933");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) 1.0f, 0.0d, (double) (short) -1);
}
@Test
public void test2934() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2934");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests2 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader4 = null;
org.apache.lucene.index.Fields fields5 = null;
org.apache.lucene.index.Fields fields6 = null;
kuromojiAnalysisTests2.assertFieldsEquals("europarl.lines.txt.gz", indexReader4, fields5, fields6, false);
kuromojiAnalysisTests2.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain11 = kuromojiAnalysisTests2.failureAndSuccessEvents;
kuromojiAnalysisTests2.resetCheckIndexStatus();
java.lang.String str13 = kuromojiAnalysisTests2.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests2);
kuromojiAnalysisTests2.tearDown();
kuromojiAnalysisTests2.setUp();
kuromojiAnalysisTests2.ensureCleanedUp();
org.apache.lucene.index.IndexReader indexReader19 = null;
org.apache.lucene.index.PostingsEnum postingsEnum21 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
kuromojiAnalysisTests2.assertDocsSkippingEquals("", indexReader19, 10, postingsEnum21, postingsEnum22, false);
kuromojiAnalysisTests2.restoreIndexWriterMaxDocs();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests28 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader30 = null;
org.apache.lucene.index.Fields fields31 = null;
org.apache.lucene.index.Fields fields32 = null;
kuromojiAnalysisTests28.assertFieldsEquals("europarl.lines.txt.gz", indexReader30, fields31, fields32, false);
org.apache.lucene.index.IndexReader indexReader36 = null;
org.apache.lucene.index.PostingsEnum postingsEnum38 = null;
org.apache.lucene.index.PostingsEnum postingsEnum39 = null;
kuromojiAnalysisTests28.assertPositionsSkippingEquals("hi!", indexReader36, (int) (byte) 0, postingsEnum38, postingsEnum39);
org.apache.lucene.index.IndexReader indexReader42 = null;
org.apache.lucene.index.Terms terms43 = null;
org.apache.lucene.index.Terms terms44 = null;
kuromojiAnalysisTests28.assertTermsEquals("random", indexReader42, terms43, terms44, true);
kuromojiAnalysisTests28.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum49 = null;
org.apache.lucene.index.PostingsEnum postingsEnum50 = null;
kuromojiAnalysisTests28.assertDocsEnumEquals("tests.nightly", postingsEnum49, postingsEnum50, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests53 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader55 = null;
org.apache.lucene.index.Fields fields56 = null;
org.apache.lucene.index.Fields fields57 = null;
kuromojiAnalysisTests53.assertFieldsEquals("europarl.lines.txt.gz", indexReader55, fields56, fields57, false);
kuromojiAnalysisTests53.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain62 = kuromojiAnalysisTests53.failureAndSuccessEvents;
kuromojiAnalysisTests53.ensureAllSearchContextsReleased();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests64 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader66 = null;
org.apache.lucene.index.Fields fields67 = null;
org.apache.lucene.index.Fields fields68 = null;
kuromojiAnalysisTests64.assertFieldsEquals("europarl.lines.txt.gz", indexReader66, fields67, fields68, false);
org.apache.lucene.index.IndexReader indexReader72 = null;
org.apache.lucene.index.PostingsEnum postingsEnum74 = null;
org.apache.lucene.index.PostingsEnum postingsEnum75 = null;
kuromojiAnalysisTests64.assertPositionsSkippingEquals("hi!", indexReader72, (int) (byte) 0, postingsEnum74, postingsEnum75);
kuromojiAnalysisTests64.ensureCheckIndexPassed();
org.elasticsearch.index.analysis.KuromojiAnalysisTests[] kuromojiAnalysisTestsArray78 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests[] { kuromojiAnalysisTests28, kuromojiAnalysisTests53, kuromojiAnalysisTests64 };
java.util.Set<org.elasticsearch.index.analysis.KuromojiAnalysisTests> kuromojiAnalysisTestsSet79 = org.apache.lucene.util.LuceneTestCase.asSet(kuromojiAnalysisTestsArray78);
java.util.Set<org.junit.Assert> assertSet80 = org.apache.lucene.util.LuceneTestCase.asSet((org.junit.Assert[]) kuromojiAnalysisTestsArray78);
org.junit.rules.RuleChain[] ruleChainArray81 = new org.junit.rules.RuleChain[] {};
org.junit.rules.RuleChain[][] ruleChainArray82 = new org.junit.rules.RuleChain[][] { ruleChainArray81 };
java.util.Set<org.junit.rules.RuleChain[]> ruleChainArraySet83 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray82);
org.junit.Assert.assertNotEquals("tests.failfast", (java.lang.Object) kuromojiAnalysisTestsArray78, (java.lang.Object) ruleChainArray82);
java.util.List<org.elasticsearch.index.analysis.KuromojiAnalysisTests> kuromojiAnalysisTestsList85 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (byte) 1, kuromojiAnalysisTestsArray78);
java.util.Set<org.apache.lucene.util.LuceneTestCase> luceneTestCaseSet86 = org.apache.lucene.util.LuceneTestCase.asSet((org.apache.lucene.util.LuceneTestCase[]) kuromojiAnalysisTestsArray78);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("random", (java.lang.Object) kuromojiAnalysisTests2, (java.lang.Object) luceneTestCaseSet86);
}
@Test
public void test2935() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2935");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.nightly", 100.0f, (float) (-1L), (float) (short) -1);
}
@Test
public void test2936() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2936");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("hi!", indexReader8, (int) (byte) 0, postingsEnum10, postingsEnum11);
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
org.apache.lucene.index.PostingsEnum postingsEnum16 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("hi!", postingsEnum15, postingsEnum16);
}
@Test
public void test2937() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2937");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("random", 1.0d, (double) 100.0f);
}
@Test
public void test2938() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2938");
double[] doubleArray1 = null;
double[] doubleArray9 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray14 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray9, doubleArray14, (double) (byte) 100);
double[] doubleArray22 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray27 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray22, doubleArray27, (double) (byte) 100);
double[] doubleArray36 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray41 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray36, doubleArray41, (double) (byte) 100);
double[] doubleArray49 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray54 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray49, doubleArray54, (double) (byte) 100);
org.junit.Assert.assertArrayEquals("", doubleArray36, doubleArray49, (double) 0);
org.junit.Assert.assertArrayEquals(doubleArray22, doubleArray36, (-1.0d));
org.junit.Assert.assertArrayEquals("hi!", doubleArray9, doubleArray22, (double) (short) -1);
double[] doubleArray69 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray74 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray69, doubleArray74, (double) (byte) 100);
double[] doubleArray82 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray87 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray82, doubleArray87, (double) (byte) 100);
org.junit.Assert.assertArrayEquals("", doubleArray69, doubleArray82, (double) 0);
org.junit.Assert.assertArrayEquals("tests.badapples", doubleArray22, doubleArray82, (double) 100L);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.weekly", doubleArray1, doubleArray22, (double) '#');
}
@Test
public void test2939() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2939");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (byte) 1, (double) (-1), (-1.0d));
}
@Test
public void test2940() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2940");
float[] floatArray0 = null;
float[] floatArray5 = new float[] { (short) 1, (byte) 0, 10.0f, 100.0f };
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(floatArray0, floatArray5, (float) (byte) 0);
}
@Test
public void test2941() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2941");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests2 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader4 = null;
org.apache.lucene.index.Fields fields5 = null;
org.apache.lucene.index.Fields fields6 = null;
kuromojiAnalysisTests2.assertFieldsEquals("europarl.lines.txt.gz", indexReader4, fields5, fields6, false);
kuromojiAnalysisTests2.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain11 = kuromojiAnalysisTests2.failureAndSuccessEvents;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests12 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.Fields fields15 = null;
org.apache.lucene.index.Fields fields16 = null;
kuromojiAnalysisTests12.assertFieldsEquals("europarl.lines.txt.gz", indexReader14, fields15, fields16, false);
kuromojiAnalysisTests12.ensureCleanedUp();
kuromojiAnalysisTests12.resetCheckIndexStatus();
org.junit.rules.TestRule testRule21 = kuromojiAnalysisTests12.ruleChain;
org.junit.Assert.assertNotSame("hi!", (java.lang.Object) kuromojiAnalysisTests2, (java.lang.Object) testRule21);
kuromojiAnalysisTests2.setIndexWriterMaxDocs((int) (byte) 0);
org.junit.rules.TestRule testRule25 = kuromojiAnalysisTests2.ruleChain;
org.apache.lucene.util.LuceneTestCase.classRules = testRule25;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests27 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader29 = null;
org.apache.lucene.index.Fields fields30 = null;
org.apache.lucene.index.Fields fields31 = null;
kuromojiAnalysisTests27.assertFieldsEquals("europarl.lines.txt.gz", indexReader29, fields30, fields31, false);
kuromojiAnalysisTests27.ensureCleanedUp();
kuromojiAnalysisTests27.overrideTestDefaultQueryCache();
kuromojiAnalysisTests27.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests27.ensureCleanedUp();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.slow", (java.lang.Object) testRule25, (java.lang.Object) kuromojiAnalysisTests27);
}
@Test
public void test2942() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2942");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("<unknown>", (double) 0.0f, (double) (byte) 10);
}
@Test
public void test2943() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2943");
float[] floatArray8 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray15 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray8, floatArray15, (float) (byte) 100);
float[] floatArray26 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray33 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray26, floatArray33, (float) (byte) 100);
float[] floatArray43 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray50 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray43, floatArray50, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray26, floatArray43, (float) (-1));
float[] floatArray63 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray70 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray63, floatArray70, (float) (byte) 100);
float[] floatArray80 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray87 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray80, floatArray87, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray63, floatArray80, (float) (-1));
org.junit.Assert.assertArrayEquals(floatArray26, floatArray63, 0.0f);
// during test generation this statement threw an exception of type org.junit.internal.ArrayComparisonFailure in error
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", floatArray15, floatArray63, (float) (byte) 1);
}
@Test
public void test2944() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2944");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("hi!", indexReader9, (int) (byte) 0, postingsEnum11, postingsEnum12);
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Terms terms16 = null;
org.apache.lucene.index.Terms terms17 = null;
kuromojiAnalysisTests1.assertTermsEquals("random", indexReader15, terms16, terms17, true);
kuromojiAnalysisTests1.setUp();
kuromojiAnalysisTests1.setIndexWriterMaxDocs((-1));
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.monster");
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
org.junit.Assert.assertNotNull((java.lang.Object) kuromojiAnalysisTests1);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests27 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader29 = null;
org.apache.lucene.index.Fields fields30 = null;
org.apache.lucene.index.Fields fields31 = null;
kuromojiAnalysisTests27.assertFieldsEquals("europarl.lines.txt.gz", indexReader29, fields30, fields31, false);
kuromojiAnalysisTests27.assertPathHasBeenCleared("tests.slow");
org.junit.rules.TestRule testRule36 = kuromojiAnalysisTests27.ruleChain;
org.junit.rules.TestRule testRule37 = kuromojiAnalysisTests27.ruleChain;
org.apache.lucene.index.IndexReader indexReader39 = null;
org.apache.lucene.index.PostingsEnum postingsEnum41 = null;
org.apache.lucene.index.PostingsEnum postingsEnum42 = null;
kuromojiAnalysisTests27.assertPositionsSkippingEquals("tests.slow", indexReader39, (int) (short) 1, postingsEnum41, postingsEnum42);
org.junit.rules.TestRule testRule44 = kuromojiAnalysisTests27.ruleChain;
kuromojiAnalysisTests27.restoreIndexWriterMaxDocs();
org.apache.lucene.index.IndexReader indexReader47 = null;
org.apache.lucene.index.Terms terms48 = null;
org.apache.lucene.index.Terms terms49 = null;
kuromojiAnalysisTests27.assertTermsEquals("tests.slow", indexReader47, terms48, terms49, true);
kuromojiAnalysisTests27.overrideTestDefaultQueryCache();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("europarl.lines.txt.gz", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) kuromojiAnalysisTests27);
}
@Test
public void test2945() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2945");
java.util.concurrent.ExecutorService[] executorServiceArray1 = new java.util.concurrent.ExecutorService[] {};
boolean boolean2 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
boolean boolean3 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
int[] intArray8 = new int[] { (byte) -1, ' ', 100, (short) 1 };
int[] intArray13 = new int[] { (byte) -1, ' ', 100, (short) 1 };
int[][] intArray14 = new int[][] { intArray8, intArray13 };
java.util.Set<int[]> intArraySet15 = org.apache.lucene.util.LuceneTestCase.asSet(intArray14);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.nightly", (java.lang.Object[]) executorServiceArray1, (java.lang.Object[]) intArray14);
}
@Test
public void test2946() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2946");
java.util.Locale locale3 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray4 = new java.util.Locale[] { locale3 };
java.util.Locale locale6 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray7 = new java.util.Locale[] { locale6 };
java.util.Locale locale9 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray10 = new java.util.Locale[] { locale9 };
java.util.Locale locale12 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray13 = new java.util.Locale[] { locale12 };
java.util.Locale[][] localeArray14 = new java.util.Locale[][] { localeArray4, localeArray7, localeArray10, localeArray13 };
java.util.Locale locale16 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray17 = new java.util.Locale[] { locale16 };
java.util.Locale locale19 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray20 = new java.util.Locale[] { locale19 };
java.util.Locale locale22 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray23 = new java.util.Locale[] { locale22 };
java.util.Locale locale25 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray26 = new java.util.Locale[] { locale25 };
java.util.Locale[][] localeArray27 = new java.util.Locale[][] { localeArray17, localeArray20, localeArray23, localeArray26 };
java.util.Locale locale29 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray30 = new java.util.Locale[] { locale29 };
java.util.Locale locale32 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray33 = new java.util.Locale[] { locale32 };
java.util.Locale locale35 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray36 = new java.util.Locale[] { locale35 };
java.util.Locale locale38 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray39 = new java.util.Locale[] { locale38 };
java.util.Locale[][] localeArray40 = new java.util.Locale[][] { localeArray30, localeArray33, localeArray36, localeArray39 };
java.util.Locale locale42 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray43 = new java.util.Locale[] { locale42 };
java.util.Locale locale45 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray46 = new java.util.Locale[] { locale45 };
java.util.Locale locale48 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray49 = new java.util.Locale[] { locale48 };
java.util.Locale locale51 = org.apache.lucene.util.LuceneTestCase.localeForName("tests.awaitsfix");
java.util.Locale[] localeArray52 = new java.util.Locale[] { locale51 };
java.util.Locale[][] localeArray53 = new java.util.Locale[][] { localeArray43, localeArray46, localeArray49, localeArray52 };
java.util.Locale[][][] localeArray54 = new java.util.Locale[][][] { localeArray14, localeArray27, localeArray40, localeArray53 };
java.util.Set<java.util.Locale[][]> localeArraySet55 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray54);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests56 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader58 = null;
org.apache.lucene.index.Fields fields59 = null;
org.apache.lucene.index.Fields fields60 = null;
kuromojiAnalysisTests56.assertFieldsEquals("europarl.lines.txt.gz", indexReader58, fields59, fields60, false);
kuromojiAnalysisTests56.ensureCleanedUp();
kuromojiAnalysisTests56.resetCheckIndexStatus();
kuromojiAnalysisTests56.ensureCleanedUp();
java.lang.String str66 = kuromojiAnalysisTests56.getTestName();
org.apache.lucene.index.IndexReader indexReader68 = null;
org.apache.lucene.index.Fields fields69 = null;
org.apache.lucene.index.Fields fields70 = null;
kuromojiAnalysisTests56.assertFieldsEquals("<unknown>", indexReader68, fields69, fields70, true);
kuromojiAnalysisTests56.ensureAllSearchContextsReleased();
kuromojiAnalysisTests56.restoreIndexWriterMaxDocs();
org.junit.Assert.assertNotEquals("tests.weekly", (java.lang.Object) localeArraySet55, (java.lang.Object) kuromojiAnalysisTests56);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull("tests.badapples", (java.lang.Object) "tests.weekly");
}
@Test
public void test2947() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2947");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.resetCheckIndexStatus();
java.lang.String str12 = kuromojiAnalysisTests1.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests1);
kuromojiAnalysisTests1.tearDown();
kuromojiAnalysisTests1.setUp();
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.PostingsEnum postingsEnum19 = null;
org.apache.lucene.index.PostingsEnum postingsEnum20 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("", indexReader17, (int) '#', postingsEnum19, postingsEnum20);
org.apache.lucene.index.IndexReader indexReader23 = null;
org.apache.lucene.index.PostingsEnum postingsEnum25 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.weekly", indexReader23, (int) (short) 10, postingsEnum25, postingsEnum26);
org.junit.rules.RuleChain ruleChain28 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.ensureCheckIndexPassed();
kuromojiAnalysisTests1.ensureCheckIndexPassed();
kuromojiAnalysisTests1.resetCheckIndexStatus();
org.apache.lucene.index.NumericDocValues numericDocValues34 = null;
org.apache.lucene.index.NumericDocValues numericDocValues35 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests1.assertDocValuesEquals("tests.nightly", 4, numericDocValues34, numericDocValues35);
}
@Test
public void test2948() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2948");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.maxfailures", (double) 1L, (double) 10, (double) 0.0f);
}
@Test
public void test2949() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2949");
java.util.Locale locale4 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale6 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale8 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale10 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale12 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray13 = new java.util.Locale[] { locale4, locale6, locale8, locale10, locale12 };
java.util.Set<java.util.Locale> localeSet14 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray13);
java.util.Locale locale17 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale19 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale21 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale23 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale25 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray26 = new java.util.Locale[] { locale17, locale19, locale21, locale23, locale25 };
java.util.Set<java.util.Locale> localeSet27 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray26);
java.util.List<java.io.Serializable> serializableList28 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray26);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray13, (java.lang.Object[]) localeArray26);
java.util.Locale locale32 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale34 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale36 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale38 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale40 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray41 = new java.util.Locale[] { locale32, locale34, locale36, locale38, locale40 };
java.util.Set<java.util.Locale> localeSet42 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray41);
java.util.List<java.io.Serializable> serializableList43 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray41);
java.util.Set<java.lang.Cloneable> cloneableSet44 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray41);
org.junit.Assert.assertArrayEquals("tests.slow", (java.lang.Object[]) localeArray26, (java.lang.Object[]) localeArray41);
org.junit.Assert.assertNotSame((java.lang.Object) 0.0f, (java.lang.Object) localeArray41);
java.util.Locale locale49 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale51 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale53 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale55 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale57 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray58 = new java.util.Locale[] { locale49, locale51, locale53, locale55, locale57 };
java.util.Set<java.util.Locale> localeSet59 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray58);
java.util.List<java.io.Serializable> serializableList60 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray58);
java.util.Set<java.lang.Cloneable> cloneableSet61 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray58);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray58, (java.lang.Object) (byte) -1);
java.util.Locale locale66 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale68 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale70 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale72 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale74 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray75 = new java.util.Locale[] { locale66, locale68, locale70, locale72, locale74 };
java.util.Set<java.util.Locale> localeSet76 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray75);
java.util.List<java.io.Serializable> serializableList77 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray75);
java.util.Set<java.lang.Cloneable> cloneableSet78 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray75);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray75, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray58, (java.lang.Object[]) localeArray75);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray41, (java.lang.Object[]) localeArray75);
java.util.concurrent.ExecutorService[] executorServiceArray83 = new java.util.concurrent.ExecutorService[] {};
boolean boolean84 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray83);
boolean boolean85 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray83);
boolean boolean86 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray83);
boolean boolean87 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray83);
boolean boolean88 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray83);
boolean boolean89 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray83);
boolean boolean90 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray83);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.nightly", (java.lang.Object[]) localeArray75, (java.lang.Object[]) executorServiceArray83);
}
@Test
public void test2950() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2950");
int[] intArray0 = null;
int[] intArray5 = new int[] { '#' };
int[] intArray7 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray5, intArray7);
int[] intArray10 = new int[] { '#' };
int[] intArray12 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray10, intArray12);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray5, intArray10);
int[] intArray17 = new int[] { '#' };
int[] intArray19 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray17, intArray19);
int[] intArray22 = new int[] { '#' };
int[] intArray24 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray22, intArray24);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray17, intArray22);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", intArray5, intArray22);
int[] intArray31 = new int[] { '#' };
int[] intArray33 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray31, intArray33);
int[] intArray36 = new int[] { '#' };
int[] intArray38 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray36, intArray38);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray31, intArray36);
int[] intArray43 = new int[] { '#' };
int[] intArray45 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray43, intArray45);
int[] intArray48 = new int[] { '#' };
int[] intArray50 = new int[] { '#' };
org.junit.Assert.assertArrayEquals(intArray48, intArray50);
org.junit.Assert.assertArrayEquals("tests.badapples", intArray43, intArray48);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", intArray31, intArray48);
org.junit.Assert.assertArrayEquals("random", intArray22, intArray31);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(intArray0, intArray22);
}
@Test
public void test2951() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2951");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain9 = kuromojiAnalysisTests0.failureAndSuccessEvents;
kuromojiAnalysisTests0.resetCheckIndexStatus();
java.lang.String str11 = kuromojiAnalysisTests0.getTestName();
org.apache.lucene.index.PostingsEnum postingsEnum13 = null;
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
kuromojiAnalysisTests0.assertDocsEnumEquals("tests.slow", postingsEnum13, postingsEnum14, false);
kuromojiAnalysisTests0.ensureCheckIndexPassed();
org.apache.lucene.index.IndexReader indexReader19 = null;
org.apache.lucene.index.PostingsEnum postingsEnum21 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.slow", indexReader19, (int) ' ', postingsEnum21, postingsEnum22);
org.apache.lucene.index.PostingsEnum postingsEnum25 = null;
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("tests.maxfailures", postingsEnum25, postingsEnum26);
}
@Test
public void test2952() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2952");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((long) '4', (long) 'a');
}
@Test
public void test2953() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2953");
long[] longArray0 = null;
long[] longArray4 = new long[] { 1 };
long[] longArray6 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray4, longArray6);
long[] longArray10 = new long[] { 1 };
long[] longArray12 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray10, longArray12);
org.junit.Assert.assertArrayEquals("random", longArray6, longArray12);
long[] longArray19 = new long[] { 1 };
long[] longArray21 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray19, longArray21);
long[] longArray25 = new long[] { 1 };
long[] longArray27 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray25, longArray27);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray21, longArray25);
long[] longArray32 = new long[] { 1 };
long[] longArray34 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray32, longArray34);
org.junit.Assert.assertArrayEquals("hi!", longArray25, longArray32);
long[] longArray40 = new long[] { 1 };
long[] longArray42 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray40, longArray42);
long[] longArray46 = new long[] { 1 };
long[] longArray48 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray46, longArray48);
org.junit.Assert.assertArrayEquals("random", longArray42, longArray48);
org.junit.Assert.assertArrayEquals(longArray32, longArray42);
org.junit.Assert.assertArrayEquals(longArray6, longArray42);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests53 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader55 = null;
org.apache.lucene.index.Fields fields56 = null;
org.apache.lucene.index.Fields fields57 = null;
kuromojiAnalysisTests53.assertFieldsEquals("europarl.lines.txt.gz", indexReader55, fields56, fields57, false);
kuromojiAnalysisTests53.ensureCleanedUp();
kuromojiAnalysisTests53.assertPathHasBeenCleared("tests.failfast");
org.apache.lucene.index.IndexReader indexReader64 = null;
org.apache.lucene.index.PostingsEnum postingsEnum66 = null;
org.apache.lucene.index.PostingsEnum postingsEnum67 = null;
kuromojiAnalysisTests53.assertPositionsSkippingEquals("tests.slow", indexReader64, (int) (short) 10, postingsEnum66, postingsEnum67);
org.apache.lucene.index.IndexReader indexReader70 = null;
org.apache.lucene.index.Terms terms71 = null;
org.apache.lucene.index.Terms terms72 = null;
kuromojiAnalysisTests53.assertTermsEquals("tests.failfast", indexReader70, terms71, terms72, false);
kuromojiAnalysisTests53.overrideTestDefaultQueryCache();
org.junit.Assert.assertNotEquals((java.lang.Object) longArray42, (java.lang.Object) kuromojiAnalysisTests53);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(longArray0, longArray42);
}
@Test
public void test2954() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2954");
float[] floatArray9 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray16 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray9, floatArray16, (float) (byte) 100);
float[] floatArray26 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray33 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray26, floatArray33, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray9, floatArray26, (float) (-1));
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests39 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader41 = null;
org.apache.lucene.index.Fields fields42 = null;
org.apache.lucene.index.Fields fields43 = null;
kuromojiAnalysisTests39.assertFieldsEquals("europarl.lines.txt.gz", indexReader41, fields42, fields43, false);
org.apache.lucene.index.IndexReader indexReader47 = null;
org.apache.lucene.index.PostingsEnum postingsEnum49 = null;
org.apache.lucene.index.PostingsEnum postingsEnum50 = null;
kuromojiAnalysisTests39.assertPositionsSkippingEquals("hi!", indexReader47, (int) (byte) 0, postingsEnum49, postingsEnum50);
kuromojiAnalysisTests39.ensureCheckIndexPassed();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests53 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.junit.Assert.assertNotSame("tests.slow", (java.lang.Object) kuromojiAnalysisTests39, (java.lang.Object) kuromojiAnalysisTests53);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) "europarl.lines.txt.gz", (java.lang.Object) kuromojiAnalysisTests39);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests59 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader61 = null;
org.apache.lucene.index.Fields fields62 = null;
org.apache.lucene.index.Fields fields63 = null;
kuromojiAnalysisTests59.assertFieldsEquals("europarl.lines.txt.gz", indexReader61, fields62, fields63, false);
kuromojiAnalysisTests59.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain68 = kuromojiAnalysisTests59.failureAndSuccessEvents;
kuromojiAnalysisTests59.resetCheckIndexStatus();
java.lang.String str70 = kuromojiAnalysisTests59.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests59);
kuromojiAnalysisTests59.tearDown();
kuromojiAnalysisTests59.setUp();
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) 0.0f, (java.lang.Object) kuromojiAnalysisTests59);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object) "europarl.lines.txt.gz", (java.lang.Object) 0.0f);
}
@Test
public void test2955() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2955");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
org.junit.rules.TestRule testRule9 = kuromojiAnalysisTests0.ruleChain;
org.junit.rules.TestRule testRule10 = kuromojiAnalysisTests0.ruleChain;
org.apache.lucene.index.IndexReader indexReader12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.slow", indexReader12, (int) (short) 1, postingsEnum14, postingsEnum15);
org.junit.rules.TestRule testRule17 = kuromojiAnalysisTests0.ruleChain;
org.apache.lucene.index.IndexReader indexReader19 = null;
org.apache.lucene.index.Terms terms20 = null;
org.apache.lucene.index.Terms terms21 = null;
kuromojiAnalysisTests0.assertTermsEquals("", indexReader19, terms20, terms21, false);
kuromojiAnalysisTests0.tearDown();
org.apache.lucene.index.PostingsEnum postingsEnum26 = null;
org.apache.lucene.index.PostingsEnum postingsEnum27 = null;
kuromojiAnalysisTests0.assertDocsEnumEquals("", postingsEnum26, postingsEnum27, true);
kuromojiAnalysisTests0.ensureCleanedUp();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests31 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader33 = null;
org.apache.lucene.index.Fields fields34 = null;
org.apache.lucene.index.Fields fields35 = null;
kuromojiAnalysisTests31.assertFieldsEquals("europarl.lines.txt.gz", indexReader33, fields34, fields35, false);
kuromojiAnalysisTests31.ensureCleanedUp();
kuromojiAnalysisTests31.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader41 = null;
org.apache.lucene.index.Terms terms42 = null;
org.apache.lucene.index.Terms terms43 = null;
kuromojiAnalysisTests31.assertTermsEquals("", indexReader41, terms42, terms43, false);
kuromojiAnalysisTests31.resetCheckIndexStatus();
kuromojiAnalysisTests31.ensureAllSearchContextsReleased();
kuromojiAnalysisTests31.tearDown();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame((java.lang.Object) kuromojiAnalysisTests0, (java.lang.Object) kuromojiAnalysisTests31);
}
@Test
public void test2956() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2956");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("hi!", indexReader8, (int) (byte) 0, postingsEnum10, postingsEnum11);
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.Terms terms15 = null;
org.apache.lucene.index.Terms terms16 = null;
kuromojiAnalysisTests0.assertTermsEquals("random", indexReader14, terms15, terms16, true);
kuromojiAnalysisTests0.setUp();
org.apache.lucene.index.PostingsEnum postingsEnum21 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
kuromojiAnalysisTests0.assertDocsEnumEquals("tests.nightly", postingsEnum21, postingsEnum22, true);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests25 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader27 = null;
org.apache.lucene.index.Fields fields28 = null;
org.apache.lucene.index.Fields fields29 = null;
kuromojiAnalysisTests25.assertFieldsEquals("europarl.lines.txt.gz", indexReader27, fields28, fields29, false);
kuromojiAnalysisTests25.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests25.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests25.ensureCleanedUp();
org.junit.Assert.assertNotEquals((java.lang.Object) kuromojiAnalysisTests0, (java.lang.Object) kuromojiAnalysisTests25);
kuromojiAnalysisTests0.ensureAllSearchContextsReleased();
org.apache.lucene.index.IndexReader indexReader40 = null;
org.apache.lucene.index.PostingsEnum postingsEnum42 = null;
org.apache.lucene.index.PostingsEnum postingsEnum43 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.nightly", indexReader40, (int) (byte) 1, postingsEnum42, postingsEnum43);
org.apache.lucene.index.IndexReader indexReader46 = null;
org.apache.lucene.index.PostingsEnum postingsEnum48 = null;
org.apache.lucene.index.PostingsEnum postingsEnum49 = null;
kuromojiAnalysisTests0.assertDocsSkippingEquals("", indexReader46, (int) (byte) 0, postingsEnum48, postingsEnum49, false);
org.apache.lucene.index.PostingsEnum postingsEnum53 = null;
org.apache.lucene.index.PostingsEnum postingsEnum54 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("enwiki.random.lines.txt", postingsEnum53, postingsEnum54);
}
@Test
public void test2957() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2957");
java.util.concurrent.ExecutorService[] executorServiceArray1 = new java.util.concurrent.ExecutorService[] {};
boolean boolean2 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
boolean boolean3 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
java.util.concurrent.ExecutorService[] executorServiceArray4 = new java.util.concurrent.ExecutorService[] {};
boolean boolean5 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean6 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean7 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean8 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean9 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean10 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
org.junit.Assert.assertEquals((java.lang.Object[]) executorServiceArray1, (java.lang.Object[]) executorServiceArray4);
boolean boolean12 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
boolean boolean13 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
boolean boolean14 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
java.util.Locale locale18 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale20 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale22 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale24 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale26 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray27 = new java.util.Locale[] { locale18, locale20, locale22, locale24, locale26 };
java.util.Set<java.util.Locale> localeSet28 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray27);
java.util.List<java.io.Serializable> serializableList29 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray27);
java.util.Set<java.lang.Cloneable> cloneableSet30 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray27);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray27, (java.lang.Object) (byte) -1);
java.util.Locale locale35 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale37 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale39 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale41 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale43 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray44 = new java.util.Locale[] { locale35, locale37, locale39, locale41, locale43 };
java.util.Set<java.util.Locale> localeSet45 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray44);
java.util.List<java.io.Serializable> serializableList46 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray44);
java.util.Set<java.lang.Cloneable> cloneableSet47 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray44);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray44, (java.lang.Object) (byte) -1);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray27, (java.lang.Object[]) localeArray44);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests51 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader53 = null;
org.apache.lucene.index.Fields fields54 = null;
org.apache.lucene.index.Fields fields55 = null;
kuromojiAnalysisTests51.assertFieldsEquals("europarl.lines.txt.gz", indexReader53, fields54, fields55, false);
kuromojiAnalysisTests51.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain60 = kuromojiAnalysisTests51.failureAndSuccessEvents;
kuromojiAnalysisTests51.setUp();
org.junit.Assert.assertNotSame("tests.nightly", (java.lang.Object) localeArray27, (java.lang.Object) kuromojiAnalysisTests51);
java.util.Locale locale65 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale67 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale69 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale71 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale73 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray74 = new java.util.Locale[] { locale65, locale67, locale69, locale71, locale73 };
java.util.Set<java.util.Locale> localeSet75 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray74);
java.util.List<java.io.Serializable> serializableList76 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray74);
org.junit.Assert.assertNotNull((java.lang.Object) localeArray74);
org.junit.Assert.assertEquals((java.lang.Object[]) localeArray27, (java.lang.Object[]) localeArray74);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("random", (java.lang.Object[]) executorServiceArray1, (java.lang.Object[]) localeArray74);
}
@Test
public void test2958() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2958");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("tests.failfast", indexReader8, 1, postingsEnum10, postingsEnum11);
org.apache.lucene.index.IndexReader indexReader14 = null;
org.apache.lucene.index.Fields fields15 = null;
org.apache.lucene.index.Fields fields16 = null;
kuromojiAnalysisTests0.assertFieldsEquals("tests.slow", indexReader14, fields15, fields16, true);
org.junit.rules.TestRule testRule19 = kuromojiAnalysisTests0.ruleChain;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests20 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader22 = null;
org.apache.lucene.index.Fields fields23 = null;
org.apache.lucene.index.Fields fields24 = null;
kuromojiAnalysisTests20.assertFieldsEquals("europarl.lines.txt.gz", indexReader22, fields23, fields24, false);
java.lang.String[] strArray34 = new java.lang.String[] { "tests.awaitsfix", "europarl.lines.txt.gz", "tests.slow", "tests.maxfailures", "", "hi!" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet35 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray34);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests36 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests36.setIndexWriterMaxDocs((int) (byte) 10);
org.junit.Assert.assertNotSame("tests.failfast", (java.lang.Object) strComparableSet35, (java.lang.Object) kuromojiAnalysisTests36);
org.apache.lucene.index.PostingsEnum postingsEnum41 = null;
org.apache.lucene.index.PostingsEnum postingsEnum42 = null;
kuromojiAnalysisTests36.assertDocsEnumEquals("tests.badapples", postingsEnum41, postingsEnum42, true);
org.junit.rules.TestRule testRule45 = kuromojiAnalysisTests36.ruleChain;
org.apache.lucene.index.IndexReader indexReader47 = null;
org.apache.lucene.index.PostingsEnum postingsEnum49 = null;
org.apache.lucene.index.PostingsEnum postingsEnum50 = null;
kuromojiAnalysisTests36.assertDocsSkippingEquals("tests.maxfailures", indexReader47, (int) (byte) 100, postingsEnum49, postingsEnum50, false);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests53 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader55 = null;
org.apache.lucene.index.Fields fields56 = null;
org.apache.lucene.index.Fields fields57 = null;
kuromojiAnalysisTests53.assertFieldsEquals("europarl.lines.txt.gz", indexReader55, fields56, fields57, false);
kuromojiAnalysisTests53.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain62 = kuromojiAnalysisTests53.failureAndSuccessEvents;
kuromojiAnalysisTests36.failureAndSuccessEvents = ruleChain62;
kuromojiAnalysisTests20.failureAndSuccessEvents = ruleChain62;
kuromojiAnalysisTests0.failureAndSuccessEvents = ruleChain62;
java.lang.Class<?> wildcardClass66 = kuromojiAnalysisTests0.getClass();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) kuromojiAnalysisTests0);
}
@Test
public void test2959() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2959");
float[] floatArray1 = null;
float[] floatArray10 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray17 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray10, floatArray17, (float) (byte) 100);
float[] floatArray27 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray34 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray27, floatArray34, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray10, floatArray27, (float) (-1));
float[] floatArray47 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray54 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray47, floatArray54, (float) (byte) 100);
float[] floatArray64 = new float[] { (short) 10, (-1.0f), 100.0f, (byte) 0, (short) 100, 1L };
float[] floatArray71 = new float[] { (byte) -1, (short) -1, 100, (byte) -1, '4', (byte) 100 };
org.junit.Assert.assertArrayEquals("tests.awaitsfix", floatArray64, floatArray71, (float) (byte) 100);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", floatArray47, floatArray64, (float) (-1));
org.junit.Assert.assertArrayEquals(floatArray27, floatArray64, (float) 1);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.maxfailures", floatArray1, floatArray27, (float) (short) 10);
}
@Test
public void test2960() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2960");
double[][] doubleArray1 = new double[][] {};
double[][][] doubleArray2 = new double[][][] { doubleArray1 };
double[][] doubleArray3 = new double[][] {};
double[][][] doubleArray4 = new double[][][] { doubleArray3 };
double[][] doubleArray5 = new double[][] {};
double[][][] doubleArray6 = new double[][][] { doubleArray5 };
double[][] doubleArray7 = new double[][] {};
double[][][] doubleArray8 = new double[][][] { doubleArray7 };
double[][][][] doubleArray9 = new double[][][][] { doubleArray2, doubleArray4, doubleArray6, doubleArray8 };
java.util.Set<double[][][]> doubleArraySet10 = org.apache.lucene.util.LuceneTestCase.asSet(doubleArray9);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull("", (java.lang.Object) doubleArraySet10);
}
@Test
public void test2961() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2961");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((double) (short) 100, (double) (byte) 10, 0.0d);
}
@Test
public void test2962() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2962");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.tearDown();
kuromojiAnalysisTests1.ensureAllSearchContextsReleased();
org.junit.rules.RuleChain[] ruleChainArray10 = new org.junit.rules.RuleChain[] {};
org.junit.rules.RuleChain[][] ruleChainArray11 = new org.junit.rules.RuleChain[][] { ruleChainArray10 };
java.util.Set<org.junit.rules.RuleChain[]> ruleChainArraySet12 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray11);
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) ruleChainArray11);
kuromojiAnalysisTests1.ensureAllSearchContextsReleased();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests15 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.Fields fields18 = null;
org.apache.lucene.index.Fields fields19 = null;
kuromojiAnalysisTests15.assertFieldsEquals("europarl.lines.txt.gz", indexReader17, fields18, fields19, false);
kuromojiAnalysisTests15.ensureCleanedUp();
kuromojiAnalysisTests15.overrideTestDefaultQueryCache();
org.junit.rules.RuleChain ruleChain24 = kuromojiAnalysisTests15.failureAndSuccessEvents;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame("europarl.lines.txt.gz", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) kuromojiAnalysisTests15);
}
@Test
public void test2963() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2963");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((long) 'a', (long) (short) 100);
}
@Test
public void test2964() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2964");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals("tests.awaitsfix", (long) ' ', (long) ' ');
}
@Test
public void test2965() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2965");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.resetCheckIndexStatus();
java.lang.String str12 = kuromojiAnalysisTests1.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests1);
kuromojiAnalysisTests1.tearDown();
kuromojiAnalysisTests1.overrideTestDefaultQueryCache();
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests1.overrideTestDefaultQueryCache();
org.apache.lucene.index.IndexReader indexReader19 = null;
org.apache.lucene.index.PostingsEnum postingsEnum21 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.monster", indexReader19, 0, postingsEnum21, postingsEnum22);
org.apache.lucene.index.NumericDocValues numericDocValues26 = null;
org.apache.lucene.index.NumericDocValues numericDocValues27 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests1.assertDocValuesEquals("hi!", (int) (short) 1, numericDocValues26, numericDocValues27);
}
@Test
public void test2966() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2966");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("<unknown>", (double) '4', (double) (-1), (-1.0d));
}
@Test
public void test2967() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2967");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((-1.0d), (double) 0L, (double) (byte) 0);
}
@Test
public void test2968() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2968");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.resetCheckIndexStatus();
java.lang.String str12 = kuromojiAnalysisTests1.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests1);
kuromojiAnalysisTests1.tearDown();
kuromojiAnalysisTests1.setUp();
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.PostingsEnum postingsEnum19 = null;
org.apache.lucene.index.PostingsEnum postingsEnum20 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("", indexReader17, (int) '#', postingsEnum19, postingsEnum20);
kuromojiAnalysisTests1.ensureCleanedUp();
org.apache.lucene.index.PostingsEnum postingsEnum24 = null;
org.apache.lucene.index.PostingsEnum postingsEnum25 = null;
kuromojiAnalysisTests1.assertDocsEnumEquals("tests.weekly", postingsEnum24, postingsEnum25, false);
org.apache.lucene.index.PostingsEnum postingsEnum29 = null;
org.apache.lucene.index.PostingsEnum postingsEnum30 = null;
kuromojiAnalysisTests1.assertDocsEnumEquals("enwiki.random.lines.txt", postingsEnum29, postingsEnum30, true);
kuromojiAnalysisTests1.setUp();
org.apache.lucene.index.IndexReader indexReader35 = null;
org.apache.lucene.index.PostingsEnum postingsEnum37 = null;
org.apache.lucene.index.PostingsEnum postingsEnum38 = null;
kuromojiAnalysisTests1.assertDocsSkippingEquals("tests.weekly", indexReader35, 10, postingsEnum37, postingsEnum38, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("random");
org.apache.lucene.index.PostingsEnum postingsEnum44 = null;
org.apache.lucene.index.PostingsEnum postingsEnum45 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests1.assertDocsAndPositionsEnumEquals("<unknown>", postingsEnum44, postingsEnum45);
}
@Test
public void test2969() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2969");
long[] longArray3 = new long[] { 1 };
long[] longArray5 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray3, longArray5);
long[] longArray11 = new long[] { 1 };
long[] longArray13 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray11, longArray13);
long[] longArray17 = new long[] { 1 };
long[] longArray19 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray17, longArray19);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray13, longArray17);
long[] longArray24 = new long[] { 1 };
long[] longArray26 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray24, longArray26);
org.junit.Assert.assertArrayEquals("hi!", longArray17, longArray24);
org.junit.Assert.assertArrayEquals(longArray5, longArray17);
long[] longArray33 = new long[] { 1 };
long[] longArray35 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray33, longArray35);
long[] longArray39 = new long[] { 1 };
long[] longArray41 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray39, longArray41);
org.junit.Assert.assertArrayEquals("random", longArray35, longArray41);
long[] longArray48 = new long[] { 1 };
long[] longArray50 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray48, longArray50);
long[] longArray54 = new long[] { 1 };
long[] longArray56 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray54, longArray56);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray50, longArray54);
long[] longArray61 = new long[] { 1 };
long[] longArray63 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray61, longArray63);
org.junit.Assert.assertArrayEquals("hi!", longArray54, longArray61);
long[] longArray69 = new long[] { 1 };
long[] longArray71 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray69, longArray71);
long[] longArray75 = new long[] { 1 };
long[] longArray77 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray75, longArray77);
org.junit.Assert.assertArrayEquals("random", longArray71, longArray77);
org.junit.Assert.assertArrayEquals(longArray61, longArray71);
org.junit.Assert.assertArrayEquals(longArray35, longArray71);
org.junit.Assert.assertArrayEquals(longArray17, longArray35);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull("random", (java.lang.Object) longArray35);
}
@Test
public void test2970() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2970");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals((double) '4', (double) (byte) 100, (double) (short) 100);
}
@Test
public void test2971() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2971");
java.util.concurrent.ExecutorService[] executorServiceArray1 = new java.util.concurrent.ExecutorService[] {};
boolean boolean2 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
boolean boolean3 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
java.util.concurrent.ExecutorService[] executorServiceArray4 = new java.util.concurrent.ExecutorService[] {};
boolean boolean5 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean6 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean7 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean8 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean9 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
boolean boolean10 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray4);
org.junit.Assert.assertEquals((java.lang.Object[]) executorServiceArray1, (java.lang.Object[]) executorServiceArray4);
boolean boolean12 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
boolean boolean13 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
boolean boolean14 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests15 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.Fields fields18 = null;
org.apache.lucene.index.Fields fields19 = null;
kuromojiAnalysisTests15.assertFieldsEquals("europarl.lines.txt.gz", indexReader17, fields18, fields19, false);
kuromojiAnalysisTests15.tearDown();
kuromojiAnalysisTests15.ensureAllSearchContextsReleased();
org.junit.rules.RuleChain[] ruleChainArray24 = new org.junit.rules.RuleChain[] {};
org.junit.rules.RuleChain[][] ruleChainArray25 = new org.junit.rules.RuleChain[][] { ruleChainArray24 };
java.util.Set<org.junit.rules.RuleChain[]> ruleChainArraySet26 = org.apache.lucene.util.LuceneTestCase.asSet(ruleChainArray25);
org.junit.Assert.assertNotSame((java.lang.Object) kuromojiAnalysisTests15, (java.lang.Object) ruleChainArray25);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.maxfailures", (java.lang.Object[]) executorServiceArray1, (java.lang.Object[]) ruleChainArray25);
}
@Test
public void test2972() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2972");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("hi!", indexReader9, (int) (byte) 0, postingsEnum11, postingsEnum12);
kuromojiAnalysisTests1.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests1.resetCheckIndexStatus();
kuromojiAnalysisTests1.setUp();
kuromojiAnalysisTests1.overrideTestDefaultQueryCache();
org.junit.Assert.assertNotSame((java.lang.Object) "enwiki.random.lines.txt", (java.lang.Object) kuromojiAnalysisTests1);
org.junit.rules.TestRule testRule19 = kuromojiAnalysisTests1.ruleChain;
org.apache.lucene.index.PostingsEnum postingsEnum21 = null;
org.apache.lucene.index.PostingsEnum postingsEnum22 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests1.assertDocsAndPositionsEnumEquals("tests.weekly", postingsEnum21, postingsEnum22);
}
@Test
public void test2973() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2973");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNotEquals("tests.nightly", 0.0d, (double) (short) 100, 100.0d);
}
@Test
public void test2974() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2974");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
kuromojiAnalysisTests1.resetCheckIndexStatus();
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests13 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Fields fields16 = null;
org.apache.lucene.index.Fields fields17 = null;
kuromojiAnalysisTests13.assertFieldsEquals("europarl.lines.txt.gz", indexReader15, fields16, fields17, false);
kuromojiAnalysisTests13.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain22 = kuromojiAnalysisTests13.failureAndSuccessEvents;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests23 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader25 = null;
org.apache.lucene.index.Fields fields26 = null;
org.apache.lucene.index.Fields fields27 = null;
kuromojiAnalysisTests23.assertFieldsEquals("europarl.lines.txt.gz", indexReader25, fields26, fields27, false);
kuromojiAnalysisTests23.ensureCleanedUp();
kuromojiAnalysisTests23.resetCheckIndexStatus();
org.junit.rules.TestRule testRule32 = kuromojiAnalysisTests23.ruleChain;
org.junit.Assert.assertNotSame("hi!", (java.lang.Object) kuromojiAnalysisTests13, (java.lang.Object) testRule32);
org.junit.Assert.assertNotSame("tests.badapples", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) "hi!");
org.apache.lucene.index.PostingsEnum postingsEnum36 = null;
org.apache.lucene.index.PostingsEnum postingsEnum37 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests1.assertDocsAndPositionsEnumEquals("tests.weekly", postingsEnum36, postingsEnum37);
}
@Test
public void test2975() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2975");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("", 0.0d, (double) 100);
}
@Test
public void test2976() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2976");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(100L, (long) (short) -1);
}
@Test
public void test2977() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2977");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests0.setUp();
kuromojiAnalysisTests0.ensureCheckIndexPassed();
kuromojiAnalysisTests0.resetCheckIndexStatus();
org.apache.lucene.index.NumericDocValues numericDocValues14 = null;
org.apache.lucene.index.NumericDocValues numericDocValues15 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("tests.monster", (int) (short) 1, numericDocValues14, numericDocValues15);
}
@Test
public void test2978() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2978");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("tests.failfast", indexReader9, 1, postingsEnum11, postingsEnum12);
kuromojiAnalysisTests1.setIndexWriterMaxDocs(0);
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.Fields fields18 = null;
org.apache.lucene.index.Fields fields19 = null;
kuromojiAnalysisTests1.assertFieldsEquals("tests.slow", indexReader17, fields18, fields19, false);
kuromojiAnalysisTests1.resetCheckIndexStatus();
org.junit.rules.TestRule testRule23 = kuromojiAnalysisTests1.ruleChain;
org.apache.lucene.util.LuceneTestCase.classRules = testRule23;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests26 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader28 = null;
org.apache.lucene.index.Fields fields29 = null;
org.apache.lucene.index.Fields fields30 = null;
kuromojiAnalysisTests26.assertFieldsEquals("europarl.lines.txt.gz", indexReader28, fields29, fields30, false);
kuromojiAnalysisTests26.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain35 = kuromojiAnalysisTests26.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain35;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain35;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests38 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader40 = null;
org.apache.lucene.index.Fields fields41 = null;
org.apache.lucene.index.Fields fields42 = null;
kuromojiAnalysisTests38.assertFieldsEquals("europarl.lines.txt.gz", indexReader40, fields41, fields42, false);
kuromojiAnalysisTests38.ensureCleanedUp();
kuromojiAnalysisTests38.assertPathHasBeenCleared("tests.failfast");
kuromojiAnalysisTests38.tearDown();
kuromojiAnalysisTests38.ensureAllSearchContextsReleased();
kuromojiAnalysisTests38.ensureCleanedUp();
org.junit.Assert.assertNotEquals((java.lang.Object) ruleChain35, (java.lang.Object) kuromojiAnalysisTests38);
org.junit.Assert.assertNotNull("<unknown>", (java.lang.Object) kuromojiAnalysisTests38);
org.apache.lucene.index.PostingsEnum postingsEnum54 = null;
org.apache.lucene.index.PostingsEnum postingsEnum55 = null;
kuromojiAnalysisTests38.assertDocsEnumEquals("<unknown>", postingsEnum54, postingsEnum55, true);
org.apache.lucene.index.IndexReader indexReader59 = null;
org.apache.lucene.index.PostingsEnum postingsEnum61 = null;
org.apache.lucene.index.PostingsEnum postingsEnum62 = null;
kuromojiAnalysisTests38.assertPositionsSkippingEquals("tests.maxfailures", indexReader59, (-1), postingsEnum61, postingsEnum62);
org.apache.lucene.index.IndexReader indexReader65 = null;
org.apache.lucene.index.Fields fields66 = null;
org.apache.lucene.index.Fields fields67 = null;
kuromojiAnalysisTests38.assertFieldsEquals("tests.weekly", indexReader65, fields66, fields67, false);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertSame("tests.weekly", (java.lang.Object) testRule23, (java.lang.Object) fields67);
}
@Test
public void test2979() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2979");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((long) 100, (long) 2);
}
@Test
public void test2980() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2980");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
org.apache.lucene.index.IndexReader indexReader8 = null;
org.apache.lucene.index.PostingsEnum postingsEnum10 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
kuromojiAnalysisTests0.assertPositionsSkippingEquals("hi!", indexReader8, (int) (byte) 0, postingsEnum10, postingsEnum11);
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
kuromojiAnalysisTests0.ensureAllSearchContextsReleased();
kuromojiAnalysisTests0.ensureAllSearchContextsReleased();
kuromojiAnalysisTests0.setUp();
kuromojiAnalysisTests0.resetCheckIndexStatus();
org.apache.lucene.index.NumericDocValues numericDocValues20 = null;
org.apache.lucene.index.NumericDocValues numericDocValues21 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocValuesEquals("europarl.lines.txt.gz", (int) (byte) 100, numericDocValues20, numericDocValues21);
}
@Test
public void test2981() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2981");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain10 = kuromojiAnalysisTests1.failureAndSuccessEvents;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain10;
org.apache.lucene.util.LuceneTestCase.classRules = ruleChain10;
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests13 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests13.setIndexWriterMaxDocs((int) (byte) 10);
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.Terms terms18 = null;
org.apache.lucene.index.Terms terms19 = null;
kuromojiAnalysisTests13.assertTermsEquals("tests.weekly", indexReader17, terms18, terms19, true);
kuromojiAnalysisTests13.setIndexWriterMaxDocs((int) '#');
kuromojiAnalysisTests13.overrideTestDefaultQueryCache();
kuromojiAnalysisTests13.ensureCheckIndexPassed();
org.junit.Assert.assertNotSame("tests.weekly", (java.lang.Object) ruleChain10, (java.lang.Object) kuromojiAnalysisTests13);
kuromojiAnalysisTests13.overrideTestDefaultQueryCache();
org.apache.lucene.index.PostingsEnum postingsEnum29 = null;
org.apache.lucene.index.PostingsEnum postingsEnum30 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests13.assertDocsAndPositionsEnumEquals("random", postingsEnum29, postingsEnum30);
}
@Test
public void test2982() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2982");
java.util.concurrent.ExecutorService[] executorServiceArray1 = new java.util.concurrent.ExecutorService[] {};
boolean boolean2 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
boolean boolean3 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
boolean boolean4 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray1);
java.lang.String[] strArray9 = new java.lang.String[] { "europarl.lines.txt.gz", "tests.badapples", "random" };
java.util.Set<java.lang.Comparable<java.lang.String>> strComparableSet10 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Comparable<java.lang.String>[]) strArray9);
org.junit.Assert.assertNotEquals((java.lang.Object) (short) -1, (java.lang.Object) strArray9);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("", (java.lang.Object[]) executorServiceArray1, (java.lang.Object[]) strArray9);
}
@Test
public void test2983() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2983");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(0L, (long) 4);
}
@Test
public void test2984() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2984");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests0 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader2 = null;
org.apache.lucene.index.Fields fields3 = null;
org.apache.lucene.index.Fields fields4 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader2, fields3, fields4, false);
kuromojiAnalysisTests0.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain9 = kuromojiAnalysisTests0.failureAndSuccessEvents;
kuromojiAnalysisTests0.ensureAllSearchContextsReleased();
org.apache.lucene.index.IndexReader indexReader12 = null;
org.apache.lucene.index.PostingsEnum postingsEnum14 = null;
org.apache.lucene.index.PostingsEnum postingsEnum15 = null;
kuromojiAnalysisTests0.assertDocsSkippingEquals("enwiki.random.lines.txt", indexReader12, 100, postingsEnum14, postingsEnum15, false);
kuromojiAnalysisTests0.ensureCheckIndexPassed();
kuromojiAnalysisTests0.restoreIndexWriterMaxDocs();
org.apache.lucene.index.IndexReader indexReader21 = null;
org.apache.lucene.index.Fields fields22 = null;
org.apache.lucene.index.Fields fields23 = null;
kuromojiAnalysisTests0.assertFieldsEquals("europarl.lines.txt.gz", indexReader21, fields22, fields23, false);
kuromojiAnalysisTests0.resetCheckIndexStatus();
kuromojiAnalysisTests0.overrideTestDefaultQueryCache();
org.apache.lucene.index.PostingsEnum postingsEnum29 = null;
org.apache.lucene.index.PostingsEnum postingsEnum30 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests0.assertDocsAndPositionsEnumEquals("", postingsEnum29, postingsEnum30);
}
@Test
public void test2985() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2985");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.awaitsfix", 0.0f, (float) 100, (float) (short) -1);
}
@Test
public void test2986() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2986");
java.util.concurrent.ExecutorService[] executorServiceArray0 = new java.util.concurrent.ExecutorService[] {};
boolean boolean1 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray0);
boolean boolean2 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray0);
java.util.concurrent.ExecutorService[] executorServiceArray3 = new java.util.concurrent.ExecutorService[] {};
boolean boolean4 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray3);
boolean boolean5 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray3);
boolean boolean6 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray3);
boolean boolean7 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray3);
boolean boolean8 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray3);
boolean boolean9 = org.elasticsearch.test.ESTestCase.terminate(executorServiceArray3);
org.junit.Assert.assertEquals((java.lang.Object[]) executorServiceArray0, (java.lang.Object[]) executorServiceArray3);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests11 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
kuromojiAnalysisTests11.setIndexWriterMaxDocs((int) (byte) 10);
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Terms terms16 = null;
org.apache.lucene.index.Terms terms17 = null;
kuromojiAnalysisTests11.assertTermsEquals("tests.weekly", indexReader15, terms16, terms17, true);
kuromojiAnalysisTests11.setIndexWriterMaxDocs((int) '#');
kuromojiAnalysisTests11.setUp();
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object) executorServiceArray3, (java.lang.Object) kuromojiAnalysisTests11);
}
@Test
public void test2987() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2987");
long[] longArray5 = new long[] { 1 };
long[] longArray7 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray5, longArray7);
long[] longArray11 = new long[] { 1 };
long[] longArray13 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray11, longArray13);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray7, longArray11);
long[] longArray18 = new long[] { 1 };
long[] longArray20 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray18, longArray20);
org.junit.Assert.assertArrayEquals("hi!", longArray11, longArray18);
long[] longArray26 = new long[] { 1 };
long[] longArray28 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray26, longArray28);
long[] longArray33 = new long[] { 1 };
long[] longArray35 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray33, longArray35);
long[] longArray39 = new long[] { 1 };
long[] longArray41 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray39, longArray41);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray35, longArray39);
org.junit.Assert.assertArrayEquals("enwiki.random.lines.txt", longArray26, longArray39);
org.junit.Assert.assertArrayEquals(longArray18, longArray26);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull("europarl.lines.txt.gz", (java.lang.Object) longArray26);
}
@Test
public void test2988() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2988");
double[][] doubleArray2 = new double[][] {};
double[][] doubleArray3 = new double[][] {};
double[][] doubleArray4 = new double[][] {};
double[][][] doubleArray5 = new double[][][] { doubleArray2, doubleArray3, doubleArray4 };
java.util.List<double[][]> doubleArrayList6 = org.elasticsearch.test.ESTestCase.randomSubsetOf(0, doubleArray5);
java.util.List<double[][]> doubleArrayList7 = org.elasticsearch.test.ESTestCase.randomSubsetOf(0, doubleArray5);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertNull((java.lang.Object) 0);
}
@Test
public void test2989() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2989");
long[] longArray3 = new long[] { 1 };
long[] longArray5 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray3, longArray5);
long[] longArray11 = new long[] { 1 };
long[] longArray13 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray11, longArray13);
long[] longArray17 = new long[] { 1 };
long[] longArray19 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray17, longArray19);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray13, longArray17);
long[] longArray24 = new long[] { 1 };
long[] longArray26 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray24, longArray26);
org.junit.Assert.assertArrayEquals("hi!", longArray17, longArray24);
org.junit.Assert.assertArrayEquals(longArray5, longArray17);
long[] longArray33 = new long[] { 1 };
long[] longArray35 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray33, longArray35);
long[] longArray39 = new long[] { 1 };
long[] longArray41 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray39, longArray41);
org.junit.Assert.assertArrayEquals("random", longArray35, longArray41);
long[] longArray48 = new long[] { 1 };
long[] longArray50 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray48, longArray50);
long[] longArray54 = new long[] { 1 };
long[] longArray56 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray54, longArray56);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", longArray50, longArray54);
long[] longArray61 = new long[] { 1 };
long[] longArray63 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray61, longArray63);
org.junit.Assert.assertArrayEquals("hi!", longArray54, longArray61);
long[] longArray69 = new long[] { 1 };
long[] longArray71 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray69, longArray71);
long[] longArray75 = new long[] { 1 };
long[] longArray77 = new long[] { (byte) 1 };
org.junit.Assert.assertArrayEquals("", longArray75, longArray77);
org.junit.Assert.assertArrayEquals("random", longArray71, longArray77);
org.junit.Assert.assertArrayEquals(longArray61, longArray71);
org.junit.Assert.assertArrayEquals(longArray35, longArray71);
org.junit.Assert.assertArrayEquals(longArray17, longArray35);
org.junit.Assert.assertNotNull((java.lang.Object) longArray35);
long[] longArray84 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.monster", longArray35, longArray84);
}
@Test
public void test2990() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2990");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.PostingsEnum postingsEnum11 = null;
org.apache.lucene.index.PostingsEnum postingsEnum12 = null;
kuromojiAnalysisTests1.assertPositionsSkippingEquals("hi!", indexReader9, (int) (byte) 0, postingsEnum11, postingsEnum12);
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.Terms terms16 = null;
org.apache.lucene.index.Terms terms17 = null;
kuromojiAnalysisTests1.assertTermsEquals("random", indexReader15, terms16, terms17, true);
kuromojiAnalysisTests1.setUp();
kuromojiAnalysisTests1.tearDown();
org.apache.lucene.index.IndexReader indexReader23 = null;
org.apache.lucene.index.Fields fields24 = null;
org.apache.lucene.index.Fields fields25 = null;
kuromojiAnalysisTests1.assertFieldsEquals("", indexReader23, fields24, fields25, false);
java.lang.String str28 = kuromojiAnalysisTests1.getTestName();
java.util.Locale locale30 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass31 = locale30.getClass();
java.util.Locale locale33 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass34 = locale33.getClass();
java.util.Locale locale36 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass37 = locale36.getClass();
java.util.Locale locale39 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass40 = locale39.getClass();
java.util.Locale locale42 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.lang.Class<?> wildcardClass43 = locale42.getClass();
java.lang.reflect.AnnotatedElement[] annotatedElementArray44 = new java.lang.reflect.AnnotatedElement[] { wildcardClass31, wildcardClass34, wildcardClass37, wildcardClass40, wildcardClass43 };
java.util.Set<java.lang.reflect.AnnotatedElement> annotatedElementSet45 = org.apache.lucene.util.LuceneTestCase.asSet(annotatedElementArray44);
java.lang.Object obj46 = null;
org.junit.Assert.assertNotEquals((java.lang.Object) annotatedElementArray44, obj46);
org.junit.Assert.assertNotEquals("enwiki.random.lines.txt", (java.lang.Object) kuromojiAnalysisTests1, (java.lang.Object) annotatedElementArray44);
org.apache.lucene.index.NumericDocValues numericDocValues51 = null;
org.apache.lucene.index.NumericDocValues numericDocValues52 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests1.assertDocValuesEquals("tests.failfast", (int) (byte) 10, numericDocValues51, numericDocValues52);
}
@Test
public void test2991() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2991");
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests1 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader3 = null;
org.apache.lucene.index.Fields fields4 = null;
org.apache.lucene.index.Fields fields5 = null;
kuromojiAnalysisTests1.assertFieldsEquals("europarl.lines.txt.gz", indexReader3, fields4, fields5, false);
kuromojiAnalysisTests1.assertPathHasBeenCleared("tests.slow");
kuromojiAnalysisTests1.setUp();
kuromojiAnalysisTests1.ensureCheckIndexPassed();
kuromojiAnalysisTests1.setIndexWriterMaxDocs((int) (short) 100);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests15 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader17 = null;
org.apache.lucene.index.Fields fields18 = null;
org.apache.lucene.index.Fields fields19 = null;
kuromojiAnalysisTests15.assertFieldsEquals("europarl.lines.txt.gz", indexReader17, fields18, fields19, false);
kuromojiAnalysisTests15.assertPathHasBeenCleared("tests.slow");
org.junit.rules.RuleChain ruleChain24 = kuromojiAnalysisTests15.failureAndSuccessEvents;
kuromojiAnalysisTests15.resetCheckIndexStatus();
java.lang.String str26 = kuromojiAnalysisTests15.getTestName();
org.junit.Assert.assertNotNull("", (java.lang.Object) kuromojiAnalysisTests15);
kuromojiAnalysisTests15.tearDown();
kuromojiAnalysisTests15.overrideTestDefaultQueryCache();
org.junit.Assert.assertNotSame("random", (java.lang.Object) (short) 100, (java.lang.Object) kuromojiAnalysisTests15);
kuromojiAnalysisTests15.assertPathHasBeenCleared("tests.maxfailures");
org.apache.lucene.index.PostingsEnum postingsEnum34 = null;
org.apache.lucene.index.PostingsEnum postingsEnum35 = null;
// during test generation this statement threw an exception of type java.lang.AssertionError in error
kuromojiAnalysisTests15.assertDocsAndPositionsEnumEquals("tests.weekly", postingsEnum34, postingsEnum35);
}
@Test
public void test2992() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2992");
double[] doubleArray6 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray11 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray6, doubleArray11, (double) (byte) 100);
double[] doubleArray19 = new double[] { 0, (-1), 100L, 1.0f };
double[] doubleArray24 = new double[] { (byte) 10, 10.0d, 10.0f, (short) 100 };
org.junit.Assert.assertArrayEquals("", doubleArray19, doubleArray24, (double) (byte) 100);
org.junit.Assert.assertArrayEquals("", doubleArray6, doubleArray19, (double) 0);
double[] doubleArray29 = new double[] {};
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals(doubleArray19, doubleArray29, (double) (short) 0);
}
@Test
public void test2993() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2993");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("enwiki.random.lines.txt", (double) 1.0f, 100.0d);
}
@Test
public void test2994() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2994");
short[] shortArray1 = null;
short[] shortArray5 = new short[] { (short) 10 };
short[] shortArray7 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray5, shortArray7);
short[] shortArray11 = new short[] { (short) 10 };
short[] shortArray13 = new short[] { (short) 10 };
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray11, shortArray13);
org.junit.Assert.assertArrayEquals("europarl.lines.txt.gz", shortArray7, shortArray13);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertArrayEquals("tests.maxfailures", shortArray1, shortArray13);
}
@Test
public void test2995() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2995");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("random", (double) 10.0f, (double) (short) 1);
}
@Test
public void test2996() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2996");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals(0L, (long) 2);
}
@Test
public void test2997() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2997");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("<unknown>", (float) 100L, (float) 0, (float) (-1));
}
@Test
public void test2998() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2998");
java.util.Locale locale3 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale5 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale7 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale9 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale11 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray12 = new java.util.Locale[] { locale3, locale5, locale7, locale9, locale11 };
java.util.Set<java.util.Locale> localeSet13 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray12);
java.util.Locale locale16 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale18 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale20 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale22 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale24 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray25 = new java.util.Locale[] { locale16, locale18, locale20, locale22, locale24 };
java.util.Set<java.util.Locale> localeSet26 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray25);
java.util.List<java.io.Serializable> serializableList27 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray25);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray12, (java.lang.Object[]) localeArray25);
java.util.Locale locale31 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale33 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale35 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale37 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale39 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray40 = new java.util.Locale[] { locale31, locale33, locale35, locale37, locale39 };
java.util.Set<java.util.Locale> localeSet41 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray40);
java.util.List<java.io.Serializable> serializableList42 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray40);
java.util.Set<java.lang.Cloneable> cloneableSet43 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray40);
org.junit.Assert.assertArrayEquals("tests.slow", (java.lang.Object[]) localeArray25, (java.lang.Object[]) localeArray40);
org.junit.Assert.assertNotSame((java.lang.Object) 0.0f, (java.lang.Object) localeArray40);
java.util.Locale locale49 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale51 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale53 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale55 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale57 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray58 = new java.util.Locale[] { locale49, locale51, locale53, locale55, locale57 };
java.util.Set<java.util.Locale> localeSet59 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray58);
java.util.List<java.io.Serializable> serializableList60 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray58);
org.junit.Assert.assertNotSame("", (java.lang.Object) localeArray58, (java.lang.Object) 0.0f);
java.util.Locale locale66 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale68 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale70 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale72 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale locale74 = org.apache.lucene.util.LuceneTestCase.localeForName("");
java.util.Locale[] localeArray75 = new java.util.Locale[] { locale66, locale68, locale70, locale72, locale74 };
java.util.Set<java.util.Locale> localeSet76 = org.apache.lucene.util.LuceneTestCase.asSet(localeArray75);
java.util.List<java.io.Serializable> serializableList77 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 1, (java.io.Serializable[]) localeArray75);
java.util.Set<java.lang.Cloneable> cloneableSet78 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.Cloneable[]) localeArray75);
org.junit.Assert.assertNotEquals((java.lang.Object) localeArray75, (java.lang.Object) (byte) -1);
org.junit.Assert.assertNotNull("enwiki.random.lines.txt", (java.lang.Object) localeArray75);
org.junit.Assert.assertArrayEquals((java.lang.Object[]) localeArray58, (java.lang.Object[]) localeArray75);
org.junit.Assert.assertEquals((java.lang.Object[]) localeArray40, (java.lang.Object[]) localeArray58);
java.lang.reflect.GenericDeclaration[][] genericDeclarationArray85 = new java.lang.reflect.GenericDeclaration[][] {};
java.util.Set<java.lang.reflect.GenericDeclaration[]> genericDeclarationArraySet86 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray85);
java.lang.reflect.GenericDeclaration[] genericDeclarationArray88 = new java.lang.reflect.GenericDeclaration[] {};
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet89 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray88);
java.util.Set<java.lang.reflect.GenericDeclaration> genericDeclarationSet90 = org.apache.lucene.util.LuceneTestCase.asSet(genericDeclarationArray88);
org.junit.Assert.assertNotEquals((java.lang.Object) 1, (java.lang.Object) genericDeclarationArray88);
java.util.Set<java.lang.reflect.AnnotatedElement> annotatedElementSet92 = org.apache.lucene.util.LuceneTestCase.asSet((java.lang.reflect.AnnotatedElement[]) genericDeclarationArray88);
org.junit.Assert.assertEquals("", (java.lang.Object[]) genericDeclarationArray85, (java.lang.Object[]) genericDeclarationArray88);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals((java.lang.Object[]) localeArray58, (java.lang.Object[]) genericDeclarationArray85);
}
@Test
public void test2999() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test2999");
java.util.List[] listArray3 = new java.util.List[0];
@SuppressWarnings("unchecked")
java.util.List<java.io.Serializable>[] serializableListArray4 = (java.util.List<java.io.Serializable>[]) listArray3;
java.util.Set<java.util.List<java.io.Serializable>> serializableListSet5 = org.apache.lucene.util.LuceneTestCase.asSet(serializableListArray4);
java.util.List<java.util.List<java.io.Serializable>> serializableListList6 = org.elasticsearch.test.ESTestCase.randomSubsetOf((int) (short) 0, serializableListArray4);
org.elasticsearch.index.analysis.KuromojiAnalysisTests kuromojiAnalysisTests7 = new org.elasticsearch.index.analysis.KuromojiAnalysisTests();
org.apache.lucene.index.IndexReader indexReader9 = null;
org.apache.lucene.index.Fields fields10 = null;
org.apache.lucene.index.Fields fields11 = null;
kuromojiAnalysisTests7.assertFieldsEquals("europarl.lines.txt.gz", indexReader9, fields10, fields11, false);
org.apache.lucene.index.IndexReader indexReader15 = null;
org.apache.lucene.index.PostingsEnum postingsEnum17 = null;
org.apache.lucene.index.PostingsEnum postingsEnum18 = null;
kuromojiAnalysisTests7.assertPositionsSkippingEquals("hi!", indexReader15, (int) (byte) 0, postingsEnum17, postingsEnum18);
kuromojiAnalysisTests7.ensureCheckIndexPassed();
org.apache.lucene.index.IndexReader indexReader22 = null;
org.apache.lucene.index.Terms terms23 = null;
org.apache.lucene.index.Terms terms24 = null;
kuromojiAnalysisTests7.assertTermsEquals("tests.weekly", indexReader22, terms23, terms24, true);
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.slow", (java.lang.Object) serializableListArray4, (java.lang.Object) terms24);
}
@Test
public void test3000() throws Throwable {
if (debug)
System.out.format("%n%s%n", "ErrorTest5.test3000");
// during test generation this statement threw an exception of type java.lang.AssertionError in error
org.junit.Assert.assertEquals("tests.badapples", (double) 100, 0.0d);
}
}
| 72.563769 | 314 | 0.718876 |
e0007e7cd7faee6c7681f76c299ec73f7b130a1e | 2,597 | /*
* Copyright (C) 2012 Martin Řehánek
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cz.nkp.urnnbn.xml.apiv3.unmarshallers.validation;
import junit.framework.TestCase;
/**
*
* @author Martin Řehánek
*/
public class UrlValidatorTest extends TestCase {
public UrlValidatorTest(String testName) {
super(testName);
}
@Override
protected void setUp() throws Exception {
super.setUp();
}
@Override
protected void tearDown() throws Exception {
super.tearDown();
}
public void testConstructor() {
try {
new UrlValidator(-1);
fail();
} catch (IllegalArgumentException e) {
// ok
}
try {
new UrlValidator(0);
fail();
} catch (IllegalArgumentException e) {
// ok
}
}
public void testEnhancePreficies() {
ElementContentEnhancer enhancer = new UrlValidator(10);
assertNull(enhancer.toEnhancedValueOrNull(null));
assertNull(enhancer.toEnhancedValueOrNull(""));
assertNull(enhancer.toEnhancedValueOrNull("ttp://7890"));
assertNull(enhancer.toEnhancedValueOrNull("httpss://0"));
assertNull(enhancer.toEnhancedValueOrNull("ftp://7890"));
assertNull(enhancer.toEnhancedValueOrNull("http://8901"));
assertNull(enhancer.toEnhancedValueOrNull("https://901"));
assertNull(enhancer.toEnhancedValueOrNull("HTTP://8901"));
assertNull(enhancer.toEnhancedValueOrNull("HTTPS://901"));
}
public void testEnhanceLength() {
ElementContentEnhancer enhancer = new UrlValidator(10);
assertEquals("http://890", enhancer.toEnhancedValueOrNull("http://890"));
assertEquals("HTTP://890", enhancer.toEnhancedValueOrNull("HTTP://890"));
assertEquals("https://90", enhancer.toEnhancedValueOrNull("https://90"));
assertEquals("HTTPS://90", enhancer.toEnhancedValueOrNull("HTTPS://90"));
}
}
| 33.294872 | 81 | 0.663073 |
4c0340651a5abb818588619a4e7c4a4ba3bca18c | 882 | package org.swiftexplorer.swift.operations;
import java.io.File;
import java.util.List;
import org.javaswift.joss.instructions.UploadInstructions;
import org.javaswift.joss.model.StoredObject;
import org.swiftexplorer.swift.operations.SwiftOperations.SwiftCallback;
public interface LargeObjectManager {
public void uploadObjectAsSegments(StoredObject obj, File file, UploadInstructions uploadInstructions, long size, ProgressInformation progInfo, SwiftCallback callback) ;
public void uploadObjectAsSegments(StoredObject obj, UploadInstructions uploadInstructions, long size, ProgressInformation progInfo, SwiftCallback callback) ;
public boolean isSegmented (StoredObject obj) ;
public String getSumOfSegmentsMd5 (StoredObject obj) ;
public List<StoredObject> getSegmentsList (StoredObject obj) ;
public long getActualSegmentSize (StoredObject obj) ;
}
| 49 | 173 | 0.826531 |
b2e2208de5c31bcfbb8de02e05d9d0c22f49464f | 287 | package net.chrisrichardson.eventstore.examples.todolist.testutil;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableAutoConfiguration
public class BasicWebTestConfiguration {
}
| 22.076923 | 70 | 0.867596 |
f1ddf8c4f5fe9e81d6641f101dbf885b8647f787 | 4,688 | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package tech.dnaco.telemetry;
import java.util.concurrent.TimeUnit;
import tech.dnaco.strings.HumansUtil;
import tech.dnaco.time.TimeUtil;
public class TimeRangeCounter implements TelemetryCollector {
private final long[] counters;
private final long window;
private long lastInterval = Long.MAX_VALUE;
private long next;
public TimeRangeCounter(final long maxInterval, final long window, final TimeUnit unit) {
this.window = unit.toMillis(window);
final int trcCount = (int) Math.ceil(unit.toMillis(maxInterval) / (float) this.window);
this.counters = new long[trcCount];
this.clear(TimeUtil.currentUtcMillis());
}
public void clear(final long now) {
for (int i = 0; i < counters.length; ++i) {
this.counters[i] = 0;
}
setLastInterval(now);
this.next = 0;
}
public long inc() {
return add(TimeUtil.currentUtcMillis(), 1);
}
public long dec() {
return add(TimeUtil.currentUtcMillis(), -1);
}
public long inc(final long amount) {
return add(TimeUtil.currentUtcMillis(), amount);
}
public long add(final long now, final long delta) {
if ((now - lastInterval) < window) {
final int index = Math.toIntExact(next % counters.length);
counters[index] += delta;
return counters[index];
}
final int index;
if ((now - lastInterval) >= window) {
injectZeros(now);
index = Math.toIntExact(++next % counters.length);
setLastInterval(now);
counters[index] = computeNewValue(delta);
} else {
index = Math.toIntExact(next % counters.length);
counters[index] += delta;
}
return counters[index];
}
public void update(final long value) {
update(TimeUtil.currentUtcMillis(), value);
}
public void update(final long now, final long value) {
if ((now - lastInterval) < window) {
final int index = Math.toIntExact(next % counters.length);
counters[index] = value;
return;
}
final int index;
if ((now - lastInterval) >= window) {
injectZeros(now);
index = Math.toIntExact(++next % counters.length);
setLastInterval(now);
} else {
index = Math.toIntExact(next % counters.length);
}
counters[index] = value;
}
@Override
public String getType() {
return "TIME_RANGE_COUNTER";
}
@Override
public TimeRangeCounterData getSnapshot() {
final long now = TimeUtil.currentUtcMillis();
if ((now - lastInterval) >= window) injectZeros(now);
final long[] data = new long[(int) Math.min(next + 1, counters.length)];
for (int i = 0, n = data.length; i < n; ++i) {
data[data.length - (i + 1)] = counters[Math.toIntExact((next - i) % counters.length)];
}
return new TimeRangeCounterData(lastInterval, window, data);
}
protected long computeNewValue(final long newValue) {
return newValue;
}
protected long getPrevValue() {
return counters[Math.toIntExact((next - 1) % counters.length)];
}
private void setLastInterval(final long now) {
this.lastInterval = (now - (now % window));
}
protected void injectZeros(final long now) {
injectZeros(now, false);
}
protected void injectZeros(final long now, final boolean keepPrev) {
if ((now - lastInterval) < window) return;
final long slots = Math.round((now - lastInterval) / (float) window) - 1;
if (slots > 0) {
final long value = keepPrev ? counters[(int) (next % counters.length)] : 0;
for (long i = 0; i < slots; ++i) {
final long index = ++this.next;
counters[(int) (index % counters.length)] = value;
}
setLastInterval(now);
}
}
public static void main(final String[] args) {
final TimeRangeCounter trc = new TimeRangeCounter(16, 1, TimeUnit.MINUTES);
System.out.println(trc.getSnapshot().toHumanReport(new StringBuilder(), HumansUtil.HUMAN_COUNT));
}
}
| 30.441558 | 101 | 0.669795 |
b06a383b2c3c53da58f80eaedffe2a6e55dd5440 | 1,797 | package com.sudwood.advancedutilities.client.renders;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import org.lwjgl.opengl.GL11;
import com.sudwood.advancedutilities.client.models.ModelSteamCrusher;
public class RenderSteamCrusher extends TileEntitySpecialRenderer
{
ModelSteamCrusher model = new ModelSteamCrusher();
ResourceLocation texture = new ResourceLocation("advancedutilities","textures/blocks/steamcrusher.png");
private void adjustRotatePivotViaMeta(World world, int x, int y, int z) {
int meta = world.getBlockMetadata(x, y, z);
if(meta == 3)
{
GL11.glRotatef(meta * (-90), 1.0F, 800.0F, 1.0F);
}
if(meta == 2)
{
GL11.glRotatef(meta * (-45), 1.0F, 800.0F, 1.0F);
}
if(meta == 4)
{
GL11.glRotatef(meta * (225),0.0F,10.0F, 0.0F);
}
}
@Override
public void renderTileEntityAt(TileEntity te, double x, double y, double z, float scale) {
GL11.glPushMatrix();
GL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F);
bindTexture(texture);
GL11.glPushMatrix();
//adjustRotatePivotViaMeta(te.getWorldObj(), te.xCoord, te.yCoord, te.zCoord);//rotation 1
GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
adjustRotatePivotViaMeta(te.getWorldObj(), te.xCoord, te.yCoord, te.zCoord);//comment line "rotation 1" and uncomment this line if it doesnt work.
model.render((Entity) null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
GL11.glPopMatrix();
GL11.glPopMatrix();
}
}
| 35.235294 | 155 | 0.656093 |
09f89857df6e58ed513d614a6799ac53762b4b70 | 685 | package com.goblin.manage.bean.domain.enums;
import com.baomidou.mybatisplus.core.enums.IEnum;
import lombok.Getter;
/**
* 发送状态
* (
* NOT_SEND : 未发送,
* SEND : 已发送,
* FAIL_SEND : 发送失败,
* FINAL_FAIL_SEND : 重试次数用完后,还是发送失败
* )
*
* @author : 披荆斩棘
* @date : 2017/8/7
*/
@Getter
public enum EmailSendState implements IEnum {
/**
*
*/
NOT_SEND( "NOT_SEND" , "未发送" ),
SEND( "SEND" , "已发送" ),
FAIL_SEND( "FAIL_SEND" , "发送失败" ),
FINAL_FAIL_SEND( "FINAL_FAIL_SEND" , "重试次数用完后,还是发送失败" );
/** 数据库存储值 **/
private String value;
/** 相应注释 **/
private String comment;
EmailSendState ( String value , String comment ) {
this.value = value;
this.comment = comment;
}
}
| 16.707317 | 57 | 0.639416 |
0e1657ae492fe53c8b17318cb36b3ddd02877fa3 | 6,275 | package com.verygood.security.larky;
import com.google.common.collect.ImmutableSet;
import com.verygood.security.larky.console.testing.TestingConsole;
import com.verygood.security.larky.nativelib.LarkyGlobals;
import com.verygood.security.larky.nativelib.LarkyUnittest;
import com.verygood.security.larky.parser.LarkyParser;
import com.verygood.security.larky.parser.ParsedStarFile;
import com.verygood.security.larky.parser.PathBasedStarFile;
import com.verygood.security.larky.parser.StarFile;
import com.verygood.security.messages.operations.Http;
import net.starlark.java.annot.Param;
import net.starlark.java.annot.StarlarkBuiltin;
import net.starlark.java.annot.StarlarkMethod;
import net.starlark.java.eval.StarlarkThread;
import net.starlark.java.eval.StarlarkValue;
import net.starlark.java.syntax.ParserInput;
import org.junit.Assert;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
public class LarkyTest {
@org.junit.Test
public void testStarlarkExampleFile() {
Path resourceDirectory = Paths.get(
"src",
"test",
"resources",
"test_starlark_executes_example.star");
String absolutePath = resourceDirectory.toFile().getAbsolutePath();
System.out.println(absolutePath);
try {
Assert.assertEquals(
"Did not successfully evaluate Starlark file",
0,
Larky.execute(ParserInput.readFile(absolutePath))
);
} catch (IOException e) {
System.err.println(e.getMessage());
System.err.println(e.getCause().toString());
Throwable t = e.getCause();
Assert.fail(t.toString());
}
}
@org.junit.Test
public void testStructBuiltin() throws IOException {
Path resourceDirectory = Paths.get(
"src",
"test",
"resources",
"test_struct.star");
String absolutePath = resourceDirectory.toFile().getAbsolutePath();
System.out.println(absolutePath);
LarkyParser parser = new LarkyParser(
ImmutableSet.of(LarkyGlobals.class),
LarkyParser.StarlarkMode.STRICT);
StarFile starFile = new PathBasedStarFile(
Paths.get(absolutePath),
null,
null);
ParsedStarFile config;
ModuleSupplier.ModuleSet moduleSet = new ModuleSupplier().create();
config = parser.loadStarFile(starFile, moduleSet, new TestingConsole());
}
@org.junit.Test
public void testLoadingModules() throws IOException {
Path resourceDirectory = Paths.get(
"src",
"test",
"resources",
"test_loading_module.star");
String absolutePath = resourceDirectory.toFile().getAbsolutePath();
System.out.println(absolutePath);
LarkyParser parser = new LarkyParser(
ImmutableSet.of(LarkyGlobals.class),
LarkyParser.StarlarkMode.STRICT);
StarFile starFile = new PathBasedStarFile(
Paths.get(absolutePath),
null,
null);
ParsedStarFile config;
config = parser.loadStarFile(starFile, new ModuleSupplier().create(), new TestingConsole());
}
@org.junit.Test
public void testUnitTestModule() throws IOException {
Path resourceDirectory = Paths.get(
"src",
"test",
"resources",
"test_unittest.star");
String absolutePath = resourceDirectory.toFile().getAbsolutePath();
System.out.println(absolutePath);
LarkyParser parser = new LarkyParser(
ImmutableSet.of(
LarkyGlobals.class,
LarkyUnittest.class
),
LarkyParser.StarlarkMode.STRICT);
StarFile starFile = new PathBasedStarFile(
Paths.get(absolutePath),
null,
null);
ParsedStarFile config;
config = parser.loadStarFile(starFile, new ModuleSupplier().create(), new TestingConsole());
}
@org.junit.Test
public void testAsserts() throws IOException {
Path resourceDirectory = Paths.get(
"src",
"test",
"resources",
"test_asserts.star");
String absolutePath = resourceDirectory.toFile().getAbsolutePath();
System.out.println(absolutePath);
LarkyParser parser = new LarkyParser(
ImmutableSet.of(
LarkyGlobals.class,
LarkyUnittest.class
),
LarkyParser.StarlarkMode.STRICT);
StarFile starFile = new PathBasedStarFile(
Paths.get(absolutePath),
null,
null);
ParsedStarFile config;
config = parser.loadStarFile(starFile, new ModuleSupplier().create(), new TestingConsole());
}
@StarlarkBuiltin(
name = "vgs_messages",
category = "BUILTIN",
doc = "messages namespace"
)
public static class VGSMessages implements StarlarkValue {
@StarlarkMethod(
name = "HttpMessage",
parameters = {
@Param(name = "function"),
},
useStarlarkThread = true)
public Object httpMessage(Object function, StarlarkThread thread) {
return null;
}
@StarlarkMethod(
name = "HttpHeader",
parameters = {
@Param(name = "function"),
},
useStarlarkThread = true)
public Object httpHeader(Object function, StarlarkThread thread) {
return null;
}
@StarlarkMethod(
name = "HttpPhase",
parameters = {
@Param(name = "function"),
},
useStarlarkThread = true)
public Object httpPhase(Object function, StarlarkThread thread) {
return null;
}
}
@org.junit.Test
public void testFCOAlternative() throws IOException {
Path resourceDirectory = Paths.get(
"src",
"test",
"resources",
"test_fco_operation.star");
String absolutePath = resourceDirectory.toFile().getAbsolutePath();
Http.HttpPhase httpPhase = Http.HttpPhase.forNumber(1);
System.out.println(httpPhase);
LarkyParser parser = new LarkyParser(
ImmutableSet.of(
LarkyGlobals.class,
LarkyUnittest.class,
VGSMessages.class
),
LarkyParser.StarlarkMode.STRICT);
StarFile starFile = new PathBasedStarFile(
Paths.get(absolutePath),
null,
null);
ParsedStarFile config;
config = parser.loadStarFile(starFile, new ModuleSupplier().create(), new TestingConsole());
}
} | 29.599057 | 96 | 0.665817 |
291ba5dbecd707b4e10466fa2075967fd68756b2 | 1,412 | package ca.ulaval.glo4003.housematch.services.statistics;
import ca.ulaval.glo4003.housematch.domain.property.Property;
import ca.ulaval.glo4003.housematch.domain.property.PropertyDetails;
import ca.ulaval.glo4003.housematch.domain.property.PropertyObserver;
import ca.ulaval.glo4003.housematch.domain.property.PropertyStatus;
import ca.ulaval.glo4003.housematch.domain.propertyphoto.PropertyPhoto;
public class PropertyStatisticsObserver implements PropertyObserver {
private PropertyStatisticsService propertyStatisticsService;
public PropertyStatisticsObserver(final PropertyStatisticsService propertyStatisticsService) {
this.propertyStatisticsService = propertyStatisticsService;
}
@Override
public void propertyStatusChanged(Object sender, PropertyStatus newStatus) {
switch (newStatus) {
case FOR_SALE:
propertyStatisticsService.processNewPropertyForSale((Property) sender);
break;
case SOLD:
propertyStatisticsService.processPropertySale((Property) sender);
break;
default:
}
}
@Override
public void propertyDetailsChanged(Object sender, PropertyDetails newPropertyDetails) {
// Event intentionally ignored.
}
@Override
public void propertyPhotoRejected(Object sender, PropertyPhoto propertyPhoto) {
// Event intentionally ignored.
}
}
| 34.439024 | 98 | 0.755666 |
9e389ef958dab1831b7906500c764343181001ad | 1,567 | package top.plgxs.common.core.api.node;
import lombok.Data;
import java.io.Serializable;
/**
* ztree组件节点数据格式
*
* @author Stranger。
* @version 1.0
* @since 2021/2/6 21:20
*/
@Data
public class ZTreeNode implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 节点id
*/
private String id;
/**
* 父节点id
*/
private String pId;
/**
* 节点名称
*/
private String name;
/**
* 是否打开节点
*/
private Boolean open;
/**
* 是否被选中
*/
private Boolean checked;
/**
* 节点图标 single or group
*/
private String iconSkin;
/**
* 禁用节点
*/
private Boolean chkDisabled;
/**
* 创建ztree的父级节点
*
* @return top.plgxs.common.node.ZTreeNode
* @author Stranger。
* @since 2021/2/6
*/
public static ZTreeNode createParent() {
ZTreeNode zTreeNode = new ZTreeNode();
zTreeNode.setChecked(true);
zTreeNode.setId("0");
zTreeNode.setName("顶级");
zTreeNode.setOpen(true);
zTreeNode.setPId("0");
zTreeNode.setChkDisabled(false);
return zTreeNode;
}
public static ZTreeNode createParent(String id, String name, Boolean checked, Boolean chkDisabled) {
ZTreeNode zTreeNode = new ZTreeNode();
zTreeNode.setChecked(checked);
zTreeNode.setId(id);
zTreeNode.setName(name);
zTreeNode.setOpen(true);
zTreeNode.setPId(id);
zTreeNode.setChkDisabled(chkDisabled);
return zTreeNode;
}
}
| 19.345679 | 104 | 0.584556 |
54c218058cd7e1fc23eea4387d11bb87dc6ba71a | 1,269 | /*
* Copyright 2016 Crown Copyright
*
* Licensed 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package stroom.test;
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.TestInfo;
import stroom.test.common.util.test.TempDir;
import java.nio.file.Path;
public abstract class AbstractProcessIntegrationTest extends StroomIntegrationTest {
private static final Injector injector;
static {
injector = Guice.createInjector(new MockServiceModule());
}
@BeforeEach
void before(final TestInfo testInfo, @TempDir final Path tempDir) {
injector.injectMembers(this);
super.before(testInfo, tempDir);
super.importSchemas(true);
}
} | 30.95122 | 84 | 0.740741 |
d89785f18af11e5273af46be9266c431b4566964 | 725 | package dk.thoughtcrime.surveillance.server.routes;
import dk.thoughtcrime.surveillance.server.database.ReadingsDAO;
import org.apache.camel.spring.SpringRouteBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* Created by jimmy on 23/11/2015.
*/
@Component
public class DatabaseMaintenance extends SpringRouteBuilder{
@Autowired
ReadingsDAO rda;
@Override
public void configure() throws Exception {
from("quartz2://databaseMaintenanceTimer?cron=0+0+0+*+*+?")
.routeId("DatabaseMaintenance")
.process(exchange -> {
rda.deleteReadings(30);
});
}
}
| 25.892857 | 67 | 0.688276 |
7d5792d1e6bd100a6d2714a2aae6c458e8f1e0f4 | 6,032 | package com.xceptance.xlt.engine.scripting.htmlunit;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import com.gargoylesoftware.htmlunit.html.HtmlOption;
import com.gargoylesoftware.htmlunit.html.HtmlSelect;
import com.xceptance.xlt.engine.scripting.util.TextMatchingUtils;
/**
* HTML option locator.
*/
class OptionFinder
{
/**
* Map of strategy names to the appropriate strategies.
*/
private final Map<String, OptionLookupStrategy> strategies = new HashMap<String, OptionLookupStrategy>();
/**
* Constructor.
*/
OptionFinder()
{
final OptionLookupStrategy labelStrategy = new LabelStrategy();
strategies.put("implicit", labelStrategy);
strategies.put("id", new IdStrategy());
strategies.put("index", new IndexStrategy());
strategies.put("label", labelStrategy);
strategies.put("value", new ValueStrategy());
}
/**
* Lookup an option of the given HTML select element that match the given option locator.
*
* @param select
* the HTML select element
* @param optionLocator
* the option locator
* @return first found option of the given select element that match the given option locator
*/
HtmlOption findOption(final HtmlSelect select, final String optionLocator)
{
return findOptions(select, optionLocator).get(0);
}
/**
* Lookup all options of the given HTML select element that match the given option locator.
*
* @param select
* the HTML select element
* @param optionLocator
* the option locator
* @return list of all options of the given select element that match the given option locator
*/
List<HtmlOption> findOptions(final HtmlSelect select, final String optionLocator)
{
final String strategyName;
final String value;
final Matcher m = HtmlUnitFinder.STRATEGY_PATTERN.matcher(optionLocator);
if (m.matches())
{
strategyName = m.group(1);
value = m.group(2);
}
else
{
strategyName = "implicit";
value = optionLocator;
}
final OptionLookupStrategy strategy = strategies.get(strategyName);
if (strategy == null)
{
throw new IllegalLocatorException("Unsupported option locator strategy: " + strategyName);
}
final List<HtmlOption> options = strategy.find(select, value);
if (options.size() == 0)
{
throw new NoSuchElementException("No option found for option locator: " + optionLocator);
}
return options;
}
/**
* Base class of HTML option lookup strategies.
*/
private static abstract class OptionLookupStrategy
{
/**
* Lookup all options of the given HTML select element that match the given option locator.
*
* @param select
* the HTML select element
* @param optionLocator
* the option locator
* @return list of all options of the given select element that match the given option locator
*/
protected abstract List<HtmlOption> find(final HtmlSelect select, final String optionLocator);
}
/**
* Finds an option by id attribute.
*/
private static final class IdStrategy extends OptionLookupStrategy
{
@Override
protected List<HtmlOption> find(final HtmlSelect select, final String optionLocator)
{
final ArrayList<HtmlOption> options = new ArrayList<HtmlOption>();
for (final HtmlOption o : select.getOptions())
{
if (optionLocator.equals(o.getId()))
{
options.add(o);
}
}
return options;
}
}
/**
* Finds an option by index.
*/
private static final class IndexStrategy extends OptionLookupStrategy
{
@Override
protected List<HtmlOption> find(final HtmlSelect select, final String optionLocator)
{
final ArrayList<HtmlOption> options = new ArrayList<HtmlOption>();
try
{
final int idx = Integer.parseInt(optionLocator);
if (idx >= 0 && idx < select.getOptionSize())
{
options.add(select.getOption(idx));
}
}
catch (final Exception e)
{
// ignore
}
return options;
}
}
/**
* Finds an option by label (element text).
*/
private static final class LabelStrategy extends OptionLookupStrategy
{
@Override
protected List<HtmlOption> find(final HtmlSelect select, final String optionLocator)
{
final ArrayList<HtmlOption> options = new ArrayList<HtmlOption>();
for (final HtmlOption o : select.getOptions())
{
if (TextMatchingUtils.isAMatch(HtmlUnitElementUtils.computeText(o), optionLocator, true, true))
{
options.add(o);
}
}
return options;
}
}
/**
* Finds an option by value attribute.
*/
private static final class ValueStrategy extends OptionLookupStrategy
{
@Override
protected List<HtmlOption> find(final HtmlSelect select, final String valuePattern)
{
final ArrayList<HtmlOption> options = new ArrayList<HtmlOption>();
for (final HtmlOption o : select.getOptions())
{
if (TextMatchingUtils.isAMatch(o.getValueAttribute(), valuePattern, true, false))
{
options.add(o);
}
}
return options;
}
}
}
| 30.77551 | 111 | 0.585544 |
f5db0ee0732c7df835b46b6c4dd82e33978e017b | 7,291 | package com.sourcegraph.langserver.langservice.compiler;
import com.sourcegraph.lsp.domain.structures.Location;
import com.sourcegraph.lsp.domain.structures.Position;
import com.sourcegraph.lsp.domain.structures.Range;
import com.sourcegraph.utils.LanguageUtils;
import com.sun.source.tree.*;
import com.sun.source.util.SourcePositions;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.Pair;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.tools.Diagnostic;
import javax.tools.JavaFileObject;
import java.io.IOException;
import java.nio.file.Paths;
import java.util.HashMap;
public class PositionCalculator {
private static Logger log = LoggerFactory.getLogger(PositionCalculator.class);
private SourcePositions sourcePositions;
private CompilationUnitTree compilationUnit;
private String fileUri;
private String content;
private HashMap<Integer, Position> positions;
public PositionCalculator(SourcePositions sourcePositions, CompilationUnitTree compilationUnit) {
this.sourcePositions = sourcePositions;
this.compilationUnit = compilationUnit;
JavaFileObject file = compilationUnit.getSourceFile();
this.fileUri = file.getName();
try {
this.content = file.getCharContent(true).toString();
} catch (IOException exception) {
log.error("Unable to extract content of {}", fileUri);
throw new RuntimeException(exception);
}
this.positions = new HashMap<>();
}
public Range getRange(Tree tree) {
int startOffset = getStartOffset(tree);
int endOffset = getEndOffset(tree);
if (endOffset < 0) endOffset = startOffset;
return new Range()
.withStart(positions.computeIfAbsent(startOffset, this::calculatePosition))
.withEnd(positions.computeIfAbsent(endOffset, this::calculatePosition));
}
public Location getLocation(MethodTree tree, String name) {
return new Location()
.withUri(fileUri)
.withRange(getRange(getBoundingBox(tree, name)));
}
public Location getLocation(Tree tree) {
Range range;
if (tree instanceof ClassTree) {
range = getRange(getBoundingBox((ClassTree) tree));
} else if (tree instanceof MethodTree) {
range = getRange(getBoundingBox((MethodTree) tree));
} else if (tree instanceof VariableTree) {
range = getRange(getBoundingBox((VariableTree) tree));
} else if (tree instanceof MemberSelectTree) {
range = getRange(getBoundingBox((MemberSelectTree) tree));
} else {
range = getRange(tree);
}
return new Location()
.withUri(fileUri)
.withRange(range);
}
public Pair<Integer, Integer> getBoundingBox(ClassTree tree) {
String name = tree.getSimpleName().toString();
// the modifiers might contain the classname itself (e.g., if a class is self-annotated), so exclude the
// modifiers when searching for the classname
int offset = -1;
if (tree.getModifiers() != null) {
offset = getEndOffset(tree.getModifiers());
}
if (offset == -1) {
// end offset of tree modifiers may be null too, see
// https://github.com/sourcegraph/java-langserver/issues/148
offset = getStartOffset(tree);
}
int startOffset = content.indexOf(name, offset);
return Pair.of(startOffset, startOffset + name.length());
}
public Pair<Integer, Integer> getBoundingBox(MethodTree tree) {
return getBoundingBox(tree, tree.getName().toString());
}
public Pair<Integer, Integer> getBoundingBox(MemberSelectTree tree) {
String name = tree.getIdentifier().toString();
int startOffset = content.indexOf(name, getEndOffset(tree.getExpression(), tree));
return Pair.of(startOffset, startOffset + name.length());
}
public Pair<Integer, Integer> getBoundingBox(VariableTree tree) {
String name = tree.getName().toString();
int startOffset = content.indexOf(name, getEndOffset(tree.getType(), tree));
return Pair.of(startOffset, startOffset + name.length());
}
public Pair<Integer, Integer> getBoundingBox(MethodTree tree, String name) {
int startOffset;
if (tree.getReturnType() != null) {
startOffset = content.indexOf(name, getEndOffset(tree.getReturnType(), tree));
} else if (tree.getModifiers() != null) {
startOffset = content.indexOf(name, getEndOffset(tree.getModifiers(), tree));
} else {
startOffset = content.indexOf(name, getStartOffset(tree));
}
return Pair.of(startOffset, startOffset + name.length());
}
public JavaSourceRange getJavaSourceRange(Tree tree) {
int startOffset = getStartOffset(tree);
int endOffset = getEndOffset(tree);
if (endOffset < 0) endOffset = startOffset;
return new JavaSourceRange()
.withFileName(fileUri)
.withStartOffset(startOffset)
.withEndOffset(endOffset);
}
private Position calculatePosition(int rawOffset) {
if (rawOffset < 0 || rawOffset > content.length()) {
return new Position().withLine(-1).withCharacter(-1);
}
String precedingText = content.substring(0, rawOffset);
int linesPreceding = StringUtils.countMatches(precedingText, '\n');
int charsPreceding = StringUtils.substringAfterLast(precedingText, "\n").length();
return new Position()
.withLine(linesPreceding)
.withCharacter(charsPreceding);
}
private int getStartOffset(Tree tree) {
// would prefer not to cast, but all the string manipulation methods take ints
return (int) sourcePositions.getStartPosition(compilationUnit, tree);
}
private int getEndOffset(Tree tree) {
// would prefer not to cast, but all the string manipulation methods take ints
return (int) sourcePositions.getEndPosition(compilationUnit, tree);
}
/**
* @param tree tree
* @param parent paremt tree
* @return end offset of a given tree or start offset of a parent tree if the former is NOPOS
*/
private int getEndOffset(Tree tree, Tree parent) {
int ret = getEndOffset(tree);
return ret == Diagnostic.NOPOS ? getStartOffset(parent) : ret;
}
public static int positionToOffset(CharSequence content, Position position) {
int currentLine = 0;
int offset = position.getCharacter();
if (currentLine == position.getLine()) return offset;
for (int i = 0; i < content.length(); ++i) {
if (content.charAt(i) == '\n') {
++currentLine;
if (currentLine == position.getLine()) return i + 1 + offset;
}
}
return -1;
}
private Range getRange(Pair<Integer, Integer> offsets) {
return new Range()
.withStart(calculatePosition(offsets.getLeft()))
.withEnd(calculatePosition(offsets.getRight()));
}
}
| 37.582474 | 112 | 0.648471 |
3e2334e25926c989bda582883bb2934da7242c48 | 2,662 | /***************************************************************************************************
*
* Copyright (c) 2013, 2014, 2015, 2016, 2017 Universitat Politecnica de Valencia - www.upv.es
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************************************/
/**
* @author Sebastian Bauersfeld
*/
package org.testar.monkey.alayer;
import org.testar.monkey.Assert;
import org.testar.monkey.Util;
public final class OrthogonalPosition extends AbstractPosition {
private static final long serialVersionUID = -5638599581798926650L;
final Position pos1, pos2;
final double relR, absR;
public OrthogonalPosition(Position pos1, Position pos2, double relR, double absR){
Assert.notNull(pos1, pos2);
this.pos1 = pos1;
this.pos2 = pos2;
this.relR = relR;
this.absR = absR;
}
public Point apply(State state) {
Assert.notNull(state);
Point p1 = pos1.apply(state);
Point p2 = pos2.apply(state);
double centerX = (p1.x() + p2.x()) * .5;
double centerY = (p1.y() + p2.y()) * .5;
double l = Util.length(p1.x(), p1.y(), p2.x(), p2.y());
return Util.OrthogonalPoint(centerX, centerY, p2.x(), p2.y(), relR * l + absR);
}
}
| 42.253968 | 104 | 0.693088 |
d8047b84c708759b0747c70482dfb89db7c6925c | 14,645 | package genepi.imputationbutler.commands;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Vector;
import org.json.JSONArray;
import org.json.JSONObject;
import org.junit.Test;
import genepi.imputationbot.client.CloudgeneClient;
import genepi.imputationbot.client.CloudgeneException;
import genepi.imputationbot.client.CloudgeneInstance;
import genepi.imputationbot.client.CloudgeneInstanceList;
import genepi.imputationbot.client.CloudgeneJob;
import genepi.imputationbot.client.CloudgeneJobList;
import genepi.imputationbot.commands.AddInstance;
import genepi.imputationbot.commands.BaseCommand;
import genepi.imputationbot.commands.ListJobs;
import genepi.imputationbot.commands.ListProjects;
import genepi.imputationbot.commands.RunImputationJob;
import genepi.imputationbot.model.Project;
import genepi.imputationbutler.ImputationServer;
import genepi.io.FileUtil;
import net.lingala.zip4j.core.ZipFile;
import net.lingala.zip4j.model.FileHeader;
import net.lingala.zip4j.util.Zip4jConstants;
public class RunImputationJobTest {
public static final String VCF = "test-data/chr20.R50.merged.1.330k.recode.small.vcf.gz";
public static final String VCF_SMALL = "test-data/small.vcf.gz";
public static final String VCF_SMALL_CHR1 = "test-data/small.chr1.vcf.gz";
public static final String VCF_SMALL_CHR2 = "test-data/small.chr2.vcf.gz";
public static final String VCF_SMALL_CHR3 = "test-data/small.chr3.vcf.gz";
@Test
public void testRunImputationAndWait() throws IOException {
deleteInstances();
String hostname = ImputationServer.getInstance().getUrl();
String token = ImputationServer.getInstance().getAdminToken();
AddInstance addInstance = new AddInstance(hostname, token);
assertEquals(0, addInstance.start());
String[] args = new String[] { "--refpanel", "hapmap-2", "--population", "eur", "--files", VCF, "--wait" };
RunImputationJob runImputationJob = new RunImputationJob(args);
int result = runImputationJob.start();
assertEquals(0, result);
CloudgeneJob job = runImputationJob.getJob();
assertNotNull(job);
assertTrue(job.isSuccessful());
assertFalse(job.isRetired());
assertFalse(job.isRunning());
assertEquals(hostname, job.getInstance().getHostname());
assertNull(runImputationJob.getProject());
}
@Test
public void testRunImputationWithoutWait() throws IOException, CloudgeneException, InterruptedException {
deleteInstances();
String hostname = ImputationServer.getInstance().getUrl();
String token = ImputationServer.getInstance().getAdminToken();
AddInstance addInstance = new AddInstance(hostname, token);
assertEquals(0, addInstance.start());
String[] args = new String[] { "--refpanel", "hapmap-2", "--population", "eur", "--files", VCF };
RunImputationJob runImputationJob = new RunImputationJob(args);
int result = runImputationJob.start();
assertEquals(0, result);
CloudgeneJob job = runImputationJob.getJob();
assertNotNull(job);
CloudgeneClient client = new CloudgeneClient(getInstances());
client.waitForJob(job);
job = client.getJobDetails(job.getId());
assertTrue(job.isSuccessful());
assertFalse(job.isRetired());
assertFalse(job.isRunning());
assertTrue(job.getExecutionTime() > 0);
assertEquals(hostname, job.getInstance().getHostname());
assertNull(runImputationJob.getProject());
}
@Test
public void testAutoDownloadWithPassword() throws Exception {
String password = "test-password";
deleteInstances();
String hostname = ImputationServer.getInstance().getUrl();
String token = ImputationServer.getInstance().getAdminToken();
AddInstance addInstance = new AddInstance(hostname, token);
assertEquals(0, addInstance.start());
RunImputationJob runImputationJob = new RunImputationJob("--refpanel", "hapmap-2", "--population", "eur",
"--files", VCF, "--autoDownload", "--password", password, "--name", "test-job");
int result = runImputationJob.start();
assertEquals(0, result);
CloudgeneJob job = runImputationJob.getJob();
assertNotNull(job);
assertTrue(job.isSuccessful());
String output = job.getId() + "-test-job";
assertTrue(new File(output).exists());
assertTrue(new File(output + "/local/chr_20.zip").exists());
assertTrue(new File(output + "/local/chr20.dose.vcf.gz").exists());
assertTrue(new File(output + "/local/chr20.info.gz").exists());
FileUtil.deleteDirectory(job.getId());
ZipFile file = new ZipFile(output + "/local/chr_20.zip");
assertTrue(file.isValidZipFile());
assertTrue(file.isEncrypted());
// check if zip file is not AES encrypted
for (Object o : file.getFileHeaders()) {
FileHeader h = (FileHeader) o;
assertEquals(true, h.isEncrypted());
assertNotEquals(Zip4jConstants.ENC_METHOD_AES, h.getEncryptionMethod());
}
}
@Test
public void testAutoDownloadWithoutPassword() throws Exception {
deleteInstances();
String hostname = ImputationServer.getInstance().getUrl();
String token = ImputationServer.getInstance().getAdminToken();
AddInstance addInstance = new AddInstance(hostname, token);
assertEquals(0, addInstance.start());
RunImputationJob runImputationJob = new RunImputationJob("--refpanel", "hapmap-2", "--population", "eur",
"--files", VCF, "--autoDownload", "--name", "test-job");
int result = runImputationJob.start();
assertEquals(0, result);
CloudgeneJob job = runImputationJob.getJob();
assertNotNull(job);
assertTrue(job.isSuccessful());
String output = job.getId() + "-test-job";
assertTrue(new File(output).exists());
assertTrue(new File(output + "/local/chr_20.zip").exists());
assertFalse(new File(output + "/local/chr20.dose.vcf.gz").exists());
assertFalse(new File(output + "/local/chr20.info.gz").exists());
FileUtil.deleteDirectory(job.getId());
ZipFile file = new ZipFile(output + "/local/chr_20.zip");
assertTrue(file.isValidZipFile());
assertTrue(file.isEncrypted());
// check if zip file is not AES encrypted
for (Object o : file.getFileHeaders()) {
FileHeader h = (FileHeader) o;
assertEquals(true, h.isEncrypted());
assertNotEquals(Zip4jConstants.ENC_METHOD_AES, h.getEncryptionMethod());
}
}
@Test
public void testRunImputationAndAddToProject() throws IOException, CloudgeneException, InterruptedException {
deleteInstances();
deleteProjects();
String hostname = ImputationServer.getInstance().getUrl();
String token = ImputationServer.getInstance().getAdminToken();
AddInstance addInstance = new AddInstance(hostname, token);
assertEquals(0, addInstance.start());
String[] args = new String[] { "--refpanel", "hapmap-2", "--population", "eur", "--files", VCF, "--project",
"test-project" };
RunImputationJob runImputationJob1 = new RunImputationJob(args);
int result1 = runImputationJob1.start();
assertEquals(0, result1);
CloudgeneJob job1 = runImputationJob1.getJob();
assertNotNull(job1);
Project project1 = runImputationJob1.getProject();
assertNotNull(project1);
assertTrue(project1.containsJob(job1.getId()));
assertEquals("test-project", project1.getName());
assertEquals(1, project1.getJobs().size());
String[] args2 = new String[] { "--refpanel", "hapmap-2", "--population", "eur", "--files", VCF_SMALL,
"--project", "test-project" };
RunImputationJob runImputationJob2 = new RunImputationJob(args2);
int result2 = runImputationJob2.start();
assertEquals(0, result2);
CloudgeneJob job2 = runImputationJob2.getJob();
assertNotNull(job2);
Project project2 = runImputationJob2.getProject();
assertNotNull(project2);
assertTrue(project2.containsJob(job1.getId()));
assertTrue(project2.containsJob(job2.getId()));
assertEquals("test-project", project2.getName());
assertEquals(2, project2.getJobs().size());
CloudgeneClient client = new CloudgeneClient(getInstances());
client.waitForProject(project2);
CloudgeneJobList jobs = client.getJobs(project2);
jobs.sortById();
assertFalse(jobs.get(0).isSuccessful());
assertFalse(jobs.get(0).isRetired());
assertFalse(jobs.get(0).isRunning());
assertEquals(hostname, jobs.get(0).getInstance().getHostname());
assertTrue(jobs.get(1).isSuccessful());
assertFalse(jobs.get(1).isRetired());
assertFalse(jobs.get(1).isRunning());
assertEquals(hostname, jobs.get(1).getInstance().getHostname());
ListJobs listJobs = new ListJobs("test-project");
int result3 = listJobs.start();
assertEquals(0, result3);
ListProjects listProjects = new ListProjects();
int result4 = listProjects.start();
assertEquals(0, result4);
assertEquals(1, listProjects.getData().length);
assertEquals(3, listProjects.getData()[0].length);
assertEquals("test-project", listProjects.getData()[0][0]);
assertTrue(listProjects.getData()[0][2].contains(job1.getId()));
assertTrue(listProjects.getData()[0][2].contains(job2.getId()));
}
@Test
public void testRunImputationWrongRefPanel() throws IOException {
deleteInstances();
String hostname = ImputationServer.getInstance().getUrl();
String token = ImputationServer.getInstance().getAdminToken();
AddInstance addInstance = new AddInstance(hostname, token);
assertEquals(0, addInstance.start());
String[] args = new String[] { "--refpanel", "test-panel", "--population", "eur", "--files", VCF, "--wait" };
RunImputationJob runImputationJob = new RunImputationJob(args);
int result = runImputationJob.start();
assertNotEquals(0, result);
CloudgeneJob job = runImputationJob.getJob();
assertNull(job);
assertNull(runImputationJob.getProject());
}
@Test
public void testRunImputationWrongPopulation() throws IOException {
deleteInstances();
String hostname = ImputationServer.getInstance().getUrl();
String token = ImputationServer.getInstance().getAdminToken();
AddInstance addInstance = new AddInstance(hostname, token);
assertEquals(0, addInstance.start());
String[] args = new String[] { "--refpanel", "hapmap-2", "--population", "test-pop", "--files", VCF, "--wait" };
RunImputationJob runImputationJob = new RunImputationJob(args);
int result = runImputationJob.start();
assertNotEquals(0, result);
CloudgeneJob job = runImputationJob.getJob();
assertNull(job);
assertNull(runImputationJob.getProject());
}
@Test
public void testRunImputationMissingPopulation() throws IOException {
deleteInstances();
String hostname = ImputationServer.getInstance().getUrl();
String token = ImputationServer.getInstance().getAdminToken();
AddInstance addInstance = new AddInstance(hostname, token);
assertEquals(0, addInstance.start());
String[] args = new String[] { "--refpanel", "hapmap-2", "--files", VCF, "--wait" };
RunImputationJob runImputationJob = new RunImputationJob(args);
int result = runImputationJob.start();
assertNotEquals(0, result);
CloudgeneJob job = runImputationJob.getJob();
assertNull(job);
assertNull(runImputationJob.getProject());
}
@Test
public void testRunImputationMissingRefPanel() throws IOException {
deleteInstances();
String hostname = ImputationServer.getInstance().getUrl();
String token = ImputationServer.getInstance().getAdminToken();
AddInstance addInstance = new AddInstance(hostname, token);
assertEquals(0, addInstance.start());
String[] args = new String[] { "--population", "eur", "--files", VCF, "--wait" };
RunImputationJob runImputationJob = new RunImputationJob(args);
int result = runImputationJob.start();
assertNotEquals(0, result);
CloudgeneJob job = runImputationJob.getJob();
assertNull(job);
assertNull(runImputationJob.getProject());
}
@Test
public void testRunImputationWrongFile() throws IOException {
deleteInstances();
String hostname = ImputationServer.getInstance().getUrl();
String token = ImputationServer.getInstance().getAdminToken();
AddInstance addInstance = new AddInstance(hostname, token);
assertEquals(0, addInstance.start());
String[] args = new String[] { "--refpanel", "hapmap-2", "--files", "wrong.vcf.gz", "--population", "eur",
"--wait" };
RunImputationJob runImputationJob = new RunImputationJob(args);
int result = runImputationJob.start();
assertNotEquals(0, result);
CloudgeneJob job = runImputationJob.getJob();
assertNull(job);
assertNull(runImputationJob.getProject());
}
@Test
public void testRunImputationWithMultipleFiles() throws IOException, CloudgeneException, InterruptedException {
deleteInstances();
String hostname = ImputationServer.getInstance().getUrl();
String token = ImputationServer.getInstance().getAdminToken();
AddInstance addInstance = new AddInstance(hostname, token);
assertEquals(0, addInstance.start());
String[] args = new String[] { "--refpanel", "hapmap-2", "--population", "eur", "--files", VCF_SMALL_CHR1,
VCF_SMALL_CHR2, VCF_SMALL_CHR3 };
RunImputationJob runImputationJob = new RunImputationJob(args);
int result = runImputationJob.start();
assertEquals(0, result);
CloudgeneJob job = runImputationJob.getJob();
assertNotNull(job);
CloudgeneClient client = new CloudgeneClient(getInstances());
client.waitForJob(job);
job = client.getJobDetails(job.getId());
assertTrue(job.isSuccessful());
assertFalse(job.isRetired());
assertFalse(job.isRunning());
assertTrue(job.getExecutionTime() > 0);
assertEquals(hostname, job.getInstance().getHostname());
assertNull(runImputationJob.getProject());
//check three result files
JSONArray outputs = job.getOutputs();
JSONObject files = outputs.getJSONObject(2);
assertEquals("Imputation Results", files.getString("description"));
assertEquals(3, files.getJSONArray("files").length());
}
// TODO: test optional parameters: build, r2 filter, password, aesEncryption?
private void deleteInstances() {
// delete instances files
File file = new File(FileUtil.path(BaseCommand.APP_HOME, BaseCommand.INSTANCES_FILENAME));
if (file.exists()) {
file.delete();
}
}
private void deleteProjects() {
// delete instances files
File file = new File(FileUtil.path(BaseCommand.APP_HOME, BaseCommand.PROJECTS_FILENAME));
if (file.exists()) {
file.delete();
}
}
private List<CloudgeneInstance> getInstances() throws IOException {
return new Vector<CloudgeneInstance>(CloudgeneInstanceList
.load(FileUtil.path(BaseCommand.APP_HOME, BaseCommand.INSTANCES_FILENAME)).getAll());
}
}
| 33.133484 | 114 | 0.740048 |
1932b86722d37a35fe42201bbd3f60c44fb16753 | 656 | package com.echo.server.configuration;
import com.alibaba.nacos.api.annotation.NacosProperties;
import com.alibaba.nacos.api.config.annotation.NacosValue;
import com.alibaba.nacos.spring.context.annotation.EnableNacos;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableNacos(globalProperties = @NacosProperties(serverAddr = "${nacos.server-addr}"))
@NacosPropertySource(dataId = "server_application", groupId = "testApple", autoRefreshed = true)
@NacosPropertySource(dataId = "dataId", autoRefreshed = true)
public class NacosConfig {
}
| 41 | 96 | 0.817073 |
dc27e6f57021fb299c34f379ff3780b697c9d562 | 2,543 | /*
* Copyright 2019 Tango Controls
*
* Licensed 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package org.tango.web.server.event;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonPrimitive;
import com.google.gson.JsonSerializer;
import fr.esrf.Tango.DevState;
import org.tango.client.ez.proxy.EventData;
import org.tango.client.ez.proxy.TangoEventListener;
import javax.ws.rs.sse.OutboundSseEvent;
import javax.ws.rs.sse.Sse;
/**
* @author Igor Khokhriakov <[email protected]>
* @since 11/8/18
*/
public class SseTangoEventListener implements TangoEventListener<Object> {
public static final int RECONNECTION_DELAY = 30000;
private final TangoSseBroadcaster broadcaster;
private final Sse sse;
private final int eventId;
private final Gson gson = new GsonBuilder()
.registerTypeAdapter(DevState.class, (JsonSerializer<DevState>) (src, typeOfSrc, context) -> new JsonPrimitive(src.toString()))
.create();
public SseTangoEventListener(TangoSseBroadcaster broadcaster, Sse sse, int eventId) {
this.broadcaster = broadcaster;
this.sse = sse;
this.eventId = eventId;
}
@Override
public void onEvent(EventData<Object> data) {
OutboundSseEvent event = sse.newEventBuilder().
id(Long.toString(data.getTime())).
name(Integer.toString(eventId)).
data(gson.toJson(data.getValue())).
reconnectDelay(RECONNECTION_DELAY).
build();
broadcaster.broadcast(event);
}
@Override
public void onError(Exception cause) {
OutboundSseEvent event = sse.newEventBuilder().
id(Long.toString(System.currentTimeMillis())).
name(Integer.toString(eventId)).
data("error: " + cause.getClass().getSimpleName() + ":" + cause.getMessage()).
reconnectDelay(RECONNECTION_DELAY).
build();
broadcaster.broadcast(event);
}
}
| 33.906667 | 139 | 0.681872 |
cea1c589fdb7c73c1d0f937d4aef51a8c0a18dc4 | 8,919 | package kaptainwutax.v1_11;
import kaptainwutax.TestFramework;
import kaptainwutax.mcutils.state.Dimension;
import kaptainwutax.mcutils.version.MCVersion;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import static kaptainwutax.TestFramework.randomChunkGen;
import static kaptainwutax.TestFramework.randomHashGen;
@DisplayName("Minecraft v1.11 Overworld")
@Tag("v1.11")
@TestFramework.Overworld
public class Overworld {
public static final MCVersion VERSION = MCVersion.v1_11;
public static final Dimension DIMENSION = Dimension.OVERWORLD;
private static final int[] size16 = {
52 ,80 ,68 ,48 ,61 ,64 ,123 ,78 ,66 ,77 ,67 ,43 ,77 ,63 ,31 ,65 ,
79 ,71 ,31 ,66 ,71 ,68 ,69 ,32 ,69 ,48 ,38 ,71 ,39 ,41 ,69 ,59 ,
87 ,48 ,78 ,57 ,34 ,52 ,46 ,76 ,50 ,42 ,63 ,72 ,63 ,38 ,71 ,41 ,
64 ,66 ,69 ,78 ,64 ,31 ,39 ,66 ,65 ,35 ,78 ,38 ,71 ,34 ,40 ,68 ,
69 ,66 ,47 ,80 ,32 ,69 ,32 ,54 ,65 ,68 ,72 ,71 ,62 ,101 ,36 ,57 ,
74 ,68 ,31 ,85 ,73 ,64 ,38 ,47 ,60 ,40 ,62 ,67 ,33 ,62 ,47 ,81 ,
62 ,72 ,43 ,81 ,68 ,69 ,37 ,106 ,64 ,66 ,66 ,67 ,63 ,118 ,40 ,66 ,
50 ,44 ,64 ,64 ,94 ,69 ,70 ,64 ,71 ,46 ,73 ,64 ,77 ,48 ,64 ,56 ,
63 ,47 ,71 ,64 ,32 ,37 ,61 ,30 ,37 ,69 ,62 ,72 ,61 ,35 ,64 ,69 ,
60 ,52 ,66 ,66 ,37 ,80 ,49 ,64 ,63 ,83 ,52 ,69 ,66 ,46 ,60 ,84 ,
67 ,63 ,69 ,64 ,77 ,47 ,70 ,32 ,59 ,61 ,58 ,62 ,67 ,69 ,68 ,62 ,
48 ,46 ,31 ,38 ,60 ,54 ,90 ,32 ,39 ,71 ,70 ,63 ,46 ,32 ,46 ,70 ,
86 ,64 ,58 ,37 ,64 ,105 ,72 ,72 ,70 ,72 ,46 ,59 ,40 ,71 ,79 ,80 ,
72 ,64 ,64 ,73 ,56 ,62 ,65 ,76 ,70 ,72 ,38 ,30 ,64 ,72 ,63 ,35 ,
70 ,29 ,69 ,48 ,69 ,76 ,74 ,70 ,70 ,48 ,37 ,69 ,31 ,60 ,72 ,68 ,
71 ,32 ,103 ,64 ,42 ,48 ,47 ,64 ,56 ,66 ,69 ,70 ,47 ,66 ,69 ,74 ,
};
private static final int[] size32 = {
52 ,80 ,68 ,48 ,61 ,64 ,123 ,78 ,66 ,77 ,67 ,43 ,77 ,63 ,31 ,65 ,79 ,71 ,31 ,66 ,71 ,68 ,69 ,32 ,69 ,48 ,38 ,71 ,39 ,41 ,69 ,59 ,
87 ,48 ,78 ,57 ,34 ,52 ,46 ,76 ,50 ,42 ,63 ,72 ,63 ,38 ,71 ,41 ,64 ,66 ,69 ,78 ,64 ,31 ,39 ,66 ,65 ,35 ,78 ,38 ,71 ,34 ,40 ,68 ,
69 ,66 ,47 ,80 ,32 ,69 ,32 ,54 ,65 ,68 ,72 ,71 ,62 ,101 ,36 ,57 ,74 ,68 ,31 ,85 ,73 ,64 ,38 ,47 ,60 ,40 ,62 ,67 ,33 ,62 ,47 ,81 ,
62 ,72 ,43 ,81 ,68 ,69 ,37 ,106 ,64 ,66 ,66 ,67 ,63 ,118 ,40 ,66 ,50 ,44 ,64 ,64 ,94 ,69 ,70 ,64 ,71 ,46 ,73 ,64 ,77 ,48 ,64 ,56 ,
63 ,47 ,71 ,64 ,32 ,37 ,61 ,30 ,37 ,69 ,62 ,72 ,61 ,35 ,64 ,69 ,60 ,52 ,66 ,66 ,37 ,80 ,49 ,64 ,63 ,83 ,52 ,69 ,66 ,46 ,60 ,84 ,
67 ,63 ,69 ,64 ,77 ,47 ,70 ,32 ,59 ,61 ,58 ,62 ,67 ,69 ,68 ,62 ,48 ,46 ,31 ,38 ,60 ,54 ,90 ,32 ,39 ,71 ,70 ,63 ,46 ,32 ,46 ,70 ,
86 ,64 ,58 ,37 ,64 ,105 ,72 ,72 ,70 ,72 ,46 ,59 ,40 ,71 ,79 ,80 ,72 ,64 ,64 ,73 ,56 ,62 ,65 ,76 ,70 ,72 ,38 ,30 ,64 ,72 ,63 ,35 ,
70 ,29 ,69 ,48 ,69 ,76 ,74 ,70 ,70 ,48 ,37 ,69 ,31 ,60 ,72 ,68 ,71 ,32 ,103 ,64 ,42 ,48 ,47 ,64 ,56 ,66 ,69 ,70 ,47 ,66 ,69 ,74 ,
72 ,67 ,74 ,68 ,37 ,67 ,63 ,72 ,62 ,30 ,83 ,40 ,67 ,53 ,42 ,34 ,60 ,47 ,48 ,42 ,37 ,81 ,33 ,62 ,56 ,64 ,32 ,69 ,32 ,62 ,59 ,66 ,
47 ,62 ,87 ,60 ,56 ,66 ,64 ,75 ,75 ,50 ,56 ,68 ,40 ,62 ,71 ,81 ,57 ,52 ,45 ,34 ,64 ,47 ,39 ,40 ,64 ,37 ,35 ,63 ,56 ,32 ,72 ,32 ,
123 ,39 ,71 ,30 ,69 ,33 ,69 ,48 ,64 ,84 ,69 ,64 ,64 ,47 ,75 ,70 ,80 ,73 ,70 ,60 ,83 ,42 ,64 ,38 ,58 ,50 ,90 ,50 ,32 ,63 ,71 ,97 ,
117 ,77 ,40 ,35 ,75 ,46 ,63 ,71 ,43 ,47 ,58 ,48 ,73 ,67 ,71 ,69 ,67 ,67 ,33 ,64 ,41 ,32 ,66 ,62 ,53 ,63 ,64 ,46 ,35 ,63 ,70 ,64 ,
61 ,77 ,65 ,79 ,48 ,64 ,52 ,71 ,71 ,60 ,62 ,49 ,78 ,35 ,84 ,68 ,63 ,34 ,71 ,53 ,73 ,73 ,76 ,71 ,48 ,44 ,67 ,32 ,44 ,35 ,61 ,92 ,
76 ,61 ,69 ,71 ,38 ,45 ,40 ,32 ,66 ,60 ,88 ,55 ,73 ,51 ,62 ,70 ,32 ,70 ,57 ,67 ,64 ,63 ,32 ,64 ,67 ,71 ,79 ,66 ,64 ,46 ,68 ,67 ,
46 ,68 ,39 ,47 ,36 ,64 ,97 ,62 ,47 ,62 ,31 ,77 ,64 ,65 ,64 ,48 ,91 ,33 ,66 ,73 ,58 ,66 ,68 ,70 ,93 ,63 ,61 ,72 ,61 ,79 ,64 ,32 ,
76 ,48 ,67 ,30 ,76 ,62 ,68 ,56 ,47 ,63 ,96 ,37 ,64 ,70 ,79 ,32 ,69 ,80 ,69 ,68 ,62 ,64 ,53 ,62 ,40 ,78 ,63 ,63 ,35 ,105 ,66 ,40 ,
39 ,62 ,34 ,64 ,32 ,79 ,61 ,66 ,61 ,64 ,63 ,64 ,45 ,66 ,66 ,35 ,66 ,37 ,47 ,39 ,71 ,37 ,33 ,72 ,47 ,68 ,80 ,32 ,32 ,95 ,69 ,68 ,
71 ,87 ,80 ,76 ,60 ,64 ,116 ,32 ,67 ,63 ,68 ,70 ,67 ,83 ,63 ,63 ,64 ,45 ,39 ,61 ,32 ,64 ,69 ,40 ,70 ,44 ,90 ,77 ,79 ,37 ,47 ,38 ,
36 ,61 ,32 ,48 ,68 ,103 ,56 ,62 ,68 ,63 ,71 ,32 ,66 ,77 ,71 ,88 ,69 ,48 ,45 ,71 ,75 ,62 ,67 ,62 ,40 ,57 ,69 ,38 ,61 ,73 ,99 ,77 ,
68 ,71 ,63 ,69 ,63 ,64 ,71 ,48 ,31 ,70 ,63 ,34 ,63 ,32 ,70 ,35 ,93 ,50 ,73 ,64 ,69 ,60 ,68 ,79 ,32 ,68 ,33 ,47 ,51 ,81 ,64 ,32 ,
75 ,56 ,52 ,32 ,70 ,32 ,35 ,61 ,79 ,69 ,69 ,48 ,48 ,61 ,66 ,62 ,74 ,32 ,36 ,60 ,82 ,78 ,38 ,34 ,75 ,55 ,64 ,88 ,68 ,66 ,67 ,62 ,
40 ,79 ,68 ,64 ,79 ,37 ,63 ,49 ,58 ,72 ,32 ,71 ,70 ,74 ,66 ,39 ,37 ,67 ,85 ,48 ,72 ,42 ,70 ,48 ,75 ,38 ,64 ,66 ,32 ,72 ,50 ,64 ,
40 ,39 ,60 ,72 ,80 ,34 ,60 ,45 ,48 ,32 ,33 ,84 ,95 ,62 ,31 ,37 ,62 ,32 ,32 ,71 ,50 ,71 ,69 ,31 ,34 ,63 ,68 ,41 ,83 ,63 ,47 ,35 ,
38 ,61 ,67 ,64 ,63 ,64 ,72 ,42 ,62 ,47 ,38 ,64 ,42 ,62 ,65 ,33 ,48 ,69 ,78 ,61 ,32 ,67 ,69 ,65 ,45 ,50 ,61 ,71 ,67 ,70 ,80 ,70 ,
70 ,72 ,67 ,58 ,64 ,72 ,67 ,37 ,69 ,38 ,43 ,47 ,66 ,63 ,64 ,39 ,69 ,32 ,62 ,31 ,35 ,72 ,72 ,63 ,66 ,32 ,64 ,70 ,102 ,68 ,49 ,62 ,
102 ,51 ,64 ,63 ,33 ,64 ,69 ,76 ,67 ,70 ,61 ,39 ,61 ,48 ,32 ,77 ,45 ,69 ,46 ,47 ,72 ,78 ,68 ,43 ,67 ,32 ,66 ,64 ,73 ,32 ,66 ,32 ,
70 ,71 ,70 ,37 ,65 ,77 ,64 ,62 ,54 ,67 ,68 ,78 ,30 ,64 ,69 ,61 ,60 ,67 ,92 ,98 ,43 ,72 ,72 ,61 ,78 ,76 ,66 ,48 ,33 ,84 ,86 ,68 ,
94 ,36 ,61 ,63 ,63 ,69 ,63 ,53 ,65 ,39 ,63 ,67 ,49 ,106 ,44 ,47 ,63 ,56 ,36 ,61 ,63 ,63 ,62 ,35 ,75 ,37 ,64 ,38 ,48 ,69 ,79 ,55 ,
69 ,41 ,49 ,69 ,63 ,64 ,70 ,53 ,40 ,68 ,32 ,32 ,30 ,32 ,55 ,72 ,72 ,48 ,66 ,64 ,37 ,68 ,63 ,72 ,30 ,76 ,66 ,81 ,83 ,88 ,68 ,58 ,
73 ,39 ,81 ,47 ,56 ,64 ,53 ,65 ,63 ,76 ,65 ,73 ,80 ,62 ,60 ,59 ,46 ,67 ,66 ,55 ,80 ,72 ,76 ,70 ,48 ,51 ,64 ,70 ,42 ,71 ,69 ,64 ,
56 ,70 ,69 ,55 ,37 ,76 ,75 ,42 ,47 ,47 ,104 ,63 ,71 ,64 ,39 ,68 ,71 ,66 ,61 ,47 ,59 ,48 ,31 ,94 ,32 ,72 ,47 ,48 ,51 ,77 ,74 ,63 ,
64 ,44 ,75 ,39 ,65 ,63 ,75 ,71 ,69 ,65 ,62 ,43 ,73 ,72 ,40 ,68 ,48 ,69 ,71 ,46 ,78 ,48 ,71 ,65 ,58 ,62 ,87 ,73 ,65 ,37 ,43 ,40 ,
};
@Test
@DisplayName("Test Height map version 1.11 size 16")
public void size16() {
randomChunkGen(VERSION, 3123285319240812381L, DIMENSION, 16, 21382138983289132L, size16);
}
@Test
@DisplayName("Test Height version 1.11 map size 32")
public void size32() {
randomChunkGen(VERSION, 3123285319240812381L, DIMENSION, 32, 21382138983289132L, size32);
}
@Test
@DisplayName("Test Height version 1.11 map size 128")
public void size128() {
randomHashGen(VERSION, 3123285319240812381L, DIMENSION, 128, 21382138983289132L, 9111972824862961247L);
}
// public static HashMap<Integer, ChunkPrimer> hashMap = new HashMap<>();
//
// public static int processChunk(int x, int z, IChunkGenerator chunkGenerator, IBlockState blockState) {
// int cx = x >> 4;
// int cz = z >> 4;
// ChunkPrimer chunk = hashMap.computeIfAbsent(((cx & 0xffff) << 16) | (cz & 0xffff), e -> {
// ChunkPrimer chunkPrimer = new ChunkPrimer();
// chunkGenerator.setBlocksInChunk(cx, cz, chunkPrimer);
// return chunkPrimer;
// });
// return chunk.findGroundBlockIdx(x & 0xf, z & 0xf, block -> block == blockState);
// }
//
// public static void testTerrain() {
// Bootstrap.register();
// long seed = 3123285319240812381L;
// World world = new WorldClient(null,
// new WorldSettings(seed, GameType.NOT_SET, true, false, WorldType.DEFAULT),
// DimensionType.OVERWORLD.getId(), EnumDifficulty.EASY, null);
// ChunkProviderOverworld chunkGeneratorOverworld = new ChunkProviderOverworld(world, seed, true, "");
//
//
// world = new WorldClient(null,
// new WorldSettings(seed, GameType.NOT_SET, true, false, WorldType.DEFAULT),
// DimensionType.NETHER.getId(), EnumDifficulty.EASY, null);
// ChunkProviderHell chunkGeneratorHell = new ChunkProviderHell(world, true, seed);
//
// world = new WorldClient(null,
// new WorldSettings(seed, GameType.NOT_SET, true, false, WorldType.DEFAULT),
// DimensionType.THE_END.getId(), EnumDifficulty.EASY, null);
// ChunkProviderEnd chunkGeneratorEnd = new ChunkProviderEnd(world, true, seed, new BlockPos(0, 0, 0));
//
// IChunkGenerator chunkGenerator = chunkGeneratorOverworld;
// IBlockState state = Blocks.STONE.getDefaultState();
//
// int size = 32;
// Random r = new Random(21382138983289132L);
// boolean PRINT = true;
// if (PRINT) System.out.println("{");
// long hash = 0;
//
// for (int i = 0; i < size; i++) {
// for (int j = 0; j < size; j++) {
// int x = r.nextInt(512000) - 25600;
// int z = r.nextInt(512000) - 25600;
// int y = processChunk(x, z, chunkGenerator, state);
// hash = hash * 0xFF51AFD7ED558CCDL + 0xC4CEB9FE1A85EC53L | y;
// if (PRINT) System.out.printf("%d ,", y);
// }
// if (PRINT) System.out.println();
// }
// if (PRINT) System.out.print("};");
// if (PRINT) System.out.println();
// if (!PRINT) System.out.println(hash + "L");
//
// }
}
| 59.066225 | 132 | 0.570916 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.