blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
410
content_id
stringlengths
40
40
detected_licenses
sequencelengths
0
51
license_type
stringclasses
2 values
repo_name
stringlengths
5
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
80
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
131 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
9.45M
extension
stringclasses
32 values
content
stringlengths
3
9.45M
authors
sequencelengths
1
1
author_id
stringlengths
0
313
dc1c0f5782909a56d5c3f748da6ee367c91b9f95
dc763e17704111591dc11adc2c876390615644b2
/legstar-mule-generator/src/main/java/org/mule/transport/legstar/gen/AbstractCixsMuleGenerator.java
ac96518f67fd5aa34195875d02f344796939052d
[]
no_license
safwen32/legstar-mule
5067e402e1823dd1144c207a6d2cb565f41b3c24
9a021556c9539967e246327c08670f875f40583b
refs/heads/master
2021-01-10T20:57:46.038532
2013-11-15T12:44:04
2013-11-15T12:44:04
34,785,120
0
0
null
null
null
null
UTF-8
Java
false
false
34,944
java
/******************************************************************************* * Copyright (c) 2009 LegSem. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * * Contributors: * LegSem - initial API and implementation ******************************************************************************/ package org.mule.transport.legstar.gen; import java.io.File; import java.util.Locale; import java.util.Map; import org.mule.transport.legstar.model.CixsMuleComponent; import org.mule.transport.legstar.model.AbstractAntBuildCixsMuleModel; import org.mule.transport.legstar.model.AbstractAntBuildCixsMuleModel.SampleConfigurationHostMessagingType; import org.mule.transport.legstar.model.AbstractAntBuildCixsMuleModel.SampleConfigurationPayloadType; import org.mule.transport.legstar.model.AbstractAntBuildCixsMuleModel.SampleConfigurationTransport; import com.legstar.cixs.gen.ant.AbstractCixsGenerator; import com.legstar.cixs.gen.model.CixsOperation; import com.legstar.cixs.gen.model.options.CobolHttpClientType; import com.legstar.cixs.gen.model.options.HttpTransportParameters; import com.legstar.cixs.gen.model.options.WmqTransportParameters; import com.legstar.cixs.jaxws.gen.Cixs2JaxwsGenerator; import com.legstar.codegen.CodeGenMakeException; import com.legstar.codegen.CodeGenUtil; /** * This class groups methods that are common to all generators. */ public abstract class AbstractCixsMuleGenerator extends AbstractCixsGenerator { /** This generator name. */ public static final String CIXS_MULE_GENERATOR_NAME = "LegStar Mule Component generator"; /** Velocity template for ant build zip. */ public static final String COMPONENT_ANT_BUILD_ZIP_VLC_TEMPLATE = "vlc/cixsmule-component-ant-build-zip-xml.vm"; /** Velocity template for service ant-deploy. */ public static final String COMPONENT_ANT_DEPLOY_VLC_TEMPLATE = "vlc/cixsmule-component-ant-deploy-xml.vm"; /** Velocity template for adapter mule configuration xml. */ public static final String COMPONENT_ADAPTER_CONFIG_XML_VLC_TEMPLATE = "vlc/cixsmule-component-adapter-config-xml.vm"; /** Velocity template for proxy mule configuration xml. */ public static final String COMPONENT_PROXY_CONFIG_XML_VLC_TEMPLATE = "vlc/cixsmule-component-proxy-config-xml.vm"; /** Velocity template for java to host byte array transformer. */ public static final String OPERATION_JAVA_TO_HOST_VLC_TEMPLATE = "vlc/cixsmule-operation-transformer-java-to-host.vm"; /** Velocity template for host byte array to java transformer. */ public static final String OPERATION_HOST_TO_JAVA_VLC_TEMPLATE = "vlc/cixsmule-operation-transformer-host-to-java.vm"; /** Velocity template for host byte array to XML transformer. */ public static final String OPERATION_HOST_TO_XML_VLC_TEMPLATE = "vlc/cixsmule-operation-transformer-host-to-xml.vm"; /** Velocity template for XML to host byte array transformer. */ public static final String OPERATION_XML_TO_HOST_VLC_TEMPLATE = "vlc/cixsmule-operation-transformer-xml-to-host.vm"; /** Velocity template for COBOL client generation. */ public static final String OPERATION_COBOL_CICS_WMQ_CLIENT_VLC_TEMPLATE = "vlc/cixsmule-operation-cobol-cics-wmq-client.vm"; /** The service model name is it appears in templates. */ public static final String COMPONENT_MODEL_NAME = "muleComponent"; /** The ant script name to create a zip archive.*/ public static final String CREATE_ZIP_FILE_NAME = "build-zip.xml"; /** The ant script name to deploy the zip archive.*/ public static final String DEPLOY_ZIP_FILE_NAME = "deploy.xml"; /** * Constructor. * @param model an instance of a generation model */ public AbstractCixsMuleGenerator(final AbstractAntBuildCixsMuleModel model) { super(model); } /** * Create java to host byte array transformer for both request * and response objects. * @param operation the cixs operation * @param parameters miscellaneous help parameters * @param transformersDir where to store the generated file * @throws CodeGenMakeException if generation fails */ public static void generateJavaToHostTransformers( final CixsOperation operation, final Map < String, Object > parameters, final File transformersDir) throws CodeGenMakeException { if (operation.getInput().size() > 0) { generateJavaToHostTransformer(operation, parameters, transformersDir, operation.getRequestHolderType(), "Request"); } if (operation.getOutput().size() > 0) { generateJavaToHostTransformer(operation, parameters, transformersDir, operation.getResponseHolderType(), "Response"); } } /** * Create XML to host byte array transformer for both request * and response objects. * @param operation the cixs operation * @param parameters miscellaneous help parameters * @param transformersDir where to store the generated file * @throws CodeGenMakeException if generation fails */ public static void generateXmlToHostTransformers( final CixsOperation operation, final Map < String, Object > parameters, final File transformersDir) throws CodeGenMakeException { if (operation.getInput().size() > 0) { generateXmlToHostTransformer(operation, parameters, transformersDir, operation.getRequestHolderType(), "Request"); } if (operation.getOutput().size() > 0) { generateXmlToHostTransformer(operation, parameters, transformersDir, operation.getResponseHolderType(), "Response"); } } /** * Create an object to host byte array transformer. * @param operation the cixs operation * @param parameters miscellaneous help parameters * @param transformersDir where to store the generated file * @param holderType the Java class name for the holder * @param propertyName either Request or Response * @throws CodeGenMakeException if generation fails */ public static void generateJavaToHostTransformer( final CixsOperation operation, final Map < String, Object > parameters, final File transformersDir, final String holderType, final String propertyName) throws CodeGenMakeException { parameters.put("propertyName", propertyName); generateFile(CIXS_MULE_GENERATOR_NAME, OPERATION_JAVA_TO_HOST_VLC_TEMPLATE, "cixsOperation", operation, parameters, transformersDir, holderType + "ToHostMuleTransformer.java"); } /** * Create an XML to host byte array transformer. * @param operation the cixs operation * @param parameters miscellaneous help parameters * @param transformersDir where to store the generated file * @param holderType the Java class name for the holder * @param propertyName either Request or Response * @throws CodeGenMakeException if generation fails */ public static void generateXmlToHostTransformer( final CixsOperation operation, final Map < String, Object > parameters, final File transformersDir, final String holderType, final String propertyName) throws CodeGenMakeException { parameters.put("propertyName", propertyName); generateFile(CIXS_MULE_GENERATOR_NAME, OPERATION_XML_TO_HOST_VLC_TEMPLATE, "cixsOperation", operation, parameters, transformersDir, holderType + "XmlToHostMuleTransformer.java"); } /** * Create host byte array to java transformer for both request * and response objects. * @param operation the cixs operation * @param parameters miscellaneous help parameters * @param transformersDir where to store the generated file * @throws CodeGenMakeException if generation fails */ public static void generateHostToJavaTransformers( final CixsOperation operation, final Map < String, Object > parameters, final File transformersDir) throws CodeGenMakeException { if (operation.getInput().size() > 0) { generateHostToJavaTransformer(operation, parameters, transformersDir, operation.getRequestHolderType(), "Request"); } if (operation.getOutput().size() > 0) { generateHostToJavaTransformer(operation, parameters, transformersDir, operation.getResponseHolderType(), "Response"); } } /** * Create host byte array to XML transformer for both request * and response objects. * @param operation the cixs operation * @param parameters miscellaneous help parameters * @param transformersDir where to store the generated file * @throws CodeGenMakeException if generation fails */ public static void generateHostToXmlTransformers( final CixsOperation operation, final Map < String, Object > parameters, final File transformersDir) throws CodeGenMakeException { if (operation.getInput().size() > 0) { generateHostToXmlTransformer(operation, parameters, transformersDir, operation.getRequestHolderType(), "Request"); } if (operation.getOutput().size() > 0) { generateHostToXmlTransformer(operation, parameters, transformersDir, operation.getResponseHolderType(), "Response"); } } /** * Create a host byte array to object transformer. * @param operation the cixs operation * @param parameters miscellaneous help parameters * @param transformersDir where to store the generated file * @param holderType the Java class name for the holder * @param propertyName either Request or Response * @throws CodeGenMakeException if generation fails */ public static void generateHostToJavaTransformer( final CixsOperation operation, final Map < String, Object > parameters, final File transformersDir, final String holderType, final String propertyName) throws CodeGenMakeException { parameters.put("propertyName", propertyName); generateFile(CIXS_MULE_GENERATOR_NAME, OPERATION_HOST_TO_JAVA_VLC_TEMPLATE, "cixsOperation", operation, parameters, transformersDir, "HostTo" + holderType + "MuleTransformer.java"); } /** * Create a host byte array to XML transformer. * @param operation the cixs operation * @param parameters miscellaneous help parameters * @param transformersDir where to store the generated file * @param holderType the Java class name for the holder * @param propertyName either Request or Response * @throws CodeGenMakeException if generation fails */ public static void generateHostToXmlTransformer( final CixsOperation operation, final Map < String, Object > parameters, final File transformersDir, final String holderType, final String propertyName) throws CodeGenMakeException { parameters.put("propertyName", propertyName); generateFile(CIXS_MULE_GENERATOR_NAME, OPERATION_HOST_TO_XML_VLC_TEMPLATE, "cixsOperation", operation, parameters, transformersDir, "HostTo" + holderType + "XmlMuleTransformer.java"); } /** * Create the Mule adapter configuration file for java payloads. * @param component the Mule component description * @param parameters miscellaneous help parameters * @param componentConfFilesDir where to store the generated file * @param sampleConfigurationFileName the configuration file name * @param transport the type of transport selected for the sample configuration * @param payloadType whether the sample configuration is for java or XML payloads * @param messagingType the type of messaging expected by the mainframe * @return the generated file name * @throws CodeGenMakeException if generation fails */ public static String generateAdapterConfigXml( final CixsMuleComponent component, final Map < String, Object > parameters, final File componentConfFilesDir, final String sampleConfigurationFileName, final SampleConfigurationTransport transport, final SampleConfigurationPayloadType payloadType, final SampleConfigurationHostMessagingType messagingType) throws CodeGenMakeException { parameters.put("sampleConfigurationTransport", transport.toString().toLowerCase(Locale.getDefault())); parameters.put("sampleConfigurationPayloadType", payloadType.toString().toLowerCase(Locale.getDefault())); parameters.put("sampleConfigurationHostMessagingType", messagingType.toString().toLowerCase(Locale.getDefault())); generateFile(CIXS_MULE_GENERATOR_NAME, COMPONENT_ADAPTER_CONFIG_XML_VLC_TEMPLATE, COMPONENT_MODEL_NAME, component, parameters, componentConfFilesDir, sampleConfigurationFileName); return sampleConfigurationFileName; } /** * Create the Mule proxy configuration XML file. * @param component the Mule component description * @param parameters miscellaneous help parameters * @param componentConfFilesDir where to store the generated file * @param sampleConfigurationFileName the configuration file name * @param transport the type of transport selected for the sample configuration * @return the generated file name * @throws CodeGenMakeException if generation fails */ public static String generateProxyConfigXml( final CixsMuleComponent component, final Map < String, Object > parameters, final File componentConfFilesDir, final String sampleConfigurationFileName, final SampleConfigurationTransport transport) throws CodeGenMakeException { parameters.put("sampleConfigurationTransport", transport.toString().toLowerCase(Locale.getDefault())); generateFile(CIXS_MULE_GENERATOR_NAME, COMPONENT_PROXY_CONFIG_XML_VLC_TEMPLATE, COMPONENT_MODEL_NAME, component, parameters, componentConfFilesDir, sampleConfigurationFileName); return sampleConfigurationFileName; } /** * Create the Mule Ant Build Zip file. * @param component the Mule component description * @param parameters miscellaneous help parameters * @param componentAntFilesDir where to store the generated file * @return the generated file name * @throws CodeGenMakeException if generation fails */ public static String generateAntBuildZip( final CixsMuleComponent component, final Map < String, Object > parameters, final File componentAntFilesDir) throws CodeGenMakeException { String fileName = CREATE_ZIP_FILE_NAME; generateFile(CIXS_MULE_GENERATOR_NAME, COMPONENT_ANT_BUILD_ZIP_VLC_TEMPLATE, COMPONENT_MODEL_NAME, component, parameters, componentAntFilesDir, fileName); return fileName; } /** * Create the deploy Ant Build file. * @param component the Mule component description * @param parameters miscellaneous help parameters * @param serviceAntFilesDir where to store the generated file * @return the generated file name * @throws CodeGenMakeException if generation fails */ public static String generateAntDeploy( final CixsMuleComponent component, final Map < String, Object > parameters, final File serviceAntFilesDir) throws CodeGenMakeException { String fileName = "deploy.xml"; generateFile(CIXS_MULE_GENERATOR_NAME, COMPONENT_ANT_DEPLOY_VLC_TEMPLATE, COMPONENT_MODEL_NAME, component, parameters, serviceAntFilesDir, fileName); return fileName; } /** * Create a COBOl CICS HTTP Client program to use for testing. * TODO Move to core LegStar * @param service the ESB service description * @param operation the operation for which a program is to be generated * @param parameters the set of parameters to pass to template engine * @param cobolFilesDir location where COBOL code should be generated * @param cobolHttpClientType the type of cobol http client to generate * @throws CodeGenMakeException if generation fails */ protected static void generateCobolSampleHttpClient( final CixsMuleComponent service, final CixsOperation operation, final Map < String, Object > parameters, final File cobolFilesDir, final CobolHttpClientType cobolHttpClientType) throws CodeGenMakeException { String template; switch(cobolHttpClientType) { case DFHWBCLI: template = Cixs2JaxwsGenerator.OPERATION_COBOL_CICS_DFHWBCLI_CLIENT_VLC_TEMPLATE; break; case WEBAPI: template = Cixs2JaxwsGenerator.OPERATION_COBOL_CICS_WEBAPI_CLIENT_VLC_TEMPLATE; break; default: template = Cixs2JaxwsGenerator.OPERATION_COBOL_CICS_LSHTTAPI_CLIENT_VLC_TEMPLATE; } generateFile(CIXS_MULE_GENERATOR_NAME, template, COMPONENT_MODEL_NAME, service, parameters, cobolFilesDir, operation.getCicsProgramName() + ".cbl"); } /** * Create a COBOl CICS WMQ Client program to use for testing. * TODO Move to core LegStar * @param service the proxy service description * @param operation the operation for which a program is to be generated * @param parameters the set of parameters to pass to template engine * @param cobolFilesDir location where COBOL code should be generated * @throws CodeGenMakeException if generation fails */ protected static void generateCobolSampleWmqClient( final CixsMuleComponent service, final CixsOperation operation, final Map < String, Object > parameters, final File cobolFilesDir) throws CodeGenMakeException { generateFile(CIXS_MULE_GENERATOR_NAME, OPERATION_COBOL_CICS_WMQ_CLIENT_VLC_TEMPLATE, COMPONENT_MODEL_NAME, service, parameters, cobolFilesDir, operation.getCicsProgramName() + ".cbl"); } /** * Check input values that are common to all derived classes. * Check that we are provided with valid locations to * generate in. * @throws CodeGenMakeException if input is invalid */ public final void checkExtendedInput() throws CodeGenMakeException { CodeGenUtil.checkDirectory( getTargetSrcDir(), true, "TargetSrcDir"); CodeGenUtil.checkDirectory( getTargetAntDir(), true, "TargetAntDir"); CodeGenUtil.checkDirectory( getTargetMuleConfigDir(), true, "TargetMuleConfigDir"); CodeGenUtil.checkDirectory( getTargetDistDir(), true, "TargetDistDir"); /* Check that we are provided with valid locations to * reference.*/ if (getTargetBinDir() == null) { throw (new IllegalArgumentException( "TargetBinDir: No directory name was specified")); } if (getTargetAppsDir() == null) { throw (new IllegalArgumentException( "TargetAppsDir: No directory name was specified")); } /* Check that we have at least one operation. */ if (getCixsMuleComponent().getCixsOperations().size() == 0) { throw new CodeGenMakeException( "No operation was specified"); } /* Check that we have CICS program names mapped to operations */ for (CixsOperation operation : getCixsMuleComponent().getCixsOperations()) { String cicsProgramName = operation.getCicsProgramName(); if (cicsProgramName == null || cicsProgramName.length() == 0) { throw new CodeGenMakeException( "Operation must specify a CICS program name"); } } /* Check sample transport parameters */ if (getSampleConfigurationTransport().equalsIgnoreCase("http")) { if (getHttpTransportParameters().getPath() == null || getHttpTransportParameters().getPath().length() == 0) { getHttpTransportParameters().setPath(getDefaultServiceHttpPath()); } getHttpTransportParameters().check(); } if (getSampleConfigurationTransport().equalsIgnoreCase("wmq")) { getWmqTransportParameters().check(); } checkExtendedExtendedInput(); } /** * @return a good default HTTPpath */ public abstract String getDefaultServiceHttpPath(); /** * Give the inheriting generators a chance to add more controls. * @throws CodeGenMakeException if control fails */ public abstract void checkExtendedExtendedInput() throws CodeGenMakeException; /** * Create all artifacts for Mule service. * @param parameters a predefined set of parameters useful for generation * @throws CodeGenMakeException if generation fails */ public final void generate( final Map < String, Object > parameters) throws CodeGenMakeException { addParameters(parameters); /* Determine target files locations */ File serviceAntFilesDir = getTargetAntDir(); generateAntBuildZip( getCixsMuleComponent(), parameters, serviceAntFilesDir); generateAntDeploy( getCixsMuleComponent(), parameters, serviceAntFilesDir); generateExtended(parameters); } /** * Create more artifacts for a Mule component. * @param parameters a predefined set of parameters useful for generation * @throws CodeGenMakeException if generation fails */ public abstract void generateExtended( final Map < String, Object > parameters) throws CodeGenMakeException; /** * Add common parameters expected by templates to come from a parameters map. * @param parameters a parameters map to which parameters must be added */ private void addParameters(final Map < String, Object > parameters) { parameters.put("generateBaseDir", getGenerateBuildDir()); parameters.put(AbstractAntBuildCixsMuleModel.TARGET_APPS_DIR, getTargetAppsDir()); parameters.put(AbstractAntBuildCixsMuleModel.TARGET_MULE_CONFIG_DIR, getTargetMuleConfigDir()); parameters.put(AbstractAntBuildCixsMuleModel.HOST_CHARSET, getHostCharset()); /* Add sample transport related parameters */ switch(getSampleConfigurationTransportInternal()) { case HTTP: getAntModel().getHttpTransportParameters().add(parameters); // FIXME this code prevents any usage of the HTTPS scheme parameters.put("legstarHttpAddress", getAntModel() .getHttpTransportParameters().getUrl().replace("http:", "legstar:")); break; case WMQ: getAntModel().getWmqTransportParameters().add(parameters); break; default: break; } addExtendedParameters(parameters); } /** * Add common parameters expected by templates to come from a parameters map. * @param parameters a parameters map to which parameters must be added */ public abstract void addExtendedParameters(final Map < String, Object > parameters); /** * @return the Mule component */ public final CixsMuleComponent getCixsMuleComponent() { return (CixsMuleComponent) getCixsService(); } /** * @param cixsMuleComponent the Mule component to set */ public final void setCixsMuleComponent( final CixsMuleComponent cixsMuleComponent) { setCixsService(cixsMuleComponent); } /** * @param cixsMuleComponent the Mule component to set */ public final void add(final CixsMuleComponent cixsMuleComponent) { setCixsMuleComponent(cixsMuleComponent); } /** * @param cixsMuleComponent the Mule component to set */ public final void addCixsMuleComponent( final CixsMuleComponent cixsMuleComponent) { setCixsMuleComponent(cixsMuleComponent); } /** * @return the target mule deployment archives location */ public final File getTargetAppsDir() { return getAntModel().getTargetAppsDir(); } /** * @param targetAppsDir the target mule deployment archives location to set */ public final void setTargetAppsDir(final File targetAppsDir) { getAntModel().setTargetAppsDir(targetAppsDir); } /** * @return the target configuration files location */ public final File getTargetMuleConfigDir() { return getAntModel().getTargetMuleConfigDir(); } /** * @param targetMuleConfigDir the target configuration files location to set */ public final void setTargetMuleConfigDir(final File targetMuleConfigDir) { getAntModel().setTargetMuleConfigDir(targetMuleConfigDir); } /** * @return the model representing all generation parameters */ public AbstractAntBuildCixsMuleModel getAntModel() { return (AbstractAntBuildCixsMuleModel) super.getAntModel(); } /** {@inheritDoc} */ public final String getGeneratorName() { return CIXS_MULE_GENERATOR_NAME; } /** * @return the directory from which this ant script is start */ public final String getGenerateBuildDir() { if (getProject() == null) { return "."; } else { return getProject().getBaseDir().getAbsolutePath(); } } /** * When ant 1.7.0 will become widespread, we will be able to expose * this method directly (support for enum JDK 1.5). * @return the transport used by generated samples. */ protected SampleConfigurationTransport getSampleConfigurationTransportInternal() { return getAntModel().getSampleConfigurationTransport(); } /** * @return the transport used by generated samples. */ public String getSampleConfigurationTransport() { return getSampleConfigurationTransportInternal().toString(); } /** * When ant 1.7.0 will become widespread, we will be able to expose * this method directly (support for enum JDK 1.5). * @param sampleConfigurationTransport the transport used by generated samples. */ private void setSampleConfigurationTransportInternal( final SampleConfigurationTransport sampleConfigurationTransport) { getAntModel().setSampleConfigurationTransport(sampleConfigurationTransport); } /** * @param sampleConfigurationTransport the transport used by generated samples. */ public void setSampleConfigurationTransport( final String sampleConfigurationTransport) { SampleConfigurationTransport value = SampleConfigurationTransport.valueOf( sampleConfigurationTransport.toUpperCase(Locale.getDefault())); setSampleConfigurationTransportInternal(value); } /** * @return the set of HTTP transport parameters */ public HttpTransportParameters getHttpTransportParameters() { return getAntModel().getHttpTransportParameters(); } /** * @param httpTransportParameters the set of HTTP transport parameters */ public void setHttpTransportParameters( final HttpTransportParameters httpTransportParameters) { getAntModel().setHttpTransportParameters(httpTransportParameters); } /** * @param httpTransportParameters the set of HTTP transport parameters */ public void addHttpTransportParameters( final HttpTransportParameters httpTransportParameters) { setHttpTransportParameters(httpTransportParameters); } /** * @return the set of WMQ transport parameters */ public WmqTransportParameters getWmqTransportParameters() { return getAntModel().getWmqTransportParameters(); } /** * @param wmqTransportParameters the set of WMQ transport parameters */ public void setWmqTransportParameters( final WmqTransportParameters wmqTransportParameters) { getAntModel().setWmqTransportParameters(wmqTransportParameters); } /** * @param wmqTransportParameters the set of WMQ transport parameters */ public void addWmqTransportParameters( final WmqTransportParameters wmqTransportParameters) { getAntModel().setWmqTransportParameters(wmqTransportParameters); } /** * When ant 1.7.0 will become widespread, we will be able to expose * this method directly (support for enum JDK 1.5). * @return the host messaging used by generated service configuration samples. */ protected SampleConfigurationHostMessagingType getSampleConfigurationHostMessagingTypeInternal() { return getAntModel().getSampleConfigurationHostMessagingType(); } /** * @return the host messaging used by generated service configuration samples. */ public String getSampleConfigurationHostMessagingType() { return getSampleConfigurationHostMessagingTypeInternal().toString(); } /** * When ant 1.7.0 will become widespread, we will be able to expose * this method directly (support for enum JDK 1.5). * @param sampleConfigurationHostMessagingType the host messaging used by generated service configuration samples. */ private void setSampleConfigurationHostMessagingTypeInternal( final SampleConfigurationHostMessagingType sampleConfigurationHostMessagingType) { getAntModel().setSampleConfigurationHostMessagingType(sampleConfigurationHostMessagingType); } /** * @param sampleConfigurationHostMessagingType the host messaging used by generated service configuration samples. */ public void setSampleConfigurationHostMessagingType( final String sampleConfigurationHostMessagingType) { SampleConfigurationHostMessagingType value = SampleConfigurationHostMessagingType.valueOf( sampleConfigurationHostMessagingType.toUpperCase(Locale.getDefault())); setSampleConfigurationHostMessagingTypeInternal(value); } /** * When ant 1.7.0 will become widespread, we will be able to expose * this method directly (support for enum JDK 1.5). * @return the payload type (serialized java object or XML) for samples. */ protected SampleConfigurationPayloadType getSampleConfigurationPayloadTypeInternal() { return getAntModel().getSampleConfigurationPayloadType(); } /** * @return the payload type (serialized java object or XML) for samples. */ public String getSampleConfigurationPayloadType() { return getSampleConfigurationPayloadTypeInternal().toString(); } /** * When ant 1.7.0 will become widespread, we will be able to expose * this method directly (support for enum JDK 1.5). * @param payload type (serialized java object or XML) for samples. */ private void setSampleConfigurationPayloadTypeInternal( final SampleConfigurationPayloadType sampleConfigurationPayloadType) { getAntModel().setSampleConfigurationPayloadType(sampleConfigurationPayloadType); } /** * @param sampleConfigurationPayloadType the payload type (serialized java object or XML) for samples. */ public void setSampleConfigurationPayloadType( final String sampleConfigurationPayloadType) { setSampleConfigurationPayloadTypeInternal(SampleConfigurationPayloadType .valueOf(sampleConfigurationPayloadType)); } /** * @return the sample configuration file name */ public String getSampleConfigurationFileName() { return getAntModel().getSampleConfigurationFileName(); } /** * @param sampleConfigurationFileName sample configuration file name */ public void setSampleConfigurationFileName( final String sampleConfigurationFileName) { getAntModel().setSampleConfigurationFileName(sampleConfigurationFileName); } }
[ "fady@6810f1fe-32b5-efba-0c3f-87fbb5f72bdc" ]
fady@6810f1fe-32b5-efba-0c3f-87fbb5f72bdc
1deb625592c2c72cb2362c38a276034b8c307063
fdd1b8738402be798ca4720ab4a9014088846abc
/gui/src/test/java/com/nabla/project/fronter/selenium/tests/helper/WindowsRegistry.java
87c509c5e95ddc9f1d67cada7139e76e351bc1e1
[]
no_license
AlbanAndrieu/nabla-projects-interview-fronter
828638b282cfd46ee497bbf8f51998f0c2baca27
5f9028b46c8f3a0d6418a9d3cf834e77eefbcba6
refs/heads/master
2016-09-05T09:42:21.805606
2015-01-26T21:14:25
2015-01-26T21:14:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,376
java
/* * Copyright (c) 2002-2004, Nabla * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright notice * and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice * and the following disclaimer in the documentation and/or other materials * provided with the distribution. * * 3. Neither the name of 'Nabla' nor 'Alban' nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * License 1.0 */ package com.nabla.project.fronter.selenium.tests.helper; import org.junit.Assert; import org.openqa.selenium.os.WindowsUtils; /** * DOCUMENT ME! albandri. * * @author $Author$ * @version $Revision$ * @since $Date$ */ public class WindowsRegistry { // @Test public void testReadRegistry() { final String osname = WindowsUtils.readStringRegistryValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ProductName"); System.out.println(osname); } // @Test public void testWriteRegistry() { WindowsUtils.writeStringRegistryValue("HKEY_CURRENT_USER\\SOFTWARE\\Selenium\\SeleniumVersion", "2.24"); Assert.assertEquals("2.24", WindowsUtils.readStringRegistryValue("HKEY_CURRENT_USER\\SOFTWARE\\Selenium\\SeleniumVersion")); } }
[ "root@localhost" ]
root@localhost
22422f1b6286a0319c949c1f527b584ab4930b70
67ca48a06547b7166a3cb9edc83aa28435890546
/demos/ipservice-demo/kubernetes/ipclient-boot/src/main/java/com/capgemini/demos/ms/ipservice/client/Config.java
270de34932d9a377ab3249fb9248a0a7e3275b62
[ "Apache-2.0" ]
permissive
ksobkowiak-talks/capgemini-open-days-201706
530e9992a7a78edc0372a0297d12fd05a4c1b3a8
2d8e3ab42383d37e731413e34b3e31ba0e8d21b6
refs/heads/master
2020-12-25T18:32:30.809057
2017-08-31T22:14:45
2017-08-31T22:14:45
93,958,898
0
0
null
null
null
null
UTF-8
Java
false
false
640
java
package com.capgemini.demos.ms.ipservice.client; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; @Configuration @ConfigurationProperties(prefix = "ipclient") public class Config { private String message; private String serverUrl; public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public String getServerUrl() { return serverUrl; } public void setServerUrl(String serverUrl) { this.serverUrl = serverUrl; } }
72ba03137422221691bee66863b2dd054d4a683a
ebee2dba9db595e4027bb3a2a4198c4c22a5b407
/src/main/java/com/iris/earsiv/model/testmodels/firm2Repository.java
d2cc7c4ab2d560ab391bcc4896a42907c66c53f6
[]
no_license
apdmrl/earsiv
c4fd3c5da0fca4a159ef038e98c94e0f61b3708b
c6929aa387d6a9f0b5206ed493e588e64f034a75
refs/heads/master
2022-04-04T08:07:12.678307
2019-12-10T21:40:25
2019-12-10T21:40:25
226,709,619
0
0
null
null
null
null
UTF-8
Java
false
false
187
java
package com.iris.earsiv.model.testmodels; import org.springframework.data.mongodb.repository.MongoRepository; public interface firm2Repository extends MongoRepository<firm2,String> { }
4234465ef5940f679dac886cb4098e13db5dbeb3
e51916a63462c19d6f425b9c40a618eb2c1ab459
/micro-grizzly-with-jersey/src/test/java/app/custom/binder/resource/objects/BinderTest.java
9d650b19e01dd4e97df29f97619e443cfbf74b53
[ "Apache-2.0" ]
permissive
morrowgi/micro-server
acb4835090054d25a134819ea3d10a448f80b584
b473f2ce699200834e338a181551be88520191a2
refs/heads/master
2021-01-18T03:42:07.805252
2017-11-01T14:08:16
2017-11-01T14:08:16
40,002,764
0
0
null
2015-07-31T11:43:02
2015-07-31T11:43:02
null
UTF-8
Java
false
false
1,262
java
package app.custom.binder.resource.objects; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; import java.util.concurrent.ExecutionException; import cyclops.collections.immutable.PersistentSetX; import cyclops.collections.mutable.SetX; import org.junit.After; import org.junit.Before; import org.junit.Test; import com.aol.micro.server.MicroserverApp; import com.aol.micro.server.config.Microserver; import com.aol.micro.server.module.ConfigurableModule; import com.aol.micro.server.module.Module; import com.aol.micro.server.testing.RestAgent; @Microserver public class BinderTest { RestAgent rest = new RestAgent(); MicroserverApp server; @Before public void startServer(){ server = new MicroserverApp(ConfigurableModule.builder().context("binder").jaxRsResourceObjects(SetX.of(new CustomBinder3())).build()); server.start(); } @After public void stopServer(){ server.stop(); } @Test public void runAppAndBasicTest() throws InterruptedException, ExecutionException{ MyIncovationHandler.captured=false; assertThat(rest.get("http://localhost:8080/binder/test"),is("hello world!")); assertTrue(MyIncovationHandler.captured); } }
a7b3fb34b89d4cf0f223f18468a6130ca6aaeae5
ead326685405305998f1c5a7f4fa60be487630f3
/rto-service/src/main/java/net/thirdfoot/rto/model/VideoStream.java
1d300be38df817dcb977a92879f4a2b2299e421f
[]
no_license
laszlocsontos/ringtube
93910edb59e09a67249c384f23989e9a30e8e809
286ccbf53e1079d79e73f3de89927bf9d76bed7b
refs/heads/master
2020-03-15T11:49:29.720895
2018-05-04T11:06:40
2018-05-04T11:06:40
132,129,289
0
0
null
null
null
null
UTF-8
Java
false
false
3,453
java
package net.thirdfoot.rto.model; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Transient; import jodd.util.StringUtil; import net.thirdfoot.rto.kernel.model.BaseModel; import org.python.core.PyObject; /** * @author lcsontos */ @Entity public class VideoStream extends BaseModel implements Comparable<VideoStream>, Serializable { public VideoStream() { } public VideoStream(PyObject pyYoutubeStream) { _extension = pyYoutubeStream.__getattr__("extension").asString(); _mediaType = pyYoutubeStream.__getattr__("mediatype").asString(); _resolution = pyYoutubeStream.__getattr__("resolution").asString(); _quality = pyYoutubeStream.__getattr__("quality").asString(); _size = pyYoutubeStream.__getattr__("size").asInt(); _url = pyYoutubeStream.__getattr__("url").asString(); } @Override public int compareTo(VideoStream other) { if (other == null) { throw new IllegalArgumentException("parameter cannot be null"); } int otherQuality = doGetQuality(other.getQuality()); int thisQuality = doGetQuality(_quality); return (thisQuality - otherQuality); } public String getExtension() { return _extension; } public String getMediaType() { return _mediaType; } public String getResolution() { return _resolution; } public String getQuality() { return _quality; } public int getSize() { return _size; } public String getUrl() { return _url; } public Video getVideo() { return _video; } public String getVideoFile() { return _videoFile; } public void setExtension(String extension) { _extension = extension; } public void setMediaType(String mediaType) { _mediaType = mediaType; } public void setResolution(String resolution) { _resolution = resolution; } public void setQuality(String quality) { _quality = quality; } public void setSize(int size) { _size = size; } public void setUrl(String url) { _url = url; } public void setVideo(Video video) { _video = video; } public void setVideoFile(String videoFile) { _videoFile = videoFile; } protected int doGetQuality(String quality) { if (StringUtil.isBlank(quality)) { throw new IllegalArgumentException("quality cannot be null or empty"); } if (StringUtil.endsWithChar(quality, 'k')) { int len = quality.length(); quality = quality.substring(0, len - 1); return Integer.valueOf(quality); } String[] tokens = StringUtil.splitc(quality, 'x'); if (tokens.length != 2) { throw new IllegalArgumentException( "The value of quality could not be parsed"); } int w = Integer.valueOf(tokens[0]); int h = Integer.valueOf(tokens[1]); return (w * h); } @Column(name = "EXTENSION") private String _extension; @Column(name = "MEDIA_TYPE") private String _mediaType; @Column(name = "RESOLUTION") private String _resolution; @Column(name = "QUALITY") private String _quality; @Column(name = "SIZE") private int _size; @Transient private String _url; @JoinColumn(name = "VIDEO_ID") @ManyToOne(fetch = FetchType.LAZY) private Video _video; @Column(name = "VIDEO_FILE") private String _videoFile; }
c66bc14a2a5298c51dd988d26a8d377c2c425c56
dacd75e4b48ed93511f127fcfa63ebc06ef82e45
/design-pattern/src/main/java/com/yuliyao/growthdemo/factory/BenzFactory.java
676fbc6303f14fd008c77f2c7a50ac10c379b442
[]
no_license
myloveyuvip/growth-demo
f2f45cf1323214cd7733db2ccfe86435014eda55
43df1480377e7fe714ec82e297b0bc779f852aea
refs/heads/master
2022-06-21T12:13:15.560425
2020-12-29T02:06:58
2020-12-29T02:06:58
163,428,337
0
0
null
null
null
null
UTF-8
Java
false
false
356
java
package com.yuliyao.growthdemo.factory; import com.yuliyao.growthdemo.factory.Benz; import com.yuliyao.growthdemo.factory.Car; import com.yuliyao.growthdemo.factory.FactoryMethod; /** * @author YuLiyao * @date 2019/1/28 */ public class BenzFactory implements FactoryMethod { @Override public Car getCar() { return new Benz(); } }
d82d89081131b5cc35a696be90808daa762b96e5
079ca0da2c1ab66569894f2a73d7375fca579c2b
/utils-apl-derived-core/src/main/java/org/omnaest/utils/structure/map/adapter/SortedMapToSortedMapAdapter.java
6d3cfee5156001b38a320a482c884d5cfe2c58c4
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
zizopen/utils-apl-derived
63666ccb6eb19502f73e19a1086283f7452d4626
f97f31bd4f0b86c930f15ee53e6dc742a158bdba
refs/heads/master
2021-01-23T19:45:42.197296
2015-02-01T16:10:05
2015-02-01T16:10:05
34,396,787
0
0
null
null
null
null
UTF-8
Java
false
false
8,813
java
/******************************************************************************* * Copyright 2011 Danny Kunz * * 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.omnaest.utils.structure.map.adapter; import java.io.Serializable; import java.util.Collection; import java.util.Comparator; import java.util.Map; import java.util.Set; import java.util.SortedMap; import org.omnaest.utils.assertion.Assert; import org.omnaest.utils.structure.collection.CollectionUtils; import org.omnaest.utils.structure.collection.set.SetUtils; import org.omnaest.utils.structure.element.converter.ElementBidirectionalConverter; import org.omnaest.utils.structure.map.MapUtils; /** * The {@link SortedMapToSortedMapAdapter} is a decorator and adapter which allows to access a given {@link SortedMap} using other * types for the values. <br> * Since a {@link SortedMap} is sorted by the keys it is not possible to create an adapter for the keys.<br> * The adapter instance is always backed by the original {@link SortedMap} and changes on both sides will be traversed to each * other side. * * @author Omnaest * @param <KEY> * @param <VALUE_FROM> * @param <VALUE_TO> */ public class SortedMapToSortedMapAdapter<KEY, VALUE_FROM, VALUE_TO> implements SortedMap<KEY, VALUE_TO>, Serializable { /* ************************************************** Constants *************************************************** */ private static final long serialVersionUID = -1538459740184023592L; /* ********************************************** Variables ********************************************** */ private SortedMap<KEY, VALUE_FROM> sourceMap = null; private ElementBidirectionalConverter<VALUE_FROM, VALUE_TO> elementBidirectionalConverterValue; /* ********************************************** Methods ********************************************** */ /** * @see SortedMapToSortedMapAdapter * @param sourceMap * @param elementBidirectionalConverterValue */ public SortedMapToSortedMapAdapter( SortedMap<KEY, VALUE_FROM> sourceMap, ElementBidirectionalConverter<VALUE_FROM, VALUE_TO> elementBidirectionalConverterValue ) { super(); Assert.isNotNull( sourceMap, elementBidirectionalConverterValue ); this.sourceMap = sourceMap; this.elementBidirectionalConverterValue = elementBidirectionalConverterValue; } protected VALUE_TO convertValueFromToValueTo( VALUE_FROM value_FROM ) { return this.elementBidirectionalConverterValue.convert( value_FROM ); } protected VALUE_FROM convertValueToToValueFrom( VALUE_TO value_TO ) { return this.elementBidirectionalConverterValue.convertBackwards( value_TO ); } @Override public VALUE_TO get( Object key ) { // VALUE_TO retval = null; // if ( key != null && this.sourceMap != null ) { VALUE_FROM value_FROM = this.sourceMap.get( key ); retval = this.convertValueFromToValueTo( value_FROM ); } // return retval; } @Override public VALUE_TO put( KEY key, VALUE_TO value ) { // VALUE_TO retval = null; // if ( key != null && this.sourceMap != null ) { // VALUE_FROM convertedValue = this.convertValueToToValueFrom( value ); VALUE_FROM value_FROM = this.sourceMap.put( key, convertedValue ); retval = this.convertValueFromToValueTo( value_FROM ); } // return retval; } @Override public VALUE_TO remove( Object key ) { // VALUE_TO retval = null; // if ( key != null && this.sourceMap != null ) { // VALUE_FROM value_FROM = this.sourceMap.remove( key ); retval = this.convertValueFromToValueTo( value_FROM ); } // return retval; } @Override public Set<KEY> keySet() { return this.sourceMap.keySet(); } @Override public Collection<VALUE_TO> values() { return CollectionUtils.adapter( this.sourceMap.values(), this.elementBidirectionalConverterValue ); } @Override public int size() { return this.sourceMap.size(); } @Override public boolean isEmpty() { return this.sourceMap.isEmpty(); } @Override public boolean containsKey( Object key ) { return this.sourceMap.containsKey( key ); } @Override public boolean containsValue( Object value ) { try { @SuppressWarnings("unchecked") VALUE_FROM value_FROM = this.convertValueToToValueFrom( (VALUE_TO) value ); return this.sourceMap.containsValue( value_FROM ); } catch ( Exception e ) { return false; } } @Override public void putAll( Map<? extends KEY, ? extends VALUE_TO> map ) { if ( map != null ) { Set<? extends Entry<? extends KEY, ? extends VALUE_TO>> entrySet = map.entrySet(); if ( entrySet != null ) { for ( Entry<? extends KEY, ? extends VALUE_TO> entry : entrySet ) { if ( entry != null ) { VALUE_TO value = entry.getValue(); KEY key = entry.getKey(); this.put( key, value ); } } } } } @Override public void clear() { this.sourceMap.clear(); } @Override public Comparator<? super KEY> comparator() { throw new UnsupportedOperationException(); } @Override public SortedMap<KEY, VALUE_TO> subMap( KEY fromKey, KEY toKey ) { return MapUtils.adapter( this.sourceMap.subMap( fromKey, toKey ), this.elementBidirectionalConverterValue ); } @Override public SortedMap<KEY, VALUE_TO> headMap( KEY toKey ) { return MapUtils.adapter( this.sourceMap.headMap( toKey ), this.elementBidirectionalConverterValue ); } @Override public SortedMap<KEY, VALUE_TO> tailMap( KEY fromKey ) { return MapUtils.adapter( this.sourceMap.tailMap( fromKey ), this.elementBidirectionalConverterValue ); } @Override public KEY firstKey() { return this.sourceMap.firstKey(); } @Override public KEY lastKey() { return this.sourceMap.lastKey(); } @Override public Set<Map.Entry<KEY, VALUE_TO>> entrySet() { ElementBidirectionalConverter<Entry<KEY, VALUE_FROM>, Entry<KEY, VALUE_TO>> elementBidirectionalConverter = new ElementBidirectionalConverter<Map.Entry<KEY, VALUE_FROM>, Map.Entry<KEY, VALUE_TO>>() { @Override public java.util.Map.Entry<KEY, VALUE_TO> convert( final Map.Entry<KEY, VALUE_FROM> entry ) { return new Map.Entry<KEY, VALUE_TO>() { @Override public KEY getKey() { return entry.getKey(); } @Override public VALUE_TO getValue() { VALUE_FROM value_FROM = entry.getValue(); VALUE_TO value_TO = convertValueFromToValueTo( value_FROM ); return value_TO; } @Override public VALUE_TO setValue( VALUE_TO value ) { VALUE_FROM value_FROM = convertValueToToValueFrom( value ); VALUE_FROM setValue = entry.setValue( value_FROM ); return convertValueFromToValueTo( setValue ); } @Override public String toString() { return String.valueOf( this.getKey() ) + "=" + String.valueOf( this.getValue() ); } }; } @Override public java.util.Map.Entry<KEY, VALUE_FROM> convertBackwards( java.util.Map.Entry<KEY, VALUE_TO> element ) { throw new UnsupportedOperationException(); } }; return SetUtils.adapter( this.sourceMap.entrySet(), elementBidirectionalConverter ); } @Override public String toString() { return MapUtils.toString( this ); } }
[ "[email protected]@4c589bc5-3898-6224-771f-302820b144f8" ]
[email protected]@4c589bc5-3898-6224-771f-302820b144f8
00558ce10ac08dd65d3aacb12e32509f3ca24444
e31981de62cec344cfae7349640d7406d5e74478
/app/src/main/java/hk/ust/cse/comp3021/pa1/model/GameBoard.java
0c64bbba805ec79acce3510a74801d6733a63243
[]
no_license
CastleLab/COMP3021-2021Fall-PA1-Student-Version
0b0850ba5f6a1ffac69d969be245b8392ea75e01
70733891d759236687a96c91300b355e1448f181
refs/heads/main
2023-08-26T19:23:18.408749
2021-09-29T11:16:34
2021-09-29T11:16:34
402,304,404
1
10
null
null
null
null
UTF-8
Java
false
false
5,012
java
package hk.ust.cse.comp3021.pa1.model; import org.jetbrains.annotations.NotNull; /** * The main game board of the game. * * <p> * The top-left hand corner of the game board is the "origin" of the board (0, 0). * </p> */ public final class GameBoard { /** * Number of rows in the game board. */ private final int numRows; /** * Number of columns in the game board. */ private final int numCols; /** * 2D array representing each cell in the game board. */ @NotNull private final Cell[][] board; /** * The instance of {@link Player} on this game board. */ @NotNull private final Player player; /** * Creates an instance using the provided creation parameters. * * @param numRows The number of rows in the game board. * @param numCols The number of columns in the game board. * @param cells The initial values of cells. * @throws IllegalArgumentException if any of the following are true: * <ul> * <li>{@code numRows} is not equal to {@code cells.length}</li> * <li>{@code numCols} is not equal to {@code cells[0].length}</li> * <li>There is no player or more than one player in {@code cells}</li> * <li>There are no gems in {@code cells}</li> * <li>There are some gems which cannot be reached by the player</li> * </ul> */ public GameBoard(final int numRows, final int numCols, @NotNull final Cell[][] cells) { // TODO this.numRows = 0; this.numCols = 0; this.board = null; this.player = null; } /** * Returns the {@link Cell}s of a single row of the game board. * * @param r Row index. * @return 1D array representing the row. The first element in the array corresponds to the leftmost element of the * row. */ @NotNull public Cell[] getRow(final int r) { // TODO return null; } /** * Returns the {@link Cell}s of a single column of the game board. * * @param c Column index. * @return 1D array representing the column. The first element in the array corresponds to the topmost element of * the row. */ @NotNull public Cell[] getCol(final int c) { // TODO return null; } /** * Returns a single cell of the game board. * * @param r Row index. * @param c Column index. * @return The {@link Cell} instance at the specified location. */ @NotNull public Cell getCell(final int r, final int c) { // TODO return null; } /** * Returns a single cell of the game board. * * @param position The position object representing the location of the cell. * @return The {@link Cell} instance at the specified location. */ @NotNull public Cell getCell(@NotNull final Position position) { // TODO return null; } /** * Returns an {@link EntityCell} on the game board. * * <p> * This method is a convenience method for getting a cell which is unconditionally known to be an entity cell. * </p> * * @param r Row index. * @param c Column index. * @return The {@link EntityCell} instance at the specified location. * @throws IllegalArgumentException if the cell at the specified position is not an instance of {@link EntityCell}. */ @NotNull public EntityCell getEntityCell(final int r, final int c) { // TODO return null; } /** * Returns an {@link EntityCell} on the game board. * * <p> * This method is a convenience method for getting a cell which is unconditionally known to be an entity cell. * </p> * * @param position The position object representing the location of the cell. * @return The {@link EntityCell} instance at the specified location. * @throws IllegalArgumentException if the cell at the specified position is not an instance of {@link EntityCell}. */ @NotNull public EntityCell getEntityCell(@NotNull final Position position) { // TODO return null; } /** * @return The number of rows of this game board. */ public int getNumRows() { // TODO return 0; } /** * @return The number of columns of this game board. */ public int getNumCols() { // TODO return 0; } /** * @return The player instance. */ @NotNull public Player getPlayer() { // TODO return null; } /** * @return The number of gems still present in the game board. */ public int getNumGems() { // TODO return 0; } }
b3292251d8df5a8eb6b46662b12159eb42c060b8
d185c52934402d960f601f6e44409e0e5d2d07d9
/app/src/main/java/com/bacon/demo/service/FcmInstanceIdService.java
bf943416bb114ec9777350ff7275e2a75a32d05c
[]
no_license
ganny26/staggered-android
c633156e27c1dcbcf3c1a763540efbbe96723a9d
7d28ab6cd4f34c2118bb1f4b8e82ac65963a8952
refs/heads/master
2021-01-25T11:27:26.479982
2017-10-18T17:05:01
2017-10-18T17:05:01
93,922,541
0
0
null
null
null
null
UTF-8
Java
false
false
513
java
package com.bacon.demo.service; import android.util.Log; import com.google.firebase.iid.FirebaseInstanceId; import com.google.firebase.iid.FirebaseInstanceIdService; /** * Created by serajam on 7/23/2017. */ public class FcmInstanceIdService extends FirebaseInstanceIdService { public final static String TAG = "FcmInstanceIdService"; @Override public void onTokenRefresh() { String fcmToken = FirebaseInstanceId.getInstance().getToken(); Log.d("FCM_TOKEN ",fcmToken); } }
11d37ba66886553577a73cc3f3376bd34e69c9e8
f9d4b68ae092a20b179b49b17a84da770879011b
/src/main/java/com/xdbigdata/subsidize_zjut/common/dto/GrantsHistoryDto.java
e474d0bc6e88f1c8f4bbf9fc84d6e9491e0b5c24
[]
no_license
ChenJun6436/angular-allProject
2f1460ffd0330bb86583cc90523026c230a0be6d
b268fbc3e49733d7f3e4bd16720257adb1ab6918
refs/heads/master
2021-07-01T10:31:33.693418
2017-09-20T15:21:46
2017-09-20T15:21:46
104,230,336
0
0
null
null
null
null
UTF-8
Java
false
false
688
java
package com.xdbigdata.subsidize_zjut.common.dto; import com.xdbigdata.subsidize_zjut.anno.ExcelAnno; import lombok.Data; /** * Created by sky on 2017/5/25. */ @Data public class GrantsHistoryDto { @ExcelAnno(head = "姓名") private String name; @ExcelAnno(head = "学号") private String sn; @ExcelAnno(head = "学院") private String college; @ExcelAnno(head = "专业") private String major; @ExcelAnno(head = "年级") private String grade; @ExcelAnno(head = "班级") private String classes; @ExcelAnno(head = "学年") private String schoolYear; @ExcelAnno(head = "评定结果") private String finalGrantsName; }
7118edee199b21ff46f5f536bb08d6290445eed0
bd3a4d76c71cb3e8d5a302d054c040d036ed5de9
/CT6013LibrarySystem/src/model/ModelBookLoan.java
f695b342915cb31a0d9584792fea7f8e87b09124
[]
no_license
SilvT1/CT6013-Java-Library-Systems-Database-
94d05267fe6aeb9a3d25122b8155071202a5ecf3
2fac716def79b05aa1a2ba1cc403374ba671cd48
refs/heads/master
2020-04-07T20:33:49.510700
2018-11-22T12:30:20
2018-11-22T12:30:20
158,693,877
0
0
null
null
null
null
UTF-8
Java
false
false
1,486
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package model; import java.util.ArrayList; import java.util.Date; /** * * @author TSilva */ public class ModelBookLoan { private String Booking_Loan_ID; private ModelCopy Copy_ID; private ModelStudent Student_Number; private Date Start_Loan_Date; private ArrayList<ModelBook> Book_ID; public String getBooking_Loan_ID() { return Booking_Loan_ID; } public ModelCopy getCopy_ID() { return Copy_ID; } public ModelStudent getStudent_Number() { return Student_Number; } public Date getStart_Loan_Date() { return Start_Loan_Date; } public ArrayList<ModelBook> getBook_ID() { return Book_ID; } public void setBooking_Loan_ID(String Booking_Loan_ID) { this.Booking_Loan_ID = Booking_Loan_ID; } public void setCopy_ID(ModelCopy Copy_ID) { this.Copy_ID = Copy_ID; } public void setStudent_Number(ModelStudent Student_Number) { this.Student_Number = Student_Number; } public void setStart_Loan_Date(Date Start_Loan_Date) { this.Start_Loan_Date = Start_Loan_Date; } public void setBook_ID(ArrayList<ModelBook> Book_ID) { this.Book_ID = Book_ID; } }
56eca5685cd6f5a2364e02dc8b1264cae2a9cbe2
17220043262f26a71d4f43965ab90183e7be83d0
/app/src/main/java/aleksey/khokhrin/ru/translator/custom/CustomViewPager.java
aa3658af43b004a24cbad823ea0974573e82c473
[]
no_license
aleksey-ho/translator-mvp
b6b6e2a251b53271368bb4e340091d0fbd9713eb
9a2052dbab5a4cbf48d88a601bcb48d64a9b9c05
refs/heads/master
2020-09-12T08:42:33.915527
2017-06-26T11:20:07
2017-06-26T11:20:07
94,460,971
0
0
null
null
null
null
UTF-8
Java
false
false
602
java
package aleksey.khokhrin.ru.translator.custom; import android.content.Context; import android.support.v4.view.ViewPager; import android.util.AttributeSet; import android.view.MotionEvent; /** * Doesn't allow swiping to switch between pages */ public class CustomViewPager extends ViewPager { public CustomViewPager(Context context, AttributeSet attrs) { super(context, attrs); } @Override public boolean onTouchEvent(MotionEvent event) { return false; } @Override public boolean onInterceptTouchEvent(MotionEvent event) { return false; } }
f9fa6e1fda87e395178c417203d69a54e24dee77
b6c7009fc699c7db5483248f1ad7005b91904b19
/androidhttp/src/main/java/com/hawker/yangtianqi/androidhttp/PicCrop.java
0db5e4e3a020be2657a25a08d7d323ade8bcccec
[]
no_license
410566413/Demo
edf2174dfd30416883676d9b96fcc6a6badf1b67
8c4fe277f0c5473397755decfb899dba7596a943
refs/heads/master
2021-05-09T17:27:16.966592
2018-03-22T00:08:33
2018-03-22T00:08:33
119,137,985
0
0
null
null
null
null
UTF-8
Java
false
false
669
java
package com.hawker.yangtianqi.androidhttp; import android.graphics.Bitmap; import com.squareup.picasso.Transformation; /** * Created by yangtianqi on 2018/3/21. */ public class PicCrop implements Transformation { @Override public Bitmap transform(Bitmap source) { int size = Math.min(source.getWidth(),source.getHeight()); int x = (source.getWidth()-size)/2; int y = (source.getHeight()-size)/2; Bitmap bitmap = Bitmap.createBitmap(source,x,y,size,size); if(bitmap !=source){ source.recycle(); } return bitmap; } @Override public String key() { return null; } }
66753216b2271b0a1967ec497af730effde6322a
73603b965d549da58f5762e24e440637fb07798a
/juc/src/main/java/com/wey/juc_1/pool/MonitorUtil.java
8903ab5d6818bfddc5a81727587fd6219aab88e7
[]
no_license
weiyi51520/java-learning
7b7cfec7e459706cb882083868b1ca0379f74466
b2121a6a43835f542e5e6cee692f5f89eedc582b
refs/heads/master
2020-04-02T05:44:51.515367
2019-01-13T07:07:03
2019-01-13T07:07:03
154,101,851
0
0
null
null
null
null
UTF-8
Java
false
false
1,906
java
package com.wey.juc_1.pool; import java.util.concurrent.ThreadPoolExecutor; /** * @author Yale.Wei * @date 2018/10/18 下午4:08 */ public class MonitorUtil implements Runnable { private ThreadPoolExecutor executor; private int delay; private boolean flag = true; public MonitorUtil(ThreadPoolExecutor executor, int delay) { this.executor = executor; this.delay = delay; } public void shutDown() { flag = false; } @Override public void run() { while (flag) { synchronized (MonitorUtil.class) { try { if (executor.isTerminated()) { System.out.println("任务执行完成"); break; } System.out.println( String.format("[monitor] 池大小:%d,核心数:%d,最大线程数:%d,队列长度:%d, 任务活跃数: %d, 任务完成数: %d, 任务数: %d, 线程结束没: %s, 任务结束没: %s", this.executor.getPoolSize(), this.executor.getCorePoolSize(), this.executor.getMaximumPoolSize(), this.executor.getQueue().size(), this.executor.getActiveCount(), this.executor.getCompletedTaskCount(), this.executor.getTaskCount(), this.executor.isShutdown(), this.executor.isTerminated())); System.out.println("Monitor waiting ..."); MonitorUtil.class.wait(2000); } catch (InterruptedException e) { e.printStackTrace(); } } } } }
a27928e0c3fd4c134ce1e982014e081a6a988531
84fef71eb4d7407c3bdc899405405e8a8ca558c5
/changgou-parent/changgou-service/changgou-service-order/src/main/java/com/changgou/order/service/ReturnCauseService.java
bf65e34caff9fc4943467b98e09afa7281ec925c
[]
no_license
lijiaze12/mall-project
6094ad1874e8ffb0ac9af1da921ca4d25734820c
978d663931894e34f7692b20a6e403df1a287cd0
refs/heads/master
2023-06-05T15:44:12.281313
2021-06-23T01:58:24
2021-06-23T01:58:24
379,454,522
0
0
null
null
null
null
UTF-8
Java
false
false
300
java
package com.changgou.order.service; import com.changgou.core.service.CoreService; import com.changgou.order.pojo.ReturnCause; /**** * @Author:admin * @Description:ReturnCause业务层接口 * @Date 2019/6/14 0:16 *****/ public interface ReturnCauseService extends CoreService<ReturnCause> { }
b3a18f8240f9c9b3fd0a09d4436aca9743df3d9b
fa814acf7d32d598a23c2d9fc9b930ae761563a9
/mix-recall-core/src/main/java/com/ifeng/recom/mixrecall/core/channel/impl/PositiveFeedDocpicNewChannelImpl.java
bb3200c767c174dc25ce9f87b61494ed1e57237f
[]
no_license
yuxiao11/mixPub
b6639ef71409b5ef54110ae5cfbb281393f73f16
a5825a7061469b6c0d08d066c40b475e2922f1a4
refs/heads/master
2022-10-17T14:59:34.010867
2020-02-27T12:19:50
2020-02-27T12:19:50
243,510,007
1
4
null
2022-10-04T23:56:35
2020-02-27T12:07:14
Java
UTF-8
Java
false
false
6,162
java
package com.ifeng.recom.mixrecall.core.channel.impl; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.common.collect.Sets; import com.ifeng.recom.mixrecall.common.model.Document; import com.ifeng.recom.mixrecall.common.model.RecallResult; import com.ifeng.recom.mixrecall.common.model.item.Index4User; import com.ifeng.recom.mixrecall.common.model.item.LastDocBean; import com.ifeng.recom.mixrecall.common.model.request.LogicParams; import com.ifeng.recom.mixrecall.common.model.request.MixRequestInfo; import com.ifeng.recom.mixrecall.common.util.itemUtil.index4User.MixReasonUtils; import com.ifeng.recom.mixrecall.core.cache.DocPreloadCache; import com.ifeng.recom.mixrecall.core.cache.feedback.PositiveFeedDataCache; import com.ifeng.recom.tools.common.logtools.model.TimerEntity; import com.ifeng.recom.tools.common.logtools.utils.timer.TimerEntityUtil; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.MapUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import java.util.*; /** * Created by jibin on 2018/1/17. */ @Service public class PositiveFeedDocpicNewChannelImpl { private static final Logger logger = LoggerFactory.getLogger(PositiveFeedDocpicNewChannelImpl.class); private static final Logger timeLogger = LoggerFactory.getLogger(TimerEntityUtil.class); /** * 触发图文正反馈 * * @param mixRequestInfo * @return */ public List<RecallResult> doDocpicRecom(MixRequestInfo mixRequestInfo) { Map<String, List<RecallResult>> result = getDocpicRecomMap(mixRequestInfo); List<RecallResult> recallResults = new ArrayList<>(); result.values().forEach(recallResults::addAll); return recallResults; } /** * 供头条直接调用使用 * 获取召回结果,key为每个触发的SimId * * @param mixRequestInfo * @return */ public Map<String, List<RecallResult>> getDocpicRecomMap(MixRequestInfo mixRequestInfo) { Map<String, List<RecallResult>> result = Maps.newHashMap(); List<LastDocBean> lastDocBeans = mixRequestInfo.getLastDocBeans(); if (CollectionUtils.isEmpty(lastDocBeans)) { if (mixRequestInfo.isDebugUser()) { logger.info("{} getFb lastDocBeans isNull", mixRequestInfo.getUid()); } return result; } TimerEntity timer = TimerEntityUtil.getInstance(); timer.addStartTime("posTotal-d"); getPositiveByServer(mixRequestInfo, result); timer.addEndTime("posTotal-d"); timeLogger.info("ChannelLog PosFeedDocpic {} uid:{}", timer.getStaticsInfo(), mixRequestInfo.getUid()); return result; } /** * 查询正反馈服务,或者正反馈结果 * * @param mixRequestInfo * @param result * @return */ private void getPositiveByServer(MixRequestInfo mixRequestInfo, Map<String, List<RecallResult>> result) { TimerEntity timer = TimerEntityUtil.getInstance(); timer.addStartTime("docpicPosi"); //第一步,从cache中获取数据 Map<String, List<Index4User>> simId2Itemcf = PositiveFeedDataCache.checkUpdateDocpic(mixRequestInfo); if (MapUtils.isEmpty(simId2Itemcf)) { timer.addEndTime("docpicPosi"); return; } Set<String> docIds = Sets.newHashSet(); simId2Itemcf.values().forEach((list -> list.forEach(itemcfIndex -> docIds.add(itemcfIndex.getI())))); Map<String, Document> idDocs = DocPreloadCache.getBatchDocsWithQueryNoClone(docIds); //这里要保证原始有序,正反馈结果顺序不能乱,怕影响点击率 //正反馈通过和用户无关,不用过布隆过滤 for (Map.Entry<String, List<Index4User>> entry : simId2Itemcf.entrySet()) { String originSimId = entry.getKey(); List<Index4User> recomIndexList = entry.getValue(); List<RecallResult> recomDocs = result.computeIfAbsent(originSimId, k -> Lists.newArrayList()); for (Index4User itemcfIndex : recomIndexList) { Document doc = idDocs.get(itemcfIndex.getI()); String recallTag = originSimId; RecallResult recallResult = new RecallResult(doc, recallTag, MixReasonUtils.getWhyReasonPosi(itemcfIndex.getR())); recomDocs.add(recallResult); } } //删除simid=空列表 Iterator<Map.Entry<String, List<RecallResult>>> iterator = result.entrySet().iterator(); while (iterator.hasNext()){ if (iterator.next().getValue().size()==0){ iterator.remove(); } } timer.addEndTime("docpicPosi"); } public static void main(String[] args) { MixRequestInfo mixRequestInfo = new MixRequestInfo(); LogicParams logicParams = new LogicParams(); mixRequestInfo.setLogicParams(logicParams); List<LastDocBean> lastDocBeans = Lists.newArrayList(); LastDocBean a = new LastDocBean(); a.setDocId("47012529"); a.setSimId("clusterId_30062242"); LastDocBean b = new LastDocBean(); b.setDocId("65770776"); b.setSimId("clusterId_18229366"); lastDocBeans.add(a); lastDocBeans.add(b); mixRequestInfo.setLastDocBeans(lastDocBeans); PositiveFeedDocpicNewChannelImpl positiveFeedDocpicChannel = new PositiveFeedDocpicNewChannelImpl(); List<RecallResult> results = positiveFeedDocpicChannel.doDocpicRecom(mixRequestInfo); results.forEach(recallResult -> { System.out.println(recallResult.getDocument().getDocId() + " " + recallResult.getDocument().getTitle() + " " + recallResult.getWhyReason().getValue() + " " + recallResult.getDocument().getDocType() + " " + recallResult.getRecallTag()); }); } }
eb0db68233e64acd3c478b8f37bee0193b964667
4c4527bce51443498425125c2be9b8d084b81c02
/app/src/main/java/com/hubli/imperium/imaperiumdiary/Profile/ProfileContent.java
58976a8a18d1dd1dcb3d045cde3f53908aaa5d13
[]
no_license
FaheemMujale/ImaperiumDiary
a1b50f13b92e57bb8cb0ca8829a8cec18aaef3e2
bc4fed65c3ffdf0e00b55ea5f1814f1503fab76d
refs/heads/master
2020-12-30T14:57:27.995448
2017-07-16T11:54:45
2017-07-16T11:54:45
91,100,517
0
0
null
null
null
null
UTF-8
Java
false
false
7,692
java
package com.hubli.imperium.imaperiumdiary.Profile; import android.animation.ValueAnimator; import android.content.Context; import android.graphics.Color; import android.os.Bundle; import android.support.annotation.LayoutRes; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.util.Log; import android.view.DragEvent; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.ViewTreeObserver; import android.widget.ArrayAdapter; import android.widget.ExpandableListView; import android.widget.ListView; import android.widget.TextView; import com.github.mikephil.charting.charts.PieChart; import com.github.mikephil.charting.data.Entry; import com.github.mikephil.charting.data.PieData; import com.github.mikephil.charting.data.PieDataSet; import com.github.paolorotolo.expandableheightlistview.ExpandableHeightListView; import com.hubli.imperium.imaperiumdiary.Attendance.Teacher.GiveAttendance.GiveAttendance; import com.hubli.imperium.imaperiumdiary.Data.SPData; import com.hubli.imperium.imaperiumdiary.Interface.IVolleyResponse; import com.hubli.imperium.imaperiumdiary.R; import com.hubli.imperium.imaperiumdiary.Utility.MyVolley; import com.hubli.imperium.imaperiumdiary.Utility.URL; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; import java.util.List; /** * A simple {@link Fragment} subclass. */ public class ProfileContent extends Fragment { public ProfileContent() { // Required empty public constructor } private List<QAMarksData> items = new ArrayList<>(); private View rootView; private SPData spData; private static boolean loadData = true; ExpandableHeightListView listView; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment rootView = inflater.inflate(R.layout.fragment_profile_content, container, false); spData = new SPData(); populateQAList(rootView); if(spData.getIdentification() != SPData.TEACHER) { attendanceChart(rootView); } return rootView; } private void populateQAList(View rootView) { listView = (ExpandableHeightListView) rootView.findViewById(R.id.qaList); if(spData.getQAMarksData() == null || loadData){ new MyVolley(getActivity().getApplicationContext(), new IVolleyResponse() { @Override public void volleyResponse(String result) { result = result.replace("[{","").replace("}]","").replace("\"",""); String data[] = result.split(","); int questionNumber = Integer.parseInt(data[0].split(":")[1]); for(int i = 2; i<data.length;i++){ String qField = data[i].split(":")[0]; int qMarks = Integer.parseInt(data[i].split(":")[1]); if(qMarks != 0) { items.add(new QAMarksData(qField, qMarks, questionNumber * 10)); } } items.add(new QAMarksData("Grand Total",QAMarksData.getGrandMarks(),QAMarksData.getGrandTotal())); MyAdaptor adaptor = new MyAdaptor(); listView.setExpanded(true); listView.setAdapter(adaptor); } @Override public void volleyError() { } }).setUrl(URL.QA_MARKS_DATA) .setParams(SPData.USER_NUMBER,spData.getUserData(SPData.USER_NUMBER)).connect(); } } private class MyAdaptor extends ArrayAdapter<QAMarksData>{ public MyAdaptor() { super(getActivity().getApplicationContext(), R.layout.qa_marks_item,items); } @NonNull @Override public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) { View v = convertView; if(v == null) { v = getActivity().getLayoutInflater().inflate(R.layout.qa_marks_item, parent, false); } TextView title = (TextView) v.findViewById(R.id.fieldName); final TextView marks = (TextView) v.findViewById(R.id.marks); final QAMarksData data = items.get(position); title.setText(data.getTableName()); if(data.getMarks() < (data.getTotal()%30)){ marks.setTextColor(Color.RED); }else{ marks.setTextColor(Color.GREEN); } marks.setText(data.getMarks()+"/"+data.getTotal()); return v; } } private void attendanceChart(View rootView){ final PieChart pieChart = (PieChart) rootView.findViewById(R.id.attendancePi); final TextView loading = (TextView) rootView.findViewById(R.id.noticeTextAttendance); pieChart.setCenterText("Overall Attendance"); pieChart.setVisibility(View.VISIBLE); pieChart.setDescription(""); if(spData.getAttendanceData() == null || loadData){ new MyVolley(getActivity().getApplicationContext(), new IVolleyResponse() { @Override public void volleyResponse(String result) { spData.storeAttendanceData(result); parseJson(result,pieChart, loading); loadData = false; } @Override public void volleyError() { } }).setUrl(URL.ATTENDANCE_FETCH) .setParams(SPData.USER_NUMBER,spData.getUserData(SPData.USER_NUMBER)) .connect(); }else{ parseJson(spData.getAttendanceData(), pieChart,loading); } } private void parseJson(String result, PieChart pieChart, TextView loading){ try { JSONArray json = new JSONArray(result); int p = 0, l = 0, a = 0; for (int i = 0; i <= json.length() - 1; i++) { JSONObject jsonobj = json.getJSONObject(i); String attendance = jsonobj.getString("attendance"); switch (attendance){ case GiveAttendance.PRESENT: p++; break; case GiveAttendance.LEAVE: l++; break; case GiveAttendance.ABSENT: a++; break; } } List<Entry> entries = new ArrayList<>(); entries.add(new Entry(p,0)); entries.add(new Entry(l,1)); entries.add(new Entry(a,2)); List<String> labels = new ArrayList<>(); labels.add("Present"); labels.add("Leave"); labels.add("Absent"); PieDataSet pieDataSet = new PieDataSet(entries,""); int[] COLORFUL_COLORS = { Color.GREEN,Color.YELLOW,Color.RED }; pieDataSet.setColors(COLORFUL_COLORS); PieData data = new PieData(labels,pieDataSet); pieChart.setData(data); pieChart.animateY(3000); loading.setVisibility(View.GONE); } catch (JSONException e) { e.printStackTrace(); loading.setVisibility(View.GONE); } } }
359a10fc80b31f2dbf88398c717946e8c37195b5
4e2f16f2904d75e55cce1b2cef54acf79aa21280
/gradle-core/src/main/java/com/android/build/gradle/DynamicFeaturePlugin.java
47b18021eac87c465e26863d0cb98ba464f4e81b
[ "Apache-2.0" ]
permissive
yuweiguocn/build-system
0e49a836728614efd30e9bae8c7e92b0d8371f2e
bc4c85f7b25770caa4c565176b8f92e1cdd9cf70
refs/heads/master
2020-09-21T16:20:14.670290
2019-11-29T12:07:13
2019-11-29T12:07:13
224,846,645
13
5
null
null
null
null
UTF-8
Java
false
false
1,767
java
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.build.gradle; import com.android.annotations.NonNull; import com.android.builder.model.AndroidProject; import com.google.wireless.android.sdk.stats.GradleBuildProject; import javax.inject.Inject; import org.gradle.api.Project; import org.gradle.tooling.provider.model.ToolingModelBuilderRegistry; /** Gradle plugin class for 'application' projects, applied on an optional APK module */ public class DynamicFeaturePlugin extends AbstractAppPlugin { @Inject public DynamicFeaturePlugin(ToolingModelBuilderRegistry registry) { super(registry, false /*isBaseApplication*/); } @Override protected int getProjectType() { return AndroidProject.PROJECT_TYPE_DYNAMIC_FEATURE; } @NonNull @Override protected GradleBuildProject.PluginType getAnalyticsPluginType() { return GradleBuildProject.PluginType.DYNAMIC_FEATURE; } @Override protected void pluginSpecificApply(@NonNull Project project) { // do nothing } @NonNull @Override protected Class<? extends AppExtension> getExtensionClass() { return AppExtension.class; } }
fa71157a0233156b9b934899513ffdc81543d9a4
f989811ecac30258de6455e57ff4a567f6c23a3f
/common-lib/src/main/java/com/example/common/config/RedisConfig.java
0cbaf60f27aadc1c45959d4c01a8af00105df46c
[ "Apache-2.0" ]
permissive
xinlc/springcloud-microservices-template
ab00fdfe3cbb0e7034bd9cf501c80df8a3298ba4
eae392a57f406c3665f1d41d818d5ec4b6e66312
refs/heads/master
2022-06-26T06:30:39.464728
2020-08-04T05:23:17
2020-08-04T05:23:17
252,953,965
1
0
Apache-2.0
2022-06-21T03:59:50
2020-04-04T09:11:55
Java
UTF-8
Java
false
false
3,415
java
package com.example.common.config; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.PropertyAccessor; import com.fasterxml.jackson.databind.ObjectMapper; import com.example.common.lock.RedisLockClient; import com.example.common.redis.FastJson2JsonRedisSerializer; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.ImportAware; import org.springframework.core.type.AnnotationMetadata; import org.springframework.data.redis.connection.RedisConnectionFactory; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.data.redis.serializer.RedisSerializer; import org.springframework.data.redis.serializer.StringRedisSerializer; /** * redis 配置 * * @author Leo * @date 2019/08/28 */ @Configuration public class RedisConfig implements ImportAware { /** * 获取分布式锁客户端实例 * * @return * @author Leo * @since 2020-01-17 */ @Bean public RedisLockClient redisLockClient() { return new RedisLockClient(); } /** * 配置 string redis template * * @param factory * @return * @author Leo * @since 2020-01-17 */ @Bean @ConditionalOnMissingBean public StringRedisTemplate stringRedisTemplate(RedisConnectionFactory factory) { StringRedisSerializer keySerializer = new StringRedisSerializer(); RedisSerializer<?> serializer = new StringRedisSerializer(); StringRedisTemplate template = new StringRedisTemplate(); template.setConnectionFactory(factory); template.setKeySerializer(keySerializer); template.setHashKeySerializer(keySerializer); template.setValueSerializer(serializer); template.setHashValueSerializer(serializer); template.afterPropertiesSet(); return template; } @Bean public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory redisConnectionFactory) { RedisTemplate<String, Object> redisTemplate = new RedisTemplate<String, Object>(); redisTemplate.setConnectionFactory(redisConnectionFactory); FastJson2JsonRedisSerializer fastJson2JsonRedisSerializer = new FastJson2JsonRedisSerializer(Object.class); ObjectMapper objectMapper = new ObjectMapper(); objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); objectMapper.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL); fastJson2JsonRedisSerializer.setObjectMapper(objectMapper); StringRedisSerializer stringRedisSerializer = new StringRedisSerializer(); // key采用String的序列化方式 redisTemplate.setKeySerializer(stringRedisSerializer); // string的value采用fastJson序列化方式 redisTemplate.setValueSerializer(fastJson2JsonRedisSerializer); // hash的key也采用String的序列化方式 redisTemplate.setHashKeySerializer(stringRedisSerializer); // hash的value采用fastJson序列化方式 redisTemplate.setHashValueSerializer(fastJson2JsonRedisSerializer); redisTemplate.afterPropertiesSet(); return redisTemplate; } /** * (non-Javadoc) * * @author Leo * @see ImportAware#setImportMetadata(AnnotationMetadata) * @since 2020-01-17 */ @Override public void setImportMetadata(AnnotationMetadata annotationMetadata) { } }
b340242b671269f8f571c8b210699f49f430d282
8cd2fd71cbe071304fe1f6f883a99197654dfaed
/finalprojectnbweb/src/main/java/edu/northeastern/kinnarkansara/finalprojectnbweb/controller/DailyCancelController.java
1b3f709056c1fc97364c02d5ee0581da3dec1616
[]
no_license
kinnarrk/INFO7250BigData
fcd1a7670c22680e4e1d2773d7c462323477ec5d
ada35ffde3492a3655421896cf1c7ff9fdfc52b8
refs/heads/master
2020-10-01T22:21:29.649016
2019-12-15T20:02:25
2019-12-15T20:02:25
227,635,530
1
0
null
2019-12-15T20:02:26
2019-12-12T15:16:29
Java
UTF-8
Java
false
false
4,944
java
package edu.northeastern.kinnarkansara.finalprojectnbweb.controller; import edu.northeastern.kinnarkansara.finalprojectnbweb.model.DailyDelayTuple; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.URI; import java.util.ArrayList; import java.util.List; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; /** * * @author kinnar */ public class DailyCancelController extends HttpServlet { protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); List<DailyDelayTuple> dailyCancelList = new ArrayList<>(); try (PrintWriter out = response.getWriter()) { Configuration conf = new Configuration(); conf.addResource(new org.apache.hadoop.fs.Path("/usr/local/bin/hadoop-3.2.1/conf/core-site.xml")); conf.addResource(new Path("/usr/local/bin/hadoop-3.2.1/conf/hdfs-site.xml")); BufferedReader br = null; try { Configuration configuration = new Configuration(); FileSystem hdfs = FileSystem.get(new URI("hdfs://localhost:9000"), configuration); Path file = new Path("hdfs://localhost:9000/project/DailyDelayCancel/part-r-00000"); br = new BufferedReader(new InputStreamReader(hdfs.open(file))); String line; line = br.readLine(); while (line != null) { String[] data = line.split("\t"); if (data.length == 2) { String yyyymmdd = data[0]; String right = data[1]; String[] data2 = right.split("\\s*,\\s*"); if (data2.length == 5) { int flightsCount = Integer.parseInt(data2[0]); int delayedFlightsCount = Integer.parseInt(data2[1]); double delayPercentage = Double.parseDouble(data2[2]); int canceledFlightsCount = Integer.parseInt(data2[3]); double canceledPercentage = Double.parseDouble(data2[4]); DailyDelayTuple dailyDelayTuple = new DailyDelayTuple(); dailyDelayTuple.setYyyymmdd(yyyymmdd); dailyDelayTuple.setFlightsCount(flightsCount); dailyDelayTuple.setDelayPercentage(delayPercentage); dailyDelayTuple.setDelayedFlightsCount(delayedFlightsCount); dailyDelayTuple.setCanceledFlightsCount(canceledFlightsCount); dailyDelayTuple.setCanceledPercentage(canceledPercentage); dailyCancelList.add(dailyDelayTuple); } } line = br.readLine(); } } catch (Exception e) { } finally { br.close(); } RequestDispatcher rd = request.getRequestDispatcher("daily_cancel.jsp"); request.setAttribute("dailyCancelList", dailyCancelList); rd.forward(request, response); } } // <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 "Short description"; }// </editor-fold> }
a3af59ce65bf5a5bc8c9acd1b62fa6d569c4d338
25b41a9b1adf03cf9d3349ce219f33e476cfd981
/11-spring-data/bookkeeper/src/main/java/ru/dartilla/bookkeeper/service/UserInterfaceImpl.java
f38ae563d35659f00bad4e301bd8b45c85fa3b06
[]
no_license
dartilla/2020-11-otus-spring-sokolov
caacf2028c9e6a73eb4f934d15ce15a1c8047f58
ef6a4a460107108118edc12e8dcbe450e66735c4
refs/heads/master
2023-04-23T07:41:07.264958
2021-05-02T07:45:05
2021-05-02T07:45:05
270,190,771
0
0
null
2021-05-05T03:57:13
2020-06-07T04:23:14
Java
UTF-8
Java
false
false
6,506
java
package ru.dartilla.bookkeeper.service; import lombok.AllArgsConstructor; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; import org.springframework.util.StringUtils; import ru.dartilla.bookkeeper.book.vo.BookOverviewVo; import ru.dartilla.bookkeeper.book.vo.BookInsertVo; import ru.dartilla.bookkeeper.comment.vo.CommentInsertVo; import ru.dartilla.bookkeeper.comment.vo.CommentTree; import ru.dartilla.bookkeeper.domain.Script; import ru.dartilla.bookkeeper.script.vo.ScriptSearchVo; import ru.dartilla.bookkeeper.comment.vo.CommentNode; import ru.dartilla.bookkeeper.domain.Comment; import ru.dartilla.bookkeeper.domain.Genre; import ru.dartilla.bookkeeper.exception.IdIsNotValidException; import ru.dartilla.bookkeeper.exception.BookkeeperException; import ru.dartilla.bookkeeper.exception.MessageIsEmpty; import java.io.PrintStream; import java.util.Collection; import java.util.List; import java.util.Scanner; import java.util.Set; import java.util.stream.Collectors; @Service @AllArgsConstructor public class UserInterfaceImpl implements UserInterface { private final InOut inOut; @Override public BookInsertVo readBookInsertVo() { PrintStream out = inOut.getOut(); Scanner in = inOut.getIn(); ScriptSearchVo scriptSearchVo = readScriptSearchVo(); out.println("Введите жанры (через запятую):"); String[] genreNames = in.nextLine().split(", "); return new BookInsertVo(scriptSearchVo.getTitle(), scriptSearchVo.getAuthorName(), Set.of(genreNames)); } @Override public ScriptSearchVo readScriptSearchVo() { PrintStream out = inOut.getOut(); Scanner in = inOut.getIn(); out.println("Введите инициалы и фамилию автора:"); String authorName = in.nextLine(); out.println("Введите наименование книги:"); String bookTitle = in.nextLine(); return new ScriptSearchVo(bookTitle, authorName); } @Override public void printBooks(Collection<BookOverviewVo> books) { PrintStream out = inOut.getOut(); for (BookOverviewVo book : books) { out.println(String.format("%s - %s; %s; Идентификатор - %s; Доступно для выдачи: %s", book.getAuthorName(), book.getTitle(), book.getGenreNames().stream().collect(Collectors.joining(", ")), book.getScriptId(), book.getAvailableToBorrow())); } } @Override public void printException(Exception ex) { inOut.getOut().println(ex.getMessage()); } @Override public void printBookBorrowed(Long id) { inOut.getOut().println(String.format("Вы взяли из библиотеки книгу с id=%d. Не забудьте вернуть ее обратно!", id)); } @Override public Long readBookId() throws BookkeeperException { PrintStream out = inOut.getOut(); Scanner in = inOut.getIn(); out.println("Введите идентификатор экземпляра книги:"); String bookIdStr = in.nextLine(); try { return Long.valueOf(bookIdStr); } catch (Exception e) { throw new IdIsNotValidException(); } } @Override public Long readScriptId() throws BookkeeperException { PrintStream out = inOut.getOut(); Scanner in = inOut.getIn(); out.println("Введите идентификатор книги:"); String scriptIdStr = in.nextLine(); try { return Long.valueOf(scriptIdStr); } catch (Exception e) { throw new IdIsNotValidException(); } } @Override public void printBookReturned() { PrintStream out = inOut.getOut(); out.println("Вы успешно вернули книгу"); } @Override public void printGenres(Collection<Genre> genres) { PrintStream out = inOut.getOut(); StringBuilder sb = new StringBuilder(); for (Genre genre : genres) { if (sb.length() != 0) { sb.append(", "); } sb.append(genre.getName()); } out.println("В библиотеке представлены жанры: " + sb.toString()); } @Override public void printComments(CommentTree commentTree) { PrintStream out = inOut.getOut(); Script script = commentTree.getScript(); out.println(String.format("Комментарии для книги %s - %s", script.getAuthor().getName(), script.getTitle())); List<CommentNode> nodes = commentTree.getNodes(); if (!CollectionUtils.isEmpty(nodes)) { printComments(nodes, 1); } else { out.println(" Нет комментариев"); } } private void printComments(List<CommentNode> comments, int level) { for (CommentNode vo : comments) { printCommentMessage(level, vo.getMessage(), vo.getId()); printComments(vo.getChildren(), level + 1); } } @Override public CommentInsertVo readComment() { PrintStream out = inOut.getOut(); Scanner in = inOut.getIn(); Long scriptId = readScriptId(); out.println("Введите идентификатор комментария, на который вы отвечаете (пусто если вы не отвечаете):"); Long parentId = null; String parentIdStr = in.nextLine(); if (!StringUtils.isEmpty(parentIdStr)) { try { parentId = Long.valueOf(parentIdStr); } catch (Exception e) { throw new IdIsNotValidException(); } } out.println("Введите сообщение комментария:"); String message = in.nextLine(); if (StringUtils.isEmpty(message)) { throw new MessageIsEmpty(); } return new CommentInsertVo(scriptId, parentId, message); } private void printCommentMessage(int level, String message, Long id) { PrintStream out = inOut.getOut(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < level; i++) { sb.append(" "); } sb.append(message).append(" (id=").append(id).append(")"); out.println(sb.toString()); } }
0052a7bc4f7faf6a42f3693fcd7be09214f7bc6f
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/1/1_df791ffe05be03436768000ff2f2916099139747/TableDataManager/1_df791ffe05be03436768000ff2f2916099139747_TableDataManager_s.java
913befea18ed0a9d721bdfb62f88ded22725f65b
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
10,950
java
/* 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.activiti.engine.impl.persistence.entity; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.logging.Logger; import org.activiti.engine.ActivitiException; import org.activiti.engine.history.HistoricActivityInstance; import org.activiti.engine.history.HistoricDetail; import org.activiti.engine.history.HistoricFormProperty; import org.activiti.engine.history.HistoricProcessInstance; import org.activiti.engine.history.HistoricTaskInstance; import org.activiti.engine.history.HistoricVariableInstance; import org.activiti.engine.history.HistoricVariableUpdate; import org.activiti.engine.impl.TablePageQueryImpl; import org.activiti.engine.impl.db.PersistentObject; import org.activiti.engine.impl.persistence.AbstractManager; import org.activiti.engine.management.TableMetaData; import org.activiti.engine.management.TablePage; import org.activiti.engine.repository.Deployment; import org.activiti.engine.repository.ProcessDefinition; import org.activiti.engine.runtime.Execution; import org.activiti.engine.runtime.Job; import org.activiti.engine.runtime.ProcessInstance; import org.activiti.engine.task.Task; import org.apache.ibatis.session.RowBounds; /** * @author Tom Baeyens */ public class TableDataManager extends AbstractManager { private static Logger log = Logger.getLogger(TableDataManager.class.getName()); public static Map<Class<?>, String> apiTypeToTableNameMap = new HashMap<Class<?>, String>(); public static Map<Class<? extends PersistentObject>, String> persistentObjectToTableNameMap = new HashMap<Class<? extends PersistentObject>, String>(); static { // runtime persistentObjectToTableNameMap.put(TaskEntity.class, "ACT_RU_TASK"); persistentObjectToTableNameMap.put(ExecutionEntity.class, "ACT_RU_EXECUTION"); persistentObjectToTableNameMap.put(IdentityLinkEntity.class, "ACT_RU_IDENTITYLINK"); persistentObjectToTableNameMap.put(VariableInstanceEntity.class, "ACT_RU_VARIABLE"); persistentObjectToTableNameMap.put(JobEntity.class, "ACT_RU_JOB"); persistentObjectToTableNameMap.put(MessageEntity.class, "ACT_RU_JOB"); persistentObjectToTableNameMap.put(TimerEntity.class, "ACT_RU_JOB"); persistentObjectToTableNameMap.put(EventSubscriptionEntity.class, "ACT_RU_EVENT_SUBSCRIPTION"); persistentObjectToTableNameMap.put(CompensateEventSubscriptionEntity.class, "ACT_RU_EVENT_SUBSCRIPTION"); persistentObjectToTableNameMap.put(MessageEventSubscriptionEntity.class, "ACT_RU_EVENT_SUBSCRIPTION"); persistentObjectToTableNameMap.put(SignalEventSubscriptionEntity.class, "ACT_RU_EVENT_SUBSCRIPTION"); // repository persistentObjectToTableNameMap.put(DeploymentEntity.class, "ACT_RE_DEPLOYMENT"); persistentObjectToTableNameMap.put(ProcessDefinitionEntity.class, "ACT_RE_PROCDEF"); // history persistentObjectToTableNameMap.put(CommentEntity.class, "ACT_HI_COMMENT"); persistentObjectToTableNameMap.put(HistoricActivityInstanceEntity.class, "ACT_HI_ACTINST"); persistentObjectToTableNameMap.put(AttachmentEntity.class, "ACT_HI_ATTACHMEN"); persistentObjectToTableNameMap.put(HistoricProcessInstanceEntity.class, "ACT_HI_PROCINST"); persistentObjectToTableNameMap.put(HistoricVariableInstanceEntity.class, "ACT_HI_VARINST"); persistentObjectToTableNameMap.put(HistoricTaskInstanceEntity.class, "ACT_HI_TASKINST"); // a couple of stuff goes to the same table persistentObjectToTableNameMap.put(HistoricDetailAssignmentEntity.class, "ACT_HI_DETAIL"); persistentObjectToTableNameMap.put(HistoricDetailTransitionInstanceEntity.class, "ACT_HI_DETAIL"); persistentObjectToTableNameMap.put(HistoricFormPropertyEntity.class, "ACT_HI_DETAIL"); persistentObjectToTableNameMap.put(HistoricDetailVariableInstanceUpdateEntity.class, "ACT_HI_DETAIL"); persistentObjectToTableNameMap.put(HistoricDetailEntity.class, "ACT_HI_DETAIL"); // Identity module persistentObjectToTableNameMap.put(GroupEntity.class, "ACT_ID_GROUP"); persistentObjectToTableNameMap.put(MembershipEntity.class, "ACT_ID_MEMBERSHIP"); persistentObjectToTableNameMap.put(UserEntity.class, "ACT_ID_USER"); persistentObjectToTableNameMap.put(IdentityInfoEntity.class, "ACT_ID_INFO"); // general persistentObjectToTableNameMap.put(PropertyEntity.class, "ACT_GE_PROPERTY"); persistentObjectToTableNameMap.put(ByteArrayEntity.class, "ACT_GE_BYTEARRAY"); persistentObjectToTableNameMap.put(ResourceEntity.class, "ACT_GE_BYTEARRAY"); // and now the map for the API types (does not cover all cases) apiTypeToTableNameMap.put(Task.class, "ACT_RU_TASK"); apiTypeToTableNameMap.put(Execution.class, "ACT_RU_EXECUTION"); apiTypeToTableNameMap.put(ProcessInstance.class, "ACT_RU_EXECUTION"); apiTypeToTableNameMap.put(ProcessDefinition.class, "ACT_RE_PROCDEF"); apiTypeToTableNameMap.put(Deployment.class, "ACT_RE_DEPLOYMENT"); apiTypeToTableNameMap.put(Job.class, "ACT_RU_JOB"); // history apiTypeToTableNameMap.put(HistoricProcessInstance.class, "ACT_HI_PROCINST"); apiTypeToTableNameMap.put(HistoricActivityInstance.class, "ACT_HI_ACTINST"); apiTypeToTableNameMap.put(HistoricDetail.class, "ACT_HI_DETAIL"); apiTypeToTableNameMap.put(HistoricVariableUpdate.class, "ACT_HI_DETAIL"); apiTypeToTableNameMap.put(HistoricFormProperty.class, "ACT_HI_DETAIL"); apiTypeToTableNameMap.put(HistoricTaskInstance.class, "ACT_HI_TASKINST"); apiTypeToTableNameMap.put(HistoricVariableInstance.class, "ACT_HI_VARINST"); // TODO: Identity skipped for the moment as no SQL injection is provided here } public Map<String, Long> getTableCount() { Map<String, Long> tableCount = new HashMap<String, Long>(); try { for (String tableName: getTablesPresentInDatabase()) { tableCount.put(tableName, getTableCount(tableName)); } log.fine("Number of rows per activiti table: "+tableCount); } catch (Exception e) { throw new ActivitiException("couldn't get table counts", e); } return tableCount; } public List<String> getTablesPresentInDatabase() { List<String> tableNames = new ArrayList<String>(); Connection connection = null; try { connection = getDbSqlSession().getSqlSession().getConnection(); DatabaseMetaData databaseMetaData = connection.getMetaData(); ResultSet tables = null; try { log.fine("retrieving activiti tables from jdbc metadata"); String databaseTablePrefix = getDbSqlSession().getDbSqlSessionFactory().getDatabaseTablePrefix(); String tableNameFilter = databaseTablePrefix+"ACT_%"; if ("postgres".equals(getDbSqlSession().getDbSqlSessionFactory().getDatabaseType())) { tableNameFilter = databaseTablePrefix+"act_%"; } tables = databaseMetaData.getTables(null, null, tableNameFilter, getDbSqlSession().JDBC_METADATA_TABLE_TYPES); while (tables.next()) { String tableName = tables.getString("TABLE_NAME"); tableName = tableName.toUpperCase(); tableNames.add(tableName); log.fine(" retrieved activiti table name "+tableName); } } finally { tables.close(); } } catch (Exception e) { throw new ActivitiException("couldn't get activiti table names using metadata: "+e.getMessage(), e); } return tableNames; } protected long getTableCount(String tableName) { log.fine("selecting table count for "+tableName); Long count = (Long) getDbSqlSession().selectOne("selectTableCount", Collections.singletonMap("tableName", tableName)); return count; } @SuppressWarnings("unchecked") public TablePage getTablePage(TablePageQueryImpl tablePageQuery, int firstResult, int maxResults) { TablePage tablePage = new TablePage(); @SuppressWarnings("rawtypes") List tableData = getDbSqlSession().getSqlSession() .selectList("selectTableData", tablePageQuery, new RowBounds(firstResult, maxResults)); tablePage.setTableName(tablePageQuery.getTableName()); tablePage.setTotal(getTableCount(tablePageQuery.getTableName())); tablePage.setRows((List<Map<String,Object>>)tableData); tablePage.setFirstResult(firstResult); return tablePage; } public String getTableName(Class<?> entityClass, boolean withPrefix) { String databaseTablePrefix = getDbSqlSession().getDbSqlSessionFactory().getDatabaseTablePrefix(); String tableName = null; if (PersistentObject.class.isAssignableFrom(entityClass)) { tableName = persistentObjectToTableNameMap.get(entityClass); } else { tableName = apiTypeToTableNameMap.get(entityClass); } if (withPrefix) { return databaseTablePrefix + tableName; } else { return tableName; } } public TableMetaData getTableMetaData(String tableName) { TableMetaData result = new TableMetaData(); try { result.setTableName(tableName); DatabaseMetaData metaData = getDbSqlSession() .getSqlSession() .getConnection() .getMetaData(); if ("postgres".equals(getDbSqlSession().getDbSqlSessionFactory().getDatabaseType())) { tableName = tableName.toLowerCase(); } ResultSet resultSet = metaData.getColumns(null, null, tableName, null); while(resultSet.next()) { String name = resultSet.getString("COLUMN_NAME").toUpperCase(); String type = resultSet.getString("TYPE_NAME").toUpperCase(); result.addColumnMetaData(name, type); } } catch (SQLException e) { throw new ActivitiException("Could not retrieve database metadata: " + e.getMessage()); } if(result.getColumnNames().size() == 0) { // According to API, when a table doesn't exist, null should be returned result = null; } return result; } }
f8178b8bfa44e2ce3ea5c45a00651455f6d8c6cf
bcbe286ea7fcb15081aafa670760910043e4955f
/src/main/java/by/kostyahubarau/booking/model/Reservation.java
4a3cc029dd71d715d7ab13a20ffea7a2191aa20c
[]
no_license
nicelady2004/se-assignment-booking
bbac9e0e740838e69c8b53df4394faedda6937ff
9ebd307b4b234ffce3091ee0cec4750306800c90
refs/heads/master
2022-09-17T08:05:04.785838
2019-06-25T23:14:56
2019-06-25T23:14:56
193,795,405
0
0
null
2022-09-08T01:01:08
2019-06-25T23:12:47
Java
UTF-8
Java
false
false
468
java
package by.kostyahubarau.booking.model; import lombok.Data; import javax.persistence.*; import java.util.Date; @Entity @Table(name = "reservations") @Data public class Reservation { @Id @Column(name = "reservation_id") private Long id; @ManyToOne @JoinColumn(name = "customer_id") private Customer customer; @ManyToOne @JoinColumn(name = "room_id") private Room room; private Date checkin; private Date checkout; }
1e7ba24c9e21a1291980987fdde2c634a4323129
d969d66a07dbccb96db6ca9be738ea7d3674c4f6
/src/main/java/com/taskmanager/security/oauth2/OAuth2AuthenticationFailureHandler.java
0f232f7cc94277adaf4521c4623c2adc5897d8b6
[]
no_license
KOS91Q/TM_backend
f482567395acaa1a9d7275c2ccfb1237fdf94317
3e27626a2ec211206b691ef5befb1e9f8204dc7c
refs/heads/master
2023-01-14T07:48:33.229477
2020-11-07T17:09:58
2020-11-07T17:09:58
307,446,590
0
0
null
null
null
null
UTF-8
Java
false
false
1,675
java
package com.taskmanager.security.oauth2; import com.taskmanager.util.CookieUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.AuthenticationException; import org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler; import org.springframework.stereotype.Component; import org.springframework.web.util.UriComponentsBuilder; import javax.servlet.ServletException; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import static com.taskmanager.security.oauth2.HttpCookieOAuth2AuthorizationRequestRepository.REDIRECT_URI_PARAM_COOKIE_NAME; @Component public class OAuth2AuthenticationFailureHandler extends SimpleUrlAuthenticationFailureHandler { @Autowired HttpCookieOAuth2AuthorizationRequestRepository httpCookieOAuth2AuthorizationRequestRepository; @Override public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException, ServletException { String targetUrl = CookieUtils.getCookie(request, REDIRECT_URI_PARAM_COOKIE_NAME) .map(Cookie::getValue) .orElse(("/")); targetUrl = UriComponentsBuilder.fromUriString(targetUrl) .queryParam("error", exception.getLocalizedMessage()) .build().toUriString(); httpCookieOAuth2AuthorizationRequestRepository.removeAuthorizationRequestCookies(request, response); getRedirectStrategy().sendRedirect(request, response, targetUrl); } }
d32521ee01df8b061eb922c4e429a6da9cf34077
5a0223dd2c348f3056b0b428d6bc7e3585821efa
/mylibs/src/androidTest/java/com/arundavid/mylibs/ApplicationTest.java
83cb471e79563b080b37599193d323968bbb656b
[]
no_license
anagri/intellicar
420c1d843d49416ecc94173a9ddecbe36fad9d91
53c534c58ab7cd27dc92d0cdaf802398735bf18d
refs/heads/master
2021-01-15T10:47:13.998330
2015-08-29T18:27:17
2015-08-29T18:27:17
41,603,172
1
0
null
null
null
null
UTF-8
Java
false
false
351
java
package com.arundavid.mylibs; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { super(Application.class); } }
2e5ee6a07b70cce4030d0fc149cf4301d4616fca
03f2358616bf13a15869ae692d58c74202441d82
/src/cn/abble/jblog/pojo/User.java
c1cd00dd42e1f266b42af3234433d9626351591d
[]
no_license
ant2288/jBlog
027c623af1801202440b5ff9dfdafe74d02cec43
e355ea59283b8716870322f809490d3d82c7ed3c
refs/heads/master
2021-08-24T10:53:10.819296
2017-12-09T09:59:46
2017-12-09T09:59:46
112,316,419
0
0
null
null
null
null
UTF-8
Java
false
false
652
java
package cn.abble.jblog.pojo; public class User { private Integer uid; private String uusername; private String upassword; public Integer getUid() { return uid; } public void setUid(Integer uid) { this.uid = uid; } public String getUusername() { return uusername; } public void setUusername(String uusername) { this.uusername = uusername == null ? null : uusername.trim(); } public String getUpassword() { return upassword; } public void setUpassword(String upassword) { this.upassword = upassword == null ? null : upassword.trim(); } }
7776e866eedf27de7c0b924624a954a0770079f4
3bcf293340e6f18392d685a540ef05c221711cbc
/app/src/main/java/com/gizwits/opensource/gokit/UserModule/GosForgetPasswordActivity.java
f7ed2c29a36663601889d694f93995634f3fc543
[]
no_license
aierjun/GokitLBT
2fc4f954223be485e92370e59543cae2acb7bc31
b17acc8673d6a8b1087ed120e7224b258076c171
refs/heads/master
2021-01-11T07:41:34.325560
2016-11-03T02:14:37
2016-11-03T02:14:37
72,699,634
0
0
null
null
null
null
UTF-8
Java
false
false
7,740
java
package com.gizwits.opensource.gokit.UserModule; import java.util.Timer; import java.util.TimerTask; import com.gizwits.gizwifisdk.api.GizWifiSDK; import com.gizwits.gizwifisdk.enumration.GizUserAccountType; import com.gizwits.gizwifisdk.enumration.GizWifiErrorCode; import com.gizwits.gokitlbt.R; import com.gizwits.opensource.gokit.CommonModule.GosDeploy; import android.annotation.SuppressLint; import android.content.Context; import android.graphics.drawable.GradientDrawable; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.text.TextUtils; import android.view.View; import android.view.View.OnClickListener; import android.view.inputmethod.InputMethodManager; import android.widget.Button; import android.widget.CheckBox; import android.widget.CompoundButton; import android.widget.EditText; import android.widget.Toast; import android.widget.CompoundButton.OnCheckedChangeListener; @SuppressLint("HandlerLeak") public class GosForgetPasswordActivity extends GosUserModuleBaseActivity implements OnClickListener { /** The et Name */ private EditText etName; /** The btn GetCode */ private Button btnGetCode; /** The et Code */ private EditText etCode; /** The et Psw */ private EditText etPsw; /** The btn Register */ private Button btnReset; /** The cb Laws */ private CheckBox cbLaws; /** The Button Drawable */ GradientDrawable drawable; /** * 验证码重发倒计时 */ int secondleft = 60; /** * The timer. */ Timer timer; /** 数据变量 */ String name, code, psw; private enum handler_key { /** 获取验证码. */ GETCODE, /** 提示信息 */ TOAST, /** 手机验证码发送成功. */ SENDSUCCESSFUL, /** 倒计时通知 */ TICK_TIME, /** 重置密码 */ RESET, } Handler handler = new Handler() { public void handleMessage(android.os.Message msg) { super.handleMessage(msg); handler_key key = handler_key.values()[msg.what]; switch (key) { case GETCODE: progressDialog.show(); String AppSecret = GosDeploy.setAppSecret(); GizWifiSDK.sharedInstance().requestSendPhoneSMSCode(AppSecret, msg.obj.toString()); break; case TOAST: String successfulText = (String) getText(R.string.reset_successful); Toast.makeText(GosForgetPasswordActivity.this, msg.obj + "", toastTime).show(); if (msg.obj.toString().equals(successfulText)) { spf.edit().putString("UserName", name).commit(); spf.edit().putString("PassWord", psw).commit(); finish(); } break; case SENDSUCCESSFUL: etName.setEnabled(false); etName.setTextColor(getResources().getColor(R.color.text_gray_light)); isStartTimer(); break; case TICK_TIME: String getCodeAgain = getString(R.string.getcode_again); String timerMessage = getString(R.string.timer_message); secondleft--; if (secondleft <= 0) { timer.cancel(); btnGetCode.setBackgroundDrawable(drawable); btnGetCode.setTextColor(GosDeploy.setButtonTextColor()); btnGetCode.setEnabled(true); btnGetCode.setText(getCodeAgain); } else { btnGetCode.setText(secondleft + timerMessage); } break; case RESET: progressDialog.show(); GizWifiSDK.sharedInstance().resetPassword(name, code, psw, GizUserAccountType.GizUserPhone); break; } } }; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_gos_forget_password); // 设置ActionBar setActionBar(true, true, R.string.reset_title); initView(); initEvent(); } private void initView() { etName = (EditText) findViewById(R.id.etName); btnGetCode = (Button) findViewById(R.id.btnGetCode); etCode = (EditText) findViewById(R.id.etCode); etPsw = (EditText) findViewById(R.id.etPsw); btnReset = (Button) findViewById(R.id.btnReset); cbLaws = (CheckBox) findViewById(R.id.cbLaws); // 配置文件部署 drawable =(GradientDrawable) GosDeploy.setButtonBackgroundColor(); drawable.setCornerRadius(30); btnGetCode.setBackgroundDrawable(drawable); btnReset.setBackgroundDrawable(GosDeploy.setButtonBackgroundColor()); btnReset.setTextColor(GosDeploy.setButtonTextColor()); } private void initEvent() { final Timer etTimer = new Timer(); etTimer.schedule(new TimerTask() { @Override public void run() { etName.requestFocus(); InputMethodManager imm = (InputMethodManager) etName.getContext() .getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(0, InputMethodManager.SHOW_FORCED); etTimer.cancel(); } }, 500); btnGetCode.setOnClickListener(this); btnReset.setOnClickListener(this); cbLaws.setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { String psw = etPsw.getText().toString(); if (isChecked) { etPsw.setInputType(0x90); } else { etPsw.setInputType(0x81); } etPsw.setSelection(psw.length()); } }); } @Override public void onClick(View v) { switch (v.getId()) { case R.id.btnGetCode: name = etName.getText().toString(); if (TextUtils.isEmpty(name)) { Toast.makeText(GosForgetPasswordActivity.this, R.string.toast_name_wrong, toastTime).show(); return; } Message msg = new Message(); msg.obj = name; msg.what = handler_key.GETCODE.ordinal(); handler.sendMessage(msg); break; case R.id.btnReset: name = etName.getText().toString(); code = etCode.getText().toString(); psw = etPsw.getText().toString(); if (TextUtils.isEmpty(name)) { Toast.makeText(GosForgetPasswordActivity.this, R.string.toast_name_wrong, toastTime).show(); return; } if (code.length() != 6) { Toast.makeText(GosForgetPasswordActivity.this, R.string.no_getcode, toastTime).show(); return; } if (TextUtils.isEmpty(psw)) { Toast.makeText(GosForgetPasswordActivity.this, R.string.toast_psw_wrong, toastTime).show(); return; } if (psw.length() < 6) { Toast.makeText(GosForgetPasswordActivity.this, R.string.toast_psw_short, toastTime).show(); return; } handler.sendEmptyMessage(handler_key.RESET.ordinal()); break; } } /** 手机验证码回调 */ @Override protected void didRequestSendPhoneSMSCode(GizWifiErrorCode result, String token) { progressDialog.cancel(); Message msg = new Message(); if (GizWifiErrorCode.GIZ_SDK_SUCCESS != result) { msg.what = handler_key.TOAST.ordinal(); msg.obj = toastError(result); handler.sendMessage(msg); } else { handler.sendEmptyMessage(handler_key.SENDSUCCESSFUL.ordinal()); msg.what = handler_key.TOAST.ordinal(); String sendSuccessful = (String) getText(R.string.send_successful); msg.obj = sendSuccessful; handler.sendMessage(msg); } } /** 重置密码回调 */ @Override public void didChangeUserPassword(GizWifiErrorCode result) { progressDialog.cancel(); Message msg = new Message(); if (GizWifiErrorCode.GIZ_SDK_SUCCESS != result) { msg.what = handler_key.TOAST.ordinal(); msg.obj = toastError(result); handler.sendMessage(msg); } else { msg.what = handler_key.TOAST.ordinal(); String resetSuccessful = (String) getText(R.string.reset_successful); msg.obj = resetSuccessful; handler.sendMessage(msg); } } /** * 倒计时 */ public void isStartTimer() { btnGetCode.setEnabled(false); btnGetCode.setBackgroundResource(R.drawable.btn_getcode_shape_gray); secondleft = 60; timer = new Timer(); timer.schedule(new TimerTask() { @Override public void run() { handler.sendEmptyMessage(handler_key.TICK_TIME.ordinal()); } }, 1000, 1000); } }
12b35613290989dba8bda6696f03c71538ee8b5d
68ee068f2a8f44f6c469a70d8ba47eb667591e8a
/datasets/styler/auto/files/1/130/BuilderMethodClassifier.java
7128e87f6bd932b04419b5e325560ebf6d6dfe2c
[]
no_license
aqhvhghtbtb/styler
261032390ef39224ab1fdfd51a70ba556e5f81d4
e2881daa6bbc7763ad4a9ba704c4d834316ed9c1
refs/heads/master
2021-03-07T16:50:11.364844
2020-02-28T10:00:47
2020-02-28T10:00:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
26,957
java
/* * Copyright (C) 2015 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.auto.value.processor; import static com.google.common.collect.ImmutableMap.toImmutableMap; import com.google.auto.common.MoreElements; import com.google.auto.common.MoreTypes; import com.google.auto.value.processor.PropertyBuilderClassifier.PropertyBuilder; import com.google.common.base.Equivalence; import com.google.common.collect.ImmutableBiMap; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableMultimap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Iterables; import com.google.common.collect.LinkedListMultimap; import com.google.common.collect.Maps; import com.google.common.collect.Multimap; import com.google.common.collect.Sets; import java.beans.Introspector; import java.util.Map; import java.util.Optional; import java.util.Set; import javax.annotation.processing.ProcessingEnvironment; import javax.lang.model.element.ExecutableElement; import javax.lang.model.element.Modifier; import javax.lang.model.element.TypeElement; import javax.lang.model.type.DeclaredType; import javax.lang.model.type.TypeKind; import javax.lang.model.type.TypeMirror; import javax.lang.model.util.ElementFilter; import javax.lang.model.util.Elements; import javax.lang.model.util.Types; /** * Classifies methods inside builder types, based on their names and parameter and return types. * * @author Éamonn McManus */ class BuilderMethodClassifier { private static final Equivalence<TypeMirror> TYPE_EQUIVALENCE = MoreTypes.equivalence(); private final ErrorReporter errorReporter; private final Types typeUtils; private final Elements elementUtils; private final TypeElement autoValueClass; private final TypeElement builderType; private final ImmutableBiMap<ExecutableElement, String> getterToPropertyName; private final ImmutableMap<String, ExecutableElement> getterNameToGetter; private final TypeSimplifier typeSimplifier; private final Set<ExecutableElement> buildMethods = Sets.newLinkedHashSet(); private final Map<String, BuilderSpec.PropertyGetter> builderGetters = Maps.newLinkedHashMap(); private final Multimap<String, ExecutableElement> propertyNameToPrefixedSetters = LinkedListMultimap.create(); private final Multimap<String, ExecutableElement> propertyNameToUnprefixedSetters = LinkedListMultimap.create(); private final Map<String, PropertyBuilder> propertyNameToPropertyBuilder = Maps.newLinkedHashMap(); private final EclipseHack eclipseHack; private boolean settersPrefixed; private BuilderMethodClassifier( ErrorReporter errorReporter, ProcessingEnvironment processingEnv, TypeElement autoValueClass, TypeElement builderType, ImmutableBiMap<ExecutableElement, String> getterToPropertyName, TypeSimplifier typeSimplifier) { this.errorReporter = errorReporter; this.typeUtils = processingEnv.getTypeUtils(); this.elementUtils = processingEnv.getElementUtils(); this.autoValueClass = autoValueClass; this.builderType = builderType; this.getterToPropertyName = getterToPropertyName; this.getterNameToGetter = getterToPropertyName.keySet() .stream() .collect(toImmutableMap(m -> m.getSimpleName().toString(), m -> m)); this.typeSimplifier = typeSimplifier; this.eclipseHack = new EclipseHack(processingEnv); } /** * Classifies the given methods from a builder type and its ancestors. * * @param methods the methods in {@code builderType} and its ancestors. * @param errorReporter where to report errors. * @param processingEnv the ProcessingEnvironment for annotation processing. * @param autoValueClass the {@code AutoValue} class containing the builder. * @param builderType the builder class or interface within {@code autoValueClass}. * @param getterToPropertyName a map from getter methods to the properties they get. * @param typeSimplifier the TypeSimplifier that will be used to control imports. * @param autoValueHasToBuilder true if the containing {@code @AutoValue} class has a * {@code toBuilder()} method. * * @return an {@code Optional} that contains the results of the classification if it was * successful or nothing if it was not. */ static Optional<BuilderMethodClassifier> classify( Iterable<ExecutableElement> methods, ErrorReporter errorReporter, ProcessingEnvironment processingEnv, TypeElement autoValueClass, TypeElement builderType, ImmutableBiMap<ExecutableElement, String> getterToPropertyName, TypeSimplifier typeSimplifier, boolean autoValueHasToBuilder) { BuilderMethodClassifier classifier = new BuilderMethodClassifier( errorReporter, processingEnv, autoValueClass, builderType, getterToPropertyName, typeSimplifier); if (classifier.classifyMethods(methods, autoValueHasToBuilder)) { return Optional.of(classifier); } else { return Optional.empty(); } } /** * Returns a multimap from the name of a property to the methods that set it. If the property is * defined by an abstract method in the {@code @AutoValue} class called {@code foo()} or * {@code getFoo()} then the name of the property is {@code foo} and there will be an entry in * the map where the key is {@code "foo"} and the value is a method in the builder called * {@code foo} or {@code setFoo}. */ ImmutableMultimap<String, ExecutableElement> propertyNameToSetters() { return ImmutableMultimap.copyOf( settersPrefixed ? propertyNameToPrefixedSetters : propertyNameToUnprefixedSetters); } Map<String, PropertyBuilder> propertyNameToPropertyBuilder() { return propertyNameToPropertyBuilder; } /** * Returns the set of properties that have getters in the builder. If a property is defined by * an abstract method in the {@code @AutoValue} class called {@code foo()} or {@code getFoo()} * then the name of the property is {@code foo}, If the builder also has a method of the same name * ({@code foo()} or {@code getFoo()}) then the set returned here will contain {@code foo}. */ ImmutableMap<String, BuilderSpec.PropertyGetter> builderGetters() { return ImmutableMap.copyOf(builderGetters); } /** * Returns the methods that were identified as {@code build()} methods. These are methods that * have no parameters and return the {@code @AutoValue} type, conventionally called * {@code build()}. */ Set<ExecutableElement> buildMethods() { return ImmutableSet.copyOf(buildMethods); } /** * Classifies the given methods and sets the state of this object based on what is found. */ private boolean classifyMethods( Iterable<ExecutableElement> methods, boolean autoValueHasToBuilder) { boolean ok = true; for (ExecutableElement method : methods) { ok &= classifyMethod(method); } if (!ok) { return false; } Multimap<String, ExecutableElement> propertyNameToSetter; if (propertyNameToPrefixedSetters.isEmpty()) { propertyNameToSetter = propertyNameToUnprefixedSetters; this.settersPrefixed = false; } else if (propertyNameToUnprefixedSetters.isEmpty()) { propertyNameToSetter = propertyNameToPrefixedSetters; this.settersPrefixed = true; } else { errorReporter.reportError("If any setter methods use the setFoo convention then all must", propertyNameToUnprefixedSetters.values().iterator().next()); return false; } for (Map.Entry<ExecutableElement, String> getterEntry : getterToPropertyName.entrySet()) { String property = getterEntry.getValue(); String propertyType = typeSimplifier.simplify(getterEntry.getKey().getReturnType()); boolean hasSetter = propertyNameToSetter.containsKey(property); PropertyBuilder propertyBuilder = propertyNameToPropertyBuilder.get(property); boolean hasBuilder = propertyBuilder != null; if (hasBuilder) { // If property bar of type Bar has a barBuilder() that returns BarBuilder, then it must be // possible to make a BarBuilder from a Bar if either (1) the @AutoValue class has a // toBuilder() or (2) there is also a setBar(Bar). Making BarBuilder from Bar is possible // if Bar either has a toBuilder() method or is a Guava immutable collection (in which case // we can use addAll or putAll). boolean canMakeBarBuilder = (propertyBuilder.getBuiltToBuilder() != null || propertyBuilder.getCopyAll() != null); boolean needToMakeBarBuilder = (autoValueHasToBuilder || hasSetter); if (needToMakeBarBuilder && !canMakeBarBuilder) { String error = String.format( "Property builder method returns %1$s but there is no way to make that type from " + "%2$s: %2$s does not have a non-static toBuilder() method that returns %1$s", propertyBuilder.getBuilderType(), propertyType); errorReporter.reportError(error, propertyBuilder.getPropertyBuilderMethod()); } } else if (!hasSetter) { // We have neither barBuilder() nor setBar(Bar), so we should complain. String setterName = settersPrefixed ? prefixWithSet(property) : property; String error = String.format( "Expected a method with this signature: %s%s %s(%s), or a %sBuilder() method", builderType, typeParamsString(), setterName, propertyType, property); errorReporter.reportError(error, builderType); ok = false; } } return ok; } /** * Classifies a method and update the state of this object based on what is found. * * @return true if the method was successfully classified, false if an error has been reported. */ private boolean classifyMethod(ExecutableElement method) { switch (method.getParameters().size()) { case 0: return classifyMethodNoArgs(method); case 1: return classifyMethodOneArg(method); default: errorReporter.reportError("Builder methods must have 0 or 1 parameters", method); return false; } } /** * Classifies a method given that it has no arguments. Currently a method with no * arguments can be a {@code build()} method, meaning that its return type must be the * {@code @AutoValue} class; it can be a getter, with the same signature as one of * the property getters in the {@code @AutoValue} class; or it can be a property builder, * like {@code ImmutableList.Builder<String> foosBuilder()} for the property defined by * {@code ImmutableList<String> foos()} or {@code getFoos()}. * * @return true if the method was successfully classified, false if an error has been reported. */ private boolean classifyMethodNoArgs(ExecutableElement method) { String methodName = method.getSimpleName().toString(); TypeMirror returnType = builderMethodReturnType(method); ExecutableElement getter = getterNameToGetter.get(methodName); if (getter != null) { return classifyGetter(method, getter); } if (methodName.endsWith("Builder")) { String property = methodName.substring(0, methodName.length() - "Builder".length()); if (getterToPropertyName.containsValue(property)) { PropertyBuilderClassifier propertyBuilderClassifier = new PropertyBuilderClassifier( errorReporter, typeUtils, elementUtils, this, getterToPropertyName, typeSimplifier, eclipseHack); Optional<PropertyBuilder> propertyBuilder = propertyBuilderClassifier.makePropertyBuilder(method, property); if (propertyBuilder.isPresent()) { propertyNameToPropertyBuilder.put(property, propertyBuilder.get()); return true; } else { return false; } } } if (TYPE_EQUIVALENCE.equivalent(returnType, autoValueClass.asType())) { buildMethods.add(method); return true; } String error = String.format( "Method without arguments should be a build method returning %1$s%2$s" + " or a getter method with the same name and type as a getter method of %1$s", autoValueClass, typeParamsString()); errorReporter.reportError(error, method); return false; } private boolean classifyGetter( ExecutableElement builderGetter, ExecutableElement originalGetter) { String propertyName = getterToPropertyName.get(originalGetter); TypeMirror builderGetterType = builderMethodReturnType(builderGetter); String builderGetterTypeString = typeSimplifier.simplify(builderGetterType); TypeMirror originalGetterType = originalGetter.getReturnType(); if (TYPE_EQUIVALENCE.equivalent(builderGetterType, originalGetterType)) { builderGetters.put( propertyName, new BuilderSpec.PropertyGetter(builderGetter, builderGetterTypeString, null)); return true; } Optionalish optional = Optionalish.createIfOptional( builderGetterType, typeSimplifier.simplifyRaw(builderGetterType)); if (optional != null) { TypeMirror containedType = optional.getContainedType(typeUtils); // If the original method is int getFoo() then we allow Optional<Integer> here. // boxedOriginalType is Integer, and containedType is also Integer. // We don't need any special code for OptionalInt because containedType will be int then. TypeMirror boxedOriginalType = (originalGetterType.getKind().isPrimitive()) ? typeUtils.boxedClass(MoreTypes.asPrimitiveType(originalGetterType)) .asType() : null; if (TYPE_EQUIVALENCE.equivalent(containedType, originalGetterType) || TYPE_EQUIVALENCE.equivalent(containedType, boxedOriginalType)) { builderGetters.put( propertyName, new BuilderSpec.PropertyGetter(builderGetter, builderGetterTypeString, optional)); return true; } } String error = String.format( "Method matches a property of %1$s but has return type %2$s instead of %3$s " + "or an Optional wrapping of %3$s", autoValueClass, builderGetterType, originalGetter.getReturnType()); errorReporter.reportError(error, builderGetter); return false; } /** * Classifies a method given that it has one argument. Currently, a method with one argument can * only be a setter, meaning that it must look like {@code foo(T)} or {@code setFoo(T)}, where * the {@code AutoValue} class has a property called {@code foo} of type {@code T}. * * @return true if the method was successfully classified, false if an error has been reported. */ private boolean classifyMethodOneArg(ExecutableElement method) { String methodName = method.getSimpleName().toString(); Map<String, ExecutableElement> propertyNameToGetter = getterToPropertyName.inverse(); String propertyName = null; ExecutableElement valueGetter = propertyNameToGetter.get(methodName); Multimap<String, ExecutableElement> propertyNameToSetters = null; if (valueGetter != null) { propertyNameToSetters = propertyNameToUnprefixedSetters; propertyName = methodName; } else if (valueGetter == null && methodName.startsWith("set") && methodName.length() > 3) { propertyNameToSetters = propertyNameToPrefixedSetters; propertyName = Introspector.decapitalize(methodName.substring(3)); valueGetter = propertyNameToGetter.get(propertyName); if (valueGetter == null) { // If our property is defined by a getter called getOAuth() then it is called "OAuth" // because of Introspector.decapitalize. Therefore we want Introspector.decapitalize to // be used for the setter too, so that you can write setOAuth(x). Meanwhile if the property // is defined by a getter called oAuth() then it is called "oAuth", but you would still // expect to be able to set it using setOAuth(x). Hence the second try using a decapitalize // method without the quirky two-leading-capitals rule. propertyName = decapitalize(methodName.substring(3)); valueGetter = propertyNameToGetter.get(propertyName); } } if (valueGetter == null || propertyNameToSetters == null) { // The second disjunct isn't needed but convinces control-flow checkers that // propertyNameToSetters can't be null when we call put on it below. errorReporter.reportError( "Method does not correspond to a property of " + autoValueClass, method); checkForFailedJavaBean(method); return false; } if (!checkSetterParameter(valueGetter, method)) { return false; } else if ( !TYPE_EQUIVALENCE.equivalent(builderMethodReturnType(method), builderType.asType())) { errorReporter.reportError( "Setter methods must return " + builderType + typeParamsString(), method); return false; } else { propertyNameToSetters.put(propertyName, method); return true; } } // A frequence source of problems is where the JavaBeans conventions have been followed for // most but not all getters. Then AutoValue considers that they haven't been followed at all, // so you might have a property called getFoo where you thought it was called just foo, and // you might not understand why your setter called setFoo is rejected (it would have to be called // setGetFoo). private void checkForFailedJavaBean(ExecutableElement rejectedSetter) { ImmutableSet<ExecutableElement> allGetters = getterToPropertyName.keySet(); ImmutableSet<ExecutableElement> prefixedGetters = AutoValueProcessor.prefixedGettersIn(allGetters); if (prefixedGetters.size() < allGetters.size() && prefixedGetters.size() >= allGetters.size() / 2) { String note = "This might be because you are using the getFoo() convention" + " for some but not all methods. These methods don't follow the convention: " + Sets.difference(allGetters, prefixedGetters); errorReporter.reportNote(note, rejectedSetter); } } /** * Checks that the given setter method has a parameter type that is compatible with the return * type of the given getter. Compatible means either that it is the same, or that it is a type * that can be copied using a method like {@code ImmutableList.copyOf} or {@code Optional.of}. * * @return true if the types correspond, false if an error has been reported. */ private boolean checkSetterParameter(ExecutableElement valueGetter, ExecutableElement setter) { TypeMirror targetType = valueGetter.getReturnType(); TypeMirror parameterType = setter.getParameters().get(0).asType(); if (TYPE_EQUIVALENCE.equivalent(parameterType, targetType)) { return true; } ImmutableList<ExecutableElement> copyOfMethods = copyOfMethods(targetType); if (!copyOfMethods.isEmpty()) { return canMakeCopyUsing(copyOfMethods, valueGetter, setter); } String error = String.format( "Parameter type %s of setter method should be %s to match getter %s.%s", parameterType, targetType, autoValueClass, valueGetter.getSimpleName()); errorReporter.reportError(error, setter); return false; } /** * Checks that the given setter method has a parameter type that can be copied to the return type * of the given getter using one of the given {@code copyOf} methods. * * @return true if the copy can be made, false if an error has been reported. */ private boolean canMakeCopyUsing( ImmutableList<ExecutableElement> copyOfMethods, ExecutableElement valueGetter, ExecutableElement setter) { TypeMirror targetType = valueGetter.getReturnType(); TypeMirror parameterType = setter.getParameters().get(0).asType(); for (ExecutableElement copyOfMethod : copyOfMethods) { if (canMakeCopyUsing(copyOfMethod, targetType, parameterType)) { return true; } } DeclaredType targetDeclaredType = MoreTypes.asDeclared(targetType); String targetTypeSimpleName = targetDeclaredType.asElement().getSimpleName().toString(); String error = String.format( "Parameter type of setter method should be %s to match getter %s.%s, or it should be a " + "type that can be passed to %s.copyOf", targetType, autoValueClass, valueGetter.getSimpleName(), targetTypeSimpleName); errorReporter.reportError(error, setter); return false; } /** * Returns true if {@code copyOfMethod} can be used to copy the {@code parameterType} * to the {@code targetType}. */ private boolean canMakeCopyUsing( ExecutableElement copyOfMethod, TypeMirror targetType, TypeMirror parameterType) { // We have a parameter type, for example Set<? extends T>, and we want to know if it can be // passed to the given copyOf method, which might for example be one of these methods from // ImmutableSet: // public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) // public static <E> ImmutableSet<E> copyOf(E[] elements) // Additionally, if it can indeed be passed to the method, we want to know whether the result // (here ImmutableSet<? extends T>) is compatible with the property to be set, bearing in mind // that the T in question is the one from the @AutoValue class and not the Builder class. // The logic to do that properly would be quite complex, and we don't get much help from the // annotation processing API, so for now we simply check that the erased types correspond. // This means that an incorrect type will lead to a compilation error in the generated code, // which is less than ideal. // TODO(b/20691134): make this work properly TypeMirror erasedParameterType = typeUtils.erasure(parameterType); TypeMirror erasedCopyOfParameterType = typeUtils.erasure(Iterables.getOnlyElement(copyOfMethod.getParameters()).asType()); // erasedParameterType is Set in the example and erasedCopyOfParameterType is Collection if (!typeUtils.isAssignable(erasedParameterType, erasedCopyOfParameterType)) { return false; } TypeMirror erasedCopyOfReturnType = typeUtils.erasure(copyOfMethod.getReturnType()); TypeMirror erasedTargetType = typeUtils.erasure(targetType); // erasedCopyOfReturnType and erasedTargetType are both ImmutableSet in the example. // In fact for Guava immutable collections the check could be for equality. return typeUtils.isAssignable(erasedCopyOfReturnType, erasedTargetType); } /** * Returns {@code copyOf} methods from the given type. These are static methods called * {@code copyOf} with a single parameter. All of Guava's concrete immutable collection types have * at least one such method, but we will also accept other classes with an appropriate method, * such as {@link java.util.EnumSet}. */ private ImmutableList<ExecutableElement> copyOfMethods(TypeMirror targetType) { if (!targetType.getKind().equals(TypeKind.DECLARED)) { return ImmutableList.of(); } String copyOf = Optionalish.isOptional(targetType) ? "of" : "copyOf"; TypeElement immutableTargetType = MoreElements.asType(typeUtils.asElement(targetType)); ImmutableList.Builder<ExecutableElement> copyOfMethods = ImmutableList.builder(); for (ExecutableElement method : ElementFilter.methodsIn(immutableTargetType.getEnclosedElements())) { if (method.getSimpleName().contentEquals(copyOf) && method.getParameters().size() == 1 && method.getModifiers().contains(Modifier.STATIC)) { copyOfMethods.add(method); } } return copyOfMethods.build(); } /** * Returns the return type of the given method from the builder. This should be the final type of * the method when any bound type variables are substituted. Consider this example: * <pre>{@code * abstract static class ParentBuilder<B extends ParentBuilder> { * B setFoo(String s); * } * abstract static class ChildBuilder extends ParentBuilder<ChildBuilder> { * ... * } * }</pre> * If the builder is {@code ChildBuilder} then the return type of {@code setFoo} is also * {@code ChildBuilder}, and not {@code B} as its {@code getReturnType()} method would claim. * * <p>If the caller is in a version of Eclipse with * <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=382590">this bug</a> then the * {@code asMemberOf} call will fail if the method is inherited from an interface. We work around * that for methods in the {@code @AutoValue} class using {@link EclipseHack#methodReturnTypes} * but we don't try to do so here because it should be much less likely. You might need to change * {@code ParentBuilder} from an interface to an abstract class to make it work, but you'll often * need to do that anyway. */ TypeMirror builderMethodReturnType(ExecutableElement builderMethod) { DeclaredType builderTypeMirror = MoreTypes.asDeclared(builderType.asType()); TypeMirror methodMirror; try { methodMirror = typeUtils.asMemberOf(builderTypeMirror, builderMethod); } catch (IllegalArgumentException e) { // Presumably we've hit the Eclipse bug cited. return builderMethod.getReturnType(); } return MoreTypes.asExecutable(methodMirror).getReturnType(); } private static String prefixWithSet(String propertyName) { // This is not internationalizationally correct, but it corresponds to what // Introspector.decapitalize does. return "set" + Character.toUpperCase(propertyName.charAt(0)) + propertyName.substring(1); } // Equivalent to Introspector.decapitalize but without the quirky exception whereby // Introspector.decapitalize("OAuth").equals("OAuth"). (If the first two letters are capitals // then Introspector.decapitalize does nothing.) private static String decapitalize(String propertyName) { return Character.toLowerCase(propertyName.charAt(0)) + propertyName.substring(1); } private String typeParamsString() { return TypeSimplifier.actualTypeParametersString(autoValueClass); } }
ebdd850148858a0468f9b56652c5dfd17ba04458
11262fbba25e95475c41c4abd5fa8a007100cae1
/app/src/main/java/com/igniva/genererics/sqliteMySample/model/ContactsPojo.java
07fe7c416c1069539b451e6d2419d7ce8da6b59c
[]
no_license
rajwinderbhullar75/Generics
ba4eb41f56783e3439b725e827ef4d7a36523159
20ce273bcc879762bf3547da907f2a554b8cec70
refs/heads/master
2021-09-01T00:11:31.800575
2017-12-23T18:09:27
2017-12-23T18:09:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,867
java
package com.igniva.genererics.sqliteMySample.model; import java.io.Serializable; /** * Created by Biri Infotech on 12/17/2017. */ public class ContactsPojo implements Serializable{ String name; String contact; String interest1; String interest2; String interest3; String createdAt; String id; String contact_id; public ContactsPojo(){} public ContactsPojo(String name, String contact, String interest1, String interest2, String interest3) { this.name = name; this.contact = contact; this.interest1 = interest1; this.interest2 = interest2; this.interest3 = interest3; } public String getContact_id() { return contact_id; } public void setContact_id(String contact_id) { this.contact_id = contact_id; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getCreatedAt() { return createdAt; } public void setCreatedAt(String createdAt) { this.createdAt = createdAt; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getContact() { return contact; } public void setContact(String contact) { this.contact = contact; } public String getInterest1() { return interest1; } public void setInterest1(String interest1) { this.interest1 = interest1; } public String getInterest2() { return interest2; } public void setInterest2(String interest2) { this.interest2 = interest2; } public String getInterest3() { return interest3; } public void setInterest3(String interest3) { this.interest3 = interest3; } }
a0890ea9f87f3fc78da10382beca71732709b80a
a92b0c51e3d96dab46dac4251dbb68d1c0d49631
/app/src/main/java/ru/macdroid/timetoholliday/adapters/EventsListViewholder.java
c434c04793dc9531363f779b25c83aca0f9502a6
[]
no_license
blogsylar/TimeToHolliday
abef0154885475311db3a5a4fe518b9473cc33f4
9ff196a803756389a4a51c8dc5aac7ab6f4e3e05
refs/heads/master
2020-03-27T00:58:57.743610
2018-08-22T07:21:53
2018-08-22T07:21:53
145,671,016
0
0
null
null
null
null
UTF-8
Java
false
false
1,204
java
package ru.macdroid.timetoholliday.adapters; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.View; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import ru.macdroid.timetoholliday.R; public class EventsListViewholder extends RecyclerView.ViewHolder{ TextView eventIdAdapter, eventNameAdapter, eventDateAdapter, eventTimeAdapter, eventDateInSqlAdapter; ImageView eventPictureAdapter; LinearLayout lMain; public EventsListViewholder(@NonNull View itemView) { super(itemView); eventIdAdapter = (TextView) itemView.findViewById(R.id.eventIdAdapter); eventNameAdapter = (TextView) itemView.findViewById(R.id.eventNameAdapter); eventDateAdapter = (TextView) itemView.findViewById(R.id.eventDateAdapter); eventDateInSqlAdapter = (TextView) itemView.findViewById(R.id.eventDateInSqlAdapter); eventTimeAdapter = (TextView) itemView.findViewById(R.id.eventTimeAdapter); eventPictureAdapter = (ImageView) itemView.findViewById(R.id.eventPictureAdapter); lMain = itemView.findViewById(R.id.lMain); } }
d709f38f0dc300f7c23e043199da50be65c9168b
9d7afd61ca199faff03ba81933f7f825d618da04
/src/main/java/it/gestioneordini/dao/categoria/CategoriaDAO.java
f00d05774d403d6b9daafad119b105a2e62c8883
[]
no_license
MoinUddinHasib/GestioneOrdini
3b42873e9b2caa481bfb06b575b459ba309fd050
f68ecd72e78d474e5906863e2830ed8dd1c42e56
refs/heads/master
2023-01-11T08:54:22.345841
2020-11-16T13:00:34
2020-11-16T13:00:34
313,302,238
0
0
null
null
null
null
UTF-8
Java
false
false
354
java
package it.gestioneordini.dao.categoria; import java.util.List; import it.gestioneordini.dao.IBaseDAO; import it.gestioneordini.model.*; public interface CategoriaDAO extends IBaseDAO<Categoria>{ public List<Ordine> findAllOrdiniByCategoria(Categoria categoria) throws Exception; public int sommaTotale(Categoria categoria) throws Exception; }
9033599b5e8b905395772500386ea5066486fdac
d712481949caf7400062205f96e16d78697e74e5
/NCWITMOBILEAPP-AppEngine/src/com/ncwitmobileapp/server/TechicksmemberLocator.java
fcdaeb9597be18b4417659185c43aab68c788a75
[]
no_license
ncwitmobileapp/Application
2085ae1e8db68543d13b542916387c710a008504
c414bb62da4b62b581e783b5e53486a105ab8a7e
refs/heads/master
2021-01-10T21:19:07.200317
2012-10-28T22:15:01
2012-10-28T22:15:01
3,593,025
3
10
null
2020-10-01T09:11:57
2012-03-01T15:17:38
Java
UTF-8
Java
false
false
780
java
package com.ncwitmobileapp.server; import com.google.web.bindery.requestfactory.shared.Locator; public class TechicksmemberLocator extends Locator<Techicksmember, Void> { @Override public Techicksmember create(Class<? extends Techicksmember> clazz) { return new Techicksmember(); } @Override public Techicksmember find(Class<? extends Techicksmember> clazz, Void id) { return create(clazz); } @Override public Class<Techicksmember> getDomainType() { return Techicksmember.class; } @Override public Void getId(Techicksmember domainObject) { return null; } @Override public Class<Void> getIdType() { return Void.class; } @Override public Object getVersion(Techicksmember domainObject) { return null; } }
a5d8b1372d9c5e945ced145d77d725b72100b546
4294e40b060baaba734d535c539c259f57a7b055
/pet-clinic/pet-clinic-data/src/main/java/guru/springframework/petclinic/model/NamedEntity.java
37cd1a1426615a25d05045401a0a037b96ffb456
[]
no_license
songk1992/Spring-Framework-5-Beginner-to-Guru
662da72481919744bdefd778960abcd1e7711948
463aa689954420bf46b0e33b4010417c544065ff
refs/heads/main
2023-08-27T19:21:22.568975
2021-11-08T15:05:26
2021-11-08T15:05:26
409,848,680
0
0
null
2021-10-31T04:21:15
2021-09-24T05:56:29
Java
UTF-8
Java
false
false
581
java
package guru.springframework.petclinic.model; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import javax.persistence.Column; import javax.persistence.MappedSuperclass; @Getter @Setter @NoArgsConstructor @AllArgsConstructor @MappedSuperclass public class NamedEntity extends BaseEntity{ @Column(name = "name") private String name; public NamedEntity(Long id, String name) { super(id); this.name = name; } @Override public String toString() { return name; } }
f41044f69aa460f40463955a2e707f366dcdc879
ffd4aebc30424b6bef68c6af47bd830e9ce03a4e
/src/main/java/org/moskito/demo/burgershop/burgershopstripped/counters/OrderCounter.java
ac0b7227040cd36fbd2b8da67bb8694ede25472c
[]
no_license
JPLeoRX/moskito-demo-burgershop-spring
53ae4282061d9a8c48a0a4148718bbff1aed0b32
3be5e3bc2ff29ec0153858f4a2765840323c77a8
refs/heads/master
2021-08-29T17:22:22.096948
2017-12-14T12:50:49
2017-12-14T12:50:49
114,138,270
0
0
null
null
null
null
UTF-8
Java
false
false
239
java
package org.moskito.demo.burgershop.burgershopstripped.counters; import net.anotheria.moskito.aop.annotation.Count; @Count(category = "business", producerId = "orders") public class OrderCounter { public void orderPlaced() { } }
b78927937332ec63291c8c4692f13bfaab89176a
e50881f9f8042cb7e92c0a02770243ba36d4e404
/src/servlet/Tops.java
01e15a1ebf4c9e22a7bde78e5d442d0576ad8a15
[]
no_license
haniehtn/Web-Based_Sliding_Puzzle
5a577a91f0137c73739933050e742fb7fabddf44
9c9fe7298a139f9196793510f7842eb4ec901da9
refs/heads/main
2023-07-15T23:32:43.384606
2021-08-23T17:23:07
2021-08-23T17:44:32
399,191,709
0
0
null
null
null
null
UTF-8
Java
false
false
1,688
java
package servlet; import layer.bl.BLImpl; import layer.pl.PLException; import layer.pl.UserDataBean; import layer.pl.db.PGDBImpl; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.UUID; /** * Created by hanieh on 8/7/2017 AD. */ public class Tops extends HttpServlet{ private static String username,userData; private static UserDataBean udata; @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { doPost(req, resp); } @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { BLImpl bl=new BLImpl(new PGDBImpl()); userData=request.getParameter("userData"); udata = (UserDataBean) request.getSession().getAttribute(userData); username=request.getParameter("userName"); request.getSession().removeAttribute(userData); System.out.println(username); System.out.println(udata.getFamily()); request.setAttribute("userData",userData); request.getSession().setAttribute(userData,udata); request.setAttribute("userName",username); request.getRequestDispatcher("/TopUsers.jsp").forward(request,response); } @Override protected void service(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException { // TODO Auto-generated method stub super.service(arg0, arg1); }}
dfae111910f3b18871d79a742c384f1a074b72a1
ccb9ff4e25440bbf2f569211b781607960994794
/practica4/parte_1/Reponedor.java
13d31f027b9a812f8c19c27f1f8027a7a9533f6e
[]
no_license
rastmails/computers
df1ed154fcbe5a28d0614c09f8bc405c36d6e668
f5c09a1eb17b4946c02983cc75d0fa84a571d38c
refs/heads/master
2021-01-18T17:28:43.025174
2014-02-25T16:02:00
2014-02-25T16:02:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
790
java
package practica_4.parte_1; import java.util.Random; public class Reponedor extends Thread { private static final int TIEMPO_MAX_DURMIENDO = 20000; private static final int TIEMPO_MIN_DURMIENDO = 10000; private static final int TURNOS_DE_TRABAJO = 3; private HabitacionDeLaImpresora habitacion; public Reponedor(HabitacionDeLaImpresora habitacion){ this.habitacion = habitacion; } @Override public void run(){ while(true){ // DUERME Random r = new Random(); int tiempo_durmiendo = r.nextInt(TIEMPO_MAX_DURMIENDO - TIEMPO_MIN_DURMIENDO) + TIEMPO_MIN_DURMIENDO; try {sleep(tiempo_durmiendo);} catch (InterruptedException e) {e.printStackTrace();} // TRABAJA for (int i = 0; i < TURNOS_DE_TRABAJO; i++) { this.habitacion.reponerPapel(); } } } }
fc200c6c0904bb31fc064234b0d85c48fe42f92c
2b3577af2f8580e58176e20ee9a9d896bf84f599
/subprojects/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/artifact/FileDependencyResults.java
315457c2252a26af37620e2c2a17fa5b52307471
[ "MIT", "LGPL-2.1-only", "Apache-2.0", "CPL-1.0" ]
permissive
allanim/gradle
2200acc8c0bd543d2b53a5215e40f7bdf54f802e
db59ec1696f023753afa3311d9dc3278dc01bd70
refs/heads/master
2021-01-18T02:29:25.594703
2016-10-27T08:53:44
2016-10-27T08:53:44
72,090,245
0
0
Apache-2.0
2020-10-13T23:38:03
2016-10-27T08:59:49
Java
UTF-8
Java
false
false
1,553
java
/* * Copyright 2016 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 * * 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.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact; import org.gradle.api.artifacts.FileCollectionDependency; import org.gradle.api.file.FileCollection; import org.gradle.api.internal.artifacts.ResolvedConfigurationIdentifier; import java.util.Map; import java.util.Set; /** * Collects the file dependencies visited during graph traversal. These should be treated as dependencies, but are currently treated separately as a migration step. */ public interface FileDependencyResults { /** * Returns the direct dependencies of the root node. */ Map<FileCollectionDependency, FileCollection> getFirstLevelFiles(); /** * Returns the file dependencies, if any, attached to the given node. */ Set<FileCollection> getFiles(ResolvedConfigurationIdentifier node); /** * Returns all file dependencies seen during traversal. */ Set<FileCollection> getFiles(); }
b2a62b3e5cf35d15565100c48254478b00cdefb0
cbd39bfae9b72ea864a41b2a30fc092d6ad9a7cf
/app/src/main/java/com/example/walker/myhencoder/fragment/DrawAnimatorSetFragment.java
5cda136ee48fd096a94ec85a40d7d23808c2be3b
[]
no_license
SingleWolf/MyHenCoder
aa16c718888b567d7830d224f42cdfdf43102195
cff117511af2ef82fd10a9ef7ee85a1b6343b333
refs/heads/master
2021-06-07T22:22:28.045036
2020-01-09T06:29:25
2020-01-09T06:29:25
138,259,792
0
0
null
null
null
null
UTF-8
Java
false
false
566
java
package com.example.walker.myhencoder.fragment; import android.os.Bundle; import android.view.View; import com.example.walker.myhencoder.R; import com.example.walker.myhencoder.base.BaseFragment; public class DrawAnimatorSetFragment extends BaseFragment { @Override protected void buildView(View baseView, Bundle savedInst) { } @Override protected int getLayoutId() { return R.layout.frag_draw_animatorset; } @Override protected void bindListener() { } @Override protected void unbindListener() { } }
7b59e82a6758821a098c096d37b687bf066c3d0a
fcc7dbb13429d61145edcaef1d54ef352647a2b7
/src/Ventana.java
f56bb1de286145e04ef25cb29911c0621bd497e8
[]
no_license
valerix/EjemploventanaCalcu
9afd48c98ab9bad33168a992bfa16218f97a3408
ed5a768e464c067d35d1eb044d9e4afa460b9d1c
refs/heads/master
2021-01-04T14:07:26.294272
2013-06-13T22:47:42
2013-06-13T22:47:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
334
java
import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.JFrame; public class Ventana extends JFrame { public Ventana(){ this.setSize(500,500); this.setTitle("MI CALCULADORA"); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //this.setVisible(true); } }
[ "Valery@Valery-PC" ]
Valery@Valery-PC
2d2ed5e03f7257a42d86ba5de2978c5c5a74c96a
5d52905ba4586fae2ec957179ff6cc8bc94eff90
/ssq-ucenter/src/main/java/com/ssq/ucenter/config/DataSourceNames.java
744669df5463c5054d05db275d3e7422022bc845
[]
no_license
sunshq0503/springcloud-ssq
02f6772bd1c8a970c4a1758c61413ee818e49494
f014ea482c130499c9385e777cd829b1132d6ea9
refs/heads/master
2023-04-18T15:17:29.910518
2021-04-29T01:15:55
2021-04-29T01:15:55
330,596,543
0
0
null
null
null
null
UTF-8
Java
false
false
176
java
package com.ssq.ucenter.config; /** * 增加多数据源,在此配置 * */ public interface DataSourceNames { String FIRST = "first"; String SECOND = "second"; }
c23bb792defcefb348e47dd6619ebcb7fb7d2ae5
e0b974967eb103e16809226e8927b4bb49a531b3
/finissons_en/project-java-l2ti/Catégorie.java
03fb50c760741264079781df77f2e4b57c503873
[]
no_license
Rimao416/JavaFile
043eacef88e491095c83d15bc78a532c61d8b941
d785e36f3e4d7dad45b9107e9c8ea333ffaf50a4
refs/heads/master
2023-03-19T16:37:34.639140
2021-03-12T10:31:37
2021-03-12T10:31:37
347,027,398
0
0
null
null
null
null
UTF-8
Java
false
false
685
java
public class Catégorie { public static int ID_Categorie=0; private String LibelleCategorie; public int getID_Categorie() { return ID_Categorie; } public String getLibelleCategorie() { return LibelleCategorie; } public void setLibelleCategorie(String libelleCategorie) { LibelleCategorie = libelleCategorie; } public Catégorie(){ } public Catégorie(String libelleCategorie) { ID_Categorie++; LibelleCategorie = libelleCategorie; } @Override public String toString() { return "Categorie [ID_Categorie=" + ID_Categorie + ", LibelleCategorie=" + LibelleCategorie + "]"; } public void Affichage() { System.out.println(toString()); } }
d83f8b0511144e362f202d5e49aa223fdd78d8b3
40999abb3b0045d733f8c2aafb2af90181b40e28
/omega/omega-connector/omega-connector-grpc/src/main/java/org/apache/servicecomb/saga/omega/connector/grpc/GrpcCoordinateStreamObserver.java
20f5974baa22354e3ede8ecc2841585780ac15b1
[ "Apache-2.0" ]
permissive
ziqew/incubator-servicecomb-saga
8b155ab459c2c48e0d5afa230c8b7427e74a5e96
5d0c36187d51e1e9b3b35e1412dba56b8f205016
refs/heads/master
2020-03-28T10:28:01.150172
2018-09-05T07:32:42
2018-09-05T07:32:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,129
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.servicecomb.saga.omega.connector.grpc; import java.lang.invoke.MethodHandles; import org.apache.servicecomb.saga.omega.transaction.tcc.MessageHandler; import org.apache.servicecomb.saga.pack.contract.grpc.GrpcTccCoordinateCommand; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import io.grpc.stub.StreamObserver; public class GrpcCoordinateStreamObserver implements StreamObserver<GrpcTccCoordinateCommand> { private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); private final MessageHandler messageHandler; public GrpcCoordinateStreamObserver(MessageHandler messageHandler) { this.messageHandler = messageHandler; } @Override public void onNext(GrpcTccCoordinateCommand command) { LOG.info("Received coordinate command, global tx id: {}, local tx id: {}, call method: {}", command.getGlobalTxId(), command.getLocalTxId(), command.getMethod()); messageHandler.onReceive(command.getGlobalTxId(), command.getLocalTxId(), command.getParentTxId(), command.getMethod()); } @Override public void onError(Throwable t) { //TODO need to find a way to handle the error LOG.error("Failed to process grpc coordinate command.", t); } @Override public void onCompleted() { // Do nothing here } }
530b0f1c6aa241cf457d1bbfd8aedf279a89a9c3
294989f8ea8ad6cf1c1151be81fe12e94bc7a1cc
/AulaJava/src/br/edu/ifro/Aula.java
8dbdad5329d0f465255569b0a30984ba1c6f25da
[]
no_license
AntonyCaldas/3b-aula
8f0ee6f364521282a71391f29d65757dc17b38ac
c2263d34bdb582692d13953ba45f83064a73d1ad
refs/heads/master
2021-04-05T23:37:43.755538
2018-04-09T17:31:08
2018-04-09T17:31:08
124,588,848
0
0
null
null
null
null
UTF-8
Java
false
false
886
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package br.edu.ifro; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; /** * * @author 01543386210 */ public class Aula extends Application { @Override public void start(Stage stage) throws Exception { Parent root = FXMLLoader.load(getClass().getResource("Historico.fxml")); Scene scene = new Scene(root); stage.setScene(scene); stage.show(); } /** * @param args the command line arguments */ public static void main(String[] args) { launch(args); } }
587b5ef3aa7ae266f1612111243d0c8c511fea48
1bcaf0a34b4779d951a554d77b4fcb11f76da692
/MyApplication 3 2 2/app/src/main/java/com/example/macstudent/myapplication/tab2.java
5e056e44ef620f9d41a2869758ba77706ec42a88
[]
no_license
swathisanti/android-test1
35b27e33bf4c6417ae4c076b55d227a4fe086ad3
1ba42c714bc1b8c44c13d68adc686aaf5f1f3020
refs/heads/master
2021-01-02T22:47:16.768006
2017-08-05T00:55:35
2017-08-05T00:55:35
99,389,560
0
0
null
null
null
null
UTF-8
Java
false
false
487
java
package com.example.macstudent.myapplication; import android.support.v4.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; /** * Created by macstudent on 2017-04-22. */ public class tab2 extends Fragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.tabtwo, container, false); } }
be135f665cdb093af0e2224bca0eed28c6409f6d
c8688db388a2c5ac494447bac90d44b34fa4132c
/sources/com/google/android/gms/internal/measurement/C2915z2.java
24b293ac50f7d458784eef68c41a092f6e59a1d7
[]
no_license
mred312/apk-source
98dacfda41848e508a0c9db2c395fec1ae33afa1
d3ca7c46cb8bf701703468ddc88f25ba4fb9d975
refs/heads/master
2023-03-06T05:53:50.863721
2021-02-23T13:34:20
2021-02-23T13:34:20
341,481,669
0
0
null
null
null
null
UTF-8
Java
false
false
757
java
package com.google.android.gms.internal.measurement; /* renamed from: com.google.android.gms.internal.measurement.z2 */ /* compiled from: com.google.android.gms:play-services-measurement-base@@17.6.0 */ final class C2915z2 extends C2894w2 { /* renamed from: a */ private final C2908y2 f17551a = new C2908y2(); C2915z2() { } /* renamed from: a */ public final void mo18540a(Throwable th, Throwable th2) { if (th2 == th) { throw new IllegalArgumentException("Self suppression is not allowed.", th2); } else if (th2 != null) { this.f17551a.mo18981a(th, true).add(th2); } else { throw new NullPointerException("The suppressed exception cannot be null."); } } }
8a9c4be6892da61d628a5d20c7e10a02e6a047db
2f1b55d14b3b9884f692fd09bd351d0dd8d3451f
/app/src/main/java/com/example/a10953/blackcard/activity/Club/shootvideo/videoprevideo/TCVideoView.java
4daf6dd6ccc1497d795af38065e7fb969bc9207a
[]
no_license
banbutianya/BlackCard
0b3c6bc7c4ec2386493516450ed8a792d351767d
7cc1d2be2eedfcfcb04555b656d021a43acdb9ab
refs/heads/master
2021-08-26T07:28:30.035131
2017-11-22T08:36:23
2017-11-22T08:36:23
107,947,312
0
0
null
null
null
null
UTF-8
Java
false
false
1,360
java
package com.example.a10953.blackcard.activity.Club.shootvideo.videoprevideo; import android.content.Context; import android.os.Bundle; import android.util.AttributeSet; import com.example.a10953.blackcard.activity.Club.shootvideo.utils.TCLogView; import com.tencent.rtmp.ui.TXCloudVideoView; /** * TCVideoView在TXCloudVideoView上面叠加一个logview,用于显示sdk 内部状态及事件 */ public class TCVideoView extends TXCloudVideoView { private TCLogView mTXLogView; public TCVideoView(Context context) { this(context,null); } public TCVideoView(Context context, AttributeSet attrs) { super(context,attrs); mTXLogView = new TCLogView(context); addView(mTXLogView, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); mTXLogView.setVisibility(GONE); } //--------------------------下面的代码用于在视频浮层显示Log和事件------------------------ public void disableLog(boolean disable) { //mTXLogView.disableLog(disable); if (disable) { mTXLogView.setVisibility(GONE); } else { mTXLogView.setVisibility(VISIBLE); } } public void clearLog() { mTXLogView.clearLog(); } public void setLogText(Bundle status, Bundle event, int eventId) { mTXLogView.setLogText(status, event, eventId); } }
abebb898f8b6ce5be8ed4ba5d87852c3f6b68fd1
bfb7f40de0e6219713c0487ba3761de92834f8d1
/src/main/java/com/example/demo/interceptor/CurrentUserMethodArgumentResolver.java
3c204db71446f87184016758dad62fa89447eb41
[]
no_license
xjq9426586/spring-demo
a01b497dba07c9df4efdc846f701152ad4139e06
04aa22ae741d713fe3ef11a2bf53a5135c59add0
refs/heads/master
2022-07-15T01:29:15.926659
2020-11-09T09:46:57
2020-11-09T09:46:57
163,811,249
0
0
null
2022-06-29T17:08:40
2019-01-02T07:55:08
JavaScript
UTF-8
Java
false
false
1,165
java
package com.example.demo.interceptor; import org.springframework.core.MethodParameter; import org.springframework.web.bind.support.WebDataBinderFactory; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.context.request.RequestAttributes; import org.springframework.web.method.support.HandlerMethodArgumentResolver; import org.springframework.web.method.support.ModelAndViewContainer; /** * @Author: xujunqian * @Date: 2020/10/23 0023 09:59 * @Description: */ public class CurrentUserMethodArgumentResolver implements HandlerMethodArgumentResolver { @Override public boolean supportsParameter(MethodParameter methodParameter) { return methodParameter.getParameterType().isAssignableFrom(CurrentUser.class) && methodParameter.hasParameterAnnotation(LoginUser.class); } @Override public Object resolveArgument(MethodParameter methodParameter, ModelAndViewContainer modelAndViewContainer, NativeWebRequest nativeWebRequest, WebDataBinderFactory webDataBinderFactory) { return nativeWebRequest.getAttribute("current_user", RequestAttributes.SCOPE_REQUEST); } }
4559eb7cf17900634644a6c23f4dc52d86f75396
b59980b5180a121af7157aa75a8170242795353b
/ChessVariants/src/com/marklarwill/chessVariants/StalemateObserver.java
6c097dba979476700ce20919212818c033c1e646
[]
no_license
mjl3434/chessvariants
4eaf6abb32654c819de963d1d3bffcecd0f0f442
d51bbd41b3476bfd1a1415a2c3fa767a7697b2e5
refs/heads/master
2021-01-17T15:18:09.709477
2016-10-10T04:14:53
2016-10-10T04:14:53
25,447,432
0
0
null
null
null
null
UTF-8
Java
false
false
109
java
package com.marklarwill.chessVariants; public interface StalemateObserver { void updateStalemate(); }
88d992cb4b629306e6ec9b5845f83efdd682b11f
a14a1d50f8af170497845af7e6a8cbcee4b55e89
/documentformwork/src/com/documentformwork/model/UserRoot.java
77d7c74cf305cf780425c8c2f4e90435adb1f270
[]
no_license
wukele/seasjalor
72b1729e4dfe40898c2a5586fa63240910f0dd64
5b0aee029ff8aa39d42aa8726ac5d792c47616a8
refs/heads/master
2021-01-20T10:35:53.525378
2011-09-21T09:25:01
2011-09-21T09:25:01
33,711,645
0
0
null
null
null
null
UTF-8
Java
false
false
1,697
java
package com.documentformwork.model; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.UUID; public class UserRoot { private String name; private String password; private List<Module> modules; public List<Module> getModules() { return modules; } public void setModule(List<Module> modules) { this.modules = modules; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public void addModule(Module module) { if (this.modules == null) { this.modules = new LinkedList<Module>(); } this.modules.add(module); } /** * 创建系统管理模块树 * @return */ public TreeNode createModuleTree() { if (this.modules != null) { List<TreeData> list = new LinkedList<TreeData>(); TreeData root = new TreeData(); root.setId("root"); root.setText("管理功能"); root.setParentId("--"); list.add(root); Iterator<Module> localIterator = this.modules.iterator(); while (localIterator.hasNext()) { Module m = localIterator.next(); TreeData data = new TreeData(); data.setIcon(m.getIcon()); data.setText(m.getName()); data.setUrl(m.getUrl()); data.setParentId("root"); data.setId(UUID.randomUUID().toString()); System.out.println(UUID.randomUUID().toString()); list.add(data); if (!(localIterator.hasNext())) { return new TreeModel(list).mergeTree("root"); } } } return null; } }
[ "[email protected]@7e1240fc-ebe8-11de-a75d-bbceaaa5444e" ]
[email protected]@7e1240fc-ebe8-11de-a75d-bbceaaa5444e
6126570c66deba648c602d302e585d9d424f6162
d5d380f811691aff2f4eefe0149f60c6aeb27e0d
/Projects and Exercises/exercise/exercise3/Exercise40_02RegisterWithRMIServer.java
7be1794e46a5ccf2f7d35bfbfaa400df2ec1f649
[]
no_license
cloudylc/Introduction-to-Java-Programming-and-Data-Structures-Comprehensive-Version-Eleventh-Edition
9d8ad6629b90a898bb633a5b623d9daa0413fcc4
0e900b204811c5fa9e11dc13dee46835c3bf98ac
refs/heads/master
2022-11-08T05:44:37.187087
2020-06-27T05:51:01
2020-06-27T05:51:01
286,211,641
1
2
null
2020-08-09T10:06:37
2020-08-09T10:06:36
null
UTF-8
Java
false
false
870
java
/** * Instructions on how to run this exercise: * 1. Step RMI registry from the class directory for this exercise * C:\exercise>start rmiregistry * 2. Register Server with RMIRegistry * C:\exercise>start java Exercise40_02RegisterWithRMIServer * 3. Run a client (multiple times) * C:\exercise>start java Exercise40_02RemoteInterfaceClient */ import java.rmi.registry.*; public class Exercise40_02RegisterWithRMIServer { /** Main method */ public static void main(String[] args) { try { Exercise40_02RemoteInterface obj = new Exercise40_02RemoteInterfaceImpl(); Registry registry = LocateRegistry.getRegistry(); registry.rebind("Exercise40_02RemoteInterfaceImpl", obj); System.out.println("Exercise42_02 RMI server " + obj + " registered"); } catch (Exception ex) { ex.printStackTrace(); } } }
dcf0702430e28e90726b88eb575a06988346f314
ca0488f9216836b89032f0c78f76507d85ddb45a
/app/src/main/java/com/coolweather/android/activitys/MainActivity.java
e061e846c48a0a5ff4a8df0bb139349f64bb4c5b
[ "Apache-2.0" ]
permissive
wangtinghao1998/coolweather
f55d4a8cbf337b335b04486ee3fc04f2d39e58f3
82081aca439a36d102d10aa8329cc187d1dd395f
refs/heads/master
2020-06-25T01:19:57.395963
2020-04-07T04:09:31
2020-04-07T04:09:31
199,151,775
1
0
null
null
null
null
UTF-8
Java
false
false
796
java
package com.coolweather.android.activitys; import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.coolweather.android.R; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this); if(sharedPreferences.getString("weather",null)!=null){ Intent intent = new Intent(this,WeatherActivity.class); startActivity(intent); finish(); } } }
f02fc3163c5899fa6e66e54d9824c2f9fee57b25
057dcf47ca228471e7d236605b9be6593880a068
/src/java/ModelClass/Emergency.java
6121e35072f4872d84b3d1f9d60f5848c55f7e32
[]
no_license
GlitchBox/Tour-Planner
1cfd13378227a5ce0556c2726c005e2196f81295
bd58b4a6250c7a6b9108144084b8eea70a9db888
refs/heads/master
2021-09-06T17:37:58.576486
2018-02-09T05:12:10
2018-02-09T05:12:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,080
java
package ModelClass; import java.io.Serializable; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import javax.faces.bean.ManagedBean; import javax.faces.bean.RequestScoped; import java.util.Date; import java.util.HashMap; import java.util.Map; import javax.annotation.PostConstruct; @ManagedBean(name = "Emergency") @RequestScoped public class Emergency implements Serializable { private int EMERGENCY_ID; private int REGION_ID; private String EMERGENCY_NAME; private String KIND; private String HOUSE_NO; private String ROAD_NO; private String AREA_NAME; private String DISTRICT; private String CONTACT_INFO; private String REGION_NAME; private Map<String, String> kinds; private final DBConnection dbconnection = new DBConnection(); @PostConstruct public void init() { kinds = new HashMap<String, String>(); kinds.put("FIRE SERVICE", "FIRE SERVICE"); kinds.put("POLICE", "POLICE"); kinds.put("HOSPITAL", "HOSPITAL"); kinds.put("AMBULANCE", "AMBULANCE"); } public void onKindChange() { System.out.println(KIND); } public Map<String, String> getKinds() { return kinds; } public void setKinds(Map<String, String> kinds) { this.kinds = kinds; } public String getREGION_NAME() { return REGION_NAME; } public void setREGION_NAME(String REGION_NAME) { this.REGION_NAME = REGION_NAME; } public String getEMERGENCY_NAME() { return EMERGENCY_NAME; } public void setEMERGENCY_NAME(String NAME) { this.EMERGENCY_NAME = NAME; } public int getEMERGENCY_ID() { return EMERGENCY_ID; } public void setEMERGENCY_ID(int EMERGENCY_ID) { this.EMERGENCY_ID = EMERGENCY_ID; } public int getREGION_ID() { return REGION_ID; } public void setREGION_ID(int REGION_ID) { this.REGION_ID = REGION_ID; } public String getKIND() { return KIND; } public void setKIND(String KIND) { this.KIND = KIND; } public String getHOUSE_NO() { return HOUSE_NO; } public void setHOUSE_NO(String HOUSE_NO) { this.HOUSE_NO = HOUSE_NO; } public String getROAD_NO() { return ROAD_NO; } public void setROAD_NO(String ROAD_NO) { this.ROAD_NO = ROAD_NO; } public String getAREA_NAME() { return AREA_NAME; } public void setAREA_NAME(String AREA_NAME) { this.AREA_NAME = AREA_NAME; } public String getDISTRICT() { return DISTRICT; } public void setDISTRICT(String DISTRICT) { this.DISTRICT = DISTRICT; } public String getCONTACT_INFO() { return CONTACT_INFO; } public void setCONTACT_INFO(String CONTACT_INFO) { this.CONTACT_INFO = CONTACT_INFO; } public void insert() throws SQLException { Statement stmt = null,stmt2 = null; Connection con = null; ResultSet rs = null,rs1 = null; DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); String dbURL2 = "jdbc:oracle:thin:@localhost:1521:orcl"; con = DriverManager.getConnection(dbURL2, dbconnection.user, dbconnection.password); if (con!= null) { stmt = con.createStatement(); stmt2 = con.createStatement(); try { rs = stmt.executeQuery("SELECT * FROM EMERGENCY_SERVICES WHERE EMERGENCY_NAME = '"+getEMERGENCY_NAME()+"'"); if(!rs.next()) { rs1 = stmt2.executeQuery("SELECT REGION_ID FROM REGION WHERE REGION_NAME ='"+getREGION_NAME()+"'"); if(rs1.next()){ setREGION_ID(rs1.getInt(1)); System.out.print(getREGION_NAME()+" "+getREGION_ID()); // //rs1 = stmt2.executeQuery("SELECT REGION_ID FROM REGION WHERE REGION_NAME ='"+getREGION_NAME()+"'"); String query = "INSERT INTO EMERGENCY_SERVICES(EMERGENCY_ID,REGION_ID,KIND," + "HOUSE_NO,ROAD_NO,AREA_NAME,DISTRICT,EMERGENCY_NAME,CONTACT_INFO)" + "VALUES(EMERGENCY_ID_VAL.NEXTVAL" +","+getREGION_ID()+",'"+getKIND()+"','"+getHOUSE_NO()+"','"+getROAD_NO()+"','" +getAREA_NAME()+"','"+getDISTRICT()+"','"+getEMERGENCY_NAME()+"','"+getCONTACT_INFO() +"')"; System.out.print(query); stmt.executeUpdate(query); } } else { //UPDATE ENTRY } } catch(SQLException e) { System.out.println("No data found while inserting"); } finally { try { con.close(); stmt.close(); } catch(SQLException e) { System.out.println(e); } } } } public void delete() throws SQLException { Statement stmt = null; Connection con = null; DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); String dbURL2 = "jdbc:oracle:thin:@localhost:1521:orcl"; con = DriverManager.getConnection(dbURL2, dbconnection.user, dbconnection.password); System.out.print("In delete function EMERGENCY"); if (con!= null) { System.out.println("Connected with connection #2"); stmt = con.createStatement(); try { String sql = "DELETE FROM EMERGENCY_SERVICES WHERE EMERGENCY_NAME = '"+getEMERGENCY_NAME() +"' AND ROAD_NO='"+getROAD_NO()+"' AND AREA_NAME ='"+getAREA_NAME()+"' AND DISTRICT='" +getDISTRICT()+"'"; System.out.print(sql); stmt.executeUpdate(sql); System.out.print("After deletion function EMERGENCY"); } catch(SQLException e) { System.out.println("No data found during deletion"); } finally { try { con.close(); stmt.close(); } catch(SQLException e) { System.out.println(e); } } } } }
[ "Asus@Zami-PC" ]
Asus@Zami-PC
16772bb1a86d73e9856ab7e0d7c1c9921799765f
22396b2e711f96d21636519efd2b7cc4f72f93ed
/KadabraAPI/src/autotuner/configs/knobs/tuples/linear/Linear5D.java
637232b1e6813f4f833fd7c28bc782fd2e049eea
[ "Apache-2.0" ]
permissive
specs-feup/kadabra
44efa670ff020409a7819c5f835ea0ae3f8f9e96
a4aa20d607b5f71583a9f9ff670f120455372a2d
refs/heads/master
2023-08-31T12:00:42.472690
2023-07-22T16:43:36
2023-07-22T16:43:36
194,742,059
4
1
Apache-2.0
2023-08-21T22:07:14
2019-07-01T20:57:44
Java
UTF-8
Java
false
false
3,431
java
/** * Copyright 2017 SPeCS. * * 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. under the License. */ package autotuner.configs.knobs.tuples.linear; import org.javatuples.Quintet; import autotuner.configs.knobs.number.ranged.RangedKnob; public class Linear5D<A extends Number, B extends Number, C extends Number, D extends Number, E extends Number> extends LinearInc<Quintet<A, B, C, D, E>> { private RangedKnob<A> aRange; private RangedKnob<B> bRange; private RangedKnob<C> cRange; private RangedKnob<D> dRange; private RangedKnob<E> eRange; public Linear5D(RangedKnob<A> aRange, RangedKnob<B> bRange, RangedKnob<C> cRange, RangedKnob<D> dRange, RangedKnob<E> eRange) { this.aRange = aRange; this.bRange = bRange; this.cRange = cRange; this.dRange = dRange; this.eRange = eRange; add(aRange); add(bRange); add(cRange); add(dRange); add(eRange); } @Override public Quintet<A, B, C, D, E> next() { return Quintet.with(aRange.getValue(), bRange.getValue(), cRange.getValue(), dRange.getValue(), eRange.getValue()); } @Override public Quintet<A, B, C, D, E> getFirst() { return next(); } @Override public void setFirst(Quintet<A, B, C, D, E> t) { // prepare all knobs aRange.setValue(t.getValue0()); bRange.setValue(t.getValue1()); cRange.setValue(t.getValue2()); dRange.setValue(t.getValue3()); eRange.setValue(t.getValue4()); } // @Override // public boolean hasNext(Quintet<A, B, C, D, E> reference) { // // A a; // B b; // C c; // D d; // E e; // if (!aRange.inc()) { // if (!bRange.inc()) { // if (!cRange.inc()) { // if (!dRange.inc()) { // if (!eRange.inc()) { // return false; // } else { // a = reference.getValue0(); // b = reference.getValue1(); // c = reference.getValue2(); // d = reference.getValue3(); // e = eRange.getValue(); // } // } else { // a = reference.getValue0(); // b = reference.getValue1(); // c = reference.getValue2(); // d = dRange.getValue(); // e = reference.getValue4(); // } // } else { // a = reference.getValue0(); // b = reference.getValue1(); // c = cRange.getValue(); // d = reference.getValue3(); // e = reference.getValue4(); // } // // } else { // a = reference.getValue0(); // b = bRange.getValue(); // c = reference.getValue2(); // d = reference.getValue3(); // e = reference.getValue4(); // } // } else { // a = aRange.getValue(); // b = reference.getValue1(); // c = reference.getValue2(); // d = reference.getValue3(); // e = reference.getValue4(); // } // this.next = Quintet.with(a, b, c, d, e); // return true; // } }
9fab0a7aa45a28febf8d32c5dd61376bf8d6ba73
65af3e509b0f1977c4a95835460117df45a001dd
/app/src/main/java/anticlimacticteleservices/sic/JavascriptWebviewInterface.java
117bf4728524776ae8613e5aca0c9c70a3c5990b
[ "LicenseRef-scancode-public-domain" ]
permissive
dhk2/sic
aab62caa339e89c7d9bc6654197957ee78e5cfae
0eac7c351468d53e668d924a79645ac2fee50699
refs/heads/master
2020-06-19T15:50:59.127007
2019-12-05T19:39:48
2019-12-05T19:39:48
196,769,783
2
0
null
null
null
null
UTF-8
Java
false
false
1,559
java
package anticlimacticteleservices.sic; import android.content.Context; import android.os.Build; import android.webkit.JavascriptInterface; import android.widget.Toast; public class JavascriptWebviewInterface { Context mContext; // Instantiate the interface and set the context JavascriptWebviewInterface(Context c) { mContext = c; } // Show a toast from the web page @JavascriptInterface public void showToast(String toast) { Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show(); } @JavascriptInterface public void timeRemaining(Long timeRemaining, Long videoID){ System.out.println("video "+Long.toString(videoID)+" finished in:"+Long.toString(timeRemaining)); } @JavascriptInterface public void bytesDownloaded(Long bytes, Long videoID){ System.out.println("video "+Long.toString(videoID)+" so far downloaded:"+Long.toString(bytes)); } @JavascriptInterface public void bytesUploaded(Long bytes, Long videoID){ System.out.println("video "+Long.toString(videoID)+" so far uploaded:"+Long.toString(bytes)); } @JavascriptInterface public void peers(int peers, Long videoID){ System.out.println("video "+Long.toString(videoID)+" peers:"+Long.toString(peers)); } @JavascriptInterface public void path(String path, Long videoID){ System.out.println("video "+Long.toString(videoID)+" peers:"+path); } @JavascriptInterface public void debug(String g){ System.out.println("debugL "+g); } }
33d446257cdb768efaf0dfad61075882dd1d6466
830c1c8935fcbc97f5b9eeee29a0dd39d89767b9
/main/java/database/GameListener.java
d6e8097881170b6083b6ba4f58b68f287f5ac8b6
[]
no_license
rayyan808/asteroids
d33e1a3988682bf0ffb4d3d9c0a24a21d0a45fbf
acecd7e761f760e3954916e436527ecdb00cd08c
refs/heads/master
2022-11-19T00:35:50.589047
2020-07-20T13:46:10
2020-07-20T13:46:10
281,127,879
0
0
null
null
null
null
UTF-8
Java
false
false
787
java
package database; import aoop.asteroids.Asteroids; import aoop.asteroids.game_observer.GameDeathListener; import aoop.asteroids.model.Spaceship; public class GameListener implements GameDeathListener { Player player; AsteroidsDAO data; Spaceship spaceship; public GameListener(Spaceship spaceship, AsteroidsDAO ast){ this.data = ast; this.spaceship=spaceship; player = new Player(); } @Override public void onGameEnded() { player.setUsername(spaceship.getUsername()); player.setScore(spaceship.getScore()); data.openDataSource(); data.addPlayer(player); data.closeDataSource(); } @Override public void onGameStart() { //Do nothing } }
8e62c0acb4818196533a1452967f9ed1d42bc67e
58c072a6b0396d7c797ae235b2a796648976b66f
/Lab13_김지원_1711412/VibratingFrame.java
264e6ecc7dce9593a70bac8760e7007ba32c9cd6
[]
no_license
annie1004619/Java
a3ca1036b6638bbcaa414f595b6fd28aeb9cc97e
388900da9566290d4b3f502619b04cadf5923c3b
refs/heads/master
2022-12-10T13:40:30.655662
2020-09-07T08:54:44
2020-09-07T08:54:44
293,473,761
0
0
null
null
null
null
UTF-8
Java
false
false
1,559
java
import java.awt.Component; import java.util.Random; import javax.swing.JFrame; public class VibratingFrame extends JFrame { public VibratingFrame() { // title 설정 super("1711412 김지원-VibratingFrame"); // default close operation 설정 setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // 창 size 400, 200 setSize(400,200); // visible 설정 setVisible(true); // 창 location 100, 100 으로 설정 setLocation(100,100); // VibratingThread 생성자 호출 : param : this + start() VibratingThread vthread = new VibratingThread(this); vthread.start(); } public static void main(String[] args) { new VibratingFrame(); } } class VibratingThread extends Thread { private Component comp; public VibratingThread(Component comp) { this.comp = comp; } @Override public void run() { // Random 객체 생성 Random random = new Random(); // component 의 x, y 좌표 받아오기 int x = comp.getX(); int y = comp.getY(); while(true) { try { Thread.sleep(10); } catch(InterruptedException e) { return; } // 방향 결정하기 random.nextBoolean() true ? 1, false : -1 int direct = random.nextBoolean()? 1: -1; // newX = x + 방향 * random(0~4) int newX = x+ (direct)*random.nextInt(5); // 방향 결정하기 random.nextBoolean() true ? 1, false : -1 int direct2 = random.nextBoolean()? 1: -1; // newY = y + 방향 * random(0~4) int newY = y+ (direct2)*random.nextInt(5); // component 방향 결정 (newX, newY) comp.setLocation(newX,newY); } } }
bfdbe88e1b62f0a7ec27a46a797c30e51b78508a
e0f8d62a6ae22a8119db404d8b298ea2ea81490c
/order/src/main/java/com/learn/order/rest/api/OrderController.java
a7f4cf9aba85b3a0243370aebc5b9ae9af124700
[]
no_license
clockworm/spring-cloud-demo
225d9ce8a998dfb4913e15ffd470897a73557496
446cdbeb3ee85d5fa45f55a71652c7264ea04168
refs/heads/master
2020-03-18T08:57:21.556157
2018-05-26T10:38:55
2018-05-26T10:38:55
134,537,019
0
0
null
null
null
null
UTF-8
Java
false
false
1,736
java
package com.learn.order.rest.api; import java.util.HashMap; import java.util.Map; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.CollectionUtils; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.learn.order.converter.OrderForm2OrderDTO; import com.learn.order.dto.OrderDTO; import com.learn.order.dto.ResultDTO; import com.learn.order.enums.ResultEnum; import com.learn.order.exception.OrderException; import com.learn.order.rest.form.OrderForm; import com.learn.order.service.OrderService; import com.learn.order.util.ResultDTOUtil; import lombok.extern.slf4j.Slf4j; @RestController @RequestMapping("order") @Slf4j public class OrderController { @Autowired private OrderService orderService; @PostMapping("create") public ResultDTO<?> create(@Valid OrderForm orderForm, BindingResult bindingResult) { if (bindingResult.hasErrors()) { log.error("请求创建订单 参数校验错误:", orderForm); throw new OrderException(ResultEnum.PARAM_ERROR.getCode(),bindingResult.getFieldError().getDefaultMessage()); } OrderDTO orderDTO = OrderForm2OrderDTO.convert(orderForm); if(CollectionUtils.isEmpty(orderDTO.getDetailList())) { log.error("创建订单异常,购物车为空 orderForm:{}",orderForm); throw new OrderException(ResultEnum.CAR_ERROR); } OrderDTO dto = orderService.create(orderDTO); Map<String,String> map = new HashMap<>(); map.put("orderId", dto.getOrderId()); return ResultDTOUtil.success(map); } }
3e64a2f0e0a0487a42cad8f94e6c442750156bcf
c8fb877deabb3d901f04728179e8ba15003e205e
/Splatoon/src/de/dodori/splatoonPlugin/Main.java
0e8440a9902cb459cd3397cfc805e62fc9424c9b
[]
no_license
TestingDC/Splatoon
79a4e15bc4197315a3ecdcd2d7c4ee1218acf6c8
488a9f85d65f479e884cc40b2a01baf2cf170de0
refs/heads/master
2020-12-03T00:14:13.737737
2017-07-02T05:53:45
2017-07-02T05:53:45
96,002,900
0
0
null
null
null
null
UTF-8
Java
false
false
1,157
java
package de.dodori.splatoonPlugin; import org.bukkit.event.Listener; import org.bukkit.plugin.java.JavaPlugin; public class Main extends JavaPlugin implements Listener { String pluginName = "splatoonPlugin"; String pluginCoder = "dodori"; double version = 1.0; public void onEnable() { getLogger().info(this.pluginName + " v. " + this.version + " initialized."); getLogger().info(this.pluginName + "v. " + this.version + " made by " + this.pluginCoder); getServer().getPluginManager().registerEvents(this, this); getServer().getPluginManager().registerEvents(new DyeBlock(), this); getServer().getPluginManager().registerEvents(new InkShooter(), this); getServer().getPluginManager().registerEvents(new BulletBehaviour(), this); getServer().getPluginManager().registerEvents(new InkGrenade(), this); getServer().getPluginManager().registerEvents(new InkCheck(), this); getServer().getPluginManager().registerEvents(new InkShotgun(), this); getServer().getPluginManager().registerEvents(new BulletPVPBehaviour(), this); } public void onDisable() { getLogger().info(this.pluginName + " v. " + this.version + " disabled."); } }
870872649841c8712d47044f8a339586f3061701
1443b28f586a44e4bd0b421f9dd24acd42ecb4cb
/app/src/main/java/com/example/pratheesh/madfest_sample/ImageData.java
15bc8f7d3b768558d1a9f3cee189194ea0f41bbd
[]
no_license
TestLeaf-Deepak/Mad_fest
71f5a2b69cab12318886959e6fff9772ce412106
583a4186fd28f044168a78296b8e9397e62f3f84
refs/heads/master
2021-01-21T18:53:16.473575
2017-05-22T18:57:45
2017-05-22T18:57:45
92,090,951
0
0
null
null
null
null
UTF-8
Java
false
false
1,109
java
package com.example.pratheesh.madfest_sample; /** * Created by pratheesh on 11/17/2016. */ public class ImageData { private String imageurl; private String imagetimestamp; private String imagedetails; private String imageid; public ImageData(String u1,String t1,String d1,String i1) { this.imageurl=u1; this.imagetimestamp=t1; this.imagedetails=d1; this.imageid=i1; } public String getImagetimestamp() { return imagetimestamp; } public void setImagetimestamp(String imagetimestamp) { this.imagetimestamp = imagetimestamp; } public String getImagedetails() { return imagedetails; } public void setImagedetails(String imagedetails) { this.imagedetails = imagedetails; } public String getImageid() { return imageid; } public void setImageid(String imageid) { this.imageid = imageid; } public String getImageurl() { return imageurl; } public void setImageurl(String imageurl) { this.imageurl = imageurl; } }
3f1bc5994937f62b3446b4552969a2681c4ef787
1c263bf21233a3d37b0f2ca7473bc5de71306fd7
/src/com/skilldistillery/jets/CargoPlane.java
65fe8edb378ce9fbded55fde4b08cd18778ae90f
[]
no_license
markmahowald/JetsProject
28a0242458f364220dc0184d9fb4969414492ca3
b05d1cdf850e08a160cdf89299d3dc3475587f63
refs/heads/master
2020-04-17T09:58:47.690533
2019-05-01T03:08:40
2019-05-01T03:08:40
166,482,577
0
0
null
null
null
null
UTF-8
Java
false
false
556
java
package com.skilldistillery.jets; public class CargoPlane extends Jet { public CargoPlane(String model, double speed, int range, long price, Pilot pilot) { super(model, speed, range, price, pilot); this.setSpeed(speed); this.setModel(model); this.setPilot(pilot); this.setPrice(price); this.setRange(range); } public CargoPlane(String model, double speed, int range, long price) { super(model, speed, range, price); } public void loadCargo() { System.out.println(this.getModel()+" reporting cargo loaded sir. Ready to fly."); } }
681c8234805cf181ceabe9d11b1ade5cf7b1541e
83199e6dde9217dcfcae5b6ec1a19f3081595949
/JavaTestMahesh/src/com/mahesh/stringHandelling/StartsWith.java
7691c0109c6f72e43e6fa50c14ddb5dafed446f3
[]
no_license
bindurajendra/JavaSoftgen2nd
2818be68b67a79b7ad0e2aeb87c2b51d66d26cc8
45ad7d280701bb683da0b199a500293c18e0c5c1
refs/heads/master
2021-01-19T13:36:50.061168
2016-10-23T07:37:14
2016-10-23T07:37:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
275
java
package com.mahesh.stringHandelling; public class StartsWith { public static void main(String[] args) { String str = "softgen"; System.out.println(str.startsWith("gen",2)); System.out.println(str.startsWith("sof")); System.out.println(str.endsWith("gen")); } }
bd8d5499c9e4d572dd40a4b8764dd205c2e02725
cf02b038935a6dd88fe518fc4125470ec83a16af
/Week_03/105.Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal.java
47e7493708989f0afbf4db31793cbd2fdecd825a
[]
no_license
huangpan2507/algorithm022
9db9ac52f2bac8a970bc254bc194115add1cc958
16d3cd96cff4cf596f2788993604cd481f8b0432
refs/heads/main
2023-03-08T11:35:44.758602
2021-02-21T12:41:24
2021-02-21T12:41:24
326,187,937
0
0
null
2021-01-02T13:24:22
2021-01-02T13:24:21
null
UTF-8
Java
false
false
1,581
java
/* * @lc app=leetcode.cn id=105 lang=java * * [105] 从前序与中序遍历序列构造二叉树 */ // @lc code=start /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ class Solution { private TreeNode dfs(int[] p, int[] i, int ps, int pe, int is, int ie, Map<Integer, Integer> map) { if(ps >= pe || is >=ie) { // 判断遍历数组是否为空 return null; } TreeNode root = new TreeNode(p[ps]); // 从前序数组中找到根节点的值并构建根节点 int index = map.get(root.val); // 从中序中获取根节点的下标位置 root.left = dfs(p, i, ps + 1, index - is + ps, is, index - 1, map); // 遍历左子树,先序与中序数组一同确认左子树起始与结束位置 root.right = dfs(p, i, index - is + ps + 1, pe, index + 1, ie, map); return root; } public TreeNode buildTree(int[] preorder, int[] inorder) { Map<Integer, Integer> map = new HashMap<>(); for(int i = 0; i < inorder.length; i++) { // 用map省得每次都要重新查找根节点位置 map.put(inorder[i], i); } return dfs(preorder, inorder, 0, preorder.length - 1, 0, inorder.length - 1, map); } } // @lc code=end
12485213f5cb4fdd37d98f33931909df34f4e7f4
2963c830cef408af6af5e3b5bdb55bbd934a65fa
/src/main/java/com/cos/costagram/model/Image.java
364552684c0dc5c0098dfe6dd4b5aef9222dfdc8
[]
no_license
SEOK8561/project_costagram
3c4bff2cdfeaaae03b09e1dbbc96734a2494971c
82cef79c73565e82f74fda984becc092041975f4
refs/heads/master
2020-05-25T18:36:00.610870
2019-05-31T00:29:34
2019-05-31T00:29:34
187,932,681
0
0
null
null
null
null
UTF-8
Java
false
false
1,960
java
package com.cos.costagram.model; import java.time.LocalDate; import java.util.ArrayList; import java.util.List; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Transient; import org.hibernate.annotations.CreationTimestamp; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonManagedReference; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; @Data @Entity @NoArgsConstructor @AllArgsConstructor @Builder public class Image implements Comparable<Image>{ @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; private String location; private String caption; private String mimeType; private String fileName; private String filePath; @ManyToOne @JoinColumn(name="userId") @JsonIgnoreProperties({"password"}) private User user; //cascade = CascadeType.PERSIST 영속성 전이 (FK를 들고 있지 않아도 save가능) //@OneToMany(mappedBy = "image", cascade = CascadeType.PERSIST) @OneToMany(mappedBy = "image") @JsonManagedReference @Builder.Default private List<Tag> tags = new ArrayList<>(); @OneToMany(mappedBy = "image") @JsonManagedReference @Builder.Default private List<Likes> likes = new ArrayList<>(); @CreationTimestamp private LocalDate createDate; @CreationTimestamp private LocalDate updateDate; @Transient private int likeCount; @Override public int compareTo(Image o) { long time1 = Integer.parseInt(this.createDate.toString().replaceAll("-", "")); long time2 = Integer.parseInt(o.getCreateDate().toString().replaceAll("-", "")); if(time1 < time2) { return -1; }else if(time1 > time2) { return 1; } return 0; } }
e3d77ce0a37eb9c91a4900854f9dd6d2d24436bd
d11c32bb53987c9ec1066922239653c8c10d855a
/src/vn/toancauxanh/gg/model/enums/NhomGopY.java
3f304de34ab0b5f381cc0c2c172d1ec14d45c3ea
[]
no_license
vanphuoc369/gjApp
1b293bf7abd482f861e85c28ba5a04e565acfe1a
0313d990e10c0b591fff8ccba49025027e2d7f1e
refs/heads/master
2020-04-11T01:37:49.141793
2018-12-12T02:41:17
2018-12-12T02:41:17
161,421,159
1
0
null
null
null
null
UTF-8
Java
false
false
303
java
package vn.toancauxanh.gg.model.enums; public enum NhomGopY { NHOM_GYHDND("Góp ý cho Hội đồng nhân dân"), NHOM_GYĐB("Góp ý cho Đại biểu"), NHOM_GYKHAC("Góp ý khác"); String text; NhomGopY(final String txt){ text = txt; } public String getText(){ return text; } }
[ "vanphuoc369" ]
vanphuoc369
5efedc475b10d4da2d5ebe318b74b7ca1db38be0
244bd7c3f4a65c209cea98e6a4b0ec08a1618d2e
/ast/MyString.java
9efb12ce07e800b2996731cb7f80feaaa65a1bd4
[]
no_license
bmart36/Java_compiler
9596018cb861c7f6125d342605887cc07a61939f
cebd68e4e880b678a27525e0cd0594b6441406cd
refs/heads/master
2021-08-29T19:44:30.227032
2017-12-14T20:18:26
2017-12-14T20:18:26
114,292,502
0
0
null
null
null
null
UTF-8
Java
false
false
212
java
package ast; import visitor.*; public class MyString extends Exp { public String val_; public MyString(String val) { val_ = val; } public Object accept(TreeVisitor t) { return t.visit(this); } }
a55c25f7602400566f30829d1b9af8add79d18e0
1a821d8663e741c5a1feebfe9945eab44b606f3c
/springBoot-8/src/main/java/com/project/springBoot/entity/SysRole.java
167ca6af4239b25336f16bedaf3bb6fee7262989
[]
no_license
maytakeer/springboot
7a8d6b271134e5a2f4a77b5cfa2e9dffe9ef6bdf
5d949da46c0b512fcd6d5771e8436349fa8b8a66
refs/heads/master
2020-04-13T07:48:40.769324
2019-01-17T10:02:12
2019-01-17T10:02:12
163,063,072
2
0
null
null
null
null
UTF-8
Java
false
false
1,984
java
package com.project.springBoot.entity; import java.util.List; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.JoinTable; import javax.persistence.ManyToMany; @Entity public class SysRole { @Id @GeneratedValue private Integer id;//编号 private String role;//角色标志程序中判断使用,如“admin”,这个是唯一的 private String description;//角色描述,UI界面显示使用 private Boolean available = Boolean.FALSE;//是否可用,如果不可用将不会添加给用户 //角色--权限关系:多对多关系 @ManyToMany(fetch=FetchType.EAGER) @JoinTable(name="SysRolePermission",joinColumns={@JoinColumn(name="roleId")},inverseJoinColumns={@JoinColumn(name="permissionId")}) private List<SysPermission> permissions; // 用户 - 角色关系定义; @ManyToMany @JoinTable(name="SysUserRole",joinColumns={@JoinColumn(name="roleId")},inverseJoinColumns={@JoinColumn(name="uid")}) private List<UserInfo> userInfos;// 一个角色对应多个用户 public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getRole() { return role; } public void setRole(String role) { this.role = role; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Boolean getAvailable() { return available; } public void setAvailable(Boolean available) { this.available = available; } public List<SysPermission> getPermissions() { return permissions; } public void setPermissions(List<SysPermission> permissions) { this.permissions = permissions; } public List<UserInfo> getUserInfos() { return userInfos; } public void setUserInfos(List<UserInfo> userInfos) { this.userInfos = userInfos; } }
997e5d21ecb3936be92747e3196f62194945f5f0
e23e9564defbf2a333eaa2c27e5c3469f32d26ef
/dynamodb-spring-data/src/test/java/net/shyshkin/study/dynamodbspringdata/repository/ProductInfoRepositoryTest.java
97a824047ad1378ca015b22e7b954e6c908edaff
[]
no_license
Krishnamurtyp/aws-certified-developer-associate
ea4da4a51443b49a5d70f6d889e7518f88aaa244
71b11d1dc212cdf85ccec53a5ce4fc03261dc749
refs/heads/main
2023-02-23T03:40:57.311783
2021-01-27T15:45:55
2021-01-27T15:45:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,452
java
package net.shyshkin.study.dynamodbspringdata.repository; import com.amazonaws.services.dynamodbv2.AmazonDynamoDB; import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper; import com.amazonaws.services.dynamodbv2.model.CreateTableRequest; import com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput; import net.shyshkin.study.dynamodbspringdata.extensions.DynamoDBServer; import net.shyshkin.study.dynamodbspringdata.model.ProductInfo; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.TestPropertySource; import java.util.List; import static org.assertj.core.api.Assertions.assertThat; @SpringBootTest @ExtendWith(DynamoDBServer.class) @TestPropertySource(properties = { "amazon.dynamodb.endpoint=http://localhost:8000/", "amazon.aws.accesskey=test1", "amazon.aws.secretkey=test231"}) @ActiveProfiles("test") class ProductInfoRepositoryTest { private DynamoDBMapper dynamoDBMapper; @Autowired private AmazonDynamoDB amazonDynamoDB; @Autowired ProductInfoRepository repository; private static final String EXPECTED_COST = "20"; private static final String EXPECTED_PRICE = "50"; @BeforeEach void setUp() { dynamoDBMapper = new DynamoDBMapper(amazonDynamoDB); CreateTableRequest tableRequest = dynamoDBMapper .generateCreateTableRequest(ProductInfo.class); tableRequest.setProvisionedThroughput( new ProvisionedThroughput(1L, 1L)); amazonDynamoDB.createTable(tableRequest); //... dynamoDBMapper.batchDelete( (List<ProductInfo>) repository.findAll()); } @Test public void givenItemWithExpectedCost_whenRunFindAll_thenItemIsFound() { ProductInfo productInfo = ProductInfo .builder() .cost(EXPECTED_COST) .msrp(EXPECTED_PRICE) .build(); repository.save(productInfo); List<ProductInfo> result = (List<ProductInfo>) repository.findAll(); assertThat(result.size()).isGreaterThan(0); assertThat(result.get(0).getCost()).isEqualTo(EXPECTED_COST); } }
6a2a5637387df67f6bd7eab42966615bc323e2a5
2d666482da5e0ceb978f78033498950def8c8ac7
/app/src/main/java/de/michiruf/scalor/capture/monitor/Monitor.java
08af804e4e3d2d3cbb8d839ae0be34aef2424684
[ "Apache-2.0" ]
permissive
dtbinh/Scal0r
a03972f53f28eae0e84ad55169cb5985770e48ff
931e0f1951d0c81cc89b706e0eefc4ee6fa08d22
refs/heads/master
2021-01-21T16:18:40.278536
2016-03-29T21:43:17
2016-03-29T21:43:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
200
java
package de.michiruf.scalor.capture.monitor; import java.util.Observer; /** * @author Michael Ruf * @since 2016-03-23 */ public interface Monitor extends Observer { Object captureScreen(); }
ea21468bc02d4f0c8efac09089c5279dc66120f8
91068fdfcff61c4352b24fb1a25ef94840bb0f09
/MyApplication/src/main/java/com/ecs/foursquare/model/Location.java
593c9895f1699346c021984173793cb9c942373c
[]
no_license
ddewaele/AndroidStudioApplicationProject
cec1f0ef261d5297c2cce0f2f0708c4638a63df4
cd6154c15a11d26d3ba6e6cfdb9d12d414604b1d
refs/heads/master
2020-05-30T16:04:06.124855
2013-08-20T20:16:13
2013-08-20T20:16:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
525
java
package com.ecs.foursquare.model; import com.google.api.client.util.Key; import java.io.Serializable; public class Location implements Serializable { private static final long serialVersionUID = -5917868159728094798L; @Key public java.lang.String address; @Key public java.lang.String city; @Key public java.lang.String state; @Key public java.lang.String postalCode; @Key public java.lang.String country; @Key public double lat; @Key public double lng; @Key public double distance; }
9053f34acd8bfd84c9748570280f608c3fc99df6
279ab00946ead99292e2ce17bda94ec39d52e70c
/src/test/java/com/adactin/stepdefinition/Hookes.java
630dd48dc5424422abf9d2c855472e4800e3c25c
[]
no_license
leninkumar12/testdatas
3eddf6e13c9f869339801251da67e26b31129647
44cce62029a7f2ed610f8130787c159b4df2541e
refs/heads/master
2023-04-19T01:41:08.454758
2021-04-10T08:15:43
2021-04-10T08:15:43
353,292,977
0
0
null
null
null
null
UTF-8
Java
false
false
593
java
package com.adactin.stepdefinition; import java.io.IOException; import com.frame_work.org.Cucumberframework.BaseClass1; import cucumber.api.Scenario; import cucumber.api.java.After; import cucumber.api.java.Before; public class Hookes extends BaseClass1 { @Before public static void beforehookes(Scenario scenerio) { String name = scenerio.getName(); System.out.println(name); } @After public static void afterhookes(Scenario scenerio) throws IOException { String status = scenerio.getStatus(); System.out.println(status); if(scenerio.isFailed()) { screenshot("failedscenerio"); } } }
a3b892367bbb030f30606854534f72c641b65f3e
105fe9f7fcb7b98f938cf109502aab04279ba969
/Nanodegree/QuizzApp/app/src/main/java/com/example/android/quizzapp/MainActivity.java
b6edc69ad5076febf3a40ee78e728421f90763b7
[]
no_license
misiasobiekodzi/GoogleScholarshipAndroidBasics
55082ec7a648f76175c14587aaaaf4716c841437
b4dab38caf596f337e9ca0a66daeda4e399e2648
refs/heads/master
2021-09-19T11:46:25.716911
2018-07-27T16:10:32
2018-07-27T16:10:32
112,959,428
0
0
null
2018-06-10T15:48:38
2017-12-03T20:04:47
Java
UTF-8
Java
false
false
6,177
java
package com.example.android.quizzapp; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.CheckBox; import android.widget.EditText; import android.widget.RadioButton; import android.widget.Toast; import android.view.*; public class MainActivity extends AppCompatActivity { String solution_for_question1; String solution_for_question2_and3; String solution_for_question4; int score = 0; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } public void getSolution_for_question1(String question1){ RadioButton rb_yes = (RadioButton) findViewById(R.id.rb_yes); RadioButton rb_maybe = (RadioButton) findViewById(R.id.rb_maybe); RadioButton rb_no = (RadioButton) findViewById(R.id.rb_no); if(rb_yes.isChecked()){ solution_for_question1 = getString(R.string.can_drive); score += 2; } else if(rb_maybe.isChecked()){ solution_for_question1 = getString(R.string.share_driving); score += 1; } else if (rb_no.isChecked()){ solution_for_question1 = getString(R.string.no_car_driving); } else solution_for_question1 = getString(R.string.no_answered_car_question); }; public void getSolution_for_question2_and3(String question2_and_question3){ int how_many_activities = 0; //define&link needed stuff (radio buttons and checkboxes) RadioButton rb_active = (RadioButton) findViewById(R.id.rb_active); RadioButton rb_chillout = (RadioButton) findViewById(R.id.rb_chillout); RadioButton rb_both = (RadioButton) findViewById(R.id.rb_both); CheckBox cb_sunbathing = (CheckBox) findViewById(R.id.cb_sunbathing); CheckBox cb_sup = (CheckBox) findViewById(R.id.cb_sup); CheckBox cb_hiking = (CheckBox) findViewById(R.id.cb_hiking); CheckBox cb_wine_tasting = (CheckBox) findViewById(R.id.cb_wine_tasting); CheckBox cb_sightseeing = (CheckBox) findViewById(R.id.cb_sightseeing); CheckBox cb_surfing = (CheckBox) findViewById(R.id.cb_sufring); CheckBox cb_hanging_around = (CheckBox) findViewById(R.id.cb_hanging_around); CheckBox cb_sleep = (CheckBox) findViewById(R.id.cb_sleep); //calculate checked activities if (cb_sup.isChecked()) { how_many_activities++; score += 1; } if (cb_hiking.isChecked()){ how_many_activities++; score += 1; } if (cb_sightseeing.isChecked()){ how_many_activities++; score += 1; } if (cb_surfing.isChecked()){ how_many_activities++; score += 1; } if (cb_sunbathing.isChecked()){ how_many_activities++; score += 1; } if (cb_wine_tasting.isChecked()){ how_many_activities++; score += 1; } if (cb_hanging_around.isChecked()){ how_many_activities++; score += 1; } if (cb_sleep.isChecked()){ how_many_activities++; score += 1; } //active holidays solution if (rb_active.isChecked() && how_many_activities >= 4){ solution_for_question2_and3 = getString(R.string.active_holiday_many_activities); } else if (rb_active.isChecked() && how_many_activities < 4){ solution_for_question2_and3 = getString(R.string.active_holiday_few_activities); } //chillout holidays solution if (rb_chillout.isChecked() && how_many_activities >= 3){ solution_for_question2_and3 = getString(R.string.relax_holiday); } else if (rb_chillout.isChecked() && how_many_activities < 3){ solution_for_question2_and3 = getString(R.string.relax_holiday_few_activities); } //mixed holidays solution if (rb_both.isChecked() && how_many_activities >=4 ){ solution_for_question2_and3 = getString(R.string.both_same_expectations); } else if (rb_both.isChecked() && how_many_activities <4) solution_for_question2_and3 = getString(R.string.both_few_activities); //if any of radio button has been checked if (!rb_active.isChecked() && !rb_both.isChecked() && !rb_chillout.isChecked()) solution_for_question2_and3 = getString(R.string.active_question_not_answered); }; public void getSolution_for_question4(String question4){ EditText entered_number = (EditText) findViewById(R.id.enter_number); //check if edit text is empty if (entered_number.getText().toString().matches("")){ solution_for_question4 = getString(R.string.question_Funchal_not_answered); } //if it is not empty proceed with quiz else { int days_in_Funchal = Integer.parseInt(entered_number.getText().toString()); if (days_in_Funchal > 3 && days_in_Funchal < 8) { solution_for_question4 = getString(R.string.too_long_in_Funchal); } else if (days_in_Funchal > 7) { solution_for_question4 = getString(R.string.more_than_week); } else solution_for_question4 = getString(R.string.perfect_amount_in_Funchal); score += 1; } }; public void submitAnswers(View v){ getSolution_for_question1(solution_for_question1); getSolution_for_question2_and3(solution_for_question2_and3); getSolution_for_question4(solution_for_question4); String total_score = Integer.toString(score); String result = "You got " + total_score + " points! " + solution_for_question1 + " "+ solution_for_question2_and3 + " " + solution_for_question4; Toast toast_with_result = Toast.makeText(getApplicationContext(), result, Toast.LENGTH_LONG); toast_with_result.show(); score = 0; }; }
c450cd771bc7f13a51e6270122ee37885afa25ef
cb12269a3946d18d66e90914729f007b2e06f74c
/week-01/day-4/src/FindTheSubstring.java
35352a8ac045444e1666908b55334884aa948601
[]
no_license
green-fox-academy/kelletlen
8a96c3738531ee06a4914da18f62ca08fe22b26c
870f4488d0c4a4a8626bd8608e24813fcfc1bccb
refs/heads/master
2023-03-14T16:11:32.868845
2021-03-13T11:44:48
2021-03-13T11:44:48
265,585,189
0
0
null
null
null
null
UTF-8
Java
false
false
1,021
java
public class FindTheSubstring { public static void main(String[] args) { // Create a function that takes two strings as a parameter // Returns the starting index where the second one is starting in the first one // Returns `-1` if the second string is not in the first one // Example: // should print: `17` System.out.println(subStr("this is what I'm searching in", "searching")); // should print: `-1` System.out.println(subStr("this is what I'm searching in", "not")); } public static int subStr(String input, String q) { int indexWord = 0; String s = ""; if (input.contains(q)) { String[] arrOfStr = input.split(" "); for (int i = 0; i < arrOfStr.length; i++) { if (arrOfStr[i].equals(q)) { indexWord = i; for (int j = 0; j < i; j++) { s += arrOfStr[j]; } } } char[] cArray = s.toCharArray(); return cArray.length + indexWord; } else { return -1; } } }
d8f511cb8c9ca32418b4650226aa3fb0573bff21
4daecc44942759bcbc47bfce44f0bdcb0b78ccf3
/src/jd/plugins/decrypter/LiveMeCom.java
513d23671cb573b1cde9f2a63fa755c1d9d99a5d
[]
no_license
madnight/jdownloader
de7b98edeba951ae6b9ea2d5205d9a870849abaa
6cb84609157ff0163c37993ceb083499e8942bb4
refs/heads/master
2021-01-19T10:16:48.746791
2017-04-11T10:01:20
2017-04-11T10:01:20
87,842,989
5
2
null
null
null
null
UTF-8
Java
false
false
1,991
java
package jd.plugins.decrypter; import java.util.ArrayList; import java.util.Map; import jd.PluginWrapper; import jd.controlling.ProgressController; import jd.plugins.CryptedLink; import jd.plugins.DecrypterPlugin; import jd.plugins.DownloadLink; import jd.plugins.PluginForDecrypt; import org.appwork.storage.JSonStorage; import org.appwork.storage.TypeRef; import org.appwork.utils.Regex; import org.appwork.utils.StringUtils; @DecrypterPlugin(revision = "$Revision: 34675 $", interfaceVersion = 2, names = { "liveme.com" }, urls = { "http://(www\\.)?liveme\\.com/media/play/\\?videoid=\\d+" }) public class LiveMeCom extends PluginForDecrypt { public LiveMeCom(PluginWrapper wrapper) { super(wrapper); } @Override public ArrayList<DownloadLink> decryptIt(CryptedLink parameter, ProgressController progress) throws Exception { final ArrayList<DownloadLink> ret = new ArrayList<DownloadLink>(); final String videoid = new Regex(parameter.getCryptedUrl(), "(\\d+)$").getMatch(0); br.setFollowRedirects(true); br.getPage("https://live.ksmobile.net/live/queryinfo?videoid=" + videoid); final Map<String, Object> response = JSonStorage.restoreFromString(br.toString(), TypeRef.HASHMAP); final Map<String, Object> data = (Map<String, Object>) response.get("data"); final Map<String, Object> video_info = (Map<String, Object>) data.get("video_info"); final String title = (String) video_info.get("title"); final String url = (String) video_info.get("videosource"); final DownloadLink link; if (StringUtils.endsWithCaseInsensitive(url, "m3u8")) { link = createDownloadlink("m3u8" + url.substring(4)); } else { link = createDownloadlink(url); } if (title != null) { link.setFinalFileName(title + ".mp4"); } link.setContentUrl(parameter.getCryptedUrl()); ret.add(link); return ret; } }
[ "jiaz@ebf7c1c2-ba36-0410-9fe8-c592906822b4" ]
jiaz@ebf7c1c2-ba36-0410-9fe8-c592906822b4
3e998b974fd9bc966879e938322eab8a429553c1
8f7d4714cdcdb16cd9d7bd12ed413e769f19ff57
/app/src/main/java/com/cesi/library_project/tableau/OeuvreForm.java
c6cc8f3f892bca2d9f2e9b676ffcb32aac7e49df
[]
no_license
DomHaHmoD/library_project
afe3a29e04f6e414e986bbc324b8b0d4fb735df5
1b3c6fc758f4c63246cd8aa81f0ea5c7f611ec7c
refs/heads/master
2021-04-29T21:35:57.222711
2018-02-27T20:38:17
2018-02-27T20:38:17
119,572,809
0
0
null
2018-01-30T17:54:11
2018-01-30T17:54:11
null
UTF-8
Java
false
false
21,505
java
package com.cesi.library_project.tableau; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import javax.swing.*; import javax.swing.table.DefaultTableModel; import javax.swing.table.TableModel; /** * * @author dubs */ //public class OeuvreForm extends javax.swing.JFrame { public class OeuvreForm extends JPanel { private Statement state = Connexion.Connect().createStatement(); String requete; ResultSet result; DefaultTableModel model; public OeuvreForm() throws SQLException, ClassNotFoundException { initComponents(); findOeuvres(state); } public ArrayList<Oeuvre> ListOeuvres(String ValToSearch) { ArrayList<Oeuvre> oeuvresList = new ArrayList<Oeuvre>(); try { String searchQuery = "SELECT * FROM `oeuvre` WHERE (`titre`) LIKE '%" + ValToSearch + "%'"; result = state.executeQuery(searchQuery); Oeuvre oeuvre; while (result.next()) { oeuvre = new Oeuvre( result.getInt("id"), result.getString("titre"), result.getInt("date_parution"), result.getString("commentaire"), result.getInt("note") ); oeuvresList.add(oeuvre); } } catch (Exception ex) { System.out.println(ex.getMessage()); } return oeuvresList; } // Filter Data In Jtable private void findOeuvres(Statement state) { ArrayList<Oeuvre> oeuvres = ListOeuvres(jTextField_Filter.getText()); DefaultTableModel model = new DefaultTableModel(); model.setColumnIdentifiers(new Object[]{"Id", "Titre", "Annee", "Commentaire", "Note"}); Object[] row = new Object[5]; for (int i = 0; i < oeuvres.size(); i++) { row[0] = oeuvres.get(i).getId(); row[1] = oeuvres.get(i).getTitre(); row[2] = oeuvres.get(i).getAnnee(); row[3] = oeuvres.get(i).getCommentaire(); row[4] = oeuvres.get(i).getNote(); model.addRow(row); } jTable_Display_Oeuvres.setModel(model); //model.setData(donnees); } // Execute The Insert Update And Delete Querys public void executeSQlQuery(String query, String message) { try { if ((state.executeUpdate(query)) == 1) { // refresh jtable data DefaultTableModel model = (DefaultTableModel) jTable_Display_Oeuvres.getModel(); model.setRowCount(0); model.fireTableDataChanged (); JOptionPane.showMessageDialog(null, "Data " + message + " Succefully"); } else { JOptionPane.showMessageDialog(null, "Data Not " + message); } findOeuvres(state); } catch (Exception ex) { ex.printStackTrace(); } } /** * 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() { jPanel1 = new javax.swing.JPanel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jTextField_Commentaire = new javax.swing.JTextField(); jTextField_Titre = new javax.swing.JTextField(); jTextField_Annee = new javax.swing.JTextField(); jTextField_Id = new javax.swing.JTextField(); jButton_Insert = new javax.swing.JButton(); jButton_Update = new javax.swing.JButton(); jButton_Delete = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jTable_Display_Oeuvres = new javax.swing.JTable(); jTextField_Filter = new javax.swing.JTextField(); jButton_Search = new javax.swing.JButton(); jLabel7 = new javax.swing.JLabel(); jTextField_Note = new javax.swing.JTextField(); //setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jPanel1.setBackground(new java.awt.Color(102, 102, 102)); jLabel3.setFont(new java.awt.Font("Verdana", 1, 14)); // NOI18N jLabel3.setText("Id :"); jLabel4.setFont(new java.awt.Font("Verdana", 1, 14)); // NOI18N jLabel4.setText("Titre :"); jLabel5.setFont(new java.awt.Font("Verdana", 1, 14)); // NOI18N jLabel5.setText("Commentaire :"); jLabel6.setFont(new java.awt.Font("Verdana", 1, 14)); // NOI18N jLabel6.setText("Annee :"); jTextField_Commentaire.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField_CommentaireActionPerformed(evt); } }); jTextField_Titre.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField_TitreActionPerformed(evt); } }); jTextField_Annee.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField_AnneeActionPerformed(evt); } }); jTextField_Id.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField_IdActionPerformed(evt); } }); jButton_Insert.setBackground(new java.awt.Color(255, 255, 255)); jButton_Insert.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N jButton_Insert.setForeground(new java.awt.Color(0, 102, 0)); jButton_Insert.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/cesi/resources/add.png"))); // NOI18N jButton_Insert.setText("INSERT"); jButton_Insert.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton_InsertActionPerformed(evt); } }); jButton_Update.setBackground(new java.awt.Color(255, 255, 255)); jButton_Update.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N jButton_Update.setForeground(new java.awt.Color(0, 102, 204)); jButton_Update.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/cesi/resources/upd.png"))); // NOI18N jButton_Update.setText("UPDATE"); jButton_Update.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton_UpdateActionPerformed(evt); } }); jButton_Delete.setBackground(new java.awt.Color(255, 255, 255)); jButton_Delete.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N jButton_Delete.setForeground(new java.awt.Color(255, 0, 0)); jButton_Delete.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/cesi/resources/del.png"))); // NOI18N jButton_Delete.setText("DELETE"); jButton_Delete.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton_DeleteActionPerformed(evt); } }); jTable_Display_Oeuvres.setBackground(new java.awt.Color(204, 255, 255)); jTable_Display_Oeuvres.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Id", "Titre", "Annee", "Commentaire", "Note" } )); jTable_Display_Oeuvres.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jTable_Display_OeuvresMouseClicked(evt); } }); jScrollPane1.setViewportView(jTable_Display_Oeuvres); jTextField_Filter.setBorder(javax.swing.BorderFactory.createEtchedBorder(new java.awt.Color(0, 0, 0), null)); jTextField_Filter.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { jTextField_FilterKeyReleased(evt); } }); jButton_Search.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N jButton_Search.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/cesi/resources/search.png"))); // NOI18N jButton_Search.setText("SEARCH"); jButton_Search.setBorder(javax.swing.BorderFactory.createEtchedBorder(new java.awt.Color(102, 102, 102), null)); jButton_Search.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton_SearchActionPerformed(evt); } }); jLabel7.setFont(new java.awt.Font("Verdana", 1, 14)); // NOI18N jLabel7.setText("Note :"); jTextField_Note.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField_NoteActionPerformed(evt); } }); 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) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jButton_Insert) .addGap(14, 14, 14) .addComponent(jButton_Update) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton_Delete)) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jButton_Search, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField_Filter, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(109, 109, 109) .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField_Id, javax.swing.GroupLayout.PREFERRED_SIZE, 205, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(22, 22, 22) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel6) .addComponent(jLabel4) .addComponent(jLabel5) .addComponent(jLabel7)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jTextField_Titre, javax.swing.GroupLayout.DEFAULT_SIZE, 205, Short.MAX_VALUE) .addComponent(jTextField_Annee) .addComponent(jTextField_Commentaire) .addComponent(jTextField_Note)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 477, Short.MAX_VALUE) .addContainerGap()) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton_Insert) .addComponent(jButton_Update) .addComponent(jButton_Delete)) .addGap(34, 34, 34) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton_Search) .addComponent(jTextField_Filter, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(36, 36, 36) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextField_Id, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(jTextField_Titre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6) .addComponent(jTextField_Annee, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel5) .addComponent(jTextField_Commentaire, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(8, 8, 8) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7) .addComponent(jTextField_Note, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE)) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 516, Short.MAX_VALUE)) .addContainerGap()) ); GroupLayout layout = new javax.swing.GroupLayout(this); //getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); //pack(); }// </editor-fold>//GEN-END:initComponents private void jTextField_IdActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField_IdActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jTextField_IdActionPerformed private void jTextField_TitreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField_TitreActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jTextField_TitreActionPerformed private void jTextField_AnneeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField_AnneeActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jTextField_AnneeActionPerformed private void jTextField_CommentaireActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField_CommentaireActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jTextField_CommentaireActionPerformed private void jTable_Display_OeuvresMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable_Display_OeuvresMouseClicked int i = jTable_Display_Oeuvres.getSelectedRow(); TableModel model = jTable_Display_Oeuvres.getModel(); jTextField_Id.setText(model.getValueAt(i, 0).toString()); jTextField_Titre.setText(model.getValueAt(i, 1).toString()); jTextField_Annee.setText(model.getValueAt(i, 2).toString()); jTextField_Commentaire.setText(model.getValueAt(i, 3).toString()); jTextField_Note.setText(model.getValueAt(i, 4).toString()); }//GEN-LAST:event_jTable_Display_OeuvresMouseClicked private void jButton_InsertActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_InsertActionPerformed String query = "INSERT INTO `oeuvre`(`titre`,`date_parution`,`commentaire`,`note`) " + "VALUES ('" + jTextField_Titre.getText() + "','" + jTextField_Annee.getText() + "'," + "'" + jTextField_Commentaire.getText() + "','" + jTextField_Note.getText() + "')"; executeSQlQuery(query, "Inserted"); }//GEN-LAST:event_jButton_InsertActionPerformed private void jButton_UpdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_UpdateActionPerformed String query = "UPDATE `oeuvre`SET `titre`= '" + jTextField_Titre.getText() + "'," + " `date_parution`= '" + jTextField_Annee.getText() + "', `commentaire`= '" + jTextField_Commentaire.getText() +"', `note`= '" + jTextField_Note.getText() + "' WHERE `id`= '" + jTextField_Id.getText() + "'"; executeSQlQuery(query, "Updated"); }//GEN-LAST:event_jButton_UpdateActionPerformed private void jButton_DeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_DeleteActionPerformed String query = "DELETE FROM `oeuvre` WHERE `id`= '" + jTextField_Id.getText() + "'"; executeSQlQuery(query, "Deleted"); }//GEN-LAST:event_jButton_DeleteActionPerformed private void jTextField_FilterKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField_FilterKeyReleased // TODO add your handling code here: }//GEN-LAST:event_jTextField_FilterKeyReleased private void jButton_SearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_SearchActionPerformed findOeuvres(state); }//GEN-LAST:event_jButton_SearchActionPerformed private void jTextField_NoteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField_NoteActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jTextField_NoteActionPerformed // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButton_Delete; private javax.swing.JButton jButton_Insert; private javax.swing.JButton jButton_Search; private javax.swing.JButton jButton_Update; 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.JPanel jPanel1; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JTable jTable_Display_Oeuvres; private javax.swing.JTextField jTextField_Annee; private javax.swing.JTextField jTextField_Commentaire; private javax.swing.JTextField jTextField_Filter; private javax.swing.JTextField jTextField_Id; private javax.swing.JTextField jTextField_Note; private javax.swing.JTextField jTextField_Titre; // End of variables declaration//GEN-END:variables }
554f85bd5186390845cf9f1d282e91d02546e415
fb900475edba916d86f02b0683883b8228f47804
/RecycleTest/app/src/main/java/com/example/pch/recycletest/MainActivity.java
0a5d01df95c7848b02e3505df85dd3e4982a4347
[]
no_license
pch45/tae
2509bfe6871828a3114b5dd2bd394c9ec08f2345
64fc3b04dfde8e8c626efe14682734bda33758a3
refs/heads/master
2020-09-11T06:10:07.205310
2019-11-19T12:06:20
2019-11-19T12:06:20
221,966,420
0
0
null
null
null
null
UTF-8
Java
false
false
1,172
java
package com.example.pch.recycletest; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import androidx.recyclerview.widget.DividerItemDecoration; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import java.util.ArrayList; public class MainActivity extends AppCompatActivity { private ArrayList<String> mArrayList; private CustomAdapter mAdapter; private RecyclerView mRecyclerView; private LinearLayoutManager mLinearLayoutManager; private String[] items = {}; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mRecyclerView = findViewById(R.id.view); mLinearLayoutManager = new LinearLayoutManager(this); mRecyclerView.setLayoutManager(mLinearLayoutManager); mArrayList = new ArrayList<>(); for (int i = 0; i < items.length; i++) { mArrayList.add(items[i]); } mAdapter = new CustomAdapter(mArrayList); mRecyclerView.setAdapter(mAdapter); } }
7d0db1a6c5aff97203c0d6e37fa245e8af1413b3
e5107dc23b7fdede75f72d2df8da9e4684086cd9
/Iteracion1/Implementacion/Diaketas_v3/Codigo Fuente/Aplicacion/src/Visual/DatosUsuario.java
a53ee3dda5d175d69c732ae12e7424ac316071a7
[]
no_license
olmo/ISIII
083e85187534581b02cc67bd4251849e0f312d57
271a61a2d40517ce791fb9f40187fde8e86d2bfa
refs/heads/master
2021-01-22T05:21:04.519705
2012-06-10T20:47:12
2012-06-10T20:47:12
3,629,810
1
1
null
null
null
null
ISO-8859-1
Java
false
false
40,862
java
package Visual; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JButton; import javax.swing.JPasswordField; import javax.swing.JTextField; import javax.swing.JLabel; import javax.swing.table.TableModel; import GestionPersona.Beneficiario; import GestionPersona.CodificacionPW; import GestionPersona.Colaborador; import GestionPersona.Empresa; import GestionPersona.Socio; import GestionPersona.Trabajador; import java.awt.Choice; import java.awt.Color; import java.awt.Font; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.event.ItemListener; import java.awt.event.ItemEvent; public class DatosUsuario extends JPanel { private static final long serialVersionUID = 1L; private JTextField textField_domicilio; private JTextField textField_dni; private JTextField textField_email; private JTextField textField_busqueda; private VentanaPrincipal padre; private JTextField textField_nombre; private JTextField textField_estado; private JTextField textField_localidad; private JTextField textField_apellido1; private JTextField textField_cp; private JTextField textField_fnacdia; private JTextField textField_fnacmes; private JTextField textField_fnacano; private JTextField textField_nacionalidad; private JTextField textField_lugarnac; private JTextField textField_tlf; private JTextField textField_opersonales; private JTextField textField_ofamiliares; private JTextField textField_seconomica; private JTextField textField_ecivil; private JTextField textField_ovivienda; private JTextField textField_estudios; private JTextField textField_apellido2; private Choice choice_busqueda; private JLabel lblFrecuencia; private Integer id; private String rol; //Beneficiario private JLabel lblNewLabel; private JLabel lblNacionalidad; private JLabel lblEstadoCivil; private JLabel lblEstudios; private JLabel lblSituacionEconomica; private JLabel lblObsPersonales; private JLabel lblObsvivienda; private JLabel lblObsFamiliares; private JButton button_anadirfamiliar; private JButton button_listargfamiliares; final Choice choice_Rol; private JTextField text_Periocidad; //Empresa private JLabel lblNewLabel_1; private JLabel lblNombreEmpresa; private JLabel lblTelfonoEmpresa; private JLabel lblDireccinEmpresa; private JLabel lblEmailEmpresa; private JTextField textCIF; private JTextField textN_Empresa; private JTextField textTelEmp; private JTextField textDirEmp; private JTextField textEmail_Emp; //Socio private JLabel lblUsuario; private JTextField usuario; private JLabel lblContrasea; private JTextField passwordField_1; //Asteriscos private JLabel label_6; private JLabel label_7; private JLabel label_8; private JLabel label_9; private JLabel label_10; private JLabel label_11; private JLabel label_12; private JLabel label_13; private JLabel lblParaDonacin; private JTextField textField_fbaja; private JButton btnDarAlta; private JButton btn_datbaja; private TableModel tablaanterior; /** * Create the panel. */ public DatosUsuario(VentanaPrincipal p) { setSize(1200, 700); padre=p; setLayout(null); choice_busqueda=new Choice(); choice_busqueda.setBounds(416, 13, 166, 23); add(choice_busqueda); choice_busqueda.add("todos"); choice_busqueda.add("trabajador"); choice_busqueda.add("beneficiario"); choice_busqueda.add("donante-Socio"); choice_busqueda.add("donante-Empresa"); choice_busqueda.add("donante-Colaborador"); JButton btnNewButton = new JButton("Buscar"); btnNewButton.setBounds(315, 10, 95, 25); add(btnNewButton); btnNewButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { BusquedaUsuarios b = new BusquedaUsuarios(padre); String aux=choice_busqueda.getSelectedItem(); if(aux.equals("todos")) b.setTabla(padre.getcontrolador().BuscarPersonas(textField_busqueda.getText(),null)); else b.setTabla(padre.getcontrolador().BuscarPersonas(textField_busqueda.getText(),aux)); padre.getContentPane().removeAll(); padre.getContentPane().validate(); padre.getContentPane().add(b); padre.getContentPane().repaint(); } }); btnNewButton.setFont(new Font("Tahoma", Font.PLAIN, 14)); JLabel lblNewLabel_4 = new JLabel("Bienvenido "+padre.getusuario()); lblNewLabel_4.setBounds(1022, 9, 110, 14); lblNewLabel_4.setFont(new Font("Tahoma", Font.PLAIN, 14)); add(lblNewLabel_4); JButton btnCerrar = new JButton("Cerrar Sesion"); btnCerrar.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { Home h= new Home(padre); padre.getContentPane().removeAll(); padre.getContentPane().validate(); padre.getContentPane().add(h); padre.getContentPane().repaint(); } }); btnCerrar.setBounds(1032, 36, 119, 23); add(btnCerrar); JButton button_volver = new JButton("Volver"); button_volver.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { BusquedaUsuarios b = new BusquedaUsuarios(padre); b.setTabla(tablaanterior); padre.getContentPane().removeAll(); padre.getContentPane().validate(); padre.getContentPane().add(b); padre.getContentPane().repaint(); } }); button_volver.setBounds(426, 566, 156, 28); add(button_volver); button_volver.setFont(new Font("Tahoma", Font.PLAIN, 14)); choice_Rol = new Choice(); choice_Rol.setBounds(696, 97, 156, 28); add(choice_Rol); choice_Rol.add("trabajador"); choice_Rol.add("beneficiario"); choice_Rol.add("donante-Socio"); choice_Rol.add("donante-Colaborador"); choice_Rol.add("donante-Empresa"); JButton button_guardar = new JButton("Guardar"); button_guardar.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { Boolean b=true,correcto=false; if(textField_dni.getText().equals("")){ JOptionPane.showMessageDialog(null, "Falta DNI"); b=false; }else if(textField_nombre.getText().equals("")){ JOptionPane.showMessageDialog(null, "Falta nombre"); b=false; }else if(textField_apellido1.getText().equals("")){ JOptionPane.showMessageDialog(null, "Falta Apellido"); b=false; }else{ String rol=choice_Rol.getSelectedItem(); if(text_Periocidad.getText().equals("")){ JOptionPane.showMessageDialog(null, "Falta periocidad"); b=false; }else if(rol=="donante-Socio"){ if(usuario.getText().equals("")){ JOptionPane.showMessageDialog(null, "Falta usuario"); b=false; }else if(passwordField_1.getText().equals("")){ JOptionPane.showMessageDialog(null, "Falta contraseña"); b=false; } }else if(rol=="donante-Empresa"){ if(textCIF.getText().equals("")){ JOptionPane.showMessageDialog(null, "Falta cif"); b=false; }else if(textN_Empresa.getText().equals("")){ JOptionPane.showMessageDialog(null, "Falta nombre de empresa"); b=false; } } } if(b){ ConfirmarModificacion cm= new ConfirmarModificacion(); cm.setVisible(true); cm.setAlwaysOnTop(true); if(cm.getConfirmacionModificacion()){ try{ int telefono=0,cp=0; String fnac="1990-01-01"; if(!textField_tlf.getText().equals("")) telefono=new Integer(textField_tlf.getText()); if(!textField_cp.getText().equals("")) cp=new Integer(textField_cp.getText()); if(!textField_fnacdia.getText().equals("") && !textField_fnacmes.getText().equals("") && !textField_fnacano.getText().equals("")) fnac=textField_fnacano.getText()+"-"+textField_fnacmes.getText()+"-"+textField_fnacdia.getText(); if(rol.equals("trabajador")){ padre.getcontrolador().modificarDatosTrabajador(id, textField_dni.getText(), textField_nombre.getText(), textField_apellido1.getText(), textField_apellido2.getText(), fnac, telefono, textField_lugarnac.getText(), textField_domicilio.getText(), cp, textField_email.getText()); correcto=true; }else if(rol.equals("beneficiario")){ padre.getcontrolador().modificarDatosBeneficiario(id, textField_dni.getText(), textField_nombre.getText(), textField_apellido1.getText(), textField_apellido2.getText(), fnac, telefono, textField_lugarnac.getText(), textField_domicilio.getText(), cp, textField_email.getText(),textField_localidad.getText(),textField_ecivil.getText(),textField_estudios.getText(),textField_nacionalidad.getText(),textField_seconomica.getText(),textField_opersonales.getText(),textField_ovivienda.getText(),textField_ofamiliares.getText()); correcto=true; }else if(rol.equals("donante-Socio")) { CodificacionPW c=new CodificacionPW(passwordField_1.getText()); padre.getcontrolador().modificarDatosSocio(id, textField_dni.getText(), textField_nombre.getText(), textField_apellido1.getText(), textField_apellido2.getText(), fnac, telefono, textField_lugarnac.getText(), textField_domicilio.getText(), cp, textField_email.getText(),new Integer(text_Periocidad.getText()),usuario.getText(),c.getPassword()); }else if(rol.equals("donante-Empresa")) { if(textTelEmp.getText().equals("")) textTelEmp.setText("0"); padre.getcontrolador().modificarDatosEmpresa(id, textField_dni.getText(), textField_nombre.getText(), textField_apellido1.getText(), textField_apellido2.getText(), fnac, telefono, textField_lugarnac.getText(), textField_domicilio.getText(), cp, textField_email.getText(),new Integer(text_Periocidad.getText()),new Integer(textCIF.getText()),textN_Empresa.getText(),new Integer(textTelEmp.getText()),textDirEmp.getText(),textEmail_Emp.getText()); correcto=true; }else if(rol.equals("donante-Colaborador")) { padre.getcontrolador().modificarDatosColaborador(id, textField_dni.getText(), textField_nombre.getText(), textField_apellido1.getText(), textField_apellido2.getText(), fnac, telefono, textField_lugarnac.getText(), textField_domicilio.getText(), cp, textField_email.getText(),new Integer(text_Periocidad.getText())); correcto=true; } }catch(Exception e1){ JOptionPane.showMessageDialog(null, "Error al modificar\n"+e1.getMessage()); } if(correcto) JOptionPane.showMessageDialog(null, "Se ha modificado el usuario correctamente"); else JOptionPane.showMessageDialog(null, "NO se ha modificado el usuario correctamente"); } } } }); button_guardar.setBounds(735, 565, 137, 28); add(button_guardar); button_guardar.setFont(new Font("Tahoma", Font.PLAIN, 14)); btn_datbaja = new JButton("Dar Baja"); btn_datbaja.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ConfirmarBorradoUsuario cbu= new ConfirmarBorradoUsuario(padre); cbu.setVisible(true); cbu.setAlwaysOnTop(true); if(cbu.getConfirmacionBaja()){ try{ if(cbu.getConfirmacionBorrado()){ if(rol.equals("trabajador")) padre.getcontrolador().borrarDatosTrabajador(id); else if(rol.equals("beneficiario")) padre.getcontrolador().borrarDatosBeneficiario(id); else if(rol.equals("donante-Socio")) { padre.getcontrolador().borrarDatosSocio(id); }else if(rol.equals("donante-Empresa")) { if(textTelEmp.getText().equals("")) textTelEmp.setText("0"); padre.getcontrolador().borrarDatosEmpresa(id); }else if(rol.equals("donante-Colaborador")) padre.getcontrolador().borrarDatosColaborador(id); }else padre.getcontrolador().darBaja(id); }catch(Exception e1){ JOptionPane.showMessageDialog(null, "Error al dar de baja\n"+e1.getMessage()); } } padre.getContentPane().removeAll(); padre.getContentPane().validate(); padre.getContentPane().add(new Inicio(padre, padre.getusuario())); padre.getContentPane().repaint(); } }); btn_datbaja.setFont(new Font("Tahoma", Font.PLAIN, 14)); btn_datbaja.setBounds(603, 565, 119, 28); add(btn_datbaja); JLabel lblDni = new JLabel("DNI:"); lblDni.setBounds(329, 100, 28, 17); add(lblDni); lblDni.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_dni = new JTextField(); textField_dni.setBounds(367, 97, 110, 23); add(textField_dni); textField_dni.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_dni.setColumns(10); JLabel label_rol = new JLabel("Rol :"); label_rol.setBounds(664, 97, 28, 17); add(label_rol); label_rol.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_domicilio = new JTextField(); textField_domicilio.setBounds(696, 189, 246, 23); add(textField_domicilio); textField_domicilio.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_domicilio.setColumns(20); JLabel lblNombre = new JLabel("Nombre:"); lblNombre.setBounds(303, 128, 54, 17); add(lblNombre); lblNombre.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_email = new JTextField(); textField_email.setBounds(367, 269, 150, 23); add(textField_email); textField_email.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_email.setColumns(50); JLabel lblApellidos = new JLabel("Apellidos:"); lblApellidos.setBounds(636, 128, 56, 17); add(lblApellidos); lblApellidos.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_busqueda = new JTextField(); textField_busqueda.setBounds(10, 11, 295, 23); add(textField_busqueda); textField_busqueda.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_busqueda.setColumns(15); JLabel label_1 = new JLabel("Lugar nacimiento:"); label_1.setBounds(580, 158, 110, 17); add(label_1); label_1.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_apellido1 = new JTextField(); textField_apellido1.setBounds(698, 125, 97, 23); add(textField_apellido1); textField_apellido1.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_apellido1.setColumns(15); JLabel label_2 = new JLabel("Fecha Nacimiento:"); label_2.setBounds(250, 161, 112, 17); add(label_2); label_2.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_cp = new JTextField(); textField_cp.setBounds(367, 235, 66, 23); add(textField_cp); textField_cp.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_cp.setColumns(5); JLabel label = new JLabel("Telefono:"); label.setBounds(303, 202, 57, 17); add(label); label.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_fnacdia = new JTextField(); textField_fnacdia.setBounds(367, 163, 22, 23); add(textField_fnacdia ); textField_fnacdia .setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_fnacdia .setColumns(2); JLabel label_3 = new JLabel("Direccion:"); label_3.setBounds(629, 192, 61, 17); add(label_3); label_3.setFont(new Font("Tahoma", Font.PLAIN, 14)); JLabel lblNewLabel_3 = new JLabel("Código postal:"); lblNewLabel_3.setBounds(273, 238, 88, 17); add(lblNewLabel_3); lblNewLabel_3.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_nombre = new JTextField(); textField_nombre.setBounds(367, 128, 110, 23); add(textField_nombre); textField_nombre.setColumns(10); textField_nombre.setFont(new Font("Tahoma", Font.PLAIN, 14)); JLabel label_4 = new JLabel("Estado:"); label_4.setBounds(643, 223, 47, 17); add(label_4); label_4.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_lugarnac = new JTextField(); textField_lugarnac.setBounds(696, 155, 126, 23); add(textField_lugarnac); textField_lugarnac.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_lugarnac.setColumns(10); JLabel label_5 = new JLabel("email:"); label_5.setBounds(327, 269, 35, 17); add(label_5); label_5.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_tlf = new JTextField(); textField_tlf.setBounds(367, 201, 110, 23); add(textField_tlf); textField_tlf.setColumns(11); textField_tlf.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_estado = new JTextField(); textField_estado.setBounds(696, 223, 86, 23); add(textField_estado); textField_estado.setColumns(10); textField_estado.setFont(new Font("Tahoma", Font.PLAIN, 14)); //Es donante lblFrecuencia = new JLabel("Frecuencia:"); lblFrecuencia.setFont(new Font("Tahoma", Font.PLAIN, 14)); lblFrecuencia.setBounds(77, 362, 95, 20); add(lblFrecuencia); text_Periocidad = new JTextField(); text_Periocidad.setBounds(169, 362, 109, 20); add(text_Periocidad); lblFrecuencia.setVisible(false); text_Periocidad.setVisible(false); //esBeneficiario lblNewLabel = new JLabel("Localidad:"); lblNewLabel.setBounds(633, 339, 86, 14); add(lblNewLabel); lblNewLabel.setVisible(false); lblNacionalidad = new JLabel("Nacionalidad:"); lblNacionalidad.setBounds(882, 335, 96, 23); add(lblNacionalidad); lblNacionalidad.setVisible(false); textField_localidad = new JTextField(); textField_localidad.setBounds(716, 338, 136, 20); add(textField_localidad); textField_localidad.setColumns(10); textField_localidad.setVisible(false); textField_nacionalidad = new JTextField(); textField_nacionalidad.setBounds(988, 341, 126, 20); add(textField_nacionalidad); textField_nacionalidad.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_nacionalidad.setColumns(10); textField_nacionalidad.setVisible(false); lblEstadoCivil = new JLabel("Estado civil:"); lblEstadoCivil.setBounds(627, 380, 92, 14); add(lblEstadoCivil); lblEstadoCivil.setVisible(false); textField_opersonales = new JTextField(); textField_opersonales.setColumns(10); textField_opersonales.setBounds(988, 402, 181, 20); add(textField_opersonales); textField_opersonales.setVisible(false); lblEstudios = new JLabel("Estudios:"); lblEstudios.setBounds(907, 368, 71, 14); add(lblEstudios); lblEstudios.setVisible(false); textField_ofamiliares = new JTextField(); textField_ofamiliares.setColumns(10); textField_ofamiliares.setBounds(988, 433, 181, 20); add(textField_ofamiliares); textField_ofamiliares.setVisible(false); lblSituacionEconomica = new JLabel("Situacion economica:"); lblSituacionEconomica.setBounds(583, 405, 136, 14); add(lblSituacionEconomica); lblSituacionEconomica.setVisible(false); textField_seconomica = new JTextField(); textField_seconomica.setColumns(10); textField_seconomica.setBounds(716, 402, 136, 20); add(textField_seconomica); textField_seconomica.setVisible(false); lblObsPersonales = new JLabel("Obs. Personales:"); lblObsPersonales.setBounds(877, 405, 115, 14); add(lblObsPersonales); lblObsPersonales.setVisible(false); textField_ecivil = new JTextField(); textField_ecivil.setColumns(10); textField_ecivil.setBounds(716, 371, 136, 20); add(textField_ecivil); textField_ecivil.setVisible(false); lblObsvivienda = new JLabel("Obs.Vivienda:"); lblObsvivienda.setBounds(616, 436, 103, 14); add(lblObsvivienda); lblObsvivienda.setVisible(false); textField_ovivienda = new JTextField(); textField_ovivienda.setColumns(10); textField_ovivienda.setBounds(716, 433, 136, 20); add(textField_ovivienda); textField_ovivienda.setVisible(false); lblObsFamiliares = new JLabel("Obs. Familiares:"); lblObsFamiliares.setBounds(882, 436, 110, 14); add(lblObsFamiliares); lblObsFamiliares.setVisible(false); textField_estudios = new JTextField(); textField_estudios.setColumns(10); textField_estudios.setBounds(988, 370, 181, 20); add(textField_estudios); textField_estudios.setVisible(false); button_anadirfamiliar = new JButton("A\u00F1adir Familiar"); button_anadirfamiliar.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { NuevoFamiliar nf= new NuevoFamiliar(padre,id); padre.getContentPane().removeAll(); padre.getContentPane().validate(); padre.getContentPane().add(nf); padre.getContentPane().repaint(); } }); button_anadirfamiliar.setBounds(752, 464, 156, 23); add(button_anadirfamiliar); button_anadirfamiliar.setVisible(false); button_listargfamiliares = new JButton("Listar Familiares"); button_listargfamiliares.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { BusquedaFamiliares bf = new BusquedaFamiliares(padre,id); padre.getContentPane().removeAll(); padre.getContentPane().validate(); padre.getContentPane().add(bf); padre.getContentPane().repaint(); } }); button_listargfamiliares.setBounds(934, 464, 150, 23); add(button_listargfamiliares); button_listargfamiliares.setVisible(false); textField_apellido2 = new JTextField(); textField_apellido2.setFont(new Font("Tahoma", Font.PLAIN, 14)); textField_apellido2.setColumns(15); textField_apellido2.setBounds(805, 125, 97, 23); add(textField_apellido2); textField_fnacmes = new JTextField(); textField_fnacmes.setBounds(399, 163, 22, 23); add(textField_fnacmes); textField_fnacmes.setColumns(2); textField_fnacano = new JTextField(); textField_fnacano.setBounds(431, 163, 44, 23); add(textField_fnacano); textField_fnacano.setColumns(4); //empresa lblNewLabel_1 = new JLabel("CIF"); lblNewLabel_1.setBounds(383, 339, 22, 14); add(lblNewLabel_1); textCIF = new JTextField(); textCIF.setBounds(416, 336, 86, 20); add(textCIF); textCIF.setColumns(10); lblNombreEmpresa = new JLabel("Nombre Empresa"); lblNombreEmpresa.setBounds(300, 365, 110, 14); add(lblNombreEmpresa); textN_Empresa = new JTextField(); textN_Empresa.setBounds(416, 362, 86, 20); add(textN_Empresa); textN_Empresa.setColumns(10); lblTelfonoEmpresa = new JLabel("Tel\u00E9fono Empresa"); lblTelfonoEmpresa.setBounds(303, 394, 107, 14); add(lblTelfonoEmpresa); textTelEmp = new JTextField(); textTelEmp.setBounds(416, 391, 86, 20); add(textTelEmp); textTelEmp.setColumns(10); lblDireccinEmpresa = new JLabel("Direcci\u00F3n Empresa"); lblDireccinEmpresa.setBounds(504, 339, 119, 14); add(lblDireccinEmpresa); textDirEmp = new JTextField(); textDirEmp.setBounds(636, 336, 86, 20); add(textDirEmp); textDirEmp.setColumns(10); lblEmailEmpresa = new JLabel("e-mail Empresa"); lblEmailEmpresa.setBounds(512, 365, 111, 14); add(lblEmailEmpresa); textEmail_Emp = new JTextField(); textEmail_Emp.setBounds(636, 362, 86, 20); add(textEmail_Emp); textEmail_Emp.setColumns(10); //Socio lblUsuario = new JLabel("Usuario"); lblUsuario.setBounds(431, 346, 46, 14); add(lblUsuario); usuario = new JTextField(); usuario.setBounds(496, 343, 86, 20); add(usuario); usuario.setColumns(10); lblContrasea = new JLabel("Contrase\u00F1a"); lblContrasea.setBounds(416, 380, 84, 14); add(lblContrasea); passwordField_1 = new JPasswordField(); passwordField_1.setBounds(496, 377, 86, 20); add(passwordField_1); passwordField_1.setColumns(10); //obligatorios label_6 = new JLabel("(*)"); label_6.setForeground(Color.RED); label_6.setBounds(284, 131, 46, 14); add(label_6); label_7 = new JLabel("(*)"); label_7.setForeground(Color.RED); label_7.setBounds(284, 97, 46, 20); add(label_7); label_8 = new JLabel("(*)"); label_8.setForeground(Color.RED); label_8.setBounds(616, 126, 46, 24); add(label_8); label_9 = new JLabel("(*)"); label_9.setForeground(Color.RED); label_9.setBounds(284, 358, 46, 28); add(label_9); label_10 = new JLabel("(*)"); label_10.setForeground(Color.RED); label_10.setBounds(399, 332, 46, 28); add(label_10); label_11 = new JLabel("(*)"); label_11.setForeground(Color.RED); label_11.setBounds(399, 373, 46, 28); add(label_11); label_13 = new JLabel("(*)"); label_13.setForeground(Color.RED); label_13.setBounds(367, 332, 46, 28); add(label_13); label_12 = new JLabel("(*)"); label_12.setForeground(Color.RED); label_12.setBounds(58, 367, 46, 14); add(label_12); JLabel lblFechaBaja = new JLabel("Fecha baja:"); lblFechaBaja.setFont(new Font("Tahoma", Font.PLAIN, 14)); lblFechaBaja.setBounds(603, 272, 89, 17); add(lblFechaBaja); textField_fbaja = new JTextField(); textField_fbaja.setColumns(10); textField_fbaja.setBounds(699, 269, 86, 23); add(textField_fbaja); btnDarAlta = new JButton("Dar Alta"); btnDarAlta.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { try{ if(rol.equals("trabajador")) padre.getcontrolador().darAlta(id); else if(rol.equals("beneficiario")) padre.getcontrolador().darAlta(id); else if(rol.equals("donante-Socio")) padre.getcontrolador().darAlta(id); else if(rol.equals("donante-Empresa")) padre.getcontrolador().darAlta(id); else if(rol.equals("donante-Colaborador")) padre.getcontrolador().darAlta(id); }catch(Exception e1){ JOptionPane.showMessageDialog(null, "Error al dar de baja\n"+e1.getMessage()); } } }); btnDarAlta.setFont(new Font("Tahoma", Font.PLAIN, 14)); btnDarAlta.setBounds(882, 566, 119, 28); add(btnDarAlta); lblParaDonacin = new JLabel("('0' para donaci\u00F3n puntual)"); lblParaDonacin.setBounds(168, 380, 137, 14); add(lblParaDonacin); btn_datbaja.setVisible(true); btn_datbaja.setEnabled(true); modotrabajador(); choice_Rol.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent arg0) { if(choice_Rol.getSelectedItem().equals("donante-Colaborador")){ modocolaborador(); }else if(choice_Rol.getSelectedItem().equals("donante-Socio")){ modosocio(); }else if(choice_Rol.getSelectedItem().equals("donante-Empresa")){ modoempresa(); }else if(choice_Rol.getSelectedItem().equals("beneficiario")){ modobeneficiario(); }else if(choice_Rol.getSelectedItem().equals("")||choice_Rol.getSelectedItem().equals("trabajador")){ modoempresa(); } } }); } //RELLEnar public void rellenar(Trabajador t){ textField_dni.setText(t.getDni()); textField_nombre.setText(t.getNombre()); textField_apellido1.setText(t.getApellido1()); textField_apellido2.setText(t.getApellido2()); textField_domicilio.setText(t.getDomicilio()); if(!t.getCp().equals(0)) textField_cp.setText(t.getCp().toString()); textField_email.setText(t.getemail()); if(!t.getfNacimiento().equals("1900-01-01")){ textField_fnacdia.setText(t.getfNacimiento().substring(8, 10)); textField_fnacmes.setText(t.getfNacimiento().substring(5, 7)); textField_fnacano.setText(t.getfNacimiento().substring(0, 4)); } if(!t.getfBaja().equals("1900-01-01")){ textField_fbaja.setText(t.getfBaja()); } if(!t.getTelefono().equals(0)) textField_tlf.setText(t.getTelefono().toString()); textField_lugarnac.setText(t.getLugarNacimiento()); textField_estado.setText(t.getEstado().toString()); if(t.getEstado().equals(true)){ btnDarAlta.setVisible(false); btnDarAlta.setEnabled(false); }else{ btnDarAlta.setVisible(true); btnDarAlta.setEnabled(true); } choice_Rol.select("trabajador"); id=t.getId(); rol="trabajador"; } public void rellenar(Beneficiario b){ textField_dni.setText(b.getDni()); textField_nombre.setText(b.getNombre()); textField_apellido1.setText(b.getApellido1()); textField_apellido2.setText(b.getApellido2()); textField_domicilio.setText(b.getDomicilio()); if(!b.getCp().equals(0)) textField_cp.setText(b.getCp().toString()); textField_email.setText(b.getemail()); if(!b.getfNacimiento().equals("1900-01-01")){ textField_fnacdia.setText(b.getfNacimiento().substring(8, 10)); textField_fnacmes.setText(b.getfNacimiento().substring(5, 7)); textField_fnacano.setText(b.getfNacimiento().substring(0, 4)); } if(!b.getfBaja().equals("1900-01-01")){ textField_fbaja.setText(b.getfBaja()); } if(!b.getTelefono().equals(0)) textField_tlf.setText(b.getTelefono().toString()); textField_lugarnac.setText(b.getLugarNacimiento()); textField_estado.setText(b.getEstado().toString()); if(b.getEstado().equals(true)){ btnDarAlta.setVisible(false); btnDarAlta.setEnabled(false); }else{ btnDarAlta.setVisible(true); btnDarAlta.setEnabled(true); } choice_Rol.select("beneficiario"); textField_localidad.setText(b.getLocalidad()); textField_ecivil.setText(b.geteCivil()); textField_seconomica.setText(b.getsEconomica()); textField_ovivienda.setText(b.getObservacionesVivienda()); textField_ofamiliares.setText(b.getObservacionesFamiliares()); textField_opersonales.setText(b.getObservacionesPersonales()); textField_nacionalidad.setText(b.getNacionalidad()); textField_estudios.setText(b.getnEstudios()); id=b.getId(); rol="beneficiario"; } public void rellenar(Socio d){ textField_dni.setText(d.getDni()); textField_nombre.setText(d.getNombre()); textField_apellido1.setText(d.getApellido1()); textField_apellido2.setText(d.getApellido2()); textField_domicilio.setText(d.getDomicilio()); if(!d.getCp().equals(0)) textField_cp.setText(d.getCp().toString()); textField_email.setText(d.getemail()); if(!d.getfNacimiento().equals("1900-01-01")){ textField_fnacdia.setText(d.getfNacimiento().substring(8, 10)); textField_fnacmes.setText(d.getfNacimiento().substring(5, 7)); textField_fnacano.setText(d.getfNacimiento().substring(0, 4)); } if(!d.getfBaja().equals("1900-01-01")){ textField_fbaja.setText(d.getfBaja()); } if(!d.getTelefono().equals(0)) textField_tlf.setText(d.getTelefono().toString()); textField_lugarnac.setText(d.getLugarNacimiento()); textField_estado.setText(d.getEstado().toString()); text_Periocidad.setText(d.getPeriocidad().toString()); if(d.getEstado().equals(true)){ btnDarAlta.setVisible(false); btnDarAlta.setEnabled(false); }else{ btnDarAlta.setVisible(true); btnDarAlta.setEnabled(true); } usuario.setText(d.getUsuario()); choice_Rol.select("donante-Socio"); id=d.getId(); rol="donante-Socio"; } public void rellenar(Colaborador d){ textField_dni.setText(d.getDni()); textField_nombre.setText(d.getNombre()); textField_apellido1.setText(d.getApellido1()); textField_apellido2.setText(d.getApellido2()); textField_domicilio.setText(d.getDomicilio()); if(!d.getCp().equals(0)) textField_cp.setText(d.getCp().toString()); textField_email.setText(d.getemail()); if(!d.getfNacimiento().equals("1900-01-01")){ textField_fnacdia.setText(d.getfNacimiento().substring(8, 10)); textField_fnacmes.setText(d.getfNacimiento().substring(5, 7)); textField_fnacano.setText(d.getfNacimiento().substring(0, 4)); } if(!d.getfBaja().equals("1900-01-01")){ textField_fbaja.setText(d.getfBaja()); } if(!d.getTelefono().equals(0)) textField_tlf.setText(d.getTelefono().toString()); textField_lugarnac.setText(d.getLugarNacimiento()); textField_estado.setText(d.getEstado().toString()); text_Periocidad.setText(d.getPeriocidad().toString()); if(d.getEstado().equals(true)){ btnDarAlta.setVisible(false); btnDarAlta.setEnabled(false); }else{ btnDarAlta.setVisible(true); btnDarAlta.setEnabled(true); } choice_Rol.select("donante-Colaborador"); id=d.getId(); rol="donante-Colaborador"; } public void rellenar(Empresa d){ textField_dni.setText(d.getDni()); textField_nombre.setText(d.getNombre()); textField_apellido1.setText(d.getApellido1()); textField_apellido2.setText(d.getApellido2()); textField_domicilio.setText(d.getDomicilio()); if(!d.getCp().equals(0)) textField_cp.setText(d.getCp().toString()); textField_email.setText(d.getemail()); text_Periocidad.setText(d.getPeriocidad().toString()); if(!d.getTelefonoEmpresa().equals(null)) textTelEmp.setText(d.getTelefonoEmpresa().toString()); if(!d.getfNacimiento().equals("1900-01-01")){ textField_fnacdia.setText(d.getfNacimiento().substring(8, 10)); textField_fnacmes.setText(d.getfNacimiento().substring(5, 7)); textField_fnacano.setText(d.getfNacimiento().substring(0, 4)); } if(!d.getfBaja().equals("1900-01-01")){ textField_fbaja.setText(d.getfBaja()); } if(!d.getTelefono().equals(0)) textField_tlf.setText(d.getTelefono().toString()); textField_lugarnac.setText(d.getLugarNacimiento()); textField_estado.setText(d.getEstado().toString()); if(d.getEstado().equals(true)){ btnDarAlta.setVisible(false); btnDarAlta.setEnabled(false); }else{ btnDarAlta.setVisible(true); btnDarAlta.setEnabled(true); } textCIF.setText(d.getCif().toString()); textN_Empresa.setText(d.getNombreEmpresa()); textDirEmp.setText(d.getDireccionEmpresa()); textEmail_Emp.setText(d.getemailEmpresa()); choice_Rol.select("donante-Empresa"); id=d.getId(); rol="donante-Empresa"; } //MODOS public void modobeneficiario(){ lblNewLabel.setVisible(true); //textField_11.setVisible(true); textField_localidad.setVisible(true); lblNacionalidad.setVisible(true); lblEstadoCivil.setVisible(true); textField_opersonales.setVisible(true); lblEstudios.setVisible(true); textField_ofamiliares.setVisible(true); lblSituacionEconomica.setVisible(true); textField_seconomica.setVisible(true); lblObsPersonales.setVisible(true); textField_ecivil.setVisible(true); lblObsvivienda.setVisible(true); textField_ovivienda.setVisible(true); lblObsFamiliares.setVisible(true); textField_estudios.setVisible(true); button_anadirfamiliar.setVisible(true); button_listargfamiliares.setVisible(true); textField_nacionalidad.setVisible(true); lblFrecuencia.setVisible(false); text_Periocidad.setVisible(false); lblNewLabel_1.setVisible(false); textCIF.setVisible(false); lblNombreEmpresa.setVisible(false); textN_Empresa.setVisible(false); lblTelfonoEmpresa.setVisible(false); textTelEmp.setVisible(false); lblDireccinEmpresa.setVisible(false); textDirEmp.setVisible(false); lblEmailEmpresa.setVisible(false); textEmail_Emp.setVisible(false); lblUsuario.setVisible(false); usuario.setVisible(false); lblContrasea.setVisible(false); passwordField_1.setVisible(false); label_9.setVisible(false); label_10.setVisible(false); label_11.setVisible(false); label_13.setVisible(false); label_12.setVisible(false); lblParaDonacin.setVisible(false); } public void modotrabajador(){ lblNewLabel.setVisible(false); textField_localidad.setVisible(false); lblNacionalidad.setVisible(false); lblEstadoCivil.setVisible(false); textField_opersonales.setVisible(false); lblEstudios.setVisible(false); textField_ofamiliares.setVisible(false); lblSituacionEconomica.setVisible(false); textField_seconomica.setVisible(false); lblObsPersonales.setVisible(false); textField_ecivil.setVisible(false); lblObsvivienda.setVisible(false); textField_ovivienda.setVisible(false); lblObsFamiliares.setVisible(false); textField_estudios.setVisible(false); button_anadirfamiliar.setVisible(false); button_listargfamiliares.setVisible(false); lblFrecuencia.setVisible(false); text_Periocidad.setVisible(false); lblNewLabel_1.setVisible(false); textCIF.setVisible(false); lblNombreEmpresa.setVisible(false); textN_Empresa.setVisible(false); lblTelfonoEmpresa.setVisible(false); textTelEmp.setVisible(false); lblDireccinEmpresa.setVisible(false); textDirEmp.setVisible(false); lblEmailEmpresa.setVisible(false); textEmail_Emp.setVisible(false); lblUsuario.setVisible(false); usuario.setVisible(false); lblContrasea.setVisible(false); passwordField_1.setVisible(false); label_9.setVisible(false); label_10.setVisible(false); label_11.setVisible(false); label_13.setVisible(false); label_12.setVisible(false); lblParaDonacin.setVisible(false); } public void modoempresa(){ lblNewLabel.setVisible(false); //textField_11.setVisible(false); textField_localidad.setVisible(false); lblNacionalidad.setVisible(false); lblEstadoCivil.setVisible(false); textField_opersonales.setVisible(false); lblEstudios.setVisible(false); textField_ofamiliares.setVisible(false); lblSituacionEconomica.setVisible(false); textField_seconomica.setVisible(false); lblObsPersonales.setVisible(false); textField_ecivil.setVisible(false); lblObsvivienda.setVisible(false); textField_ovivienda.setVisible(false); lblObsFamiliares.setVisible(false); textField_estudios.setVisible(false); button_anadirfamiliar.setVisible(false); button_listargfamiliares.setVisible(false); textField_nacionalidad.setVisible(false); lblFrecuencia.setVisible(true); text_Periocidad.setVisible(true); lblNewLabel_1.setVisible(true); textCIF.setVisible(true); lblNombreEmpresa.setVisible(true); textN_Empresa.setVisible(true); lblTelfonoEmpresa.setVisible(true); textTelEmp.setVisible(true); lblDireccinEmpresa.setVisible(true); textDirEmp.setVisible(true); lblEmailEmpresa.setVisible(true); textEmail_Emp.setVisible(true); lblUsuario.setVisible(false); usuario.setVisible(false); lblContrasea.setVisible(false); passwordField_1.setVisible(false); label_9.setVisible(true); label_10.setVisible(false); label_11.setVisible(false); label_13.setVisible(true); label_12.setVisible(true); lblParaDonacin.setVisible(true); } public void modosocio(){ lblNewLabel.setVisible(false); //textField_11.setVisible(false); textField_localidad.setVisible(false); lblNacionalidad.setVisible(false); lblEstadoCivil.setVisible(false); textField_opersonales.setVisible(false); lblEstudios.setVisible(false); textField_ofamiliares.setVisible(false); lblSituacionEconomica.setVisible(false); textField_seconomica.setVisible(false); lblObsPersonales.setVisible(false); textField_ecivil.setVisible(false); lblObsvivienda.setVisible(false); textField_ovivienda.setVisible(false); lblObsFamiliares.setVisible(false); textField_estudios.setVisible(false); button_anadirfamiliar.setVisible(false); button_listargfamiliares.setVisible(false); textField_nacionalidad.setVisible(false); lblFrecuencia.setVisible(true); text_Periocidad.setVisible(true); lblNewLabel_1.setVisible(false); textCIF.setVisible(false); lblNombreEmpresa.setVisible(false); textN_Empresa.setVisible(false); lblTelfonoEmpresa.setVisible(false); textTelEmp.setVisible(false); lblDireccinEmpresa.setVisible(false); textDirEmp.setVisible(false); lblEmailEmpresa.setVisible(false); textEmail_Emp.setVisible(false); lblUsuario.setVisible(true); usuario.setVisible(true); lblContrasea.setVisible(true); passwordField_1.setVisible(true); label_9.setVisible(false); label_10.setVisible(true); label_11.setVisible(true); label_12.setVisible(true); lblParaDonacin.setVisible(true); label_13.setVisible(false); } public void modocolaborador(){ lblNewLabel.setVisible(false); textField_opersonales.setVisible(false); textField_localidad.setVisible(false); lblNacionalidad.setVisible(false); lblEstadoCivil.setVisible(false); //textField_11.setVisible(false); lblEstudios.setVisible(false); textField_ofamiliares.setVisible(false); lblSituacionEconomica.setVisible(false); textField_seconomica.setVisible(false); lblObsPersonales.setVisible(false); textField_ecivil.setVisible(false); lblObsvivienda.setVisible(false); textField_ovivienda.setVisible(false); lblObsFamiliares.setVisible(false); textField_estudios.setVisible(false); button_anadirfamiliar.setVisible(false); button_listargfamiliares.setVisible(false); textField_nacionalidad.setVisible(false); lblFrecuencia.setVisible(true); text_Periocidad.setVisible(true); lblNewLabel_1.setVisible(false); textCIF.setVisible(false); lblNombreEmpresa.setVisible(false); textN_Empresa.setVisible(false); lblTelfonoEmpresa.setVisible(false); textTelEmp.setVisible(false); lblDireccinEmpresa.setVisible(false); textDirEmp.setVisible(false); lblEmailEmpresa.setVisible(false); textEmail_Emp.setVisible(false); lblUsuario.setVisible(false); usuario.setVisible(false); lblContrasea.setVisible(false); passwordField_1.setVisible(false); label_9.setVisible(false); label_10.setVisible(false); label_11.setVisible(false); label_13.setVisible(false); label_12.setVisible(true); lblParaDonacin.setVisible(true); } public void settablaanterior(TableModel t){ tablaanterior=t; } public TableModel gettablaanterior(){ return tablaanterior; } }
65f18d2325000ac18371582102bb61f9563b905c
b6663c53066eb28bcf2c6f179376fc7eb01ac4ee
/MyPlaceFinal/app/src/main/java/com/example/user/myplace/fragments/MapFragment.java
97787f6d9e5a5f95ec0a63ba04ae666cf53522b4
[]
no_license
yaelfish/my-place
cf9d3401c48ba114fc786b3f61d5acfef119009d
1820d97e8ca38ad4ca7bb48f524738da684ef77b
refs/heads/master
2021-01-20T04:22:11.544520
2017-04-28T08:46:40
2017-04-28T08:46:40
89,678,748
0
0
null
null
null
null
UTF-8
Java
false
false
6,486
java
package com.example.user.myplace.fragments; import android.Manifest; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.graphics.Color; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.v4.app.ActivityCompat; import android.support.v4.app.Fragment; import android.support.v4.content.LocalBroadcastManager; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Toast; import com.example.user.myplace.PlacesAdapter; import com.example.user.myplace.R; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.OnMapReadyCallback; import com.google.android.gms.maps.SupportMapFragment; import com.google.android.gms.maps.model.Circle; import com.google.android.gms.maps.model.CircleOptions; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.model.Marker; import com.google.android.gms.maps.model.MarkerOptions; import static android.content.Context.MODE_PRIVATE; public class MapFragment extends Fragment implements OnMapReadyCallback, GoogleMap.OnMapClickListener { private GoogleMap mMap; private LatLng placelatLng, myLatLng; private MapReceiver mapReceiver; private Marker marker; private Circle circle; private float placeLat, placeLng; private SharedPreferences sp; private SharedPreferences defaultSP; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { //Inflate the layout for this fragment, connect and show map View view = inflater.inflate(R.layout.fragment_map, container, false); //get map ((SupportMapFragment) getChildFragmentManager().findFragmentById(R.id.map)).getMapAsync(this); // create receiver mapReceiver = new MapReceiver(); // create filter IntentFilter filter = new IntentFilter(getString(R.string.map_broadcast)); // register the receiver LocalBroadcastManager.getInstance(this.getActivity()).registerReceiver(mapReceiver, filter); //connect to my custom created sp sp = getContext().getSharedPreferences("PlaceSp", MODE_PRIVATE); return view; } public MapFragment() { // Required empty public constructor } @Override public void onMapReady(GoogleMap googleMap) { mMap = googleMap; // implement the interface, making the map clickable mMap.setOnMapClickListener(this); // check if we have permission for location if (ActivityCompat.checkSelfPermission(this.getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this.getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) { return; } mMap.setMyLocationEnabled(true); // change the map type (satellite, normal, hybrid) mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL); placelatLng = new LatLng(sp.getFloat("ClickedPlaceLat", 34.65f), sp.getFloat("ClickedPlaceLng",32.25f)); myLatLng = new LatLng(sp.getFloat("mylat", 34.65f), sp.getFloat("mylng",32.25f)); String name = sp.getString("place_name", "Going Places!"); // if last marker exists - remove it if(marker != null) marker.remove(); // if last circle exists - remove it if(circle != null) circle.remove(); // add marker marker = mMap.addMarker(new MarkerOptions().position(placelatLng).title(name).alpha(0.7f)); // add circle circle = mMap.addCircle(new CircleOptions() .center(placelatLng) .radius(200).fillColor(Color.parseColor("#644FC4F6")) .strokeColor(Color.BLUE)); // animate the camera mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(placelatLng, 15)); } public class MapReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { placeLat = sp.getFloat("ClickedPlaceLat", 34.65f); placeLng = sp.getFloat("ClickedPlaceLng", 32.25f); String name = sp.getString("place_name", "Going Places!"); placelatLng = new LatLng(placeLat, placeLng); // if last marker exists - remove it if(marker != null) marker.remove(); if(circle != null) circle.remove(); // add marker marker = mMap.addMarker(new MarkerOptions().position(placelatLng).title(name).alpha(0.7f)); // add circle circle = mMap.addCircle(new CircleOptions() .center(placelatLng) .radius(200).fillColor(Color.parseColor("#644FC4F6")) .strokeColor(Color.BLUE)); // animate the camera mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(placelatLng, 15)); } } @Override public void onMapClick(LatLng latLng) { // show the clicked location with a Toast Toast.makeText(this.getContext(), "Lat: " + String.format("%.3f", latLng.latitude ) + ", Lon: " + String.format("%.3f", latLng.longitude ), Toast.LENGTH_SHORT).show(); // calculate the distance from my place to clicked location and show with a Toast double distance = PlacesAdapter.distance(myLatLng.latitude, latLng.latitude, myLatLng.longitude, latLng.longitude, 0, 0); //connect to the default sp defaultSP = PreferenceManager.getDefaultSharedPreferences(this.getActivity()); String units =defaultSP.getString("units_key", "km"); if (units.equals("miles")) { //convert distance to miles distance = distance * 0.621371; } Toast.makeText(this.getContext(), "Distance from my spot: " + String.format("%.2f", distance ) , Toast.LENGTH_SHORT).show(); } }
b7746156c0c4f2b4feffcb85a0847d351a25820e
a00fe007ff66e23b4aacf08a66835129c9475cf4
/app/src/main/java/com/example/weatherapp/model/citylocationmodel/CitiesLocationWeather.java
631b54cad60f6798d2ba2016501ef81286a1f911
[]
no_license
fathyshawat/WeatherApp
8725d8b706efc4bc587bab9be6466e027116acb1
db05bd7baaddbe913d1cec1ec67492113e399295
refs/heads/main
2023-03-22T14:35:02.417282
2021-03-22T12:49:20
2021-03-22T12:49:20
338,465,463
0
1
null
null
null
null
UTF-8
Java
false
false
671
java
package com.example.weatherapp.model.citylocationmodel; import java.util.List; public class CitiesLocationWeather { private String city; private String country; private List<CityWeatherInfo> cityWeatherInfoLs; public CitiesLocationWeather(String city, String country, List<CityWeatherInfo> cityWeatherInfoLs) { this.city = city; this.country = country; this.cityWeatherInfoLs = cityWeatherInfoLs; } public String getCity() { return city; } public String getCountry() { return country; } public List<CityWeatherInfo> getCityWeatherInfoLs() { return cityWeatherInfoLs; } }
4c0a4a8fbc992c8860fbd36089718fd182d3a216
4627d514d6664526f58fbe3cac830a54679749cd
/results/randoop5/time-org.joda.time.Period-2/RegressionTest1.java
7d56d5e9016d1b4d7c2e5b61fd23c3173a2efca9
[]
no_license
STAMP-project/Cling-application
c624175a4aa24bb9b29b53f9b84c42a0f18631bd
0ff4d7652b434cbfd9be8d8bb38cfc8d8eaa51b5
refs/heads/master
2022-07-27T09:30:16.423362
2022-07-19T12:01:46
2022-07-19T12:01:46
254,310,667
2
2
null
2021-07-12T12:29:50
2020-04-09T08:11:35
null
UTF-8
Java
false
false
1,225,628
java
import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runners.MethodSorters; @FixMethodOrder(MethodSorters.NAME_ASCENDING) public class RegressionTest1 { public static boolean debug = false; @Test public void test0501() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0501"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 98, (long) (byte) 1, chronology2); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Period period16 = new org.joda.time.Period(readableInstant14, readableInstant15); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.Duration duration18 = period16.toDurationFrom(readableInstant17); org.joda.time.Period period20 = period16.plusMonths(0); org.joda.time.Period period22 = period20.plusMonths((int) '#'); org.joda.time.Period period24 = period20.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType25 = period20.getPeriodType(); org.joda.time.Chronology chronology26 = null; org.joda.time.Period period27 = new org.joda.time.Period((long) (short) -1, periodType25, chronology26); org.joda.time.Period period28 = new org.joda.time.Period(0, 1, (int) (short) 100, (-1), (int) (short) 10, 100, (int) ' ', (int) (short) 1, periodType25); org.joda.time.Period period29 = new org.joda.time.Period((long) (byte) 10, periodType25); org.joda.time.PeriodType periodType30 = null; org.joda.time.Period period31 = new org.joda.time.Period((java.lang.Object) period29, periodType30); org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Period period34 = new org.joda.time.Period(readableInstant32, readableInstant33); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Duration duration36 = period34.toDurationFrom(readableInstant35); org.joda.time.Period period38 = period34.plusMonths(0); int int39 = period34.getWeeks(); int int40 = period34.size(); org.joda.time.Period period42 = period34.minusDays((int) (byte) -1); org.joda.time.Chronology chronology45 = null; org.joda.time.Period period46 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology45); java.lang.String str47 = period46.toString(); org.joda.time.Period period48 = new org.joda.time.Period((java.lang.Object) str47); org.joda.time.Period period50 = period48.plusSeconds((int) 'a'); org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.Period period56 = new org.joda.time.Period(readableInstant54, readableInstant55); org.joda.time.ReadableInstant readableInstant57 = null; org.joda.time.Duration duration58 = period56.toDurationFrom(readableInstant57); org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.Period period62 = new org.joda.time.Period(readableInstant60, readableInstant61); org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.Duration duration64 = period62.toDurationFrom(readableInstant63); org.joda.time.Period period66 = period62.plusMonths(0); org.joda.time.Period period68 = period66.plusMonths((int) '#'); org.joda.time.Period period70 = period66.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType71 = period66.getPeriodType(); org.joda.time.Chronology chronology72 = null; org.joda.time.Period period73 = new org.joda.time.Period((long) (short) -1, periodType71, chronology72); org.joda.time.Period period74 = new org.joda.time.Period(readableInstant53, (org.joda.time.ReadableDuration) duration58, periodType71); org.joda.time.Chronology chronology75 = null; org.joda.time.Period period76 = new org.joda.time.Period((long) (byte) 10, (long) 10, periodType71, chronology75); org.joda.time.Chronology chronology79 = null; org.joda.time.Period period80 = new org.joda.time.Period((long) 100, (long) (-1), chronology79); org.joda.time.Period period82 = period80.plusMinutes((int) (short) 10); org.joda.time.Period period84 = period82.plusMinutes((-1)); int int85 = period84.getWeeks(); org.joda.time.Period period87 = period84.withMinutes((int) (byte) 10); org.joda.time.DurationFieldType durationFieldType89 = period87.getFieldType(0); org.joda.time.Period period91 = period76.withFieldAdded(durationFieldType89, (int) (short) 100); org.joda.time.Period period93 = period50.withFieldAdded(durationFieldType89, 52); int int94 = period34.indexOf(durationFieldType89); org.joda.time.Period period96 = period31.withField(durationFieldType89, (int) (byte) 0); org.joda.time.Period period98 = period3.withFieldAdded(durationFieldType89, (-100)); org.junit.Assert.assertNotNull(duration18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(periodType25); org.junit.Assert.assertNotNull(duration36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertTrue("'" + int39 + "' != '" + 0 + "'", int39 == 0); org.junit.Assert.assertTrue("'" + int40 + "' != '" + 8 + "'", int40 == 8); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertEquals("'" + str47 + "' != '" + "PT0.011S" + "'", str47, "PT0.011S"); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(duration58); org.junit.Assert.assertNotNull(duration64); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertNotNull(period68); org.junit.Assert.assertNotNull(period70); org.junit.Assert.assertNotNull(periodType71); org.junit.Assert.assertNotNull(period82); org.junit.Assert.assertNotNull(period84); org.junit.Assert.assertTrue("'" + int85 + "' != '" + 0 + "'", int85 == 0); org.junit.Assert.assertNotNull(period87); org.junit.Assert.assertNotNull(durationFieldType89); org.junit.Assert.assertNotNull(period91); org.junit.Assert.assertNotNull(period93); org.junit.Assert.assertTrue("'" + int94 + "' != '" + 0 + "'", int94 == 0); org.junit.Assert.assertNotNull(period96); org.junit.Assert.assertNotNull(period98); } @Test public void test0502() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0502"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); org.joda.time.Period period7 = period5.minusSeconds((int) (short) 100); org.joda.time.Period period9 = period7.minusMinutes(100); org.joda.time.Period period11 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period13 = period11.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.PeriodType periodType16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant14, readableInstant15, periodType16); org.joda.time.Period period19 = period17.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.PeriodType periodType22 = null; org.joda.time.Period period23 = new org.joda.time.Period(readableInstant20, readableInstant21, periodType22); org.joda.time.DurationFieldType durationFieldType25 = period23.getFieldType((int) (byte) 0); int int26 = period19.indexOf(durationFieldType25); org.joda.time.Period period28 = period11.withFieldAdded(durationFieldType25, 1); org.joda.time.Period period29 = period28.negated(); org.joda.time.Period period30 = period9.plus((org.joda.time.ReadablePeriod) period28); org.joda.time.Period period32 = period9.minusSeconds((int) '#'); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.Period period39 = new org.joda.time.Period(readableInstant37, readableInstant38); org.joda.time.ReadableInstant readableInstant40 = null; org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.PeriodType periodType42 = null; org.joda.time.Period period43 = new org.joda.time.Period(readableInstant40, readableInstant41, periodType42); org.joda.time.MutablePeriod mutablePeriod44 = period43.toMutablePeriod(); org.joda.time.Period period45 = period39.plus((org.joda.time.ReadablePeriod) period43); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.PeriodType periodType48 = null; org.joda.time.Period period49 = new org.joda.time.Period(readableInstant46, readableInstant47, periodType48); org.joda.time.Period period51 = period49.plusMonths((int) '4'); org.joda.time.Period period52 = period43.withFields((org.joda.time.ReadablePeriod) period51); org.joda.time.PeriodType periodType53 = period51.getPeriodType(); org.joda.time.Period period54 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType53); org.joda.time.Period period55 = new org.joda.time.Period((long) 0, periodType53); org.joda.time.Period period56 = new org.joda.time.Period((long) (short) 100, periodType53); org.joda.time.Chronology chronology57 = null; // The following exception was thrown during execution in test generation try { org.joda.time.Period period58 = new org.joda.time.Period((java.lang.Object) '#', periodType53, chronology57); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: No period converter found for type: java.lang.Character"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(durationFieldType25); org.junit.Assert.assertTrue("'" + int26 + "' != '" + 0 + "'", int26 == 0); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(mutablePeriod44); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(period52); org.junit.Assert.assertNotNull(periodType53); } @Test public void test0503() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0503"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period3 = period1.plusMillis((int) 'a'); org.joda.time.MutablePeriod mutablePeriod4 = period3.toMutablePeriod(); org.joda.time.Period period6 = period3.withMinutes((int) (short) 100); org.joda.time.Period period8 = period6.withSeconds((int) ' '); org.joda.time.Period period10 = period8.withHours((-3)); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(mutablePeriod4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); } @Test public void test0504() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0504"); org.joda.time.Period period1 = org.joda.time.Period.minutes(97); org.junit.Assert.assertNotNull(period1); } @Test public void test0505() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0505"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); org.joda.time.Period period5 = period3.minusSeconds((int) '#'); int int6 = period3.size(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 8 + "'", int6 == 8); } @Test public void test0506() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0506"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.MutablePeriod mutablePeriod7 = period6.toMutablePeriod(); org.joda.time.Period period8 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Period period10 = period6.withMonths((int) (byte) 0); org.joda.time.Period period12 = period10.minusSeconds((-1)); org.joda.time.Period period14 = period12.minusHours((-1)); org.joda.time.PeriodType periodType20 = null; org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) 'a', periodType20, chronology21); org.joda.time.PeriodType periodType24 = null; org.joda.time.Chronology chronology25 = null; org.joda.time.Period period26 = new org.joda.time.Period((long) 'a', periodType24, chronology25); org.joda.time.Hours hours27 = period26.toStandardHours(); org.joda.time.Period period28 = period22.withFields((org.joda.time.ReadablePeriod) period26); org.joda.time.Period period30 = period22.withYears(10); org.joda.time.Period period31 = period30.toPeriod(); org.joda.time.Period period33 = period30.plusMillis(1); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Period period38 = new org.joda.time.Period(readableInstant36, readableInstant37); org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Duration duration40 = period38.toDurationFrom(readableInstant39); org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.Period period44 = new org.joda.time.Period(readableInstant42, readableInstant43); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.Duration duration46 = period44.toDurationFrom(readableInstant45); org.joda.time.Period period48 = period44.plusMonths(0); org.joda.time.Period period50 = period48.plusMonths((int) '#'); org.joda.time.Period period52 = period48.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType53 = period48.getPeriodType(); org.joda.time.Chronology chronology54 = null; org.joda.time.Period period55 = new org.joda.time.Period((long) (short) -1, periodType53, chronology54); org.joda.time.Period period56 = new org.joda.time.Period(readableInstant35, (org.joda.time.ReadableDuration) duration40, periodType53); org.joda.time.Chronology chronology57 = null; org.joda.time.Period period58 = new org.joda.time.Period((long) (byte) 0, periodType53, chronology57); org.joda.time.Period period59 = period33.normalizedStandard(periodType53); org.joda.time.Chronology chronology60 = null; org.joda.time.Period period61 = new org.joda.time.Period(0L, (long) 8, periodType53, chronology60); org.joda.time.Chronology chronology62 = null; org.joda.time.Period period63 = new org.joda.time.Period((long) ' ', periodType53, chronology62); org.joda.time.Chronology chronology64 = null; org.joda.time.Period period65 = new org.joda.time.Period(10L, periodType53, chronology64); org.joda.time.Period period66 = period12.plus((org.joda.time.ReadablePeriod) period65); org.joda.time.Period period68 = period12.withHours((int) ' '); org.joda.time.DurationFieldType[] durationFieldTypeArray69 = period68.getFieldTypes(); org.junit.Assert.assertNotNull(mutablePeriod7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(hours27); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(duration40); org.junit.Assert.assertNotNull(duration46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(period52); org.junit.Assert.assertNotNull(periodType53); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertNotNull(period68); org.junit.Assert.assertNotNull(durationFieldTypeArray69); } @Test public void test0507() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0507"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period((long) (-1), chronology1); int[] intArray3 = period2.getValues(); org.junit.Assert.assertNotNull(intArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(intArray3), "[0, 0, 0, 0, 0, 0, 0, -1]"); } @Test public void test0508() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0508"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period((long) (short) 0, chronology1); org.joda.time.Period period4 = period2.minusMillis((int) (short) 10); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant5, readableInstant6); org.joda.time.Period period8 = period7.normalizedStandard(); org.joda.time.Period period10 = period7.withWeeks(1); org.joda.time.PeriodType periodType12 = null; org.joda.time.Chronology chronology13 = null; org.joda.time.Period period14 = new org.joda.time.Period((long) 'a', periodType12, chronology13); org.joda.time.Period period16 = period14.withMinutes(0); org.joda.time.Period period17 = period7.minus((org.joda.time.ReadablePeriod) period16); org.joda.time.Period period19 = period16.minusMillis((int) ' '); org.joda.time.PeriodType periodType21 = null; org.joda.time.Chronology chronology22 = null; org.joda.time.Period period23 = new org.joda.time.Period((long) 'a', periodType21, chronology22); org.joda.time.PeriodType periodType25 = null; org.joda.time.Chronology chronology26 = null; org.joda.time.Period period27 = new org.joda.time.Period((long) 'a', periodType25, chronology26); org.joda.time.Hours hours28 = period27.toStandardHours(); org.joda.time.Period period29 = period23.withFields((org.joda.time.ReadablePeriod) period27); org.joda.time.Period period31 = period23.withYears(10); org.joda.time.Period period32 = period31.toPeriod(); org.joda.time.Period period34 = period31.plusMillis(1); org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.Period period39 = new org.joda.time.Period(readableInstant37, readableInstant38); org.joda.time.ReadableInstant readableInstant40 = null; org.joda.time.Duration duration41 = period39.toDurationFrom(readableInstant40); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Period period45 = new org.joda.time.Period(readableInstant43, readableInstant44); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.Duration duration47 = period45.toDurationFrom(readableInstant46); org.joda.time.Period period49 = period45.plusMonths(0); org.joda.time.Period period51 = period49.plusMonths((int) '#'); org.joda.time.Period period53 = period49.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType54 = period49.getPeriodType(); org.joda.time.Chronology chronology55 = null; org.joda.time.Period period56 = new org.joda.time.Period((long) (short) -1, periodType54, chronology55); org.joda.time.Period period57 = new org.joda.time.Period(readableInstant36, (org.joda.time.ReadableDuration) duration41, periodType54); org.joda.time.Chronology chronology58 = null; org.joda.time.Period period59 = new org.joda.time.Period((long) (byte) 0, periodType54, chronology58); org.joda.time.Period period60 = period34.normalizedStandard(periodType54); org.joda.time.Period period61 = period16.normalizedStandard(periodType54); org.joda.time.Period period62 = period2.withPeriodType(periodType54); org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.Period period65 = new org.joda.time.Period(readableInstant63, readableInstant64); org.joda.time.ReadableInstant readableInstant66 = null; org.joda.time.Duration duration67 = period65.toDurationFrom(readableInstant66); org.joda.time.Period period69 = period65.plusMonths(0); int int70 = period65.getWeeks(); org.joda.time.PeriodType periodType71 = null; org.joda.time.Period period72 = period65.normalizedStandard(periodType71); org.joda.time.Period period74 = period72.minusMonths((int) ' '); org.joda.time.Period period76 = period72.withSeconds((int) (short) -1); org.joda.time.Period period77 = period62.minus((org.joda.time.ReadablePeriod) period76); org.junit.Assert.assertNotNull(period4); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(hours28); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(duration41); org.junit.Assert.assertNotNull(duration47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertNotNull(periodType54); org.junit.Assert.assertNotNull(period60); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(period62); org.junit.Assert.assertNotNull(duration67); org.junit.Assert.assertNotNull(period69); org.junit.Assert.assertTrue("'" + int70 + "' != '" + 0 + "'", int70 == 0); org.junit.Assert.assertNotNull(period72); org.junit.Assert.assertNotNull(period74); org.junit.Assert.assertNotNull(period76); org.junit.Assert.assertNotNull(period77); } @Test public void test0509() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0509"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) ' ', periodType1, chronology2); org.joda.time.Period period5 = period3.multipliedBy((int) (short) 1); int int6 = period3.getMonths(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); } @Test public void test0510() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0510"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period((long) 'a', periodType2, chronology3); org.joda.time.Hours hours5 = period4.toStandardHours(); org.joda.time.Period period7 = period4.plusSeconds((int) (byte) 1); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.PeriodType periodType10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant8, readableInstant9, periodType10); org.joda.time.DurationFieldType durationFieldType13 = period11.getFieldType((int) (byte) 0); org.joda.time.Period period15 = period4.withField(durationFieldType13, 1); org.joda.time.Duration duration16 = period4.toStandardDuration(); org.joda.time.Period period17 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration16); org.joda.time.Period period19 = period17.withHours(32); org.junit.Assert.assertNotNull(hours5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(durationFieldType13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(duration16); org.junit.Assert.assertNotNull(period19); } @Test public void test0511() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0511"); org.joda.time.Period period1 = org.joda.time.Period.days(0); org.joda.time.Chronology chronology4 = null; org.joda.time.Period period5 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology4); java.lang.String str6 = period5.toString(); org.joda.time.Period period7 = new org.joda.time.Period((java.lang.Object) str6); org.joda.time.Period period9 = period7.plusSeconds((int) 'a'); org.joda.time.Period period11 = period9.plusWeeks((int) (short) 10); org.joda.time.Period period13 = period9.minusMillis((int) (byte) 1); org.joda.time.Period period14 = period1.withFields((org.joda.time.ReadablePeriod) period13); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Duration duration16 = period14.toDurationFrom(readableInstant15); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertEquals("'" + str6 + "' != '" + "PT0.011S" + "'", str6, "PT0.011S"); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(duration16); } @Test public void test0512() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0512"); org.joda.time.PeriodType periodType2 = null; org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period((long) '4', (-1L), periodType2, chronology3); org.joda.time.Period period6 = period4.minusSeconds((int) '#'); org.joda.time.Period period8 = period4.withMonths((int) (byte) -1); // The following exception was thrown during execution in test generation try { org.joda.time.Duration duration9 = period8.toStandardDuration(); org.junit.Assert.fail("Expected exception of type java.lang.UnsupportedOperationException; message: Cannot convert to Duration as this period contains months and months vary in length"); } catch (java.lang.UnsupportedOperationException e) { // Expected exception. } org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); } @Test public void test0513() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0513"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Period period11 = period9.withMinutes(0); org.joda.time.Period period12 = period2.minus((org.joda.time.ReadablePeriod) period11); org.joda.time.Chronology chronology15 = null; org.joda.time.Period period16 = new org.joda.time.Period(100L, (long) ' ', chronology15); org.joda.time.Period period18 = period16.plusHours(1); org.joda.time.Weeks weeks19 = period18.toStandardWeeks(); org.joda.time.Chronology chronology22 = null; org.joda.time.Period period23 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology22); java.lang.String str24 = period23.toString(); org.joda.time.Period period25 = new org.joda.time.Period((java.lang.Object) str24); org.joda.time.Period period27 = period25.plusSeconds((int) 'a'); org.joda.time.Period period29 = period25.plusYears((int) (byte) 0); org.joda.time.Period period31 = period25.withMonths(0); org.joda.time.PeriodType periodType33 = null; org.joda.time.Chronology chronology34 = null; org.joda.time.Period period35 = new org.joda.time.Period((long) 'a', periodType33, chronology34); org.joda.time.Period period37 = period35.withMinutes(0); org.joda.time.Period period39 = period37.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod40 = period37.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.Period period43 = new org.joda.time.Period(readableInstant41, readableInstant42); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Duration duration45 = period43.toDurationFrom(readableInstant44); org.joda.time.Period period47 = period43.plusMonths(0); org.joda.time.Period period49 = period47.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.Duration duration51 = period47.toDurationFrom(readableInstant50); org.joda.time.Period period53 = period47.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.PeriodType periodType56 = null; org.joda.time.Period period57 = new org.joda.time.Period(readableInstant54, readableInstant55, periodType56); org.joda.time.Period period59 = period57.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.PeriodType periodType62 = null; org.joda.time.Period period63 = new org.joda.time.Period(readableInstant60, readableInstant61, periodType62); org.joda.time.Period period65 = period63.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant66 = null; org.joda.time.ReadableInstant readableInstant67 = null; org.joda.time.PeriodType periodType68 = null; org.joda.time.Period period69 = new org.joda.time.Period(readableInstant66, readableInstant67, periodType68); org.joda.time.DurationFieldType durationFieldType71 = period69.getFieldType((int) (byte) 0); int int72 = period65.indexOf(durationFieldType71); int int73 = period57.get(durationFieldType71); org.joda.time.Period period75 = period47.withField(durationFieldType71, (int) (short) 0); int int76 = mutablePeriod40.indexOf(durationFieldType71); int int77 = period31.get(durationFieldType71); org.joda.time.Period period79 = period18.withFieldAdded(durationFieldType71, (int) (byte) 1); org.joda.time.Period period81 = period2.withField(durationFieldType71, 0); org.joda.time.Period period82 = period81.toPeriod(); org.joda.time.Period period84 = period82.withMillis((int) (short) 10); int int85 = period82.getYears(); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(weeks19); org.junit.Assert.assertEquals("'" + str24 + "' != '" + "PT0.011S" + "'", str24, "PT0.011S"); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertNotNull(mutablePeriod40); org.junit.Assert.assertNotNull(duration45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(duration51); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(period65); org.junit.Assert.assertNotNull(durationFieldType71); org.junit.Assert.assertTrue("'" + int72 + "' != '" + 0 + "'", int72 == 0); org.junit.Assert.assertTrue("'" + int73 + "' != '" + 0 + "'", int73 == 0); org.junit.Assert.assertNotNull(period75); org.junit.Assert.assertTrue("'" + int76 + "' != '" + 0 + "'", int76 == 0); org.junit.Assert.assertTrue("'" + int77 + "' != '" + 0 + "'", int77 == 0); org.junit.Assert.assertNotNull(period79); org.junit.Assert.assertNotNull(period81); org.junit.Assert.assertNotNull(period82); org.junit.Assert.assertNotNull(period84); org.junit.Assert.assertTrue("'" + int85 + "' != '" + 0 + "'", int85 == 0); } @Test public void test0514() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0514"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period3 = period1.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.PeriodType periodType6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant4, readableInstant5, periodType6); org.joda.time.Period period9 = period7.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.PeriodType periodType12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant10, readableInstant11, periodType12); org.joda.time.DurationFieldType durationFieldType15 = period13.getFieldType((int) (byte) 0); int int16 = period9.indexOf(durationFieldType15); org.joda.time.Period period18 = period1.withFieldAdded(durationFieldType15, 1); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Period period21 = new org.joda.time.Period(readableInstant19, readableInstant20); org.joda.time.Period period22 = period21.normalizedStandard(); int int23 = period21.getMillis(); org.joda.time.Period period24 = period18.withFields((org.joda.time.ReadablePeriod) period21); org.joda.time.Period period26 = period18.minusMillis((int) (short) 0); org.joda.time.Period period28 = period18.withMonths((int) '4'); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(durationFieldType15); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertTrue("'" + int23 + "' != '" + 0 + "'", int23 == 0); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period28); } @Test public void test0515() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0515"); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.Period period5 = period4.normalizedStandard(); org.joda.time.Period period7 = period5.withMinutes((-1)); org.joda.time.PeriodType periodType8 = null; org.joda.time.Period period9 = period7.normalizedStandard(periodType8); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.Period period18 = new org.joda.time.Period(readableInstant16, readableInstant17); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Duration duration20 = period18.toDurationFrom(readableInstant19); org.joda.time.Period period22 = period18.plusMonths(0); org.joda.time.Period period24 = period22.plusMonths((int) '#'); org.joda.time.Period period26 = period22.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType27 = period22.getPeriodType(); org.joda.time.Chronology chronology28 = null; org.joda.time.Period period29 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType27, chronology28); org.joda.time.Period period30 = new org.joda.time.Period(readableInstant12, readableInstant13, periodType27); org.joda.time.Period period31 = new org.joda.time.Period(readableInstant10, readableInstant11, periodType27); org.joda.time.Chronology chronology32 = null; org.joda.time.Period period33 = new org.joda.time.Period((java.lang.Object) periodType8, periodType27, chronology32); org.joda.time.Chronology chronology34 = null; org.joda.time.Period period35 = new org.joda.time.Period(1L, 0L, periodType27, chronology34); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(duration20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(periodType27); } @Test public void test0516() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0516"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period(100L, chronology1); org.joda.time.PeriodType periodType4 = null; org.joda.time.Chronology chronology5 = null; org.joda.time.Period period6 = new org.joda.time.Period((long) 'a', periodType4, chronology5); org.joda.time.PeriodType periodType8 = null; org.joda.time.Chronology chronology9 = null; org.joda.time.Period period10 = new org.joda.time.Period((long) 'a', periodType8, chronology9); org.joda.time.Hours hours11 = period10.toStandardHours(); org.joda.time.Period period12 = period6.withFields((org.joda.time.ReadablePeriod) period10); org.joda.time.Period period14 = period6.withYears(10); org.joda.time.Period period15 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Period period17 = new org.joda.time.Period((long) 100); org.joda.time.Period period20 = new org.joda.time.Period(0L, (-1L)); org.joda.time.Period period22 = period20.minusYears(100); org.joda.time.Period period23 = period22.negated(); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.PeriodType periodType26 = null; org.joda.time.Period period27 = new org.joda.time.Period(readableInstant24, readableInstant25, periodType26); org.joda.time.Period period29 = period27.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.PeriodType periodType32 = null; org.joda.time.Period period33 = new org.joda.time.Period(readableInstant30, readableInstant31, periodType32); org.joda.time.DurationFieldType durationFieldType35 = period33.getFieldType((int) (byte) 0); int int36 = period29.indexOf(durationFieldType35); org.joda.time.Period period38 = period22.withField(durationFieldType35, 10); boolean boolean39 = period17.isSupported(durationFieldType35); int int40 = period15.get(durationFieldType35); org.joda.time.Period period42 = period15.plusMonths((int) ' '); org.joda.time.Period period44 = period42.minusWeeks(97); org.joda.time.Period period46 = period44.minusWeeks(100); org.junit.Assert.assertNotNull(hours11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(durationFieldType35); org.junit.Assert.assertTrue("'" + int36 + "' != '" + 0 + "'", int36 == 0); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertTrue("'" + boolean39 + "' != '" + true + "'", boolean39 == true); org.junit.Assert.assertTrue("'" + int40 + "' != '" + 0 + "'", int40 == 0); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period46); } @Test public void test0517() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0517"); org.joda.time.format.PeriodFormatter periodFormatter1 = null; // The following exception was thrown during execution in test generation try { org.joda.time.Period period2 = org.joda.time.Period.parse("P10YT0.009S", periodFormatter1); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null"); } catch (java.lang.NullPointerException e) { // Expected exception. } } @Test public void test0518() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0518"); org.joda.time.Period period8 = new org.joda.time.Period((-1), (int) (byte) 100, 32, (int) (byte) 10, (int) (short) 0, (int) (byte) 100, 0, (int) (short) 100); } @Test public void test0519() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0519"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period3 = period1.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.PeriodType periodType6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant4, readableInstant5, periodType6); org.joda.time.Period period9 = period7.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.PeriodType periodType12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant10, readableInstant11, periodType12); org.joda.time.DurationFieldType durationFieldType15 = period13.getFieldType((int) (byte) 0); int int16 = period9.indexOf(durationFieldType15); org.joda.time.Period period18 = period1.withFieldAdded(durationFieldType15, 1); org.joda.time.Period period20 = period18.plusSeconds((int) (byte) 1); org.joda.time.PeriodType periodType21 = period20.getPeriodType(); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.PeriodType periodType24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant22, readableInstant23, periodType24); org.joda.time.Period period27 = period25.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.PeriodType periodType30 = null; org.joda.time.Period period31 = new org.joda.time.Period(readableInstant28, readableInstant29, periodType30); org.joda.time.Period period33 = period31.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.PeriodType periodType36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant34, readableInstant35, periodType36); org.joda.time.DurationFieldType durationFieldType39 = period37.getFieldType((int) (byte) 0); int int40 = period33.indexOf(durationFieldType39); int int41 = period25.get(durationFieldType39); org.joda.time.Period period43 = period20.withFieldAdded(durationFieldType39, (int) (short) 0); org.joda.time.Period period45 = period43.minusYears(8); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.Period period48 = new org.joda.time.Period(readableInstant46, readableInstant47); org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.PeriodType periodType51 = null; org.joda.time.Period period52 = new org.joda.time.Period(readableInstant49, readableInstant50, periodType51); org.joda.time.MutablePeriod mutablePeriod53 = period52.toMutablePeriod(); org.joda.time.Period period54 = period48.plus((org.joda.time.ReadablePeriod) period52); org.joda.time.PeriodType periodType55 = period54.getPeriodType(); boolean boolean56 = period43.equals((java.lang.Object) period54); org.joda.time.Period period57 = period54.negated(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(durationFieldType15); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(periodType21); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(durationFieldType39); org.junit.Assert.assertTrue("'" + int40 + "' != '" + 0 + "'", int40 == 0); org.junit.Assert.assertTrue("'" + int41 + "' != '" + 0 + "'", int41 == 0); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertNotNull(mutablePeriod53); org.junit.Assert.assertNotNull(period54); org.junit.Assert.assertNotNull(periodType55); org.junit.Assert.assertTrue("'" + boolean56 + "' != '" + false + "'", boolean56 == false); org.junit.Assert.assertNotNull(period57); } @Test public void test0520() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0520"); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant11, readableInstant12); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Duration duration15 = period13.toDurationFrom(readableInstant14); org.joda.time.Period period17 = period13.plusMonths(0); org.joda.time.Period period19 = period17.plusMonths((int) '#'); org.joda.time.Period period21 = period17.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType22 = period17.getPeriodType(); org.joda.time.Chronology chronology23 = null; org.joda.time.Period period24 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType22, chronology23); org.joda.time.Period period25 = new org.joda.time.Period(readableInstant7, readableInstant8, periodType22); org.joda.time.Period period26 = new org.joda.time.Period(readableInstant5, readableInstant6, periodType22); org.joda.time.Chronology chronology27 = null; org.joda.time.Period period28 = new org.joda.time.Period((long) ' ', 0L, periodType22, chronology27); org.joda.time.Period period29 = new org.joda.time.Period(100L, periodType22); org.joda.time.Chronology chronology30 = null; org.joda.time.Period period31 = new org.joda.time.Period((long) 0, periodType22, chronology30); org.joda.time.Chronology chronology32 = null; org.joda.time.Period period33 = new org.joda.time.Period((long) '4', periodType22, chronology32); org.joda.time.DurationFieldType[] durationFieldTypeArray34 = period33.getFieldTypes(); org.junit.Assert.assertNotNull(duration15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(periodType22); org.junit.Assert.assertNotNull(durationFieldTypeArray34); } @Test public void test0521() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0521"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); org.joda.time.Period period12 = period10.withWeeks((int) ' '); org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period((java.lang.Object) period10, periodType13); int int15 = period10.getHours(); org.joda.time.Weeks weeks16 = period10.toStandardWeeks(); org.joda.time.Period period18 = period10.plusHours(8); org.joda.time.Period period20 = period10.minusMinutes(1); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); org.junit.Assert.assertNotNull(weeks16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); } @Test public void test0522() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0522"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); org.joda.time.Period period12 = period10.withWeeks((int) ' '); org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period((java.lang.Object) period10, periodType13); org.joda.time.PeriodType periodType15 = null; org.joda.time.Period period16 = period14.normalizedStandard(periodType15); org.joda.time.MutablePeriod mutablePeriod17 = period14.toMutablePeriod(); org.joda.time.PeriodType periodType19 = null; org.joda.time.Chronology chronology20 = null; org.joda.time.Period period21 = new org.joda.time.Period((long) 'a', periodType19, chronology20); org.joda.time.PeriodType periodType23 = null; org.joda.time.Chronology chronology24 = null; org.joda.time.Period period25 = new org.joda.time.Period((long) 'a', periodType23, chronology24); org.joda.time.Hours hours26 = period25.toStandardHours(); org.joda.time.Period period27 = period21.withFields((org.joda.time.ReadablePeriod) period25); org.joda.time.Period period29 = period21.withYears(10); org.joda.time.Period period30 = period29.toPeriod(); org.joda.time.Period period32 = period29.plusMillis(1); org.joda.time.Period period33 = period14.minus((org.joda.time.ReadablePeriod) period29); int int34 = period33.getMonths(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(mutablePeriod17); org.junit.Assert.assertNotNull(hours26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertTrue("'" + int34 + "' != '" + 0 + "'", int34 == 0); } @Test public void test0523() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0523"); org.joda.time.Period period1 = new org.joda.time.Period(10L); } @Test public void test0524() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0524"); org.joda.time.Period period1 = org.joda.time.Period.hours((int) (byte) 100); org.joda.time.Period period3 = period1.minusMinutes((int) (short) -1); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant4, readableInstant5); org.joda.time.Period period7 = period6.normalizedStandard(); org.joda.time.Period period9 = period6.withWeeks(1); org.joda.time.PeriodType periodType11 = null; org.joda.time.Chronology chronology12 = null; org.joda.time.Period period13 = new org.joda.time.Period((long) 'a', periodType11, chronology12); org.joda.time.Period period15 = period13.withMinutes(0); org.joda.time.Period period16 = period6.minus((org.joda.time.ReadablePeriod) period15); org.joda.time.Chronology chronology19 = null; org.joda.time.Period period20 = new org.joda.time.Period(100L, (long) ' ', chronology19); org.joda.time.Period period22 = period20.plusHours(1); org.joda.time.Weeks weeks23 = period22.toStandardWeeks(); org.joda.time.Chronology chronology26 = null; org.joda.time.Period period27 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology26); java.lang.String str28 = period27.toString(); org.joda.time.Period period29 = new org.joda.time.Period((java.lang.Object) str28); org.joda.time.Period period31 = period29.plusSeconds((int) 'a'); org.joda.time.Period period33 = period29.plusYears((int) (byte) 0); org.joda.time.Period period35 = period29.withMonths(0); org.joda.time.PeriodType periodType37 = null; org.joda.time.Chronology chronology38 = null; org.joda.time.Period period39 = new org.joda.time.Period((long) 'a', periodType37, chronology38); org.joda.time.Period period41 = period39.withMinutes(0); org.joda.time.Period period43 = period41.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod44 = period41.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.Period period47 = new org.joda.time.Period(readableInstant45, readableInstant46); org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.Duration duration49 = period47.toDurationFrom(readableInstant48); org.joda.time.Period period51 = period47.plusMonths(0); org.joda.time.Period period53 = period51.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.Duration duration55 = period51.toDurationFrom(readableInstant54); org.joda.time.Period period57 = period51.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant58 = null; org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.PeriodType periodType60 = null; org.joda.time.Period period61 = new org.joda.time.Period(readableInstant58, readableInstant59, periodType60); org.joda.time.Period period63 = period61.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.PeriodType periodType66 = null; org.joda.time.Period period67 = new org.joda.time.Period(readableInstant64, readableInstant65, periodType66); org.joda.time.Period period69 = period67.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant70 = null; org.joda.time.ReadableInstant readableInstant71 = null; org.joda.time.PeriodType periodType72 = null; org.joda.time.Period period73 = new org.joda.time.Period(readableInstant70, readableInstant71, periodType72); org.joda.time.DurationFieldType durationFieldType75 = period73.getFieldType((int) (byte) 0); int int76 = period69.indexOf(durationFieldType75); int int77 = period61.get(durationFieldType75); org.joda.time.Period period79 = period51.withField(durationFieldType75, (int) (short) 0); int int80 = mutablePeriod44.indexOf(durationFieldType75); int int81 = period35.get(durationFieldType75); org.joda.time.Period period83 = period22.withFieldAdded(durationFieldType75, (int) (byte) 1); org.joda.time.Period period85 = period6.withField(durationFieldType75, 0); org.joda.time.Period period87 = period1.withField(durationFieldType75, 11); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(weeks23); org.junit.Assert.assertEquals("'" + str28 + "' != '" + "PT0.011S" + "'", str28, "PT0.011S"); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(period41); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(mutablePeriod44); org.junit.Assert.assertNotNull(duration49); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertNotNull(duration55); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertNotNull(period63); org.junit.Assert.assertNotNull(period69); org.junit.Assert.assertNotNull(durationFieldType75); org.junit.Assert.assertTrue("'" + int76 + "' != '" + 0 + "'", int76 == 0); org.junit.Assert.assertTrue("'" + int77 + "' != '" + 0 + "'", int77 == 0); org.junit.Assert.assertNotNull(period79); org.junit.Assert.assertTrue("'" + int80 + "' != '" + 0 + "'", int80 == 0); org.junit.Assert.assertTrue("'" + int81 + "' != '" + 0 + "'", int81 == 0); org.junit.Assert.assertNotNull(period83); org.junit.Assert.assertNotNull(period85); org.junit.Assert.assertNotNull(period87); } @Test public void test0525() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0525"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 100, (long) (-1), chronology2); org.joda.time.Period period5 = period3.plusMinutes((int) (short) 10); org.joda.time.Period period7 = period5.plusMinutes((-1)); int int8 = period7.getWeeks(); org.joda.time.Period period10 = period7.withMinutes((int) (byte) 10); org.joda.time.PeriodType periodType11 = period10.getPeriodType(); org.joda.time.Days days12 = period10.toStandardDays(); org.joda.time.Period period13 = new org.joda.time.Period((java.lang.Object) period10); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(periodType11); org.junit.Assert.assertNotNull(days12); } @Test public void test0526() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0526"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period3 = period1.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.PeriodType periodType6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant4, readableInstant5, periodType6); org.joda.time.Period period9 = period7.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.PeriodType periodType12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant10, readableInstant11, periodType12); org.joda.time.DurationFieldType durationFieldType15 = period13.getFieldType((int) (byte) 0); int int16 = period9.indexOf(durationFieldType15); org.joda.time.Period period18 = period1.withFieldAdded(durationFieldType15, 1); org.joda.time.Period period20 = period18.plusSeconds((int) (byte) 1); org.joda.time.PeriodType periodType21 = period20.getPeriodType(); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.PeriodType periodType24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant22, readableInstant23, periodType24); org.joda.time.Period period27 = period25.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.PeriodType periodType30 = null; org.joda.time.Period period31 = new org.joda.time.Period(readableInstant28, readableInstant29, periodType30); org.joda.time.Period period33 = period31.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.PeriodType periodType36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant34, readableInstant35, periodType36); org.joda.time.DurationFieldType durationFieldType39 = period37.getFieldType((int) (byte) 0); int int40 = period33.indexOf(durationFieldType39); int int41 = period25.get(durationFieldType39); org.joda.time.Period period43 = period20.withFieldAdded(durationFieldType39, (int) (short) 0); org.joda.time.Period period45 = period43.minusYears(8); org.joda.time.Period period47 = period45.multipliedBy((int) (byte) 0); org.joda.time.Period period49 = period47.minusWeeks(0); org.joda.time.Period period51 = period49.plusSeconds((int) (byte) 1); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(durationFieldType15); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(periodType21); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(durationFieldType39); org.junit.Assert.assertTrue("'" + int40 + "' != '" + 0 + "'", int40 == 0); org.junit.Assert.assertTrue("'" + int41 + "' != '" + 0 + "'", int41 == 0); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period51); } @Test public void test0527() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0527"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); org.joda.time.Period period12 = period10.withWeeks((int) ' '); org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period((java.lang.Object) period10, periodType13); org.joda.time.PeriodType periodType15 = null; org.joda.time.Period period16 = period14.normalizedStandard(periodType15); org.joda.time.MutablePeriod mutablePeriod17 = period14.toMutablePeriod(); org.joda.time.PeriodType periodType19 = null; org.joda.time.Chronology chronology20 = null; org.joda.time.Period period21 = new org.joda.time.Period((long) 'a', periodType19, chronology20); org.joda.time.PeriodType periodType23 = null; org.joda.time.Chronology chronology24 = null; org.joda.time.Period period25 = new org.joda.time.Period((long) 'a', periodType23, chronology24); org.joda.time.Hours hours26 = period25.toStandardHours(); org.joda.time.Period period27 = period21.withFields((org.joda.time.ReadablePeriod) period25); org.joda.time.Period period29 = period21.withYears(10); org.joda.time.Period period30 = period29.toPeriod(); org.joda.time.Period period32 = period29.plusMillis(1); org.joda.time.Period period33 = period14.minus((org.joda.time.ReadablePeriod) period29); org.joda.time.Period period35 = period33.plusHours(0); org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Period period38 = new org.joda.time.Period(readableInstant36, readableInstant37); org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Duration duration40 = period38.toDurationFrom(readableInstant39); org.joda.time.Period period42 = period38.plusMonths(0); org.joda.time.Period period44 = period42.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.Duration duration46 = period42.toDurationFrom(readableInstant45); org.joda.time.Period period48 = period42.minusMonths((int) (byte) 0); org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.ReadableInstant readableInstant57 = null; org.joda.time.Period period58 = new org.joda.time.Period(readableInstant56, readableInstant57); org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.Duration duration60 = period58.toDurationFrom(readableInstant59); org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.Period period64 = new org.joda.time.Period(readableInstant62, readableInstant63); org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.Duration duration66 = period64.toDurationFrom(readableInstant65); org.joda.time.Period period68 = period64.plusMonths(0); org.joda.time.Period period70 = period68.plusMonths((int) '#'); org.joda.time.Period period72 = period68.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType73 = period68.getPeriodType(); org.joda.time.Chronology chronology74 = null; org.joda.time.Period period75 = new org.joda.time.Period((long) (short) -1, periodType73, chronology74); org.joda.time.Period period76 = new org.joda.time.Period(readableInstant55, (org.joda.time.ReadableDuration) duration60, periodType73); org.joda.time.Period period77 = new org.joda.time.Period(readableInstant53, readableInstant54, periodType73); org.joda.time.Chronology chronology78 = null; org.joda.time.Period period79 = new org.joda.time.Period((long) (-100), (long) (-100), periodType73, chronology78); org.joda.time.Chronology chronology80 = null; org.joda.time.Period period81 = new org.joda.time.Period((long) 0, (long) 100, periodType73, chronology80); org.joda.time.Period period82 = period42.normalizedStandard(periodType73); org.joda.time.Period period83 = new org.joda.time.Period((java.lang.Object) period33, periodType73); org.joda.time.ReadableInstant readableInstant84 = null; org.joda.time.Duration duration85 = period33.toDurationTo(readableInstant84); org.joda.time.Period period87 = period33.plusSeconds(10); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(mutablePeriod17); org.junit.Assert.assertNotNull(hours26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(duration40); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(duration46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(duration60); org.junit.Assert.assertNotNull(duration66); org.junit.Assert.assertNotNull(period68); org.junit.Assert.assertNotNull(period70); org.junit.Assert.assertNotNull(period72); org.junit.Assert.assertNotNull(periodType73); org.junit.Assert.assertNotNull(period82); org.junit.Assert.assertNotNull(duration85); org.junit.Assert.assertNotNull(period87); } @Test public void test0528() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0528"); org.joda.time.Period period8 = new org.joda.time.Period(52, (-3), (int) (short) 1, 98, 11, (int) 'a', 1, (int) (short) 100); } @Test public void test0529() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0529"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); java.lang.String str4 = period3.toString(); org.joda.time.Period period5 = new org.joda.time.Period((java.lang.Object) str4); int int6 = period5.getYears(); org.junit.Assert.assertEquals("'" + str4 + "' != '" + "PT0.011S" + "'", str4, "PT0.011S"); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); } @Test public void test0530() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0530"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Period period11 = period9.withMinutes(0); org.joda.time.Period period12 = period2.minus((org.joda.time.ReadablePeriod) period11); org.joda.time.Period period14 = period11.minusMillis((int) ' '); org.joda.time.PeriodType periodType16 = null; org.joda.time.Chronology chronology17 = null; org.joda.time.Period period18 = new org.joda.time.Period((long) 'a', periodType16, chronology17); org.joda.time.PeriodType periodType20 = null; org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) 'a', periodType20, chronology21); org.joda.time.Hours hours23 = period22.toStandardHours(); org.joda.time.Period period24 = period18.withFields((org.joda.time.ReadablePeriod) period22); org.joda.time.Period period26 = period18.withYears(10); org.joda.time.Period period27 = period26.toPeriod(); org.joda.time.Period period29 = period26.plusMillis(1); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Period period34 = new org.joda.time.Period(readableInstant32, readableInstant33); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Duration duration36 = period34.toDurationFrom(readableInstant35); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Period period40 = new org.joda.time.Period(readableInstant38, readableInstant39); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.Duration duration42 = period40.toDurationFrom(readableInstant41); org.joda.time.Period period44 = period40.plusMonths(0); org.joda.time.Period period46 = period44.plusMonths((int) '#'); org.joda.time.Period period48 = period44.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType49 = period44.getPeriodType(); org.joda.time.Chronology chronology50 = null; org.joda.time.Period period51 = new org.joda.time.Period((long) (short) -1, periodType49, chronology50); org.joda.time.Period period52 = new org.joda.time.Period(readableInstant31, (org.joda.time.ReadableDuration) duration36, periodType49); org.joda.time.Chronology chronology53 = null; org.joda.time.Period period54 = new org.joda.time.Period((long) (byte) 0, periodType49, chronology53); org.joda.time.Period period55 = period29.normalizedStandard(periodType49); org.joda.time.Period period56 = period11.normalizedStandard(periodType49); int int57 = period56.getMonths(); org.joda.time.PeriodType periodType58 = period56.getPeriodType(); org.joda.time.ReadableInstant readableInstant69 = null; org.joda.time.ReadableInstant readableInstant70 = null; org.joda.time.ReadableInstant readableInstant71 = null; org.joda.time.ReadableInstant readableInstant72 = null; org.joda.time.ReadableInstant readableInstant73 = null; org.joda.time.Period period74 = new org.joda.time.Period(readableInstant72, readableInstant73); org.joda.time.ReadableInstant readableInstant75 = null; org.joda.time.Duration duration76 = period74.toDurationFrom(readableInstant75); org.joda.time.ReadableInstant readableInstant78 = null; org.joda.time.ReadableInstant readableInstant79 = null; org.joda.time.Period period80 = new org.joda.time.Period(readableInstant78, readableInstant79); org.joda.time.ReadableInstant readableInstant81 = null; org.joda.time.Duration duration82 = period80.toDurationFrom(readableInstant81); org.joda.time.Period period84 = period80.plusMonths(0); org.joda.time.Period period86 = period84.plusMonths((int) '#'); org.joda.time.Period period88 = period84.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType89 = period84.getPeriodType(); org.joda.time.Chronology chronology90 = null; org.joda.time.Period period91 = new org.joda.time.Period((long) (short) -1, periodType89, chronology90); org.joda.time.Period period92 = new org.joda.time.Period(readableInstant71, (org.joda.time.ReadableDuration) duration76, periodType89); org.joda.time.Period period93 = new org.joda.time.Period(readableInstant69, readableInstant70, periodType89); org.joda.time.Chronology chronology94 = null; org.joda.time.Period period95 = new org.joda.time.Period((long) (-100), (long) (-100), periodType89, chronology94); org.joda.time.Period period96 = new org.joda.time.Period(100, (int) '4', 10, 0, (int) (short) 1, (int) ' ', (int) (short) 0, (int) (byte) 10, periodType89); org.joda.time.Period period97 = period56.withPeriodType(periodType89); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(hours23); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(duration36); org.junit.Assert.assertNotNull(duration42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(periodType49); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertNotNull(period56); org.junit.Assert.assertTrue("'" + int57 + "' != '" + 0 + "'", int57 == 0); org.junit.Assert.assertNotNull(periodType58); org.junit.Assert.assertNotNull(duration76); org.junit.Assert.assertNotNull(duration82); org.junit.Assert.assertNotNull(period84); org.junit.Assert.assertNotNull(period86); org.junit.Assert.assertNotNull(period88); org.junit.Assert.assertNotNull(periodType89); org.junit.Assert.assertNotNull(period97); } @Test public void test0531() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0531"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.Period period8 = period6.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period6.toDurationTo(readableInstant9); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant11, readableInstant12); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Duration duration15 = period13.toDurationFrom(readableInstant14); org.joda.time.Period period17 = period13.plusMonths(0); org.joda.time.Period period19 = period17.plusMonths((int) '#'); org.joda.time.Period period21 = period17.plusMinutes((int) (short) 100); org.joda.time.Period period23 = period21.minusWeeks(1); org.joda.time.DurationFieldType durationFieldType25 = period21.getFieldType((int) (byte) 0); org.joda.time.Hours hours26 = period21.toStandardHours(); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.Period period29 = new org.joda.time.Period(readableInstant27, readableInstant28); org.joda.time.Period period30 = period29.normalizedStandard(); org.joda.time.Period period32 = period29.plusMinutes((int) ' '); org.joda.time.Period period33 = period32.normalizedStandard(); org.joda.time.Period period34 = new org.joda.time.Period((java.lang.Object) period33); org.joda.time.format.PeriodFormatter periodFormatter35 = null; java.lang.String str36 = period34.toString(periodFormatter35); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.Period period49 = new org.joda.time.Period(readableInstant47, readableInstant48); org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.Duration duration51 = period49.toDurationFrom(readableInstant50); org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.Period period55 = new org.joda.time.Period(readableInstant53, readableInstant54); org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.Duration duration57 = period55.toDurationFrom(readableInstant56); org.joda.time.Period period59 = period55.plusMonths(0); org.joda.time.Period period61 = period59.plusMonths((int) '#'); org.joda.time.Period period63 = period59.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType64 = period59.getPeriodType(); org.joda.time.Chronology chronology65 = null; org.joda.time.Period period66 = new org.joda.time.Period((long) (short) -1, periodType64, chronology65); org.joda.time.Period period67 = new org.joda.time.Period(readableInstant46, (org.joda.time.ReadableDuration) duration51, periodType64); org.joda.time.Chronology chronology68 = null; org.joda.time.Period period69 = new org.joda.time.Period((long) (short) 100, periodType64, chronology68); org.joda.time.Period period70 = new org.joda.time.Period(0, (int) 'a', (int) ' ', (int) (short) 100, (int) (byte) 0, (int) (byte) 10, 10, (int) (short) -1, periodType64); org.joda.time.Period period71 = new org.joda.time.Period((java.lang.Object) str36, periodType64); org.joda.time.Chronology chronology72 = null; org.joda.time.Period period73 = new org.joda.time.Period((java.lang.Object) hours26, periodType64, chronology72); org.joda.time.Period period74 = new org.joda.time.Period(readableInstant2, (org.joda.time.ReadableDuration) duration10, periodType64); org.joda.time.Period period75 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType64); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(duration15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(durationFieldType25); org.junit.Assert.assertNotNull(hours26); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertEquals("'" + str36 + "' != '" + "PT32M" + "'", str36, "PT32M"); org.junit.Assert.assertNotNull(duration51); org.junit.Assert.assertNotNull(duration57); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(period63); org.junit.Assert.assertNotNull(periodType64); } @Test public void test0532() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0532"); org.joda.time.Period period1 = org.joda.time.Period.minutes(52); org.junit.Assert.assertNotNull(period1); } @Test public void test0533() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0533"); org.joda.time.PeriodType periodType2 = null; org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period(10L, (long) (short) 0, periodType2, chronology3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Duration duration6 = period4.toDurationFrom(readableInstant5); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Period period8 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration6, readableInstant7); org.joda.time.Period period10 = period8.minusMillis(0); int int11 = period10.getYears(); org.junit.Assert.assertNotNull(duration6); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); } @Test public void test0534() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0534"); org.joda.time.PeriodType periodType8 = null; org.joda.time.Period period9 = new org.joda.time.Period((-1), 0, (int) '#', (int) (short) 10, (int) (short) 0, 10, (int) (short) 1, (int) (byte) 10, periodType8); org.joda.time.Period period11 = period9.withYears((int) ' '); org.joda.time.Period period13 = period11.withWeeks((int) ' '); int int14 = period13.size(); org.joda.time.Period period16 = period13.withWeeks((int) (byte) 0); org.joda.time.Period period18 = period16.plusMinutes(11); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 8 + "'", int14 == 8); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); } @Test public void test0535() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0535"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.Period period2 = org.joda.time.Period.hours((int) (byte) 1); org.joda.time.Period period4 = period2.withDays(1); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Duration duration6 = period2.toDurationFrom(readableInstant5); org.joda.time.Period period7 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration6); // The following exception was thrown during execution in test generation try { int int9 = period7.getValue((int) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: 100"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(period2); org.junit.Assert.assertNotNull(period4); org.junit.Assert.assertNotNull(duration6); } @Test public void test0536() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0536"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); org.joda.time.Period period12 = period10.withWeeks((int) ' '); org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period((java.lang.Object) period10, periodType13); int int15 = period10.getHours(); org.joda.time.Weeks weeks16 = period10.toStandardWeeks(); org.joda.time.Period period18 = period10.plusHours(8); org.joda.time.Period period20 = period10.withHours((int) (byte) 100); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); org.junit.Assert.assertNotNull(weeks16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); } @Test public void test0537() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0537"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.plusMinutes((int) ' '); org.joda.time.Period period6 = period5.normalizedStandard(); org.joda.time.Period period7 = new org.joda.time.Period((java.lang.Object) period6); org.joda.time.Chronology chronology9 = null; org.joda.time.Period period10 = new org.joda.time.Period(0L, chronology9); org.joda.time.Period period12 = period10.withMinutes((int) '#'); org.joda.time.Period period13 = period6.plus((org.joda.time.ReadablePeriod) period10); org.joda.time.Period period15 = period6.plusWeeks((int) (byte) 0); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); } @Test public void test0538() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0538"); org.joda.time.Period period1 = org.joda.time.Period.millis(1); org.joda.time.Period period3 = period1.withWeeks((int) (short) 0); org.joda.time.Period period5 = period1.plusHours((int) (short) 100); org.joda.time.Period period7 = period5.plusYears((int) (short) 1); // The following exception was thrown during execution in test generation try { org.joda.time.Weeks weeks8 = period7.toStandardWeeks(); org.junit.Assert.fail("Expected exception of type java.lang.UnsupportedOperationException; message: Cannot convert to Weeks as this period contains years and years vary in length"); } catch (java.lang.UnsupportedOperationException e) { // Expected exception. } org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); } @Test public void test0539() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0539"); org.joda.time.PeriodType periodType2 = null; org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period((long) '4', (-1L), periodType2, chronology3); org.joda.time.Period period5 = period4.toPeriod(); org.joda.time.Period period7 = period5.withYears(1); int int8 = period5.getWeeks(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); } @Test public void test0540() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0540"); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Period period8 = new org.joda.time.Period(readableInstant6, readableInstant7); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.PeriodType periodType11 = null; org.joda.time.Period period12 = new org.joda.time.Period(readableInstant9, readableInstant10, periodType11); org.joda.time.MutablePeriod mutablePeriod13 = period12.toMutablePeriod(); org.joda.time.Period period14 = period8.plus((org.joda.time.ReadablePeriod) period12); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.PeriodType periodType17 = null; org.joda.time.Period period18 = new org.joda.time.Period(readableInstant15, readableInstant16, periodType17); org.joda.time.Period period20 = period18.plusMonths((int) '4'); org.joda.time.Period period21 = period12.withFields((org.joda.time.ReadablePeriod) period20); org.joda.time.PeriodType periodType22 = period20.getPeriodType(); org.joda.time.Period period23 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType22); org.joda.time.Period period24 = new org.joda.time.Period((long) 'a', (long) 10, periodType22); org.joda.time.Period period25 = new org.joda.time.Period((long) (short) 100, 100L, periodType22); org.joda.time.Period period27 = period25.plusMillis((int) (short) 10); org.joda.time.format.PeriodFormatter periodFormatter28 = null; java.lang.String str29 = period27.toString(periodFormatter28); org.junit.Assert.assertNotNull(mutablePeriod13); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(periodType22); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertEquals("'" + str29 + "' != '" + "PT0.010S" + "'", str29, "PT0.010S"); } @Test public void test0541() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0541"); org.joda.time.Period period1 = org.joda.time.Period.weeks(98); int int2 = period1.getMinutes(); org.joda.time.Period period4 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period6 = period4.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.PeriodType periodType9 = null; org.joda.time.Period period10 = new org.joda.time.Period(readableInstant7, readableInstant8, periodType9); org.joda.time.Period period12 = period10.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.PeriodType periodType15 = null; org.joda.time.Period period16 = new org.joda.time.Period(readableInstant13, readableInstant14, periodType15); org.joda.time.DurationFieldType durationFieldType18 = period16.getFieldType((int) (byte) 0); int int19 = period12.indexOf(durationFieldType18); org.joda.time.Period period21 = period4.withFieldAdded(durationFieldType18, 1); org.joda.time.Period period23 = period21.plusSeconds((int) (byte) 1); org.joda.time.PeriodType periodType24 = period23.getPeriodType(); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.PeriodType periodType27 = null; org.joda.time.Period period28 = new org.joda.time.Period(readableInstant25, readableInstant26, periodType27); org.joda.time.Period period30 = period28.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.PeriodType periodType33 = null; org.joda.time.Period period34 = new org.joda.time.Period(readableInstant31, readableInstant32, periodType33); org.joda.time.Period period36 = period34.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.PeriodType periodType39 = null; org.joda.time.Period period40 = new org.joda.time.Period(readableInstant37, readableInstant38, periodType39); org.joda.time.DurationFieldType durationFieldType42 = period40.getFieldType((int) (byte) 0); int int43 = period36.indexOf(durationFieldType42); int int44 = period28.get(durationFieldType42); org.joda.time.Period period46 = period23.withFieldAdded(durationFieldType42, (int) (short) 0); int int47 = period1.get(durationFieldType42); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertNotNull(period4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(durationFieldType18); org.junit.Assert.assertTrue("'" + int19 + "' != '" + 0 + "'", int19 == 0); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(periodType24); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(durationFieldType42); org.junit.Assert.assertTrue("'" + int43 + "' != '" + 0 + "'", int43 == 0); org.junit.Assert.assertTrue("'" + int44 + "' != '" + 0 + "'", int44 == 0); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertTrue("'" + int47 + "' != '" + 0 + "'", int47 == 0); } @Test public void test0542() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0542"); org.joda.time.ReadablePartial readablePartial0 = null; org.joda.time.ReadablePartial readablePartial1 = null; org.joda.time.PeriodType periodType11 = null; org.joda.time.Chronology chronology12 = null; org.joda.time.Period period13 = new org.joda.time.Period((long) 'a', periodType11, chronology12); org.joda.time.PeriodType periodType15 = null; org.joda.time.Chronology chronology16 = null; org.joda.time.Period period17 = new org.joda.time.Period((long) 'a', periodType15, chronology16); org.joda.time.Hours hours18 = period17.toStandardHours(); org.joda.time.Period period19 = period13.withFields((org.joda.time.ReadablePeriod) period17); org.joda.time.Period period21 = period13.withYears(10); org.joda.time.Period period22 = period21.toPeriod(); org.joda.time.Period period24 = period21.plusMillis(1); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.Period period29 = new org.joda.time.Period(readableInstant27, readableInstant28); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.Duration duration31 = period29.toDurationFrom(readableInstant30); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.Period period35 = new org.joda.time.Period(readableInstant33, readableInstant34); org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.Duration duration37 = period35.toDurationFrom(readableInstant36); org.joda.time.Period period39 = period35.plusMonths(0); org.joda.time.Period period41 = period39.plusMonths((int) '#'); org.joda.time.Period period43 = period39.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType44 = period39.getPeriodType(); org.joda.time.Chronology chronology45 = null; org.joda.time.Period period46 = new org.joda.time.Period((long) (short) -1, periodType44, chronology45); org.joda.time.Period period47 = new org.joda.time.Period(readableInstant26, (org.joda.time.ReadableDuration) duration31, periodType44); org.joda.time.Chronology chronology48 = null; org.joda.time.Period period49 = new org.joda.time.Period((long) (byte) 0, periodType44, chronology48); org.joda.time.Period period50 = period24.normalizedStandard(periodType44); org.joda.time.Period period51 = new org.joda.time.Period((int) (short) 1, 10, (int) '4', (int) '#', 0, (int) (byte) -1, 0, 10, periodType44); // The following exception was thrown during execution in test generation try { org.joda.time.Period period52 = new org.joda.time.Period(readablePartial0, readablePartial1, periodType44); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: ReadablePartial objects must not be null"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(hours18); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(duration31); org.junit.Assert.assertNotNull(duration37); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertNotNull(period41); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(periodType44); org.junit.Assert.assertNotNull(period50); } @Test public void test0543() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0543"); org.joda.time.format.PeriodFormatter periodFormatter1 = null; // The following exception was thrown during execution in test generation try { org.joda.time.Period period2 = org.joda.time.Period.parse("PT0.010S", periodFormatter1); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null"); } catch (java.lang.NullPointerException e) { // Expected exception. } } @Test public void test0544() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0544"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); org.joda.time.Period period12 = period10.withWeeks((int) ' '); org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period((java.lang.Object) period10, periodType13); org.joda.time.PeriodType periodType19 = null; org.joda.time.Chronology chronology20 = null; org.joda.time.Period period21 = new org.joda.time.Period((long) 'a', periodType19, chronology20); org.joda.time.PeriodType periodType23 = null; org.joda.time.Chronology chronology24 = null; org.joda.time.Period period25 = new org.joda.time.Period((long) 'a', periodType23, chronology24); org.joda.time.Hours hours26 = period25.toStandardHours(); org.joda.time.Period period27 = period21.withFields((org.joda.time.ReadablePeriod) period25); org.joda.time.Period period29 = period21.withYears(10); org.joda.time.Period period30 = period29.toPeriod(); org.joda.time.Period period32 = period29.plusMillis(1); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant35, readableInstant36); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.Duration duration39 = period37.toDurationFrom(readableInstant38); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.Period period43 = new org.joda.time.Period(readableInstant41, readableInstant42); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Duration duration45 = period43.toDurationFrom(readableInstant44); org.joda.time.Period period47 = period43.plusMonths(0); org.joda.time.Period period49 = period47.plusMonths((int) '#'); org.joda.time.Period period51 = period47.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType52 = period47.getPeriodType(); org.joda.time.Chronology chronology53 = null; org.joda.time.Period period54 = new org.joda.time.Period((long) (short) -1, periodType52, chronology53); org.joda.time.Period period55 = new org.joda.time.Period(readableInstant34, (org.joda.time.ReadableDuration) duration39, periodType52); org.joda.time.Chronology chronology56 = null; org.joda.time.Period period57 = new org.joda.time.Period((long) (byte) 0, periodType52, chronology56); org.joda.time.Period period58 = period32.normalizedStandard(periodType52); org.joda.time.Chronology chronology59 = null; org.joda.time.Period period60 = new org.joda.time.Period(0L, (long) 8, periodType52, chronology59); org.joda.time.Chronology chronology61 = null; org.joda.time.Period period62 = new org.joda.time.Period((long) ' ', periodType52, chronology61); org.joda.time.Period period63 = new org.joda.time.Period((java.lang.Object) period14, periodType52); org.joda.time.Period period65 = period63.minusMonths((-1)); org.joda.time.Period period67 = period63.minusMinutes(98); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(hours26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(duration39); org.junit.Assert.assertNotNull(duration45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(periodType52); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertNotNull(period65); org.junit.Assert.assertNotNull(period67); } @Test public void test0545() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0545"); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Period period12 = new org.joda.time.Period(readableInstant10, readableInstant11); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Duration duration14 = period12.toDurationFrom(readableInstant13); org.joda.time.Period period16 = period12.plusMonths(0); org.joda.time.Period period18 = period16.plusMonths((int) '#'); org.joda.time.Period period20 = period16.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType21 = period16.getPeriodType(); org.joda.time.Chronology chronology22 = null; org.joda.time.Period period23 = new org.joda.time.Period((long) (short) -1, periodType21, chronology22); org.joda.time.Period period24 = new org.joda.time.Period(0, 1, (int) (short) 100, (-1), (int) (short) 10, 100, (int) ' ', (int) (short) 1, periodType21); org.joda.time.Period period25 = new org.joda.time.Period((long) (byte) 10, periodType21); org.joda.time.Period period27 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period29 = period27.plusMillis((int) 'a'); boolean boolean30 = period25.equals((java.lang.Object) period29); org.joda.time.PeriodType periodType39 = null; org.joda.time.Period period40 = new org.joda.time.Period((-1), 0, (int) '#', (int) (short) 10, (int) (short) 0, 10, (int) (short) 1, (int) (byte) 10, periodType39); org.joda.time.Period period42 = period40.withYears((int) ' '); org.joda.time.Period period44 = period42.withWeeks((int) ' '); org.joda.time.PeriodType periodType47 = null; org.joda.time.Chronology chronology48 = null; org.joda.time.Period period49 = new org.joda.time.Period((long) 'a', periodType47, chronology48); org.joda.time.PeriodType periodType51 = null; org.joda.time.Chronology chronology52 = null; org.joda.time.Period period53 = new org.joda.time.Period((long) 'a', periodType51, chronology52); org.joda.time.Hours hours54 = period53.toStandardHours(); org.joda.time.Period period55 = period49.withFields((org.joda.time.ReadablePeriod) period53); org.joda.time.Period period57 = period49.withYears(10); org.joda.time.Period period58 = period57.toPeriod(); org.joda.time.Period period60 = period57.plusMillis(1); org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.Period period65 = new org.joda.time.Period(readableInstant63, readableInstant64); org.joda.time.ReadableInstant readableInstant66 = null; org.joda.time.Duration duration67 = period65.toDurationFrom(readableInstant66); org.joda.time.ReadableInstant readableInstant69 = null; org.joda.time.ReadableInstant readableInstant70 = null; org.joda.time.Period period71 = new org.joda.time.Period(readableInstant69, readableInstant70); org.joda.time.ReadableInstant readableInstant72 = null; org.joda.time.Duration duration73 = period71.toDurationFrom(readableInstant72); org.joda.time.Period period75 = period71.plusMonths(0); org.joda.time.Period period77 = period75.plusMonths((int) '#'); org.joda.time.Period period79 = period75.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType80 = period75.getPeriodType(); org.joda.time.Chronology chronology81 = null; org.joda.time.Period period82 = new org.joda.time.Period((long) (short) -1, periodType80, chronology81); org.joda.time.Period period83 = new org.joda.time.Period(readableInstant62, (org.joda.time.ReadableDuration) duration67, periodType80); org.joda.time.Chronology chronology84 = null; org.joda.time.Period period85 = new org.joda.time.Period((long) (byte) 0, periodType80, chronology84); org.joda.time.Period period86 = period60.normalizedStandard(periodType80); org.joda.time.Chronology chronology87 = null; org.joda.time.Period period88 = new org.joda.time.Period((long) 'a', periodType80, chronology87); org.joda.time.Chronology chronology89 = null; org.joda.time.Period period90 = new org.joda.time.Period((java.lang.Object) period42, periodType80, chronology89); org.joda.time.Chronology chronology91 = null; org.joda.time.Period period92 = new org.joda.time.Period((java.lang.Object) period25, periodType80, chronology91); org.joda.time.Period period94 = period92.plusHours(100); org.joda.time.Period period96 = period92.withYears(0); org.junit.Assert.assertNotNull(duration14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(periodType21); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertTrue("'" + boolean30 + "' != '" + false + "'", boolean30 == false); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(hours54); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertNotNull(period60); org.junit.Assert.assertNotNull(duration67); org.junit.Assert.assertNotNull(duration73); org.junit.Assert.assertNotNull(period75); org.junit.Assert.assertNotNull(period77); org.junit.Assert.assertNotNull(period79); org.junit.Assert.assertNotNull(periodType80); org.junit.Assert.assertNotNull(period86); org.junit.Assert.assertNotNull(period94); org.junit.Assert.assertNotNull(period96); } @Test public void test0546() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0546"); org.joda.time.ReadablePartial readablePartial0 = null; org.joda.time.ReadablePartial readablePartial1 = null; org.joda.time.Period period12 = new org.joda.time.Period(0L, (-1L)); org.joda.time.Period period14 = period12.plusMillis((int) (short) -1); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Period period19 = new org.joda.time.Period(readableInstant17, readableInstant18); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Duration duration21 = period19.toDurationFrom(readableInstant20); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant23, readableInstant24); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Duration duration27 = period25.toDurationFrom(readableInstant26); org.joda.time.Period period29 = period25.plusMonths(0); org.joda.time.Period period31 = period29.plusMonths((int) '#'); org.joda.time.Period period33 = period29.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType34 = period29.getPeriodType(); org.joda.time.Chronology chronology35 = null; org.joda.time.Period period36 = new org.joda.time.Period((long) (short) -1, periodType34, chronology35); org.joda.time.Period period37 = new org.joda.time.Period(readableInstant16, (org.joda.time.ReadableDuration) duration21, periodType34); org.joda.time.Chronology chronology38 = null; org.joda.time.Period period39 = new org.joda.time.Period((long) (short) 100, periodType34, chronology38); org.joda.time.Period period40 = period14.withPeriodType(periodType34); org.joda.time.Period period42 = period40.plusMillis((int) (byte) 100); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.Period period57 = new org.joda.time.Period(readableInstant55, readableInstant56); org.joda.time.ReadableInstant readableInstant58 = null; org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.PeriodType periodType60 = null; org.joda.time.Period period61 = new org.joda.time.Period(readableInstant58, readableInstant59, periodType60); org.joda.time.MutablePeriod mutablePeriod62 = period61.toMutablePeriod(); org.joda.time.Period period63 = period57.plus((org.joda.time.ReadablePeriod) period61); org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.PeriodType periodType66 = null; org.joda.time.Period period67 = new org.joda.time.Period(readableInstant64, readableInstant65, periodType66); org.joda.time.Period period69 = period67.plusMonths((int) '4'); org.joda.time.Period period70 = period61.withFields((org.joda.time.ReadablePeriod) period69); org.joda.time.PeriodType periodType71 = period69.getPeriodType(); org.joda.time.Period period72 = new org.joda.time.Period((long) ' ', (long) (short) 10, periodType71); org.joda.time.Period period73 = new org.joda.time.Period((int) '4', (int) (byte) 10, (int) (short) 10, 1, 0, 97, (int) (byte) 10, 1, periodType71); org.joda.time.Period period74 = new org.joda.time.Period(readableInstant43, readableInstant44, periodType71); org.joda.time.Period period75 = period40.withPeriodType(periodType71); org.joda.time.Period period76 = new org.joda.time.Period(11, 8, (int) ' ', (-100), (int) (byte) 10, 8, (int) (short) 100, (int) (byte) 1, periodType71); // The following exception was thrown during execution in test generation try { org.joda.time.Period period77 = new org.joda.time.Period(readablePartial0, readablePartial1, periodType71); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: ReadablePartial objects must not be null"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(duration21); org.junit.Assert.assertNotNull(duration27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(periodType34); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(mutablePeriod62); org.junit.Assert.assertNotNull(period63); org.junit.Assert.assertNotNull(period69); org.junit.Assert.assertNotNull(period70); org.junit.Assert.assertNotNull(periodType71); org.junit.Assert.assertNotNull(period75); } @Test public void test0547() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0547"); org.joda.time.Period period1 = new org.joda.time.Period((long) (byte) -1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Period period5 = new org.joda.time.Period(readableInstant3, readableInstant4); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Duration duration7 = period5.toDurationFrom(readableInstant6); org.joda.time.Period period9 = period5.plusMonths(0); org.joda.time.Period period11 = period9.plusMonths((int) '#'); org.joda.time.Period period13 = period9.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType14 = period9.getPeriodType(); org.joda.time.Chronology chronology15 = null; org.joda.time.Period period16 = new org.joda.time.Period((long) (short) -1, periodType14, chronology15); org.joda.time.Period period17 = period1.minus((org.joda.time.ReadablePeriod) period16); org.joda.time.Hours hours18 = period17.toStandardHours(); org.joda.time.PeriodType periodType20 = null; org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) 'a', periodType20, chronology21); org.joda.time.Period period24 = period22.withMinutes(0); org.joda.time.Period period26 = period24.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod27 = period24.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.PeriodType periodType30 = null; org.joda.time.Period period31 = new org.joda.time.Period(readableInstant28, readableInstant29, periodType30); org.joda.time.Period period33 = period31.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.PeriodType periodType36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant34, readableInstant35, periodType36); org.joda.time.DurationFieldType durationFieldType39 = period37.getFieldType((int) (byte) 0); int int40 = period33.indexOf(durationFieldType39); org.joda.time.Period period42 = period24.withFieldAdded(durationFieldType39, 10); org.joda.time.Period period44 = period17.withField(durationFieldType39, 97); org.joda.time.MutablePeriod mutablePeriod45 = period17.toMutablePeriod(); org.joda.time.Period period47 = period17.minusMonths((int) (byte) -1); // The following exception was thrown during execution in test generation try { org.joda.time.Days days48 = period47.toStandardDays(); org.junit.Assert.fail("Expected exception of type java.lang.UnsupportedOperationException; message: Cannot convert to Days as this period contains months and months vary in length"); } catch (java.lang.UnsupportedOperationException e) { // Expected exception. } org.junit.Assert.assertNotNull(duration7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(periodType14); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(hours18); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(mutablePeriod27); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(durationFieldType39); org.junit.Assert.assertTrue("'" + int40 + "' != '" + 0 + "'", int40 == 0); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(mutablePeriod45); org.junit.Assert.assertNotNull(period47); } @Test public void test0548() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0548"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period((long) (short) 10, chronology1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMinutes((int) (byte) 10); org.joda.time.Days days7 = period2.toStandardDays(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(days7); } @Test public void test0549() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0549"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); org.joda.time.Period period12 = period10.withWeeks((int) ' '); org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period((java.lang.Object) period10, periodType13); org.joda.time.PeriodType periodType15 = null; org.joda.time.Period period16 = period14.normalizedStandard(periodType15); org.joda.time.Days days17 = period16.toStandardDays(); int int18 = period16.getMonths(); org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology21); java.lang.String str23 = period22.toString(); org.joda.time.Period period24 = new org.joda.time.Period((java.lang.Object) str23); org.joda.time.Period period26 = period24.plusSeconds((int) 'a'); org.joda.time.Period period28 = period24.plusYears((int) (byte) 0); org.joda.time.Period period30 = period24.withMonths(0); org.joda.time.PeriodType periodType32 = null; org.joda.time.Chronology chronology33 = null; org.joda.time.Period period34 = new org.joda.time.Period((long) 'a', periodType32, chronology33); org.joda.time.Period period36 = period34.withMinutes(0); org.joda.time.Period period38 = period36.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod39 = period36.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant40 = null; org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.Period period42 = new org.joda.time.Period(readableInstant40, readableInstant41); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.Duration duration44 = period42.toDurationFrom(readableInstant43); org.joda.time.Period period46 = period42.plusMonths(0); org.joda.time.Period period48 = period46.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.Duration duration50 = period46.toDurationFrom(readableInstant49); org.joda.time.Period period52 = period46.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.PeriodType periodType55 = null; org.joda.time.Period period56 = new org.joda.time.Period(readableInstant53, readableInstant54, periodType55); org.joda.time.Period period58 = period56.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.PeriodType periodType61 = null; org.joda.time.Period period62 = new org.joda.time.Period(readableInstant59, readableInstant60, periodType61); org.joda.time.Period period64 = period62.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.ReadableInstant readableInstant66 = null; org.joda.time.PeriodType periodType67 = null; org.joda.time.Period period68 = new org.joda.time.Period(readableInstant65, readableInstant66, periodType67); org.joda.time.DurationFieldType durationFieldType70 = period68.getFieldType((int) (byte) 0); int int71 = period64.indexOf(durationFieldType70); int int72 = period56.get(durationFieldType70); org.joda.time.Period period74 = period46.withField(durationFieldType70, (int) (short) 0); int int75 = mutablePeriod39.indexOf(durationFieldType70); int int76 = period30.get(durationFieldType70); int int77 = period16.indexOf(durationFieldType70); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(days17); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); org.junit.Assert.assertEquals("'" + str23 + "' != '" + "PT0.011S" + "'", str23, "PT0.011S"); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(mutablePeriod39); org.junit.Assert.assertNotNull(duration44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(duration50); org.junit.Assert.assertNotNull(period52); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertNotNull(period64); org.junit.Assert.assertNotNull(durationFieldType70); org.junit.Assert.assertTrue("'" + int71 + "' != '" + 0 + "'", int71 == 0); org.junit.Assert.assertTrue("'" + int72 + "' != '" + 0 + "'", int72 == 0); org.junit.Assert.assertNotNull(period74); org.junit.Assert.assertTrue("'" + int75 + "' != '" + 0 + "'", int75 == 0); org.junit.Assert.assertTrue("'" + int76 + "' != '" + 0 + "'", int76 == 0); org.junit.Assert.assertTrue("'" + int77 + "' != '" + 0 + "'", int77 == 0); } @Test public void test0550() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0550"); org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.PeriodType periodType3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant1, readableInstant2, periodType3); org.joda.time.Period period6 = period4.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Duration duration8 = period4.toDurationTo(readableInstant7); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Period period10 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration8, readableInstant9); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant12, readableInstant13); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.PeriodType periodType17 = null; org.joda.time.Period period18 = new org.joda.time.Period(readableInstant15, readableInstant16, periodType17); org.joda.time.MutablePeriod mutablePeriod19 = period18.toMutablePeriod(); org.joda.time.Period period20 = period14.plus((org.joda.time.ReadablePeriod) period18); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.PeriodType periodType23 = null; org.joda.time.Period period24 = new org.joda.time.Period(readableInstant21, readableInstant22, periodType23); org.joda.time.Period period26 = period24.plusMonths((int) '4'); org.joda.time.Period period27 = period18.withFields((org.joda.time.ReadablePeriod) period26); org.joda.time.PeriodType periodType31 = null; org.joda.time.Chronology chronology32 = null; org.joda.time.Period period33 = new org.joda.time.Period((long) 'a', periodType31, chronology32); org.joda.time.PeriodType periodType35 = null; org.joda.time.Chronology chronology36 = null; org.joda.time.Period period37 = new org.joda.time.Period((long) 'a', periodType35, chronology36); org.joda.time.Hours hours38 = period37.toStandardHours(); org.joda.time.Period period39 = period33.withFields((org.joda.time.ReadablePeriod) period37); org.joda.time.Period period41 = period33.withYears(10); org.joda.time.Period period42 = period41.toPeriod(); org.joda.time.Period period44 = period41.plusMillis(1); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.Period period49 = new org.joda.time.Period(readableInstant47, readableInstant48); org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.Duration duration51 = period49.toDurationFrom(readableInstant50); org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.Period period55 = new org.joda.time.Period(readableInstant53, readableInstant54); org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.Duration duration57 = period55.toDurationFrom(readableInstant56); org.joda.time.Period period59 = period55.plusMonths(0); org.joda.time.Period period61 = period59.plusMonths((int) '#'); org.joda.time.Period period63 = period59.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType64 = period59.getPeriodType(); org.joda.time.Chronology chronology65 = null; org.joda.time.Period period66 = new org.joda.time.Period((long) (short) -1, periodType64, chronology65); org.joda.time.Period period67 = new org.joda.time.Period(readableInstant46, (org.joda.time.ReadableDuration) duration51, periodType64); org.joda.time.Chronology chronology68 = null; org.joda.time.Period period69 = new org.joda.time.Period((long) (byte) 0, periodType64, chronology68); org.joda.time.Period period70 = period44.normalizedStandard(periodType64); org.joda.time.Chronology chronology71 = null; org.joda.time.Period period72 = new org.joda.time.Period(0L, (long) 8, periodType64, chronology71); org.joda.time.Period period73 = new org.joda.time.Period((java.lang.Object) period18, periodType64); org.joda.time.Period period74 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration8, readableInstant11, periodType64); org.joda.time.Period period75 = new org.joda.time.Period((long) 11, periodType64); int int76 = period75.getDays(); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(duration8); org.junit.Assert.assertNotNull(mutablePeriod19); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(hours38); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertNotNull(period41); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(duration51); org.junit.Assert.assertNotNull(duration57); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(period63); org.junit.Assert.assertNotNull(periodType64); org.junit.Assert.assertNotNull(period70); org.junit.Assert.assertTrue("'" + int76 + "' != '" + 0 + "'", int76 == 0); } @Test public void test0551() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0551"); org.joda.time.Period period4 = org.joda.time.Period.years((int) (byte) -1); int int5 = period4.getSeconds(); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant24, readableInstant25); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Duration duration28 = period26.toDurationFrom(readableInstant27); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Period period32 = new org.joda.time.Period(readableInstant30, readableInstant31); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Duration duration34 = period32.toDurationFrom(readableInstant33); org.joda.time.Period period36 = period32.plusMonths(0); org.joda.time.Period period38 = period36.plusMonths((int) '#'); org.joda.time.Period period40 = period36.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType41 = period36.getPeriodType(); org.joda.time.Chronology chronology42 = null; org.joda.time.Period period43 = new org.joda.time.Period((long) (short) -1, periodType41, chronology42); org.joda.time.Period period44 = new org.joda.time.Period(readableInstant23, (org.joda.time.ReadableDuration) duration28, periodType41); org.joda.time.Chronology chronology45 = null; org.joda.time.Period period46 = new org.joda.time.Period((long) (short) 100, periodType41, chronology45); org.joda.time.Period period47 = new org.joda.time.Period(0, (int) 'a', (int) ' ', (int) (short) 100, (int) (byte) 0, (int) (byte) 10, 10, (int) (short) -1, periodType41); org.joda.time.Period period48 = new org.joda.time.Period((int) (byte) 1, 97, (-100), (int) (short) 1, (int) 'a', 100, (int) 'a', (int) '#', periodType41); org.joda.time.Period period49 = period4.withPeriodType(periodType41); org.joda.time.Chronology chronology50 = null; org.joda.time.Period period51 = new org.joda.time.Period((long) (short) -1, periodType41, chronology50); org.joda.time.Period period52 = new org.joda.time.Period((long) '#', (-1L), periodType41); org.junit.Assert.assertNotNull(period4); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertNotNull(duration28); org.junit.Assert.assertNotNull(duration34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(periodType41); org.junit.Assert.assertNotNull(period49); } @Test public void test0552() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0552"); org.joda.time.Period period1 = org.joda.time.Period.millis(11); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Duration duration6 = period4.toDurationFrom(readableInstant5); org.joda.time.Period period8 = period4.plusMonths(0); org.joda.time.Period period10 = period8.plusMonths((int) '#'); org.joda.time.Period period12 = period8.plusMinutes((int) (short) 100); org.joda.time.Period period14 = period12.minusWeeks(1); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.Period period33 = new org.joda.time.Period(readableInstant31, readableInstant32); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.PeriodType periodType36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant34, readableInstant35, periodType36); org.joda.time.MutablePeriod mutablePeriod38 = period37.toMutablePeriod(); org.joda.time.Period period39 = period33.plus((org.joda.time.ReadablePeriod) period37); org.joda.time.ReadableInstant readableInstant40 = null; org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.PeriodType periodType42 = null; org.joda.time.Period period43 = new org.joda.time.Period(readableInstant40, readableInstant41, periodType42); org.joda.time.Period period45 = period43.plusMonths((int) '4'); org.joda.time.Period period46 = period37.withFields((org.joda.time.ReadablePeriod) period45); org.joda.time.PeriodType periodType50 = null; org.joda.time.Chronology chronology51 = null; org.joda.time.Period period52 = new org.joda.time.Period((long) 'a', periodType50, chronology51); org.joda.time.PeriodType periodType54 = null; org.joda.time.Chronology chronology55 = null; org.joda.time.Period period56 = new org.joda.time.Period((long) 'a', periodType54, chronology55); org.joda.time.Hours hours57 = period56.toStandardHours(); org.joda.time.Period period58 = period52.withFields((org.joda.time.ReadablePeriod) period56); org.joda.time.Period period60 = period52.withYears(10); org.joda.time.Period period61 = period60.toPeriod(); org.joda.time.Period period63 = period60.plusMillis(1); org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.ReadableInstant readableInstant66 = null; org.joda.time.ReadableInstant readableInstant67 = null; org.joda.time.Period period68 = new org.joda.time.Period(readableInstant66, readableInstant67); org.joda.time.ReadableInstant readableInstant69 = null; org.joda.time.Duration duration70 = period68.toDurationFrom(readableInstant69); org.joda.time.ReadableInstant readableInstant72 = null; org.joda.time.ReadableInstant readableInstant73 = null; org.joda.time.Period period74 = new org.joda.time.Period(readableInstant72, readableInstant73); org.joda.time.ReadableInstant readableInstant75 = null; org.joda.time.Duration duration76 = period74.toDurationFrom(readableInstant75); org.joda.time.Period period78 = period74.plusMonths(0); org.joda.time.Period period80 = period78.plusMonths((int) '#'); org.joda.time.Period period82 = period78.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType83 = period78.getPeriodType(); org.joda.time.Chronology chronology84 = null; org.joda.time.Period period85 = new org.joda.time.Period((long) (short) -1, periodType83, chronology84); org.joda.time.Period period86 = new org.joda.time.Period(readableInstant65, (org.joda.time.ReadableDuration) duration70, periodType83); org.joda.time.Chronology chronology87 = null; org.joda.time.Period period88 = new org.joda.time.Period((long) (byte) 0, periodType83, chronology87); org.joda.time.Period period89 = period63.normalizedStandard(periodType83); org.joda.time.Chronology chronology90 = null; org.joda.time.Period period91 = new org.joda.time.Period(0L, (long) 8, periodType83, chronology90); org.joda.time.Period period92 = new org.joda.time.Period((java.lang.Object) period37, periodType83); org.joda.time.Period period93 = new org.joda.time.Period((int) 'a', 100, (int) (short) -1, 100, (int) (short) -1, (int) (byte) 1, 8, 100, periodType83); org.joda.time.Period period94 = new org.joda.time.Period((int) '#', (int) (byte) 0, 0, (int) ' ', (int) ' ', (-1), (int) (byte) 100, 97, periodType83); org.joda.time.Period period95 = new org.joda.time.Period((java.lang.Object) period12, periodType83); org.joda.time.Period period96 = period1.plus((org.joda.time.ReadablePeriod) period12); org.joda.time.Period period98 = period1.minusYears(100); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(duration6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(mutablePeriod38); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(hours57); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertNotNull(period60); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(period63); org.junit.Assert.assertNotNull(duration70); org.junit.Assert.assertNotNull(duration76); org.junit.Assert.assertNotNull(period78); org.junit.Assert.assertNotNull(period80); org.junit.Assert.assertNotNull(period82); org.junit.Assert.assertNotNull(periodType83); org.junit.Assert.assertNotNull(period89); org.junit.Assert.assertNotNull(period96); org.junit.Assert.assertNotNull(period98); } @Test public void test0553() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0553"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); org.joda.time.Period period12 = period10.minusWeeks(1); org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.Period period31 = new org.joda.time.Period(readableInstant29, readableInstant30); org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.PeriodType periodType34 = null; org.joda.time.Period period35 = new org.joda.time.Period(readableInstant32, readableInstant33, periodType34); org.joda.time.MutablePeriod mutablePeriod36 = period35.toMutablePeriod(); org.joda.time.Period period37 = period31.plus((org.joda.time.ReadablePeriod) period35); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.PeriodType periodType40 = null; org.joda.time.Period period41 = new org.joda.time.Period(readableInstant38, readableInstant39, periodType40); org.joda.time.Period period43 = period41.plusMonths((int) '4'); org.joda.time.Period period44 = period35.withFields((org.joda.time.ReadablePeriod) period43); org.joda.time.PeriodType periodType48 = null; org.joda.time.Chronology chronology49 = null; org.joda.time.Period period50 = new org.joda.time.Period((long) 'a', periodType48, chronology49); org.joda.time.PeriodType periodType52 = null; org.joda.time.Chronology chronology53 = null; org.joda.time.Period period54 = new org.joda.time.Period((long) 'a', periodType52, chronology53); org.joda.time.Hours hours55 = period54.toStandardHours(); org.joda.time.Period period56 = period50.withFields((org.joda.time.ReadablePeriod) period54); org.joda.time.Period period58 = period50.withYears(10); org.joda.time.Period period59 = period58.toPeriod(); org.joda.time.Period period61 = period58.plusMillis(1); org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.Period period66 = new org.joda.time.Period(readableInstant64, readableInstant65); org.joda.time.ReadableInstant readableInstant67 = null; org.joda.time.Duration duration68 = period66.toDurationFrom(readableInstant67); org.joda.time.ReadableInstant readableInstant70 = null; org.joda.time.ReadableInstant readableInstant71 = null; org.joda.time.Period period72 = new org.joda.time.Period(readableInstant70, readableInstant71); org.joda.time.ReadableInstant readableInstant73 = null; org.joda.time.Duration duration74 = period72.toDurationFrom(readableInstant73); org.joda.time.Period period76 = period72.plusMonths(0); org.joda.time.Period period78 = period76.plusMonths((int) '#'); org.joda.time.Period period80 = period76.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType81 = period76.getPeriodType(); org.joda.time.Chronology chronology82 = null; org.joda.time.Period period83 = new org.joda.time.Period((long) (short) -1, periodType81, chronology82); org.joda.time.Period period84 = new org.joda.time.Period(readableInstant63, (org.joda.time.ReadableDuration) duration68, periodType81); org.joda.time.Chronology chronology85 = null; org.joda.time.Period period86 = new org.joda.time.Period((long) (byte) 0, periodType81, chronology85); org.joda.time.Period period87 = period61.normalizedStandard(periodType81); org.joda.time.Chronology chronology88 = null; org.joda.time.Period period89 = new org.joda.time.Period(0L, (long) 8, periodType81, chronology88); org.joda.time.Period period90 = new org.joda.time.Period((java.lang.Object) period35, periodType81); org.joda.time.Period period91 = new org.joda.time.Period((int) 'a', 100, (int) (short) -1, 100, (int) (short) -1, (int) (byte) 1, 8, 100, periodType81); org.joda.time.Period period92 = new org.joda.time.Period((int) '#', (int) (byte) 0, 0, (int) ' ', (int) ' ', (-1), (int) (byte) 100, 97, periodType81); org.joda.time.Period period93 = new org.joda.time.Period((java.lang.Object) period10, periodType81); org.joda.time.Period period95 = period93.minusYears((int) '#'); org.joda.time.Period period97 = period93.plusSeconds((int) (short) -1); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(mutablePeriod36); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(hours55); org.junit.Assert.assertNotNull(period56); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(duration68); org.junit.Assert.assertNotNull(duration74); org.junit.Assert.assertNotNull(period76); org.junit.Assert.assertNotNull(period78); org.junit.Assert.assertNotNull(period80); org.junit.Assert.assertNotNull(periodType81); org.junit.Assert.assertNotNull(period87); org.junit.Assert.assertNotNull(period95); org.junit.Assert.assertNotNull(period97); } @Test public void test0554() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0554"); org.joda.time.Period period1 = org.joda.time.Period.days((int) (byte) 100); org.joda.time.Period period3 = period1.withMonths((int) (byte) 10); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant4, readableInstant5); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Duration duration8 = period6.toDurationFrom(readableInstant7); org.joda.time.Period period10 = period6.plusMonths(0); org.joda.time.Period period12 = period10.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Duration duration14 = period10.toDurationFrom(readableInstant13); org.joda.time.Period period16 = period10.minusMinutes((int) (byte) -1); org.joda.time.Seconds seconds17 = period10.toStandardSeconds(); org.joda.time.Period period18 = new org.joda.time.Period((java.lang.Object) period10); org.joda.time.Period period20 = period18.plusSeconds((int) (byte) 1); org.joda.time.Period period22 = period18.withWeeks((int) (byte) 10); boolean boolean23 = period1.equals((java.lang.Object) period18); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant24, readableInstant25); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Duration duration28 = period26.toDurationFrom(readableInstant27); org.joda.time.Period period30 = period26.plusMonths(0); org.joda.time.Period period32 = period30.plusMonths((int) '#'); org.joda.time.Period period34 = period30.plusMinutes((int) (short) 100); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant35, readableInstant36); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.Duration duration39 = period37.toDurationFrom(readableInstant38); org.joda.time.Period period41 = period37.plusMonths(0); org.joda.time.Period period43 = period41.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Duration duration45 = period41.toDurationFrom(readableInstant44); org.joda.time.Period period47 = period41.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.PeriodType periodType50 = null; org.joda.time.Period period51 = new org.joda.time.Period(readableInstant48, readableInstant49, periodType50); org.joda.time.Period period53 = period51.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.PeriodType periodType56 = null; org.joda.time.Period period57 = new org.joda.time.Period(readableInstant54, readableInstant55, periodType56); org.joda.time.Period period59 = period57.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.PeriodType periodType62 = null; org.joda.time.Period period63 = new org.joda.time.Period(readableInstant60, readableInstant61, periodType62); org.joda.time.DurationFieldType durationFieldType65 = period63.getFieldType((int) (byte) 0); int int66 = period59.indexOf(durationFieldType65); int int67 = period51.get(durationFieldType65); org.joda.time.Period period69 = period41.withField(durationFieldType65, (int) (short) 0); boolean boolean70 = period34.isSupported(durationFieldType65); boolean boolean71 = period1.isSupported(durationFieldType65); org.joda.time.Seconds seconds72 = period1.toStandardSeconds(); org.joda.time.Period period74 = period1.withMillis(11); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(duration8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(duration14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(seconds17); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + false + "'", boolean23 == false); org.junit.Assert.assertNotNull(duration28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(duration39); org.junit.Assert.assertNotNull(period41); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(duration45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(durationFieldType65); org.junit.Assert.assertTrue("'" + int66 + "' != '" + 0 + "'", int66 == 0); org.junit.Assert.assertTrue("'" + int67 + "' != '" + 0 + "'", int67 == 0); org.junit.Assert.assertNotNull(period69); org.junit.Assert.assertTrue("'" + boolean70 + "' != '" + true + "'", boolean70 == true); org.junit.Assert.assertTrue("'" + boolean71 + "' != '" + true + "'", boolean71 == true); org.junit.Assert.assertNotNull(seconds72); org.junit.Assert.assertNotNull(period74); } @Test public void test0555() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0555"); org.joda.time.PeriodType periodType3 = null; org.joda.time.Chronology chronology4 = null; org.joda.time.Period period5 = new org.joda.time.Period((long) 'a', periodType3, chronology4); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Hours hours10 = period9.toStandardHours(); org.joda.time.Period period11 = period5.withFields((org.joda.time.ReadablePeriod) period9); org.joda.time.Period period13 = period5.withYears(10); org.joda.time.Period period14 = period13.toPeriod(); org.joda.time.Period period16 = period13.plusMillis(1); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Period period21 = new org.joda.time.Period(readableInstant19, readableInstant20); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.Duration duration23 = period21.toDurationFrom(readableInstant22); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Period period27 = new org.joda.time.Period(readableInstant25, readableInstant26); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.Duration duration29 = period27.toDurationFrom(readableInstant28); org.joda.time.Period period31 = period27.plusMonths(0); org.joda.time.Period period33 = period31.plusMonths((int) '#'); org.joda.time.Period period35 = period31.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType36 = period31.getPeriodType(); org.joda.time.Chronology chronology37 = null; org.joda.time.Period period38 = new org.joda.time.Period((long) (short) -1, periodType36, chronology37); org.joda.time.Period period39 = new org.joda.time.Period(readableInstant18, (org.joda.time.ReadableDuration) duration23, periodType36); org.joda.time.Chronology chronology40 = null; org.joda.time.Period period41 = new org.joda.time.Period((long) (byte) 0, periodType36, chronology40); org.joda.time.Period period42 = period16.normalizedStandard(periodType36); org.joda.time.Chronology chronology43 = null; org.joda.time.Period period44 = new org.joda.time.Period((long) 'a', periodType36, chronology43); org.joda.time.Chronology chronology45 = null; org.joda.time.Period period46 = new org.joda.time.Period((long) 'a', periodType36, chronology45); org.junit.Assert.assertNotNull(hours10); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(duration23); org.junit.Assert.assertNotNull(duration29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(periodType36); org.junit.Assert.assertNotNull(period42); } @Test public void test0556() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0556"); org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Duration duration6 = period4.toDurationFrom(readableInstant5); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Period period10 = new org.joda.time.Period(readableInstant8, readableInstant9); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Duration duration12 = period10.toDurationFrom(readableInstant11); org.joda.time.Period period14 = period10.plusMonths(0); org.joda.time.Period period16 = period14.plusMonths((int) '#'); org.joda.time.Period period18 = period14.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType19 = period14.getPeriodType(); org.joda.time.Chronology chronology20 = null; org.joda.time.Period period21 = new org.joda.time.Period((long) (short) -1, periodType19, chronology20); org.joda.time.Period period22 = new org.joda.time.Period(readableInstant1, (org.joda.time.ReadableDuration) duration6, periodType19); org.joda.time.Chronology chronology23 = null; org.joda.time.Period period24 = new org.joda.time.Period((long) (byte) 0, periodType19, chronology23); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Period period27 = new org.joda.time.Period(readableInstant25, readableInstant26); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.Duration duration29 = period27.toDurationFrom(readableInstant28); org.joda.time.Period period31 = period27.plusMonths(0); org.joda.time.Period period33 = period31.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.Duration duration35 = period31.toDurationFrom(readableInstant34); org.joda.time.Period period37 = period31.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.PeriodType periodType40 = null; org.joda.time.Period period41 = new org.joda.time.Period(readableInstant38, readableInstant39, periodType40); org.joda.time.Period period43 = period41.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.PeriodType periodType46 = null; org.joda.time.Period period47 = new org.joda.time.Period(readableInstant44, readableInstant45, periodType46); org.joda.time.Period period49 = period47.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.ReadableInstant readableInstant51 = null; org.joda.time.PeriodType periodType52 = null; org.joda.time.Period period53 = new org.joda.time.Period(readableInstant50, readableInstant51, periodType52); org.joda.time.DurationFieldType durationFieldType55 = period53.getFieldType((int) (byte) 0); int int56 = period49.indexOf(durationFieldType55); int int57 = period41.get(durationFieldType55); org.joda.time.Period period59 = period31.withField(durationFieldType55, (int) (short) 0); boolean boolean60 = period24.isSupported(durationFieldType55); org.joda.time.Period period62 = period24.withMinutes(10); org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.ReadableInstant readableInstant66 = null; org.joda.time.ReadableInstant readableInstant67 = null; org.joda.time.Period period68 = new org.joda.time.Period(readableInstant66, readableInstant67); org.joda.time.ReadableInstant readableInstant69 = null; org.joda.time.Duration duration70 = period68.toDurationFrom(readableInstant69); org.joda.time.ReadableInstant readableInstant72 = null; org.joda.time.ReadableInstant readableInstant73 = null; org.joda.time.Period period74 = new org.joda.time.Period(readableInstant72, readableInstant73); org.joda.time.ReadableInstant readableInstant75 = null; org.joda.time.Duration duration76 = period74.toDurationFrom(readableInstant75); org.joda.time.Period period78 = period74.plusMonths(0); org.joda.time.Period period80 = period78.plusMonths((int) '#'); org.joda.time.Period period82 = period78.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType83 = period78.getPeriodType(); org.joda.time.Chronology chronology84 = null; org.joda.time.Period period85 = new org.joda.time.Period((long) (short) -1, periodType83, chronology84); org.joda.time.Period period86 = new org.joda.time.Period(readableInstant65, (org.joda.time.ReadableDuration) duration70, periodType83); org.joda.time.Period period87 = new org.joda.time.Period(readableInstant63, readableInstant64, periodType83); org.joda.time.Period period88 = period24.normalizedStandard(periodType83); int int89 = period24.getDays(); org.junit.Assert.assertNotNull(duration6); org.junit.Assert.assertNotNull(duration12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(periodType19); org.junit.Assert.assertNotNull(duration29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(duration35); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(durationFieldType55); org.junit.Assert.assertTrue("'" + int56 + "' != '" + 0 + "'", int56 == 0); org.junit.Assert.assertTrue("'" + int57 + "' != '" + 0 + "'", int57 == 0); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertTrue("'" + boolean60 + "' != '" + true + "'", boolean60 == true); org.junit.Assert.assertNotNull(period62); org.junit.Assert.assertNotNull(duration70); org.junit.Assert.assertNotNull(duration76); org.junit.Assert.assertNotNull(period78); org.junit.Assert.assertNotNull(period80); org.junit.Assert.assertNotNull(period82); org.junit.Assert.assertNotNull(periodType83); org.junit.Assert.assertNotNull(period88); org.junit.Assert.assertTrue("'" + int89 + "' != '" + 0 + "'", int89 == 0); } @Test public void test0557() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0557"); org.joda.time.PeriodType periodType3 = null; org.joda.time.Chronology chronology4 = null; org.joda.time.Period period5 = new org.joda.time.Period((long) 'a', periodType3, chronology4); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Hours hours10 = period9.toStandardHours(); org.joda.time.Period period11 = period5.withFields((org.joda.time.ReadablePeriod) period9); org.joda.time.Period period13 = period5.withYears(10); org.joda.time.Period period14 = period13.toPeriod(); org.joda.time.Period period16 = period13.plusMillis(1); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Period period21 = new org.joda.time.Period(readableInstant19, readableInstant20); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.Duration duration23 = period21.toDurationFrom(readableInstant22); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Period period27 = new org.joda.time.Period(readableInstant25, readableInstant26); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.Duration duration29 = period27.toDurationFrom(readableInstant28); org.joda.time.Period period31 = period27.plusMonths(0); org.joda.time.Period period33 = period31.plusMonths((int) '#'); org.joda.time.Period period35 = period31.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType36 = period31.getPeriodType(); org.joda.time.Chronology chronology37 = null; org.joda.time.Period period38 = new org.joda.time.Period((long) (short) -1, periodType36, chronology37); org.joda.time.Period period39 = new org.joda.time.Period(readableInstant18, (org.joda.time.ReadableDuration) duration23, periodType36); org.joda.time.Chronology chronology40 = null; org.joda.time.Period period41 = new org.joda.time.Period((long) (byte) 0, periodType36, chronology40); org.joda.time.Period period42 = period16.normalizedStandard(periodType36); org.joda.time.Period period44 = period42.withMillis((int) (byte) 10); org.joda.time.PeriodType periodType45 = period42.getPeriodType(); org.joda.time.Chronology chronology46 = null; org.joda.time.Period period47 = new org.joda.time.Period((long) (short) 10, (long) 'a', periodType45, chronology46); org.joda.time.DurationFieldType[] durationFieldTypeArray48 = period47.getFieldTypes(); org.joda.time.Chronology chronology51 = null; org.joda.time.Period period52 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology51); java.lang.String str53 = period52.toString(); org.joda.time.Period period54 = new org.joda.time.Period((java.lang.Object) str53); org.joda.time.Period period56 = period54.plusSeconds((int) 'a'); org.joda.time.DurationFieldType[] durationFieldTypeArray57 = period56.getFieldTypes(); org.joda.time.Period period59 = period56.withSeconds((int) (short) 10); org.joda.time.Period period61 = period56.plusMillis((int) (byte) 0); org.joda.time.Period period62 = period47.plus((org.joda.time.ReadablePeriod) period61); org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.Duration duration64 = period61.toDurationTo(readableInstant63); org.junit.Assert.assertNotNull(hours10); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(duration23); org.junit.Assert.assertNotNull(duration29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(periodType36); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(periodType45); org.junit.Assert.assertNotNull(durationFieldTypeArray48); org.junit.Assert.assertEquals("'" + str53 + "' != '" + "PT0.011S" + "'", str53, "PT0.011S"); org.junit.Assert.assertNotNull(period56); org.junit.Assert.assertNotNull(durationFieldTypeArray57); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(period62); org.junit.Assert.assertNotNull(duration64); } @Test public void test0558() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0558"); org.joda.time.Period period1 = org.joda.time.Period.minutes((int) '#'); org.junit.Assert.assertNotNull(period1); } @Test public void test0559() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0559"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); java.lang.String str4 = period3.toString(); org.joda.time.Period period5 = new org.joda.time.Period((java.lang.Object) str4); org.joda.time.Period period7 = period5.plusSeconds((int) 'a'); org.joda.time.Period period9 = period7.plusWeeks((int) (short) 10); org.joda.time.Period period11 = period7.withMonths((int) (short) 0); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant12, readableInstant13); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.PeriodType periodType17 = null; org.joda.time.Period period18 = new org.joda.time.Period(readableInstant15, readableInstant16, periodType17); org.joda.time.MutablePeriod mutablePeriod19 = period18.toMutablePeriod(); org.joda.time.Period period20 = period14.plus((org.joda.time.ReadablePeriod) period18); org.joda.time.Period period22 = period18.withMonths((int) (byte) 0); org.joda.time.Period period23 = period11.withFields((org.joda.time.ReadablePeriod) period18); org.joda.time.Period period25 = period11.withDays(52); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Duration duration27 = period11.toDurationFrom(readableInstant26); org.junit.Assert.assertEquals("'" + str4 + "' != '" + "PT0.011S" + "'", str4, "PT0.011S"); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(mutablePeriod19); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(duration27); } @Test public void test0560() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0560"); org.joda.time.Period period1 = org.joda.time.Period.minutes((int) (byte) 10); org.joda.time.Period period3 = period1.withHours((int) '4'); org.joda.time.DurationFieldType[] durationFieldTypeArray4 = period3.getFieldTypes(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(durationFieldTypeArray4); } @Test public void test0561() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0561"); org.joda.time.PeriodType periodType8 = null; org.joda.time.Period period9 = new org.joda.time.Period((-1), 0, (int) '#', (int) (short) 10, (int) (short) 0, 10, (int) (short) 1, (int) (byte) 10, periodType8); org.joda.time.Period period11 = period9.minusSeconds((int) ' '); org.joda.time.Period period13 = period9.plusMillis((int) (byte) 1); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); } @Test public void test0562() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0562"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 100, (long) (-1), chronology2); org.joda.time.Period period5 = period3.minusDays(8); int int6 = period5.getMinutes(); org.joda.time.PeriodType periodType7 = period5.getPeriodType(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertNotNull(periodType7); } @Test public void test0563() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0563"); org.joda.time.ReadablePartial readablePartial0 = null; org.joda.time.ReadablePartial readablePartial1 = null; org.joda.time.PeriodType periodType3 = null; org.joda.time.Chronology chronology4 = null; org.joda.time.Period period5 = new org.joda.time.Period((long) 'a', periodType3, chronology4); org.joda.time.Period period7 = period5.withMinutes(0); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.PeriodType periodType10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant8, readableInstant9, periodType10); org.joda.time.Period period13 = period11.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Duration duration15 = period11.toDurationTo(readableInstant14); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Period period17 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration15, readableInstant16); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Period period21 = new org.joda.time.Period(readableInstant19, readableInstant20); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.PeriodType periodType24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant22, readableInstant23, periodType24); org.joda.time.MutablePeriod mutablePeriod26 = period25.toMutablePeriod(); org.joda.time.Period period27 = period21.plus((org.joda.time.ReadablePeriod) period25); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.PeriodType periodType30 = null; org.joda.time.Period period31 = new org.joda.time.Period(readableInstant28, readableInstant29, periodType30); org.joda.time.Period period33 = period31.plusMonths((int) '4'); org.joda.time.Period period34 = period25.withFields((org.joda.time.ReadablePeriod) period33); org.joda.time.PeriodType periodType38 = null; org.joda.time.Chronology chronology39 = null; org.joda.time.Period period40 = new org.joda.time.Period((long) 'a', periodType38, chronology39); org.joda.time.PeriodType periodType42 = null; org.joda.time.Chronology chronology43 = null; org.joda.time.Period period44 = new org.joda.time.Period((long) 'a', periodType42, chronology43); org.joda.time.Hours hours45 = period44.toStandardHours(); org.joda.time.Period period46 = period40.withFields((org.joda.time.ReadablePeriod) period44); org.joda.time.Period period48 = period40.withYears(10); org.joda.time.Period period49 = period48.toPeriod(); org.joda.time.Period period51 = period48.plusMillis(1); org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.Period period56 = new org.joda.time.Period(readableInstant54, readableInstant55); org.joda.time.ReadableInstant readableInstant57 = null; org.joda.time.Duration duration58 = period56.toDurationFrom(readableInstant57); org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.Period period62 = new org.joda.time.Period(readableInstant60, readableInstant61); org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.Duration duration64 = period62.toDurationFrom(readableInstant63); org.joda.time.Period period66 = period62.plusMonths(0); org.joda.time.Period period68 = period66.plusMonths((int) '#'); org.joda.time.Period period70 = period66.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType71 = period66.getPeriodType(); org.joda.time.Chronology chronology72 = null; org.joda.time.Period period73 = new org.joda.time.Period((long) (short) -1, periodType71, chronology72); org.joda.time.Period period74 = new org.joda.time.Period(readableInstant53, (org.joda.time.ReadableDuration) duration58, periodType71); org.joda.time.Chronology chronology75 = null; org.joda.time.Period period76 = new org.joda.time.Period((long) (byte) 0, periodType71, chronology75); org.joda.time.Period period77 = period51.normalizedStandard(periodType71); org.joda.time.Chronology chronology78 = null; org.joda.time.Period period79 = new org.joda.time.Period(0L, (long) 8, periodType71, chronology78); org.joda.time.Period period80 = new org.joda.time.Period((java.lang.Object) period25, periodType71); org.joda.time.Period period81 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration15, readableInstant18, periodType71); org.joda.time.Period period82 = period5.normalizedStandard(periodType71); // The following exception was thrown during execution in test generation try { org.joda.time.Period period83 = new org.joda.time.Period(readablePartial0, readablePartial1, periodType71); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: ReadablePartial objects must not be null"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(duration15); org.junit.Assert.assertNotNull(mutablePeriod26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(hours45); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(duration58); org.junit.Assert.assertNotNull(duration64); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertNotNull(period68); org.junit.Assert.assertNotNull(period70); org.junit.Assert.assertNotNull(periodType71); org.junit.Assert.assertNotNull(period77); org.junit.Assert.assertNotNull(period82); } @Test public void test0564() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0564"); org.joda.time.Period period2 = new org.joda.time.Period((long) 'a', (long) 98); } @Test public void test0565() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0565"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); java.lang.String str4 = period3.toString(); org.joda.time.Period period5 = new org.joda.time.Period((java.lang.Object) str4); org.joda.time.Period period6 = period5.normalizedStandard(); int int7 = period6.getMillis(); java.lang.Class<?> wildcardClass8 = period6.getClass(); org.junit.Assert.assertEquals("'" + str4 + "' != '" + "PT0.011S" + "'", str4, "PT0.011S"); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 11 + "'", int7 == 11); org.junit.Assert.assertNotNull(wildcardClass8); } @Test public void test0566() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0566"); org.joda.time.Period period1 = new org.joda.time.Period((long) (byte) -1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Period period5 = new org.joda.time.Period(readableInstant3, readableInstant4); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Duration duration7 = period5.toDurationFrom(readableInstant6); org.joda.time.Period period9 = period5.plusMonths(0); org.joda.time.Period period11 = period9.plusMonths((int) '#'); org.joda.time.Period period13 = period9.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType14 = period9.getPeriodType(); org.joda.time.Chronology chronology15 = null; org.joda.time.Period period16 = new org.joda.time.Period((long) (short) -1, periodType14, chronology15); org.joda.time.Period period17 = period1.minus((org.joda.time.ReadablePeriod) period16); org.joda.time.Hours hours18 = period17.toStandardHours(); org.joda.time.Period period20 = period17.plusMonths((int) ' '); org.joda.time.Period period21 = period17.negated(); int int22 = period21.getWeeks(); int int23 = period21.getYears(); org.junit.Assert.assertNotNull(duration7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(periodType14); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(hours18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertTrue("'" + int22 + "' != '" + 0 + "'", int22 == 0); org.junit.Assert.assertTrue("'" + int23 + "' != '" + 0 + "'", int23 == 0); } @Test public void test0567() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0567"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.MutablePeriod mutablePeriod4 = period3.toMutablePeriod(); org.joda.time.Period period6 = period3.minusMinutes((int) (byte) 100); org.joda.time.Minutes minutes7 = period3.toStandardMinutes(); org.joda.time.Period period8 = new org.joda.time.Period((java.lang.Object) period3); org.joda.time.Period period9 = new org.joda.time.Period((java.lang.Object) period8); org.junit.Assert.assertNotNull(mutablePeriod4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(minutes7); } @Test public void test0568() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0568"); org.joda.time.Period period1 = org.joda.time.Period.millis((int) (short) 100); // The following exception was thrown during execution in test generation try { org.joda.time.Period period2 = new org.joda.time.Period((java.lang.Object) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: No period converter found for type: java.lang.Short"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(period1); } @Test public void test0569() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0569"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.Period period5 = period3.minusMillis((int) '4'); org.joda.time.Period period7 = period5.minusMinutes((int) (short) 100); org.joda.time.Period period9 = org.joda.time.Period.years((int) (byte) 1); org.joda.time.Period period10 = period5.plus((org.joda.time.ReadablePeriod) period9); int int11 = period10.getDays(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); } @Test public void test0570() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0570"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period6.toDurationFrom(readableInstant9); org.joda.time.Period period12 = period6.minusMinutes((int) (byte) -1); org.joda.time.Seconds seconds13 = period6.toStandardSeconds(); org.joda.time.Period period14 = new org.joda.time.Period((java.lang.Object) period6); java.lang.Class<?> wildcardClass15 = period14.getClass(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(seconds13); org.junit.Assert.assertNotNull(wildcardClass15); } @Test public void test0571() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0571"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period((long) 0, chronology1); int int4 = period2.getValue(1); int int5 = period2.getDays(); org.joda.time.format.PeriodFormatter periodFormatter6 = null; java.lang.String str7 = period2.toString(periodFormatter6); int int8 = period2.getSeconds(); org.joda.time.Minutes minutes9 = period2.toStandardMinutes(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertEquals("'" + str7 + "' != '" + "PT0S" + "'", str7, "PT0S"); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(minutes9); } @Test public void test0572() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0572"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.MutablePeriod mutablePeriod7 = period6.toMutablePeriod(); org.joda.time.Period period8 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.PeriodType periodType11 = null; org.joda.time.Period period12 = new org.joda.time.Period(readableInstant9, readableInstant10, periodType11); org.joda.time.Period period14 = period12.plusMonths((int) '4'); org.joda.time.Period period15 = period6.withFields((org.joda.time.ReadablePeriod) period14); org.joda.time.PeriodType periodType19 = null; org.joda.time.Chronology chronology20 = null; org.joda.time.Period period21 = new org.joda.time.Period((long) 'a', periodType19, chronology20); org.joda.time.PeriodType periodType23 = null; org.joda.time.Chronology chronology24 = null; org.joda.time.Period period25 = new org.joda.time.Period((long) 'a', periodType23, chronology24); org.joda.time.Hours hours26 = period25.toStandardHours(); org.joda.time.Period period27 = period21.withFields((org.joda.time.ReadablePeriod) period25); org.joda.time.Period period29 = period21.withYears(10); org.joda.time.Period period30 = period29.toPeriod(); org.joda.time.Period period32 = period29.plusMillis(1); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant35, readableInstant36); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.Duration duration39 = period37.toDurationFrom(readableInstant38); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.Period period43 = new org.joda.time.Period(readableInstant41, readableInstant42); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Duration duration45 = period43.toDurationFrom(readableInstant44); org.joda.time.Period period47 = period43.plusMonths(0); org.joda.time.Period period49 = period47.plusMonths((int) '#'); org.joda.time.Period period51 = period47.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType52 = period47.getPeriodType(); org.joda.time.Chronology chronology53 = null; org.joda.time.Period period54 = new org.joda.time.Period((long) (short) -1, periodType52, chronology53); org.joda.time.Period period55 = new org.joda.time.Period(readableInstant34, (org.joda.time.ReadableDuration) duration39, periodType52); org.joda.time.Chronology chronology56 = null; org.joda.time.Period period57 = new org.joda.time.Period((long) (byte) 0, periodType52, chronology56); org.joda.time.Period period58 = period32.normalizedStandard(periodType52); org.joda.time.Chronology chronology59 = null; org.joda.time.Period period60 = new org.joda.time.Period(0L, (long) 8, periodType52, chronology59); org.joda.time.Period period61 = new org.joda.time.Period((java.lang.Object) period6, periodType52); // The following exception was thrown during execution in test generation try { org.joda.time.DurationFieldType durationFieldType63 = period6.getFieldType(11); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: 11"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(mutablePeriod7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(hours26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(duration39); org.junit.Assert.assertNotNull(duration45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(periodType52); org.junit.Assert.assertNotNull(period58); } @Test public void test0573() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0573"); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Duration duration6 = period4.toDurationFrom(readableInstant5); org.joda.time.Period period8 = period4.plusMonths(0); org.joda.time.Period period10 = period8.plusMonths((int) '#'); org.joda.time.Period period12 = period8.plusMinutes((int) (short) 100); org.joda.time.Period period14 = period12.withWeeks((int) ' '); org.joda.time.PeriodType periodType15 = null; org.joda.time.Period period16 = new org.joda.time.Period((java.lang.Object) period12, periodType15); int int17 = period12.getHours(); org.joda.time.Weeks weeks18 = period12.toStandardWeeks(); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant24, readableInstant25); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Duration duration28 = period26.toDurationFrom(readableInstant27); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Period period32 = new org.joda.time.Period(readableInstant30, readableInstant31); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Duration duration34 = period32.toDurationFrom(readableInstant33); org.joda.time.Period period36 = period32.plusMonths(0); org.joda.time.Period period38 = period36.plusMonths((int) '#'); org.joda.time.Period period40 = period36.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType41 = period36.getPeriodType(); org.joda.time.Chronology chronology42 = null; org.joda.time.Period period43 = new org.joda.time.Period((long) (short) -1, periodType41, chronology42); org.joda.time.Period period44 = new org.joda.time.Period(readableInstant23, (org.joda.time.ReadableDuration) duration28, periodType41); org.joda.time.Period period45 = new org.joda.time.Period(readableInstant21, readableInstant22, periodType41); org.joda.time.Chronology chronology46 = null; org.joda.time.Period period47 = new org.joda.time.Period((long) (-100), (long) (-100), periodType41, chronology46); org.joda.time.Chronology chronology48 = null; org.joda.time.Period period49 = new org.joda.time.Period((java.lang.Object) period12, periodType41, chronology48); org.joda.time.Chronology chronology50 = null; org.joda.time.Period period51 = new org.joda.time.Period((long) 100, (long) (byte) 0, periodType41, chronology50); org.junit.Assert.assertNotNull(duration6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0); org.junit.Assert.assertNotNull(weeks18); org.junit.Assert.assertNotNull(duration28); org.junit.Assert.assertNotNull(duration34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(periodType41); } @Test public void test0574() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0574"); org.joda.time.ReadablePartial readablePartial0 = null; org.joda.time.ReadablePartial readablePartial1 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant12, readableInstant13); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.PeriodType periodType17 = null; org.joda.time.Period period18 = new org.joda.time.Period(readableInstant15, readableInstant16, periodType17); org.joda.time.MutablePeriod mutablePeriod19 = period18.toMutablePeriod(); org.joda.time.Period period20 = period14.plus((org.joda.time.ReadablePeriod) period18); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.PeriodType periodType23 = null; org.joda.time.Period period24 = new org.joda.time.Period(readableInstant21, readableInstant22, periodType23); org.joda.time.Period period26 = period24.plusMonths((int) '4'); org.joda.time.Period period27 = period18.withFields((org.joda.time.ReadablePeriod) period26); org.joda.time.PeriodType periodType28 = period26.getPeriodType(); org.joda.time.Period period29 = new org.joda.time.Period((long) ' ', (long) (short) 10, periodType28); org.joda.time.Period period30 = new org.joda.time.Period((int) (short) 10, (int) '#', 98, 98, (int) (byte) 0, (int) (short) -1, 98, 97, periodType28); // The following exception was thrown during execution in test generation try { org.joda.time.Period period31 = new org.joda.time.Period(readablePartial0, readablePartial1, periodType28); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: ReadablePartial objects must not be null"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(mutablePeriod19); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(periodType28); } @Test public void test0575() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0575"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); org.joda.time.Period period12 = period10.withWeeks((int) ' '); org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period((java.lang.Object) period10, periodType13); int int15 = period10.getHours(); org.joda.time.Weeks weeks16 = period10.toStandardWeeks(); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Period period24 = new org.joda.time.Period(readableInstant22, readableInstant23); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Duration duration26 = period24.toDurationFrom(readableInstant25); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant28, readableInstant29); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Duration duration32 = period30.toDurationFrom(readableInstant31); org.joda.time.Period period34 = period30.plusMonths(0); org.joda.time.Period period36 = period34.plusMonths((int) '#'); org.joda.time.Period period38 = period34.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType39 = period34.getPeriodType(); org.joda.time.Chronology chronology40 = null; org.joda.time.Period period41 = new org.joda.time.Period((long) (short) -1, periodType39, chronology40); org.joda.time.Period period42 = new org.joda.time.Period(readableInstant21, (org.joda.time.ReadableDuration) duration26, periodType39); org.joda.time.Period period43 = new org.joda.time.Period(readableInstant19, readableInstant20, periodType39); org.joda.time.Chronology chronology44 = null; org.joda.time.Period period45 = new org.joda.time.Period((long) (-100), (long) (-100), periodType39, chronology44); org.joda.time.Chronology chronology46 = null; org.joda.time.Period period47 = new org.joda.time.Period((java.lang.Object) period10, periodType39, chronology46); org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.Period period56 = new org.joda.time.Period(readableInstant54, readableInstant55); org.joda.time.ReadableInstant readableInstant57 = null; org.joda.time.ReadableInstant readableInstant58 = null; org.joda.time.PeriodType periodType59 = null; org.joda.time.Period period60 = new org.joda.time.Period(readableInstant57, readableInstant58, periodType59); org.joda.time.MutablePeriod mutablePeriod61 = period60.toMutablePeriod(); org.joda.time.Period period62 = period56.plus((org.joda.time.ReadablePeriod) period60); org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.PeriodType periodType65 = null; org.joda.time.Period period66 = new org.joda.time.Period(readableInstant63, readableInstant64, periodType65); org.joda.time.Period period68 = period66.plusMonths((int) '4'); org.joda.time.Period period69 = period60.withFields((org.joda.time.ReadablePeriod) period68); org.joda.time.PeriodType periodType70 = period68.getPeriodType(); org.joda.time.Period period71 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType70); org.joda.time.Period period72 = new org.joda.time.Period((long) 'a', (long) 10, periodType70); org.joda.time.Period period73 = new org.joda.time.Period((long) (short) 100, 100L, periodType70); org.joda.time.Period period74 = period47.withFields((org.joda.time.ReadablePeriod) period73); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); org.junit.Assert.assertNotNull(weeks16); org.junit.Assert.assertNotNull(duration26); org.junit.Assert.assertNotNull(duration32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(periodType39); org.junit.Assert.assertNotNull(mutablePeriod61); org.junit.Assert.assertNotNull(period62); org.junit.Assert.assertNotNull(period68); org.junit.Assert.assertNotNull(period69); org.junit.Assert.assertNotNull(periodType70); org.junit.Assert.assertNotNull(period74); } @Test public void test0576() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0576"); org.joda.time.Period period4 = new org.joda.time.Period((int) (short) 0, 1, (int) (byte) 0, (int) '4'); org.joda.time.Period period6 = org.joda.time.Period.weeks(97); org.joda.time.Period period7 = period4.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Period period9 = period6.minusMonths((int) (short) -1); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); } @Test public void test0577() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0577"); org.joda.time.Period period1 = org.joda.time.Period.minutes((int) ' '); int[] intArray2 = period1.getValues(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(intArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(intArray2), "[0, 0, 0, 0, 0, 32, 0, 0]"); } @Test public void test0578() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0578"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); java.lang.String str4 = period3.toString(); org.joda.time.Period period5 = new org.joda.time.Period((java.lang.Object) str4); org.joda.time.Period period7 = period5.plusSeconds((int) 'a'); org.joda.time.Period period9 = period7.plusWeeks((int) (short) 10); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Duration duration11 = period9.toDurationFrom(readableInstant10); org.joda.time.Chronology chronology12 = null; org.joda.time.Period period13 = new org.joda.time.Period((java.lang.Object) period9, chronology12); org.junit.Assert.assertEquals("'" + str4 + "' != '" + "PT0.011S" + "'", str4, "PT0.011S"); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(duration11); } @Test public void test0579() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0579"); org.joda.time.Period period1 = org.joda.time.Period.minutes((int) (short) 0); org.joda.time.Period period3 = period1.plusMinutes((int) (byte) -1); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); } @Test public void test0580() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0580"); org.joda.time.Period period1 = org.joda.time.Period.years((int) 'a'); org.joda.time.Period period3 = period1.withSeconds(100); org.joda.time.Period period5 = period1.minusHours((int) ' '); org.joda.time.DurationFieldType[] durationFieldTypeArray6 = period5.getFieldTypes(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(durationFieldTypeArray6); } @Test public void test0581() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0581"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.Period period5 = period3.minusMillis((int) '4'); org.joda.time.Period period7 = period5.minusMinutes((int) (short) 100); org.joda.time.Period period9 = org.joda.time.Period.years((int) (byte) 1); org.joda.time.Period period10 = period5.plus((org.joda.time.ReadablePeriod) period9); // The following exception was thrown during execution in test generation try { org.joda.time.Days days11 = period9.toStandardDays(); org.junit.Assert.fail("Expected exception of type java.lang.UnsupportedOperationException; message: Cannot convert to Days as this period contains years and years vary in length"); } catch (java.lang.UnsupportedOperationException e) { // Expected exception. } org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period10); } @Test public void test0582() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0582"); org.joda.time.Period period1 = org.joda.time.Period.weeks((-3)); org.joda.time.Period period3 = period1.plusWeeks((int) ' '); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); } @Test public void test0583() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0583"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.MutablePeriod mutablePeriod7 = period6.toMutablePeriod(); org.joda.time.Period period8 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Period period10 = period2.withYears((int) (byte) -1); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Duration duration12 = period2.toDurationTo(readableInstant11); org.joda.time.Minutes minutes13 = period2.toStandardMinutes(); org.joda.time.Chronology chronology14 = null; org.joda.time.Period period15 = new org.joda.time.Period((java.lang.Object) minutes13, chronology14); org.junit.Assert.assertNotNull(mutablePeriod7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(duration12); org.junit.Assert.assertNotNull(minutes13); } @Test public void test0584() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0584"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period(0L, chronology1); org.joda.time.Period period4 = period2.minusMillis((int) (short) 0); org.joda.time.PeriodType periodType7 = null; org.joda.time.Period period8 = new org.joda.time.Period((long) (short) 100, (long) '4', periodType7); org.joda.time.Period period9 = period4.plus((org.joda.time.ReadablePeriod) period8); org.joda.time.MutablePeriod mutablePeriod10 = period4.toMutablePeriod(); org.junit.Assert.assertNotNull(period4); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(mutablePeriod10); } @Test public void test0585() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0585"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period3 = period1.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.PeriodType periodType6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant4, readableInstant5, periodType6); org.joda.time.Period period9 = period7.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.PeriodType periodType12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant10, readableInstant11, periodType12); org.joda.time.DurationFieldType durationFieldType15 = period13.getFieldType((int) (byte) 0); int int16 = period9.indexOf(durationFieldType15); org.joda.time.Period period18 = period1.withFieldAdded(durationFieldType15, 1); org.joda.time.Period period19 = period18.negated(); org.joda.time.Period period21 = period19.withMonths(10); org.joda.time.Chronology chronology22 = null; // The following exception was thrown during execution in test generation try { org.joda.time.Period period23 = new org.joda.time.Period((java.lang.Object) 10, chronology22); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: No period converter found for type: java.lang.Integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(durationFieldType15); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(period21); } @Test public void test0586() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0586"); org.joda.time.Period period1 = org.joda.time.Period.years((int) (byte) 1); // The following exception was thrown during execution in test generation try { org.joda.time.DurationFieldType durationFieldType3 = period1.getFieldType((int) (byte) 10); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: 10"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(period1); } @Test public void test0587() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0587"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.MutablePeriod mutablePeriod4 = period3.toMutablePeriod(); org.joda.time.Period period6 = period3.minusMinutes((int) (byte) 100); org.joda.time.Seconds seconds7 = period6.toStandardSeconds(); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Period period12 = new org.joda.time.Period(readableInstant10, readableInstant11); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Duration duration14 = period12.toDurationFrom(readableInstant13); org.joda.time.Period period16 = period12.plusMonths(0); org.joda.time.Period period18 = period16.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Duration duration20 = period16.toDurationFrom(readableInstant19); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Period period24 = new org.joda.time.Period(readableInstant22, readableInstant23); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.PeriodType periodType27 = null; org.joda.time.Period period28 = new org.joda.time.Period(readableInstant25, readableInstant26, periodType27); org.joda.time.MutablePeriod mutablePeriod29 = period28.toMutablePeriod(); org.joda.time.Period period30 = period24.plus((org.joda.time.ReadablePeriod) period28); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.PeriodType periodType33 = null; org.joda.time.Period period34 = new org.joda.time.Period(readableInstant31, readableInstant32, periodType33); org.joda.time.Period period36 = period34.plusMonths((int) '4'); org.joda.time.Period period37 = period28.withFields((org.joda.time.ReadablePeriod) period36); org.joda.time.PeriodType periodType38 = period36.getPeriodType(); org.joda.time.Period period39 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration20, readableInstant21, periodType38); org.joda.time.Chronology chronology40 = null; org.joda.time.Period period41 = new org.joda.time.Period((long) 97, (long) (-1), periodType38, chronology40); org.joda.time.Chronology chronology42 = null; org.joda.time.Period period43 = new org.joda.time.Period((java.lang.Object) period6, periodType38, chronology42); org.joda.time.Period period45 = period43.plusMonths(98); org.junit.Assert.assertNotNull(mutablePeriod4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(seconds7); org.junit.Assert.assertNotNull(duration14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(duration20); org.junit.Assert.assertNotNull(mutablePeriod29); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(periodType38); org.junit.Assert.assertNotNull(period45); } @Test public void test0588() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0588"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); org.joda.time.Period period7 = period5.minusSeconds((int) (short) 100); org.joda.time.Period period9 = period5.minusMonths((int) 'a'); org.joda.time.Period period11 = period9.minusHours(10); org.joda.time.Period period13 = period9.minusHours((int) (byte) 1); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); } @Test public void test0589() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0589"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant5, readableInstant6); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.Duration duration9 = period7.toDurationFrom(readableInstant8); org.joda.time.Period period11 = period7.plusMonths(0); org.joda.time.Period period13 = period11.plusMonths((int) '#'); org.joda.time.Period period15 = period11.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType16 = period11.getPeriodType(); org.joda.time.Chronology chronology17 = null; org.joda.time.Period period18 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType16, chronology17); org.joda.time.Chronology chronology19 = null; org.joda.time.Period period20 = new org.joda.time.Period((long) 'a', periodType16, chronology19); org.joda.time.Period period21 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType16); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant24, readableInstant25); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Duration duration28 = period26.toDurationFrom(readableInstant27); org.joda.time.Period period30 = period26.plusMonths(0); org.joda.time.Period period32 = period30.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Duration duration34 = period30.toDurationFrom(readableInstant33); org.joda.time.Period period35 = new org.joda.time.Period(readableInstant23, (org.joda.time.ReadableDuration) duration34); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.Period period48 = new org.joda.time.Period(readableInstant46, readableInstant47); org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.Duration duration50 = period48.toDurationFrom(readableInstant49); org.joda.time.ReadableInstant readableInstant52 = null; org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.Period period54 = new org.joda.time.Period(readableInstant52, readableInstant53); org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.Duration duration56 = period54.toDurationFrom(readableInstant55); org.joda.time.Period period58 = period54.plusMonths(0); org.joda.time.Period period60 = period58.plusMonths((int) '#'); org.joda.time.Period period62 = period58.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType63 = period58.getPeriodType(); org.joda.time.Chronology chronology64 = null; org.joda.time.Period period65 = new org.joda.time.Period((long) (short) -1, periodType63, chronology64); org.joda.time.Period period66 = new org.joda.time.Period(readableInstant45, (org.joda.time.ReadableDuration) duration50, periodType63); org.joda.time.Chronology chronology67 = null; org.joda.time.Period period68 = new org.joda.time.Period((long) (short) 100, periodType63, chronology67); org.joda.time.Period period69 = new org.joda.time.Period(0, (int) 'a', (int) ' ', (int) (short) 100, (int) (byte) 0, (int) (byte) 10, 10, (int) (short) -1, periodType63); org.joda.time.Period period70 = new org.joda.time.Period(readableInstant22, (org.joda.time.ReadableDuration) duration34, periodType63); org.joda.time.Period period71 = period70.negated(); boolean boolean72 = period21.equals((java.lang.Object) period70); org.junit.Assert.assertNotNull(duration9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(periodType16); org.junit.Assert.assertNotNull(duration28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(duration34); org.junit.Assert.assertNotNull(duration50); org.junit.Assert.assertNotNull(duration56); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertNotNull(period60); org.junit.Assert.assertNotNull(period62); org.junit.Assert.assertNotNull(periodType63); org.junit.Assert.assertNotNull(period71); org.junit.Assert.assertTrue("'" + boolean72 + "' != '" + true + "'", boolean72 == true); } @Test public void test0590() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0590"); org.joda.time.Period period1 = org.joda.time.Period.millis(1); org.joda.time.Period period3 = period1.withWeeks((int) (short) 0); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant5, readableInstant6); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.Duration duration9 = period7.toDurationFrom(readableInstant8); org.joda.time.Period period10 = new org.joda.time.Period(readableInstant4, (org.joda.time.ReadableDuration) duration9); boolean boolean11 = period1.equals((java.lang.Object) duration9); org.joda.time.Weeks weeks12 = period1.toStandardWeeks(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(duration9); org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false); org.junit.Assert.assertNotNull(weeks12); } @Test public void test0591() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0591"); // The following exception was thrown during execution in test generation try { org.joda.time.Period period1 = org.joda.time.Period.parse("hi!"); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Invalid format: \"hi!\""); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0592() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0592"); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.PeriodType periodType7 = null; org.joda.time.Period period8 = new org.joda.time.Period(readableInstant5, readableInstant6, periodType7); org.joda.time.MutablePeriod mutablePeriod9 = period8.toMutablePeriod(); org.joda.time.Period period10 = period4.plus((org.joda.time.ReadablePeriod) period8); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant11, readableInstant12, periodType13); org.joda.time.Period period16 = period14.plusMonths((int) '4'); org.joda.time.Period period17 = period8.withFields((org.joda.time.ReadablePeriod) period16); org.joda.time.PeriodType periodType18 = period16.getPeriodType(); org.joda.time.Period period19 = new org.joda.time.Period((long) ' ', (long) (short) 10, periodType18); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant20, readableInstant21); org.joda.time.Period period23 = period22.normalizedStandard(); org.joda.time.Period period25 = period22.plusMinutes((int) ' '); org.joda.time.Period period26 = period25.normalizedStandard(); org.joda.time.Period period28 = period26.plusMinutes((-1)); org.joda.time.Period period30 = period28.plusYears(8); org.joda.time.Period period31 = period19.withFields((org.joda.time.ReadablePeriod) period28); org.joda.time.Chronology chronology34 = null; org.joda.time.Period period35 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology34); java.lang.String str36 = period35.toString(); org.joda.time.Period period37 = new org.joda.time.Period((java.lang.Object) str36); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Period period40 = new org.joda.time.Period(readableInstant38, readableInstant39); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.Duration duration42 = period40.toDurationFrom(readableInstant41); org.joda.time.Period period44 = period40.plusMonths(0); org.joda.time.Period period46 = period44.plusMonths((int) '#'); org.joda.time.Period period48 = period44.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType49 = period44.getPeriodType(); org.joda.time.Period period50 = new org.joda.time.Period((java.lang.Object) str36, periodType49); org.joda.time.PeriodType periodType52 = null; org.joda.time.Chronology chronology53 = null; org.joda.time.Period period54 = new org.joda.time.Period((long) 'a', periodType52, chronology53); org.joda.time.Period period56 = period54.withMinutes(0); org.joda.time.Period period58 = period56.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod59 = period56.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.Period period62 = new org.joda.time.Period(readableInstant60, readableInstant61); org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.Duration duration64 = period62.toDurationFrom(readableInstant63); org.joda.time.Period period66 = period62.plusMonths(0); org.joda.time.Period period68 = period66.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant69 = null; org.joda.time.Duration duration70 = period66.toDurationFrom(readableInstant69); org.joda.time.Period period72 = period66.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant73 = null; org.joda.time.ReadableInstant readableInstant74 = null; org.joda.time.PeriodType periodType75 = null; org.joda.time.Period period76 = new org.joda.time.Period(readableInstant73, readableInstant74, periodType75); org.joda.time.Period period78 = period76.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant79 = null; org.joda.time.ReadableInstant readableInstant80 = null; org.joda.time.PeriodType periodType81 = null; org.joda.time.Period period82 = new org.joda.time.Period(readableInstant79, readableInstant80, periodType81); org.joda.time.Period period84 = period82.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant85 = null; org.joda.time.ReadableInstant readableInstant86 = null; org.joda.time.PeriodType periodType87 = null; org.joda.time.Period period88 = new org.joda.time.Period(readableInstant85, readableInstant86, periodType87); org.joda.time.DurationFieldType durationFieldType90 = period88.getFieldType((int) (byte) 0); int int91 = period84.indexOf(durationFieldType90); int int92 = period76.get(durationFieldType90); org.joda.time.Period period94 = period66.withField(durationFieldType90, (int) (short) 0); int int95 = mutablePeriod59.indexOf(durationFieldType90); int int96 = period50.get(durationFieldType90); org.joda.time.Period period97 = period28.withFields((org.joda.time.ReadablePeriod) period50); org.joda.time.Period period99 = period97.plusYears((int) (byte) 100); org.junit.Assert.assertNotNull(mutablePeriod9); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(periodType18); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertEquals("'" + str36 + "' != '" + "PT0.011S" + "'", str36, "PT0.011S"); org.junit.Assert.assertNotNull(duration42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(periodType49); org.junit.Assert.assertNotNull(period56); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertNotNull(mutablePeriod59); org.junit.Assert.assertNotNull(duration64); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertNotNull(period68); org.junit.Assert.assertNotNull(duration70); org.junit.Assert.assertNotNull(period72); org.junit.Assert.assertNotNull(period78); org.junit.Assert.assertNotNull(period84); org.junit.Assert.assertNotNull(durationFieldType90); org.junit.Assert.assertTrue("'" + int91 + "' != '" + 0 + "'", int91 == 0); org.junit.Assert.assertTrue("'" + int92 + "' != '" + 0 + "'", int92 == 0); org.junit.Assert.assertNotNull(period94); org.junit.Assert.assertTrue("'" + int95 + "' != '" + 0 + "'", int95 == 0); org.junit.Assert.assertTrue("'" + int96 + "' != '" + 0 + "'", int96 == 0); org.junit.Assert.assertNotNull(period97); org.junit.Assert.assertNotNull(period99); } @Test public void test0593() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0593"); org.joda.time.Period period1 = org.joda.time.Period.parse("P52M"); org.junit.Assert.assertNotNull(period1); } @Test public void test0594() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0594"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period((long) (short) 10, chronology1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant5, readableInstant6); org.joda.time.Period period8 = period7.normalizedStandard(); org.joda.time.Period period10 = period7.plusMinutes((int) ' '); org.joda.time.Period period11 = period10.normalizedStandard(); org.joda.time.Period period12 = new org.joda.time.Period((java.lang.Object) period11); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Period period16 = new org.joda.time.Period(readableInstant14, readableInstant15); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.Duration duration18 = period16.toDurationFrom(readableInstant17); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant20, readableInstant21); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Duration duration24 = period22.toDurationFrom(readableInstant23); org.joda.time.Period period26 = period22.plusMonths(0); org.joda.time.Period period28 = period26.plusMonths((int) '#'); org.joda.time.Period period30 = period26.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType31 = period26.getPeriodType(); org.joda.time.Chronology chronology32 = null; org.joda.time.Period period33 = new org.joda.time.Period((long) (short) -1, periodType31, chronology32); org.joda.time.Period period34 = new org.joda.time.Period(readableInstant13, (org.joda.time.ReadableDuration) duration18, periodType31); org.joda.time.Period period35 = period12.withPeriodType(periodType31); org.joda.time.Chronology chronology36 = null; org.joda.time.Period period37 = new org.joda.time.Period((java.lang.Object) period2, periodType31, chronology36); org.joda.time.Chronology chronology40 = null; org.joda.time.Period period41 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology40); java.lang.String str42 = period41.toString(); org.joda.time.Period period43 = new org.joda.time.Period((java.lang.Object) str42); org.joda.time.Period period45 = period43.plusSeconds((int) 'a'); org.joda.time.Period period47 = period43.plusYears((int) (byte) 0); org.joda.time.Period period49 = period43.withMonths(0); org.joda.time.PeriodType periodType51 = null; org.joda.time.Chronology chronology52 = null; org.joda.time.Period period53 = new org.joda.time.Period((long) 'a', periodType51, chronology52); org.joda.time.Period period55 = period53.withMinutes(0); org.joda.time.Period period57 = period55.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod58 = period55.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.Period period61 = new org.joda.time.Period(readableInstant59, readableInstant60); org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.Duration duration63 = period61.toDurationFrom(readableInstant62); org.joda.time.Period period65 = period61.plusMonths(0); org.joda.time.Period period67 = period65.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant68 = null; org.joda.time.Duration duration69 = period65.toDurationFrom(readableInstant68); org.joda.time.Period period71 = period65.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant72 = null; org.joda.time.ReadableInstant readableInstant73 = null; org.joda.time.PeriodType periodType74 = null; org.joda.time.Period period75 = new org.joda.time.Period(readableInstant72, readableInstant73, periodType74); org.joda.time.Period period77 = period75.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant78 = null; org.joda.time.ReadableInstant readableInstant79 = null; org.joda.time.PeriodType periodType80 = null; org.joda.time.Period period81 = new org.joda.time.Period(readableInstant78, readableInstant79, periodType80); org.joda.time.Period period83 = period81.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant84 = null; org.joda.time.ReadableInstant readableInstant85 = null; org.joda.time.PeriodType periodType86 = null; org.joda.time.Period period87 = new org.joda.time.Period(readableInstant84, readableInstant85, periodType86); org.joda.time.DurationFieldType durationFieldType89 = period87.getFieldType((int) (byte) 0); int int90 = period83.indexOf(durationFieldType89); int int91 = period75.get(durationFieldType89); org.joda.time.Period period93 = period65.withField(durationFieldType89, (int) (short) 0); int int94 = mutablePeriod58.indexOf(durationFieldType89); int int95 = period49.get(durationFieldType89); boolean boolean96 = period37.isSupported(durationFieldType89); org.joda.time.Period period98 = period37.withHours(8); org.joda.time.Period period99 = period98.negated(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(duration18); org.junit.Assert.assertNotNull(duration24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(periodType31); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertEquals("'" + str42 + "' != '" + "PT0.011S" + "'", str42, "PT0.011S"); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertNotNull(mutablePeriod58); org.junit.Assert.assertNotNull(duration63); org.junit.Assert.assertNotNull(period65); org.junit.Assert.assertNotNull(period67); org.junit.Assert.assertNotNull(duration69); org.junit.Assert.assertNotNull(period71); org.junit.Assert.assertNotNull(period77); org.junit.Assert.assertNotNull(period83); org.junit.Assert.assertNotNull(durationFieldType89); org.junit.Assert.assertTrue("'" + int90 + "' != '" + 0 + "'", int90 == 0); org.junit.Assert.assertTrue("'" + int91 + "' != '" + 0 + "'", int91 == 0); org.junit.Assert.assertNotNull(period93); org.junit.Assert.assertTrue("'" + int94 + "' != '" + 0 + "'", int94 == 0); org.junit.Assert.assertTrue("'" + int95 + "' != '" + 0 + "'", int95 == 0); org.junit.Assert.assertTrue("'" + boolean96 + "' != '" + true + "'", boolean96 == true); org.junit.Assert.assertNotNull(period98); org.junit.Assert.assertNotNull(period99); } @Test public void test0595() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0595"); org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant5, readableInstant6); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.Duration duration9 = period7.toDurationFrom(readableInstant8); org.joda.time.Period period11 = period7.plusMonths(0); org.joda.time.Period period13 = period11.plusMonths((int) '#'); org.joda.time.Period period15 = period11.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType16 = period11.getPeriodType(); org.joda.time.Chronology chronology17 = null; org.joda.time.Period period18 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType16, chronology17); org.joda.time.Period period19 = new org.joda.time.Period(readableInstant1, readableInstant2, periodType16); org.joda.time.Chronology chronology20 = null; org.joda.time.Period period21 = new org.joda.time.Period((long) (-100), periodType16, chronology20); org.joda.time.Period period23 = period21.withMinutes((int) (byte) 100); org.junit.Assert.assertNotNull(duration9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(periodType16); org.junit.Assert.assertNotNull(period23); } @Test public void test0596() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0596"); org.joda.time.format.PeriodFormatter periodFormatter1 = null; // The following exception was thrown during execution in test generation try { org.joda.time.Period period2 = org.joda.time.Period.parse("P8Y100M10W8DT97H100M32S", periodFormatter1); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null"); } catch (java.lang.NullPointerException e) { // Expected exception. } } @Test public void test0597() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0597"); org.joda.time.Period period1 = org.joda.time.Period.days(10); int int2 = period1.getDays(); org.joda.time.Period period4 = period1.withSeconds((int) '4'); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 10 + "'", int2 == 10); org.junit.Assert.assertNotNull(period4); } @Test public void test0598() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0598"); org.joda.time.Period period8 = new org.joda.time.Period((int) (short) 1, (int) (short) 10, 97, (int) (byte) 1, 8, (int) (short) -1, 97, 8); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period8.toDurationFrom(readableInstant9); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Period period12 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration10, readableInstant11); org.junit.Assert.assertNotNull(duration10); } @Test public void test0599() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0599"); org.joda.time.ReadablePartial readablePartial0 = null; org.joda.time.ReadablePartial readablePartial1 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Period period12 = new org.joda.time.Period(readableInstant10, readableInstant11); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.PeriodType periodType15 = null; org.joda.time.Period period16 = new org.joda.time.Period(readableInstant13, readableInstant14, periodType15); org.joda.time.MutablePeriod mutablePeriod17 = period16.toMutablePeriod(); org.joda.time.Period period18 = period12.plus((org.joda.time.ReadablePeriod) period16); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.PeriodType periodType21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant19, readableInstant20, periodType21); org.joda.time.Period period24 = period22.plusMonths((int) '4'); org.joda.time.Period period25 = period16.withFields((org.joda.time.ReadablePeriod) period24); org.joda.time.PeriodType periodType29 = null; org.joda.time.Chronology chronology30 = null; org.joda.time.Period period31 = new org.joda.time.Period((long) 'a', periodType29, chronology30); org.joda.time.PeriodType periodType33 = null; org.joda.time.Chronology chronology34 = null; org.joda.time.Period period35 = new org.joda.time.Period((long) 'a', periodType33, chronology34); org.joda.time.Hours hours36 = period35.toStandardHours(); org.joda.time.Period period37 = period31.withFields((org.joda.time.ReadablePeriod) period35); org.joda.time.Period period39 = period31.withYears(10); org.joda.time.Period period40 = period39.toPeriod(); org.joda.time.Period period42 = period39.plusMillis(1); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.Period period47 = new org.joda.time.Period(readableInstant45, readableInstant46); org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.Duration duration49 = period47.toDurationFrom(readableInstant48); org.joda.time.ReadableInstant readableInstant51 = null; org.joda.time.ReadableInstant readableInstant52 = null; org.joda.time.Period period53 = new org.joda.time.Period(readableInstant51, readableInstant52); org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.Duration duration55 = period53.toDurationFrom(readableInstant54); org.joda.time.Period period57 = period53.plusMonths(0); org.joda.time.Period period59 = period57.plusMonths((int) '#'); org.joda.time.Period period61 = period57.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType62 = period57.getPeriodType(); org.joda.time.Chronology chronology63 = null; org.joda.time.Period period64 = new org.joda.time.Period((long) (short) -1, periodType62, chronology63); org.joda.time.Period period65 = new org.joda.time.Period(readableInstant44, (org.joda.time.ReadableDuration) duration49, periodType62); org.joda.time.Chronology chronology66 = null; org.joda.time.Period period67 = new org.joda.time.Period((long) (byte) 0, periodType62, chronology66); org.joda.time.Period period68 = period42.normalizedStandard(periodType62); org.joda.time.Chronology chronology69 = null; org.joda.time.Period period70 = new org.joda.time.Period(0L, (long) 8, periodType62, chronology69); org.joda.time.Period period71 = new org.joda.time.Period((java.lang.Object) period16, periodType62); org.joda.time.Period period72 = new org.joda.time.Period((int) 'a', (int) '#', 1, 0, (int) ' ', 52, (-1), 0, periodType62); // The following exception was thrown during execution in test generation try { org.joda.time.Period period73 = new org.joda.time.Period(readablePartial0, readablePartial1, periodType62); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: ReadablePartial objects must not be null"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(mutablePeriod17); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(hours36); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(duration49); org.junit.Assert.assertNotNull(duration55); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(periodType62); org.junit.Assert.assertNotNull(period68); } @Test public void test0600() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0600"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); int int6 = period5.getWeeks(); int int7 = period5.getSeconds(); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.PeriodType periodType10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant8, readableInstant9, periodType10); org.joda.time.Period period13 = period11.minusMillis((int) '4'); int int14 = period13.getSeconds(); org.joda.time.Period period16 = period13.withHours(100); int int17 = period13.getDays(); org.joda.time.Period period18 = period5.plus((org.joda.time.ReadablePeriod) period13); org.joda.time.PeriodType periodType20 = null; org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) 'a', periodType20, chronology21); org.joda.time.Hours hours23 = period22.toStandardHours(); org.joda.time.Period period25 = period22.plusSeconds((int) (byte) 1); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.PeriodType periodType28 = null; org.joda.time.Period period29 = new org.joda.time.Period(readableInstant26, readableInstant27, periodType28); org.joda.time.DurationFieldType durationFieldType31 = period29.getFieldType((int) (byte) 0); org.joda.time.Period period33 = period22.withField(durationFieldType31, 1); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Period period36 = new org.joda.time.Period(readableInstant34, readableInstant35); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Duration duration38 = period36.toDurationFrom(readableInstant37); org.joda.time.Period period40 = period36.plusMonths(0); org.joda.time.Period period42 = period40.plusMonths((int) '#'); org.joda.time.Period period44 = period40.plusMinutes((int) (short) 100); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.Period period47 = new org.joda.time.Period(readableInstant45, readableInstant46); org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.Duration duration49 = period47.toDurationFrom(readableInstant48); org.joda.time.Period period51 = period47.plusMonths(0); org.joda.time.Period period53 = period51.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.Duration duration55 = period51.toDurationFrom(readableInstant54); org.joda.time.Period period57 = period51.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant58 = null; org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.PeriodType periodType60 = null; org.joda.time.Period period61 = new org.joda.time.Period(readableInstant58, readableInstant59, periodType60); org.joda.time.Period period63 = period61.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.PeriodType periodType66 = null; org.joda.time.Period period67 = new org.joda.time.Period(readableInstant64, readableInstant65, periodType66); org.joda.time.Period period69 = period67.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant70 = null; org.joda.time.ReadableInstant readableInstant71 = null; org.joda.time.PeriodType periodType72 = null; org.joda.time.Period period73 = new org.joda.time.Period(readableInstant70, readableInstant71, periodType72); org.joda.time.DurationFieldType durationFieldType75 = period73.getFieldType((int) (byte) 0); int int76 = period69.indexOf(durationFieldType75); int int77 = period61.get(durationFieldType75); org.joda.time.Period period79 = period51.withField(durationFieldType75, (int) (short) 0); boolean boolean80 = period44.isSupported(durationFieldType75); org.joda.time.Period period82 = period33.withFieldAdded(durationFieldType75, 1); org.joda.time.Period period84 = period18.withField(durationFieldType75, 10); org.joda.time.Period period86 = period84.minusMonths((int) (byte) 1); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(hours23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(durationFieldType31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(duration38); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(duration49); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertNotNull(duration55); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertNotNull(period63); org.junit.Assert.assertNotNull(period69); org.junit.Assert.assertNotNull(durationFieldType75); org.junit.Assert.assertTrue("'" + int76 + "' != '" + 0 + "'", int76 == 0); org.junit.Assert.assertTrue("'" + int77 + "' != '" + 0 + "'", int77 == 0); org.junit.Assert.assertNotNull(period79); org.junit.Assert.assertTrue("'" + boolean80 + "' != '" + true + "'", boolean80 == true); org.junit.Assert.assertNotNull(period82); org.junit.Assert.assertNotNull(period84); org.junit.Assert.assertNotNull(period86); } @Test public void test0601() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0601"); org.joda.time.Period period1 = org.joda.time.Period.hours(100); int int2 = period1.getHours(); org.joda.time.Period period4 = period1.withMonths((int) (byte) 100); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 100 + "'", int2 == 100); org.junit.Assert.assertNotNull(period4); } @Test public void test0602() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0602"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); org.joda.time.Period period7 = period5.minusSeconds((int) (short) 100); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period7.toDurationFrom(readableInstant9); org.joda.time.Period period12 = period7.minusSeconds((int) (short) 0); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(period12); } @Test public void test0603() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0603"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period((long) 'a', periodType2, chronology3); org.joda.time.Hours hours5 = period4.toStandardHours(); org.joda.time.Period period7 = period4.plusSeconds((int) (byte) 1); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.PeriodType periodType10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant8, readableInstant9, periodType10); org.joda.time.DurationFieldType durationFieldType13 = period11.getFieldType((int) (byte) 0); org.joda.time.Period period15 = period4.withField(durationFieldType13, 1); org.joda.time.Duration duration16 = period4.toStandardDuration(); org.joda.time.Period period17 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration16); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Period period19 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration16, readableInstant18); org.junit.Assert.assertNotNull(hours5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(durationFieldType13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(duration16); } @Test public void test0604() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0604"); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Period period10 = new org.joda.time.Period(readableInstant8, readableInstant9); org.joda.time.Period period11 = period10.normalizedStandard(); org.joda.time.Period period13 = period10.plusMinutes((int) ' '); org.joda.time.Period period14 = period13.normalizedStandard(); org.joda.time.Period period15 = new org.joda.time.Period((java.lang.Object) period14); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Period period19 = new org.joda.time.Period(readableInstant17, readableInstant18); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Duration duration21 = period19.toDurationFrom(readableInstant20); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant23, readableInstant24); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Duration duration27 = period25.toDurationFrom(readableInstant26); org.joda.time.Period period29 = period25.plusMonths(0); org.joda.time.Period period31 = period29.plusMonths((int) '#'); org.joda.time.Period period33 = period29.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType34 = period29.getPeriodType(); org.joda.time.Chronology chronology35 = null; org.joda.time.Period period36 = new org.joda.time.Period((long) (short) -1, periodType34, chronology35); org.joda.time.Period period37 = new org.joda.time.Period(readableInstant16, (org.joda.time.ReadableDuration) duration21, periodType34); org.joda.time.Period period38 = period15.withPeriodType(periodType34); org.joda.time.Period period39 = new org.joda.time.Period((int) (byte) 1, (int) (byte) 1, 0, (int) (byte) 0, 1, (int) (short) -1, (int) '#', (int) (short) 10, periodType34); org.joda.time.Period period41 = period39.minusSeconds(10); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(duration21); org.junit.Assert.assertNotNull(duration27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(periodType34); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(period41); } @Test public void test0605() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0605"); org.joda.time.PeriodType periodType2 = null; org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period((long) '4', (-1L), periodType2, chronology3); org.joda.time.Period period6 = period4.withMillis(98); org.junit.Assert.assertNotNull(period6); } @Test public void test0606() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0606"); org.joda.time.Period period1 = new org.joda.time.Period((long) (byte) -1); org.joda.time.Period period3 = period1.plusDays((-1)); org.junit.Assert.assertNotNull(period3); } @Test public void test0607() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0607"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); int int7 = period2.getWeeks(); int int8 = period2.size(); org.joda.time.Period period10 = period2.minusDays((int) (byte) -1); org.joda.time.Period period12 = period10.withDays((int) (byte) -1); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.Period period23 = new org.joda.time.Period(readableInstant21, readableInstant22); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Duration duration25 = period23.toDurationFrom(readableInstant24); org.joda.time.Period period27 = period23.plusMonths(0); org.joda.time.Period period29 = period27.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.Duration duration31 = period27.toDurationFrom(readableInstant30); org.joda.time.Period period33 = period27.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.PeriodType periodType36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant34, readableInstant35, periodType36); org.joda.time.Period period39 = period37.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant40 = null; org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.PeriodType periodType42 = null; org.joda.time.Period period43 = new org.joda.time.Period(readableInstant40, readableInstant41, periodType42); org.joda.time.Period period45 = period43.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.PeriodType periodType48 = null; org.joda.time.Period period49 = new org.joda.time.Period(readableInstant46, readableInstant47, periodType48); org.joda.time.DurationFieldType durationFieldType51 = period49.getFieldType((int) (byte) 0); int int52 = period45.indexOf(durationFieldType51); int int53 = period37.get(durationFieldType51); org.joda.time.Period period55 = period27.withField(durationFieldType51, (int) (short) 0); org.joda.time.Chronology chronology58 = null; org.joda.time.Period period59 = new org.joda.time.Period(100L, (long) ' ', chronology58); org.joda.time.Period period61 = period59.plusHours(1); org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.Period period66 = new org.joda.time.Period(readableInstant64, readableInstant65); org.joda.time.ReadableInstant readableInstant67 = null; org.joda.time.Duration duration68 = period66.toDurationFrom(readableInstant67); org.joda.time.ReadableInstant readableInstant70 = null; org.joda.time.ReadableInstant readableInstant71 = null; org.joda.time.Period period72 = new org.joda.time.Period(readableInstant70, readableInstant71); org.joda.time.ReadableInstant readableInstant73 = null; org.joda.time.Duration duration74 = period72.toDurationFrom(readableInstant73); org.joda.time.Period period76 = period72.plusMonths(0); org.joda.time.Period period78 = period76.plusMonths((int) '#'); org.joda.time.Period period80 = period76.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType81 = period76.getPeriodType(); org.joda.time.Chronology chronology82 = null; org.joda.time.Period period83 = new org.joda.time.Period((long) (short) -1, periodType81, chronology82); org.joda.time.Period period84 = new org.joda.time.Period(readableInstant63, (org.joda.time.ReadableDuration) duration68, periodType81); org.joda.time.Chronology chronology85 = null; org.joda.time.Period period86 = new org.joda.time.Period((long) (byte) 0, periodType81, chronology85); org.joda.time.Period period87 = period61.withPeriodType(periodType81); org.joda.time.Period period88 = period27.withPeriodType(periodType81); org.joda.time.Period period89 = new org.joda.time.Period((int) '#', (int) ' ', 0, (int) (short) -1, 100, (int) (byte) 100, (int) (byte) 0, 97, periodType81); // The following exception was thrown during execution in test generation try { org.joda.time.Period period90 = new org.joda.time.Period((java.lang.Object) (byte) -1, periodType81); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: No period converter found for type: java.lang.Byte"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 8 + "'", int8 == 8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(duration25); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(duration31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertNotNull(durationFieldType51); org.junit.Assert.assertTrue("'" + int52 + "' != '" + 0 + "'", int52 == 0); org.junit.Assert.assertTrue("'" + int53 + "' != '" + 0 + "'", int53 == 0); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(duration68); org.junit.Assert.assertNotNull(duration74); org.junit.Assert.assertNotNull(period76); org.junit.Assert.assertNotNull(period78); org.junit.Assert.assertNotNull(period80); org.junit.Assert.assertNotNull(periodType81); org.junit.Assert.assertNotNull(period87); org.junit.Assert.assertNotNull(period88); } @Test public void test0608() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0608"); org.joda.time.format.PeriodFormatter periodFormatter1 = null; // The following exception was thrown during execution in test generation try { org.joda.time.Period period2 = org.joda.time.Period.parse("P100Y52M10WT1H32M0.010S", periodFormatter1); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null"); } catch (java.lang.NullPointerException e) { // Expected exception. } } @Test public void test0609() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0609"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); java.lang.String str4 = period3.toString(); org.joda.time.Period period5 = new org.joda.time.Period((java.lang.Object) str4); org.joda.time.Period period7 = period5.plusSeconds((int) 'a'); org.joda.time.Period period9 = org.joda.time.Period.seconds((int) (short) 1); org.joda.time.Chronology chronology10 = null; org.joda.time.Period period11 = new org.joda.time.Period((java.lang.Object) period9, chronology10); org.joda.time.Period period13 = period9.plusYears((int) (short) -1); org.joda.time.PeriodType periodType14 = period13.getPeriodType(); org.joda.time.Chronology chronology15 = null; org.joda.time.Period period16 = new org.joda.time.Period((java.lang.Object) period5, periodType14, chronology15); org.joda.time.Period period18 = period16.withMinutes((int) (byte) 1); org.junit.Assert.assertEquals("'" + str4 + "' != '" + "PT0.011S" + "'", str4, "PT0.011S"); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(periodType14); org.junit.Assert.assertNotNull(period18); } @Test public void test0610() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0610"); org.joda.time.Period period1 = org.joda.time.Period.parse("PT1H"); org.junit.Assert.assertNotNull(period1); } @Test public void test0611() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0611"); org.joda.time.Period period8 = new org.joda.time.Period((int) (short) 1, 11, (int) ' ', (int) (byte) 100, (-1), (int) ' ', (int) 'a', (int) 'a'); } @Test public void test0612() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0612"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period3 = period1.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.PeriodType periodType6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant4, readableInstant5, periodType6); org.joda.time.Period period9 = period7.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.PeriodType periodType12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant10, readableInstant11, periodType12); org.joda.time.DurationFieldType durationFieldType15 = period13.getFieldType((int) (byte) 0); int int16 = period9.indexOf(durationFieldType15); org.joda.time.Period period18 = period1.withFieldAdded(durationFieldType15, 1); org.joda.time.Period period20 = period18.plusSeconds((int) (byte) 1); org.joda.time.PeriodType periodType21 = period20.getPeriodType(); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.PeriodType periodType24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant22, readableInstant23, periodType24); org.joda.time.Period period27 = period25.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.PeriodType periodType30 = null; org.joda.time.Period period31 = new org.joda.time.Period(readableInstant28, readableInstant29, periodType30); org.joda.time.Period period33 = period31.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.PeriodType periodType36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant34, readableInstant35, periodType36); org.joda.time.DurationFieldType durationFieldType39 = period37.getFieldType((int) (byte) 0); int int40 = period33.indexOf(durationFieldType39); int int41 = period25.get(durationFieldType39); org.joda.time.Period period43 = period20.withFieldAdded(durationFieldType39, (int) (short) 0); org.joda.time.Period period45 = period43.minusYears(8); org.joda.time.Period period47 = period45.multipliedBy((int) (byte) 0); org.joda.time.Period period49 = period47.minusWeeks(0); org.joda.time.Period period51 = period47.plusDays(52); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(durationFieldType15); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(periodType21); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(durationFieldType39); org.junit.Assert.assertTrue("'" + int40 + "' != '" + 0 + "'", int40 == 0); org.junit.Assert.assertTrue("'" + int41 + "' != '" + 0 + "'", int41 == 0); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period51); } @Test public void test0613() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0613"); org.joda.time.Period period4 = new org.joda.time.Period((int) (short) 0, 1, (int) (byte) 0, (int) '4'); org.joda.time.Period period6 = org.joda.time.Period.weeks(97); org.joda.time.Period period7 = period4.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Minutes minutes8 = period6.toStandardMinutes(); org.joda.time.Period period10 = period6.withHours((int) (short) 1); org.joda.time.MutablePeriod mutablePeriod11 = period10.toMutablePeriod(); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(minutes8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(mutablePeriod11); } @Test public void test0614() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0614"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.Period period5 = period4.normalizedStandard(); org.joda.time.Period period7 = period4.plusMinutes((int) ' '); org.joda.time.Duration duration8 = period4.toStandardDuration(); org.joda.time.Period period9 = new org.joda.time.Period(readableInstant1, (org.joda.time.ReadableDuration) duration8); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Period period12 = new org.joda.time.Period((long) (-100)); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Period period16 = new org.joda.time.Period(readableInstant14, readableInstant15); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.Duration duration18 = period16.toDurationFrom(readableInstant17); org.joda.time.Period period19 = new org.joda.time.Period(readableInstant13, (org.joda.time.ReadableDuration) duration18); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant24, readableInstant25); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Duration duration28 = period26.toDurationFrom(readableInstant27); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Period period32 = new org.joda.time.Period(readableInstant30, readableInstant31); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Duration duration34 = period32.toDurationFrom(readableInstant33); org.joda.time.Period period36 = period32.plusMonths(0); org.joda.time.Period period38 = period36.plusMonths((int) '#'); org.joda.time.Period period40 = period36.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType41 = period36.getPeriodType(); org.joda.time.Chronology chronology42 = null; org.joda.time.Period period43 = new org.joda.time.Period((long) (short) -1, periodType41, chronology42); org.joda.time.Period period44 = new org.joda.time.Period(readableInstant23, (org.joda.time.ReadableDuration) duration28, periodType41); org.joda.time.Chronology chronology45 = null; org.joda.time.Period period46 = new org.joda.time.Period((long) (byte) 10, (long) 10, periodType41, chronology45); org.joda.time.Period period47 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration18, readableInstant20, periodType41); org.joda.time.Period period48 = period12.withPeriodType(periodType41); org.joda.time.Period period49 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration8, readableInstant10, periodType41); org.joda.time.Period period51 = org.joda.time.Period.years((int) (byte) -1); int int52 = period51.getSeconds(); org.joda.time.ReadableInstant readableInstant70 = null; org.joda.time.ReadableInstant readableInstant71 = null; org.joda.time.ReadableInstant readableInstant72 = null; org.joda.time.Period period73 = new org.joda.time.Period(readableInstant71, readableInstant72); org.joda.time.ReadableInstant readableInstant74 = null; org.joda.time.Duration duration75 = period73.toDurationFrom(readableInstant74); org.joda.time.ReadableInstant readableInstant77 = null; org.joda.time.ReadableInstant readableInstant78 = null; org.joda.time.Period period79 = new org.joda.time.Period(readableInstant77, readableInstant78); org.joda.time.ReadableInstant readableInstant80 = null; org.joda.time.Duration duration81 = period79.toDurationFrom(readableInstant80); org.joda.time.Period period83 = period79.plusMonths(0); org.joda.time.Period period85 = period83.plusMonths((int) '#'); org.joda.time.Period period87 = period83.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType88 = period83.getPeriodType(); org.joda.time.Chronology chronology89 = null; org.joda.time.Period period90 = new org.joda.time.Period((long) (short) -1, periodType88, chronology89); org.joda.time.Period period91 = new org.joda.time.Period(readableInstant70, (org.joda.time.ReadableDuration) duration75, periodType88); org.joda.time.Chronology chronology92 = null; org.joda.time.Period period93 = new org.joda.time.Period((long) (short) 100, periodType88, chronology92); org.joda.time.Period period94 = new org.joda.time.Period(0, (int) 'a', (int) ' ', (int) (short) 100, (int) (byte) 0, (int) (byte) 10, 10, (int) (short) -1, periodType88); org.joda.time.Period period95 = new org.joda.time.Period((int) (byte) 1, 97, (-100), (int) (short) 1, (int) 'a', 100, (int) 'a', (int) '#', periodType88); org.joda.time.Period period96 = period51.withPeriodType(periodType88); org.joda.time.Period period97 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration8, periodType88); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(duration8); org.junit.Assert.assertNotNull(duration18); org.junit.Assert.assertNotNull(duration28); org.junit.Assert.assertNotNull(duration34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(periodType41); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertTrue("'" + int52 + "' != '" + 0 + "'", int52 == 0); org.junit.Assert.assertNotNull(duration75); org.junit.Assert.assertNotNull(duration81); org.junit.Assert.assertNotNull(period83); org.junit.Assert.assertNotNull(period85); org.junit.Assert.assertNotNull(period87); org.junit.Assert.assertNotNull(periodType88); org.junit.Assert.assertNotNull(period96); } @Test public void test0615() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0615"); org.joda.time.Period period1 = new org.joda.time.Period((long) (byte) -1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Period period5 = new org.joda.time.Period(readableInstant3, readableInstant4); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Duration duration7 = period5.toDurationFrom(readableInstant6); org.joda.time.Period period9 = period5.plusMonths(0); org.joda.time.Period period11 = period9.plusMonths((int) '#'); org.joda.time.Period period13 = period9.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType14 = period9.getPeriodType(); org.joda.time.Chronology chronology15 = null; org.joda.time.Period period16 = new org.joda.time.Period((long) (short) -1, periodType14, chronology15); org.joda.time.Period period17 = period1.minus((org.joda.time.ReadablePeriod) period16); org.joda.time.Hours hours18 = period17.toStandardHours(); org.joda.time.PeriodType periodType20 = null; org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) 'a', periodType20, chronology21); org.joda.time.Period period24 = period22.withMinutes(0); org.joda.time.Period period26 = period24.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod27 = period24.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.PeriodType periodType30 = null; org.joda.time.Period period31 = new org.joda.time.Period(readableInstant28, readableInstant29, periodType30); org.joda.time.Period period33 = period31.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.PeriodType periodType36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant34, readableInstant35, periodType36); org.joda.time.DurationFieldType durationFieldType39 = period37.getFieldType((int) (byte) 0); int int40 = period33.indexOf(durationFieldType39); org.joda.time.Period period42 = period24.withFieldAdded(durationFieldType39, 10); org.joda.time.Period period44 = period17.withField(durationFieldType39, 97); org.joda.time.Chronology chronology46 = null; org.joda.time.Period period47 = new org.joda.time.Period((long) (short) 10, chronology46); org.joda.time.Period period49 = period47.withMinutes((int) (byte) 10); org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.ReadableInstant readableInstant51 = null; org.joda.time.Period period52 = new org.joda.time.Period(readableInstant50, readableInstant51); org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.Duration duration54 = period52.toDurationFrom(readableInstant53); org.joda.time.Period period56 = period52.plusMonths(0); org.joda.time.Period period58 = period52.plusWeeks((int) ' '); org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.Period period61 = new org.joda.time.Period(readableInstant59, readableInstant60); org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.Duration duration63 = period61.toDurationFrom(readableInstant62); org.joda.time.Period period65 = period61.plusMonths(0); org.joda.time.Period period67 = period65.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant68 = null; org.joda.time.Duration duration69 = period65.toDurationFrom(readableInstant68); org.joda.time.Period period71 = period65.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant72 = null; org.joda.time.ReadableInstant readableInstant73 = null; org.joda.time.PeriodType periodType74 = null; org.joda.time.Period period75 = new org.joda.time.Period(readableInstant72, readableInstant73, periodType74); org.joda.time.Period period77 = period75.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant78 = null; org.joda.time.ReadableInstant readableInstant79 = null; org.joda.time.PeriodType periodType80 = null; org.joda.time.Period period81 = new org.joda.time.Period(readableInstant78, readableInstant79, periodType80); org.joda.time.Period period83 = period81.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant84 = null; org.joda.time.ReadableInstant readableInstant85 = null; org.joda.time.PeriodType periodType86 = null; org.joda.time.Period period87 = new org.joda.time.Period(readableInstant84, readableInstant85, periodType86); org.joda.time.DurationFieldType durationFieldType89 = period87.getFieldType((int) (byte) 0); int int90 = period83.indexOf(durationFieldType89); int int91 = period75.get(durationFieldType89); org.joda.time.Period period93 = period65.withField(durationFieldType89, (int) (short) 0); int int94 = period58.indexOf(durationFieldType89); boolean boolean95 = period49.isSupported(durationFieldType89); boolean boolean96 = period44.isSupported(durationFieldType89); org.junit.Assert.assertNotNull(duration7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(periodType14); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(hours18); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(mutablePeriod27); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(durationFieldType39); org.junit.Assert.assertTrue("'" + int40 + "' != '" + 0 + "'", int40 == 0); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(duration54); org.junit.Assert.assertNotNull(period56); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertNotNull(duration63); org.junit.Assert.assertNotNull(period65); org.junit.Assert.assertNotNull(period67); org.junit.Assert.assertNotNull(duration69); org.junit.Assert.assertNotNull(period71); org.junit.Assert.assertNotNull(period77); org.junit.Assert.assertNotNull(period83); org.junit.Assert.assertNotNull(durationFieldType89); org.junit.Assert.assertTrue("'" + int90 + "' != '" + 0 + "'", int90 == 0); org.junit.Assert.assertTrue("'" + int91 + "' != '" + 0 + "'", int91 == 0); org.junit.Assert.assertNotNull(period93); org.junit.Assert.assertTrue("'" + int94 + "' != '" + 0 + "'", int94 == 0); org.junit.Assert.assertTrue("'" + boolean95 + "' != '" + true + "'", boolean95 == true); org.junit.Assert.assertTrue("'" + boolean96 + "' != '" + true + "'", boolean96 == true); } @Test public void test0616() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0616"); org.joda.time.Period period1 = org.joda.time.Period.hours((int) '4'); org.joda.time.Period period3 = period1.minusDays((int) (byte) 100); org.joda.time.Period period5 = period3.withMillis((int) (short) 0); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Duration duration7 = period3.toDurationTo(readableInstant6); java.lang.Class<?> wildcardClass8 = duration7.getClass(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(duration7); org.junit.Assert.assertNotNull(wildcardClass8); } @Test public void test0617() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0617"); org.joda.time.PeriodType periodType2 = null; org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period((long) 'a', periodType2, chronology3); org.joda.time.PeriodType periodType6 = null; org.joda.time.Chronology chronology7 = null; org.joda.time.Period period8 = new org.joda.time.Period((long) 'a', periodType6, chronology7); org.joda.time.Hours hours9 = period8.toStandardHours(); org.joda.time.Period period10 = period4.withFields((org.joda.time.ReadablePeriod) period8); org.joda.time.Period period12 = period4.withYears(10); org.joda.time.Period period13 = period12.toPeriod(); org.joda.time.Period period15 = period12.plusMillis(1); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Period period20 = new org.joda.time.Period(readableInstant18, readableInstant19); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Duration duration22 = period20.toDurationFrom(readableInstant21); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant24, readableInstant25); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Duration duration28 = period26.toDurationFrom(readableInstant27); org.joda.time.Period period30 = period26.plusMonths(0); org.joda.time.Period period32 = period30.plusMonths((int) '#'); org.joda.time.Period period34 = period30.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType35 = period30.getPeriodType(); org.joda.time.Chronology chronology36 = null; org.joda.time.Period period37 = new org.joda.time.Period((long) (short) -1, periodType35, chronology36); org.joda.time.Period period38 = new org.joda.time.Period(readableInstant17, (org.joda.time.ReadableDuration) duration22, periodType35); org.joda.time.Chronology chronology39 = null; org.joda.time.Period period40 = new org.joda.time.Period((long) (byte) 0, periodType35, chronology39); org.joda.time.Period period41 = period15.normalizedStandard(periodType35); int[] intArray42 = period41.getValues(); int int43 = period41.size(); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Duration duration45 = period41.toDurationTo(readableInstant44); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.Period period51 = new org.joda.time.Period(readableInstant49, readableInstant50); org.joda.time.ReadableInstant readableInstant52 = null; org.joda.time.Duration duration53 = period51.toDurationFrom(readableInstant52); org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.Period period57 = new org.joda.time.Period(readableInstant55, readableInstant56); org.joda.time.ReadableInstant readableInstant58 = null; org.joda.time.Duration duration59 = period57.toDurationFrom(readableInstant58); org.joda.time.Period period61 = period57.plusMonths(0); org.joda.time.Period period63 = period61.plusMonths((int) '#'); org.joda.time.Period period65 = period61.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType66 = period61.getPeriodType(); org.joda.time.Chronology chronology67 = null; org.joda.time.Period period68 = new org.joda.time.Period((long) (short) -1, periodType66, chronology67); org.joda.time.Period period69 = new org.joda.time.Period(readableInstant48, (org.joda.time.ReadableDuration) duration53, periodType66); org.joda.time.Chronology chronology70 = null; org.joda.time.Period period71 = new org.joda.time.Period((long) (short) 100, periodType66, chronology70); org.joda.time.Period period72 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration45, readableInstant46, periodType66); org.joda.time.Chronology chronology73 = null; org.joda.time.Period period74 = new org.joda.time.Period((long) 11, periodType66, chronology73); org.joda.time.Period period76 = period74.minusHours(100); org.junit.Assert.assertNotNull(hours9); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(duration22); org.junit.Assert.assertNotNull(duration28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(periodType35); org.junit.Assert.assertNotNull(period41); org.junit.Assert.assertNotNull(intArray42); org.junit.Assert.assertEquals(java.util.Arrays.toString(intArray42), "[10, 0, 0, 0, 0, 0, 0, 98]"); org.junit.Assert.assertTrue("'" + int43 + "' != '" + 8 + "'", int43 == 8); org.junit.Assert.assertNotNull(duration45); org.junit.Assert.assertNotNull(duration53); org.junit.Assert.assertNotNull(duration59); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(period63); org.junit.Assert.assertNotNull(period65); org.junit.Assert.assertNotNull(periodType66); org.junit.Assert.assertNotNull(period76); } @Test public void test0618() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0618"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant1, readableInstant2); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Duration duration5 = period3.toDurationFrom(readableInstant4); org.joda.time.Period period6 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration5); int int7 = period6.getYears(); org.joda.time.Period period9 = period6.withMonths((int) (byte) 100); org.joda.time.Period period10 = period6.negated(); org.joda.time.DurationFieldType[] durationFieldTypeArray11 = period10.getFieldTypes(); org.junit.Assert.assertNotNull(duration5); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(durationFieldTypeArray11); } @Test public void test0619() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0619"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Period period11 = period9.withMinutes(0); org.joda.time.Period period12 = period2.minus((org.joda.time.ReadablePeriod) period11); org.joda.time.DurationFieldType[] durationFieldTypeArray13 = period2.getFieldTypes(); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Period period16 = new org.joda.time.Period(readableInstant14, readableInstant15); org.joda.time.Period period17 = period16.normalizedStandard(); org.joda.time.Period period19 = period16.withWeeks(1); int int20 = period19.getWeeks(); org.joda.time.Period period21 = period2.minus((org.joda.time.ReadablePeriod) period19); int int22 = period21.getMonths(); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(durationFieldTypeArray13); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertTrue("'" + int20 + "' != '" + 1 + "'", int20 == 1); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertTrue("'" + int22 + "' != '" + 0 + "'", int22 == 0); } @Test public void test0620() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0620"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period3 = period1.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.PeriodType periodType6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant4, readableInstant5, periodType6); org.joda.time.Period period9 = period7.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.PeriodType periodType12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant10, readableInstant11, periodType12); org.joda.time.DurationFieldType durationFieldType15 = period13.getFieldType((int) (byte) 0); int int16 = period9.indexOf(durationFieldType15); org.joda.time.Period period18 = period1.withFieldAdded(durationFieldType15, 1); org.joda.time.Period period20 = period18.plusSeconds((int) (byte) 1); org.joda.time.PeriodType periodType21 = period20.getPeriodType(); org.joda.time.Period period23 = period20.plusMonths((int) (short) 100); org.joda.time.Period period25 = period20.plusDays((-100)); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(durationFieldType15); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(periodType21); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period25); } @Test public void test0621() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0621"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); int int11 = period6.getMillis(); org.joda.time.Period period12 = period6.negated(); org.joda.time.Period period14 = period12.minusDays((int) (short) 0); int int15 = period12.getHours(); org.joda.time.Period period17 = period12.minusWeeks((int) '#'); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); org.junit.Assert.assertNotNull(period17); } @Test public void test0622() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0622"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType4 = null; org.joda.time.Chronology chronology5 = null; org.joda.time.Period period6 = new org.joda.time.Period(10L, (long) (short) 0, periodType4, chronology5); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Duration duration8 = period6.toDurationFrom(readableInstant7); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Period period10 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration8, readableInstant9); org.joda.time.PeriodType periodType11 = null; org.joda.time.Period period12 = new org.joda.time.Period(readableInstant1, (org.joda.time.ReadableDuration) duration8, periodType11); org.joda.time.Period period14 = new org.joda.time.Period((long) (byte) -1); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.Period period18 = new org.joda.time.Period(readableInstant16, readableInstant17); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Duration duration20 = period18.toDurationFrom(readableInstant19); org.joda.time.Period period22 = period18.plusMonths(0); org.joda.time.Period period24 = period22.plusMonths((int) '#'); org.joda.time.Period period26 = period22.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType27 = period22.getPeriodType(); org.joda.time.Chronology chronology28 = null; org.joda.time.Period period29 = new org.joda.time.Period((long) (short) -1, periodType27, chronology28); org.joda.time.Period period30 = period14.minus((org.joda.time.ReadablePeriod) period29); org.joda.time.Period period32 = period29.plusMillis(100); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.PeriodType periodType39 = null; org.joda.time.Period period40 = new org.joda.time.Period(readableInstant37, readableInstant38, periodType39); org.joda.time.Period period42 = period40.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.Duration duration44 = period40.toDurationTo(readableInstant43); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.Period period46 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration44, readableInstant45); org.joda.time.ReadableInstant readableInstant51 = null; org.joda.time.ReadableInstant readableInstant52 = null; org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.Period period56 = new org.joda.time.Period(readableInstant54, readableInstant55); org.joda.time.ReadableInstant readableInstant57 = null; org.joda.time.Duration duration58 = period56.toDurationFrom(readableInstant57); org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.Period period62 = new org.joda.time.Period(readableInstant60, readableInstant61); org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.Duration duration64 = period62.toDurationFrom(readableInstant63); org.joda.time.Period period66 = period62.plusMonths(0); org.joda.time.Period period68 = period66.plusMonths((int) '#'); org.joda.time.Period period70 = period66.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType71 = period66.getPeriodType(); org.joda.time.Chronology chronology72 = null; org.joda.time.Period period73 = new org.joda.time.Period((long) (short) -1, periodType71, chronology72); org.joda.time.Period period74 = new org.joda.time.Period(readableInstant53, (org.joda.time.ReadableDuration) duration58, periodType71); org.joda.time.Period period75 = new org.joda.time.Period(readableInstant51, readableInstant52, periodType71); org.joda.time.Chronology chronology76 = null; org.joda.time.Period period77 = new org.joda.time.Period((long) (-100), (long) (-100), periodType71, chronology76); org.joda.time.Chronology chronology78 = null; org.joda.time.Period period79 = new org.joda.time.Period((long) 0, (long) 100, periodType71, chronology78); org.joda.time.Period period80 = period46.withPeriodType(periodType71); org.joda.time.Chronology chronology81 = null; org.joda.time.Period period82 = new org.joda.time.Period((long) (byte) 10, (long) '4', periodType71, chronology81); org.joda.time.Chronology chronology83 = null; org.joda.time.Period period84 = new org.joda.time.Period((long) 10, (long) (short) 0, periodType71, chronology83); org.joda.time.Period period85 = period29.normalizedStandard(periodType71); org.joda.time.Period period86 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration8, periodType71); org.junit.Assert.assertNotNull(duration8); org.junit.Assert.assertNotNull(duration20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(periodType27); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(duration44); org.junit.Assert.assertNotNull(duration58); org.junit.Assert.assertNotNull(duration64); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertNotNull(period68); org.junit.Assert.assertNotNull(period70); org.junit.Assert.assertNotNull(periodType71); org.junit.Assert.assertNotNull(period80); org.junit.Assert.assertNotNull(period85); } @Test public void test0623() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0623"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period6.toDurationFrom(readableInstant9); org.joda.time.Period period12 = period6.minusMonths((int) (byte) 0); int int13 = period12.getMillis(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); } @Test public void test0624() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0624"); org.joda.time.Period period1 = org.joda.time.Period.minutes(11); org.junit.Assert.assertNotNull(period1); } @Test public void test0625() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0625"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.Period period5 = period3.minusMillis((int) '4'); int int6 = period5.getSeconds(); org.joda.time.Weeks weeks7 = period5.toStandardWeeks(); int int8 = period5.getSeconds(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertNotNull(weeks7); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); } @Test public void test0626() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0626"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.MutablePeriod mutablePeriod4 = period3.toMutablePeriod(); int int5 = period3.getMillis(); org.joda.time.Period period7 = period3.plusSeconds((int) ' '); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.Duration duration9 = period7.toDurationTo(readableInstant8); org.junit.Assert.assertNotNull(mutablePeriod4); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(duration9); } @Test public void test0627() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0627"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period3.withMinutes((-1)); org.joda.time.Period period7 = period5.plusMillis(97); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); } @Test public void test0628() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0628"); org.joda.time.Period period8 = new org.joda.time.Period(0, (int) (short) 10, (int) (byte) 1, (int) (short) 10, (int) (short) -1, (int) (byte) 10, (int) (short) 10, 98); } @Test public void test0629() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0629"); org.joda.time.Period period1 = org.joda.time.Period.weeks(32); int int2 = period1.getWeeks(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 32 + "'", int2 == 32); } @Test public void test0630() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0630"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); int int7 = period2.getWeeks(); int int8 = period2.size(); org.joda.time.Period period10 = period2.minusDays((int) (byte) -1); org.joda.time.Period period12 = period2.withMonths(8); org.joda.time.Period period14 = period2.withMillis((int) (byte) 0); int int15 = period2.getMillis(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 8 + "'", int8 == 8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); } @Test public void test0631() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0631"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.PeriodType periodType5 = null; org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period((long) 'a', periodType5, chronology6); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.Period period9 = period3.withFields((org.joda.time.ReadablePeriod) period7); org.joda.time.Period period11 = period3.withYears(10); org.joda.time.Period period12 = period11.toPeriod(); org.joda.time.Period period14 = period11.plusMillis(1); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Period period19 = new org.joda.time.Period(readableInstant17, readableInstant18); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Duration duration21 = period19.toDurationFrom(readableInstant20); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant23, readableInstant24); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Duration duration27 = period25.toDurationFrom(readableInstant26); org.joda.time.Period period29 = period25.plusMonths(0); org.joda.time.Period period31 = period29.plusMonths((int) '#'); org.joda.time.Period period33 = period29.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType34 = period29.getPeriodType(); org.joda.time.Chronology chronology35 = null; org.joda.time.Period period36 = new org.joda.time.Period((long) (short) -1, periodType34, chronology35); org.joda.time.Period period37 = new org.joda.time.Period(readableInstant16, (org.joda.time.ReadableDuration) duration21, periodType34); org.joda.time.Chronology chronology38 = null; org.joda.time.Period period39 = new org.joda.time.Period((long) (byte) 0, periodType34, chronology38); org.joda.time.Period period40 = period14.normalizedStandard(periodType34); int[] intArray41 = period40.getValues(); int int42 = period40.size(); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.Duration duration44 = period40.toDurationTo(readableInstant43); org.joda.time.Period period46 = period40.withMinutes((int) (byte) -1); org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(duration21); org.junit.Assert.assertNotNull(duration27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(periodType34); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(intArray41); org.junit.Assert.assertEquals(java.util.Arrays.toString(intArray41), "[10, 0, 0, 0, 0, 0, 0, 98]"); org.junit.Assert.assertTrue("'" + int42 + "' != '" + 8 + "'", int42 == 8); org.junit.Assert.assertNotNull(duration44); org.junit.Assert.assertNotNull(period46); } @Test public void test0632() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0632"); org.joda.time.Period period1 = org.joda.time.Period.days((int) (short) -1); org.junit.Assert.assertNotNull(period1); } @Test public void test0633() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0633"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Hours hours4 = period3.toStandardHours(); org.joda.time.Duration duration5 = period3.toStandardDuration(); org.joda.time.Period period7 = period3.withDays((int) (short) 0); org.joda.time.Period period9 = period3.plusYears((int) '4'); org.junit.Assert.assertNotNull(hours4); org.junit.Assert.assertNotNull(duration5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); } @Test public void test0634() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0634"); org.joda.time.ReadablePartial readablePartial0 = null; org.joda.time.ReadablePartial readablePartial1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.Period period9 = new org.joda.time.Period(readableInstant7, readableInstant8); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.PeriodType periodType12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant10, readableInstant11, periodType12); org.joda.time.MutablePeriod mutablePeriod14 = period13.toMutablePeriod(); org.joda.time.Period period15 = period9.plus((org.joda.time.ReadablePeriod) period13); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.PeriodType periodType18 = null; org.joda.time.Period period19 = new org.joda.time.Period(readableInstant16, readableInstant17, periodType18); org.joda.time.Period period21 = period19.plusMonths((int) '4'); org.joda.time.Period period22 = period13.withFields((org.joda.time.ReadablePeriod) period21); org.joda.time.PeriodType periodType23 = period21.getPeriodType(); org.joda.time.Period period24 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType23); org.joda.time.Weeks weeks25 = period24.toStandardWeeks(); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Duration duration27 = period24.toDurationFrom(readableInstant26); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Period period32 = new org.joda.time.Period(readableInstant30, readableInstant31); org.joda.time.Period period33 = period32.normalizedStandard(); org.joda.time.Period period35 = period33.withMinutes((-1)); org.joda.time.PeriodType periodType36 = null; org.joda.time.Period period37 = period35.normalizedStandard(periodType36); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.ReadableInstant readableInstant40 = null; org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.Period period46 = new org.joda.time.Period(readableInstant44, readableInstant45); org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.Duration duration48 = period46.toDurationFrom(readableInstant47); org.joda.time.Period period50 = period46.plusMonths(0); org.joda.time.Period period52 = period50.plusMonths((int) '#'); org.joda.time.Period period54 = period50.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType55 = period50.getPeriodType(); org.joda.time.Chronology chronology56 = null; org.joda.time.Period period57 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType55, chronology56); org.joda.time.Period period58 = new org.joda.time.Period(readableInstant40, readableInstant41, periodType55); org.joda.time.Period period59 = new org.joda.time.Period(readableInstant38, readableInstant39, periodType55); org.joda.time.Chronology chronology60 = null; org.joda.time.Period period61 = new org.joda.time.Period((java.lang.Object) periodType36, periodType55, chronology60); org.joda.time.Period period62 = new org.joda.time.Period(readableInstant28, readableInstant29, periodType55); org.joda.time.Period period63 = new org.joda.time.Period(readableInstant4, (org.joda.time.ReadableDuration) duration27, periodType55); org.joda.time.Period period64 = new org.joda.time.Period(readableInstant2, readableInstant3, periodType55); // The following exception was thrown during execution in test generation try { org.joda.time.Period period65 = new org.joda.time.Period(readablePartial0, readablePartial1, periodType55); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: ReadablePartial objects must not be null"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(mutablePeriod14); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(periodType23); org.junit.Assert.assertNotNull(weeks25); org.junit.Assert.assertNotNull(duration27); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(duration48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(period52); org.junit.Assert.assertNotNull(period54); org.junit.Assert.assertNotNull(periodType55); } @Test public void test0635() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0635"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); org.joda.time.Period period12 = period10.minusWeeks(1); org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.Period period31 = new org.joda.time.Period(readableInstant29, readableInstant30); org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.PeriodType periodType34 = null; org.joda.time.Period period35 = new org.joda.time.Period(readableInstant32, readableInstant33, periodType34); org.joda.time.MutablePeriod mutablePeriod36 = period35.toMutablePeriod(); org.joda.time.Period period37 = period31.plus((org.joda.time.ReadablePeriod) period35); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.PeriodType periodType40 = null; org.joda.time.Period period41 = new org.joda.time.Period(readableInstant38, readableInstant39, periodType40); org.joda.time.Period period43 = period41.plusMonths((int) '4'); org.joda.time.Period period44 = period35.withFields((org.joda.time.ReadablePeriod) period43); org.joda.time.PeriodType periodType48 = null; org.joda.time.Chronology chronology49 = null; org.joda.time.Period period50 = new org.joda.time.Period((long) 'a', periodType48, chronology49); org.joda.time.PeriodType periodType52 = null; org.joda.time.Chronology chronology53 = null; org.joda.time.Period period54 = new org.joda.time.Period((long) 'a', periodType52, chronology53); org.joda.time.Hours hours55 = period54.toStandardHours(); org.joda.time.Period period56 = period50.withFields((org.joda.time.ReadablePeriod) period54); org.joda.time.Period period58 = period50.withYears(10); org.joda.time.Period period59 = period58.toPeriod(); org.joda.time.Period period61 = period58.plusMillis(1); org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.Period period66 = new org.joda.time.Period(readableInstant64, readableInstant65); org.joda.time.ReadableInstant readableInstant67 = null; org.joda.time.Duration duration68 = period66.toDurationFrom(readableInstant67); org.joda.time.ReadableInstant readableInstant70 = null; org.joda.time.ReadableInstant readableInstant71 = null; org.joda.time.Period period72 = new org.joda.time.Period(readableInstant70, readableInstant71); org.joda.time.ReadableInstant readableInstant73 = null; org.joda.time.Duration duration74 = period72.toDurationFrom(readableInstant73); org.joda.time.Period period76 = period72.plusMonths(0); org.joda.time.Period period78 = period76.plusMonths((int) '#'); org.joda.time.Period period80 = period76.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType81 = period76.getPeriodType(); org.joda.time.Chronology chronology82 = null; org.joda.time.Period period83 = new org.joda.time.Period((long) (short) -1, periodType81, chronology82); org.joda.time.Period period84 = new org.joda.time.Period(readableInstant63, (org.joda.time.ReadableDuration) duration68, periodType81); org.joda.time.Chronology chronology85 = null; org.joda.time.Period period86 = new org.joda.time.Period((long) (byte) 0, periodType81, chronology85); org.joda.time.Period period87 = period61.normalizedStandard(periodType81); org.joda.time.Chronology chronology88 = null; org.joda.time.Period period89 = new org.joda.time.Period(0L, (long) 8, periodType81, chronology88); org.joda.time.Period period90 = new org.joda.time.Period((java.lang.Object) period35, periodType81); org.joda.time.Period period91 = new org.joda.time.Period((int) 'a', 100, (int) (short) -1, 100, (int) (short) -1, (int) (byte) 1, 8, 100, periodType81); org.joda.time.Period period92 = new org.joda.time.Period((int) '#', (int) (byte) 0, 0, (int) ' ', (int) ' ', (-1), (int) (byte) 100, 97, periodType81); org.joda.time.Period period93 = new org.joda.time.Period((java.lang.Object) period10, periodType81); org.joda.time.Period period95 = period93.minusYears((int) '#'); org.joda.time.Period period97 = period93.minusWeeks((int) (short) 100); org.joda.time.Period period99 = period97.minusMillis(52); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(mutablePeriod36); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(hours55); org.junit.Assert.assertNotNull(period56); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(duration68); org.junit.Assert.assertNotNull(duration74); org.junit.Assert.assertNotNull(period76); org.junit.Assert.assertNotNull(period78); org.junit.Assert.assertNotNull(period80); org.junit.Assert.assertNotNull(periodType81); org.junit.Assert.assertNotNull(period87); org.junit.Assert.assertNotNull(period95); org.junit.Assert.assertNotNull(period97); org.junit.Assert.assertNotNull(period99); } @Test public void test0636() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0636"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.PeriodType periodType5 = null; org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period((long) 'a', periodType5, chronology6); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.Period period9 = period3.withFields((org.joda.time.ReadablePeriod) period7); org.joda.time.Period period11 = period3.withYears(10); org.joda.time.Period period13 = period3.minusWeeks((int) (short) -1); org.joda.time.Chronology chronology14 = null; // The following exception was thrown during execution in test generation try { org.joda.time.Period period15 = new org.joda.time.Period((java.lang.Object) (short) -1, chronology14); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: No period converter found for type: java.lang.Short"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); } @Test public void test0637() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0637"); org.joda.time.PeriodType periodType2 = null; org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period((long) '4', (-1L), periodType2, chronology3); org.joda.time.Period period6 = period4.minusSeconds((int) '#'); org.joda.time.Period period8 = period4.withMonths((int) (byte) -1); int int9 = period8.getSeconds(); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); } @Test public void test0638() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0638"); org.joda.time.Period period1 = org.joda.time.Period.weeks((int) '#'); org.junit.Assert.assertNotNull(period1); } @Test public void test0639() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0639"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.Period period5 = period3.plusMonths((int) '4'); org.joda.time.Period period7 = period5.withYears(0); org.joda.time.Period period8 = new org.joda.time.Period((java.lang.Object) period5); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant9, readableInstant10); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Duration duration13 = period11.toDurationFrom(readableInstant12); org.joda.time.Period period15 = period11.plusMonths(0); org.joda.time.Period period17 = period15.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Duration duration19 = period15.toDurationFrom(readableInstant18); org.joda.time.Period period21 = period15.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.PeriodType periodType24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant22, readableInstant23, periodType24); org.joda.time.Period period27 = period25.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.PeriodType periodType30 = null; org.joda.time.Period period31 = new org.joda.time.Period(readableInstant28, readableInstant29, periodType30); org.joda.time.Period period33 = period31.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.PeriodType periodType36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant34, readableInstant35, periodType36); org.joda.time.DurationFieldType durationFieldType39 = period37.getFieldType((int) (byte) 0); int int40 = period33.indexOf(durationFieldType39); int int41 = period25.get(durationFieldType39); org.joda.time.Period period43 = period15.withField(durationFieldType39, (int) (short) 0); int int44 = period5.indexOf(durationFieldType39); // The following exception was thrown during execution in test generation try { org.joda.time.Weeks weeks45 = period5.toStandardWeeks(); org.junit.Assert.fail("Expected exception of type java.lang.UnsupportedOperationException; message: Cannot convert to Weeks as this period contains months and months vary in length"); } catch (java.lang.UnsupportedOperationException e) { // Expected exception. } org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(duration13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(duration19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(durationFieldType39); org.junit.Assert.assertTrue("'" + int40 + "' != '" + 0 + "'", int40 == 0); org.junit.Assert.assertTrue("'" + int41 + "' != '" + 0 + "'", int41 == 0); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertTrue("'" + int44 + "' != '" + 0 + "'", int44 == 0); } @Test public void test0640() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0640"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.PeriodType periodType5 = null; org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period((long) 'a', periodType5, chronology6); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.Period period9 = period3.withFields((org.joda.time.ReadablePeriod) period7); org.joda.time.Period period11 = period7.minusSeconds((int) ' '); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Period period16 = new org.joda.time.Period(readableInstant14, readableInstant15); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.PeriodType periodType19 = null; org.joda.time.Period period20 = new org.joda.time.Period(readableInstant17, readableInstant18, periodType19); org.joda.time.MutablePeriod mutablePeriod21 = period20.toMutablePeriod(); org.joda.time.Period period22 = period16.plus((org.joda.time.ReadablePeriod) period20); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.PeriodType periodType25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant23, readableInstant24, periodType25); org.joda.time.Period period28 = period26.plusMonths((int) '4'); org.joda.time.Period period29 = period20.withFields((org.joda.time.ReadablePeriod) period28); org.joda.time.PeriodType periodType30 = period28.getPeriodType(); org.joda.time.Period period31 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType30); org.joda.time.Period period32 = period11.withPeriodType(periodType30); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.PeriodType periodType35 = null; org.joda.time.Period period36 = new org.joda.time.Period(readableInstant33, readableInstant34, periodType35); org.joda.time.Period period38 = period36.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Duration duration40 = period36.toDurationTo(readableInstant39); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.Period period42 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration40, readableInstant41); org.joda.time.PeriodType periodType44 = null; org.joda.time.Chronology chronology45 = null; org.joda.time.Period period46 = new org.joda.time.Period((long) 'a', periodType44, chronology45); org.joda.time.Period period48 = period46.withMinutes(0); org.joda.time.Period period50 = period48.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod51 = period48.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant52 = null; org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.Period period54 = new org.joda.time.Period(readableInstant52, readableInstant53); org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.Duration duration56 = period54.toDurationFrom(readableInstant55); org.joda.time.Period period58 = period54.plusMonths(0); org.joda.time.Period period60 = period58.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.Duration duration62 = period58.toDurationFrom(readableInstant61); org.joda.time.Period period64 = period58.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.ReadableInstant readableInstant66 = null; org.joda.time.PeriodType periodType67 = null; org.joda.time.Period period68 = new org.joda.time.Period(readableInstant65, readableInstant66, periodType67); org.joda.time.Period period70 = period68.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant71 = null; org.joda.time.ReadableInstant readableInstant72 = null; org.joda.time.PeriodType periodType73 = null; org.joda.time.Period period74 = new org.joda.time.Period(readableInstant71, readableInstant72, periodType73); org.joda.time.Period period76 = period74.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant77 = null; org.joda.time.ReadableInstant readableInstant78 = null; org.joda.time.PeriodType periodType79 = null; org.joda.time.Period period80 = new org.joda.time.Period(readableInstant77, readableInstant78, periodType79); org.joda.time.DurationFieldType durationFieldType82 = period80.getFieldType((int) (byte) 0); int int83 = period76.indexOf(durationFieldType82); int int84 = period68.get(durationFieldType82); org.joda.time.Period period86 = period58.withField(durationFieldType82, (int) (short) 0); int int87 = mutablePeriod51.indexOf(durationFieldType82); boolean boolean88 = period42.isSupported(durationFieldType82); org.joda.time.Period period90 = period11.withField(durationFieldType82, (int) (byte) 100); org.joda.time.Period period92 = period90.plusMinutes((-100)); int int93 = period92.getYears(); org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(mutablePeriod21); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(periodType30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(duration40); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(mutablePeriod51); org.junit.Assert.assertNotNull(duration56); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertNotNull(period60); org.junit.Assert.assertNotNull(duration62); org.junit.Assert.assertNotNull(period64); org.junit.Assert.assertNotNull(period70); org.junit.Assert.assertNotNull(period76); org.junit.Assert.assertNotNull(durationFieldType82); org.junit.Assert.assertTrue("'" + int83 + "' != '" + 0 + "'", int83 == 0); org.junit.Assert.assertTrue("'" + int84 + "' != '" + 0 + "'", int84 == 0); org.junit.Assert.assertNotNull(period86); org.junit.Assert.assertTrue("'" + int87 + "' != '" + 0 + "'", int87 == 0); org.junit.Assert.assertTrue("'" + boolean88 + "' != '" + true + "'", boolean88 == true); org.junit.Assert.assertNotNull(period90); org.junit.Assert.assertNotNull(period92); org.junit.Assert.assertTrue("'" + int93 + "' != '" + 100 + "'", int93 == 100); } @Test public void test0641() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0641"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period((long) (short) 10, chronology1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMinutes((int) (byte) 10); // The following exception was thrown during execution in test generation try { int int8 = period6.getValue((int) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: 10"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); } @Test public void test0642() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0642"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.MutablePeriod mutablePeriod7 = period6.toMutablePeriod(); org.joda.time.Period period8 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Period period10 = period6.withMonths((int) (byte) 0); org.joda.time.Period period12 = period10.plusMillis((int) (byte) 100); org.joda.time.Period period14 = period10.plusMonths((int) (byte) 0); org.joda.time.Period period16 = period14.plusWeeks((int) (short) 100); org.junit.Assert.assertNotNull(mutablePeriod7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); } @Test public void test0643() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0643"); org.joda.time.Period period2 = new org.joda.time.Period((long) 1, (long) (short) 0); } @Test public void test0644() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0644"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period6.toDurationFrom(readableInstant9); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant12, readableInstant13); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.PeriodType periodType17 = null; org.joda.time.Period period18 = new org.joda.time.Period(readableInstant15, readableInstant16, periodType17); org.joda.time.MutablePeriod mutablePeriod19 = period18.toMutablePeriod(); org.joda.time.Period period20 = period14.plus((org.joda.time.ReadablePeriod) period18); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.PeriodType periodType23 = null; org.joda.time.Period period24 = new org.joda.time.Period(readableInstant21, readableInstant22, periodType23); org.joda.time.Period period26 = period24.plusMonths((int) '4'); org.joda.time.Period period27 = period18.withFields((org.joda.time.ReadablePeriod) period26); org.joda.time.PeriodType periodType28 = period26.getPeriodType(); org.joda.time.Period period29 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration10, readableInstant11, periodType28); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.Period period31 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration10, readableInstant30); int int32 = period31.getMillis(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(mutablePeriod19); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(periodType28); org.junit.Assert.assertTrue("'" + int32 + "' != '" + 0 + "'", int32 == 0); } @Test public void test0645() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0645"); org.joda.time.Period period2 = new org.joda.time.Period((long) (byte) 100, (long) 10); int int3 = period2.getHours(); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); } @Test public void test0646() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0646"); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Period period15 = new org.joda.time.Period(readableInstant13, readableInstant14); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Duration duration17 = period15.toDurationFrom(readableInstant16); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Period period21 = new org.joda.time.Period(readableInstant19, readableInstant20); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.Duration duration23 = period21.toDurationFrom(readableInstant22); org.joda.time.Period period25 = period21.plusMonths(0); org.joda.time.Period period27 = period25.plusMonths((int) '#'); org.joda.time.Period period29 = period25.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType30 = period25.getPeriodType(); org.joda.time.Chronology chronology31 = null; org.joda.time.Period period32 = new org.joda.time.Period((long) (short) -1, periodType30, chronology31); org.joda.time.Period period33 = new org.joda.time.Period(readableInstant12, (org.joda.time.ReadableDuration) duration17, periodType30); org.joda.time.Period period34 = new org.joda.time.Period(readableInstant10, readableInstant11, periodType30); org.joda.time.Chronology chronology35 = null; org.joda.time.Period period36 = new org.joda.time.Period((long) (-100), (long) (-100), periodType30, chronology35); org.joda.time.Period period37 = new org.joda.time.Period(100, (int) '4', 10, 0, (int) (short) 1, (int) ' ', (int) (short) 0, (int) (byte) 10, periodType30); org.joda.time.format.PeriodFormatter periodFormatter38 = null; java.lang.String str39 = period37.toString(periodFormatter38); // The following exception was thrown during execution in test generation try { org.joda.time.Days days40 = period37.toStandardDays(); org.junit.Assert.fail("Expected exception of type java.lang.UnsupportedOperationException; message: Cannot convert to Days as this period contains months and months vary in length"); } catch (java.lang.UnsupportedOperationException e) { // Expected exception. } org.junit.Assert.assertNotNull(duration17); org.junit.Assert.assertNotNull(duration23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(periodType30); org.junit.Assert.assertEquals("'" + str39 + "' != '" + "P100Y52M10WT1H32M0.010S" + "'", str39, "P100Y52M10WT1H32M0.010S"); } @Test public void test0647() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0647"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); org.joda.time.Period period7 = period5.minusSeconds((int) (short) 100); org.joda.time.Period period9 = period7.minusMinutes(100); org.joda.time.Period period11 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period13 = period11.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.PeriodType periodType16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant14, readableInstant15, periodType16); org.joda.time.Period period19 = period17.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.PeriodType periodType22 = null; org.joda.time.Period period23 = new org.joda.time.Period(readableInstant20, readableInstant21, periodType22); org.joda.time.DurationFieldType durationFieldType25 = period23.getFieldType((int) (byte) 0); int int26 = period19.indexOf(durationFieldType25); org.joda.time.Period period28 = period11.withFieldAdded(durationFieldType25, 1); org.joda.time.Period period29 = period28.negated(); org.joda.time.Period period30 = period9.plus((org.joda.time.ReadablePeriod) period28); org.joda.time.Period period32 = period9.withDays((int) (byte) 0); org.joda.time.Minutes minutes33 = period9.toStandardMinutes(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(durationFieldType25); org.junit.Assert.assertTrue("'" + int26 + "' != '" + 0 + "'", int26 == 0); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(minutes33); } @Test public void test0648() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0648"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Hours hours4 = period3.toStandardHours(); org.joda.time.Period period6 = period3.plusSeconds((int) (byte) 1); org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period(100L, chronology8); org.joda.time.PeriodType periodType11 = null; org.joda.time.Chronology chronology12 = null; org.joda.time.Period period13 = new org.joda.time.Period((long) 'a', periodType11, chronology12); org.joda.time.PeriodType periodType15 = null; org.joda.time.Chronology chronology16 = null; org.joda.time.Period period17 = new org.joda.time.Period((long) 'a', periodType15, chronology16); org.joda.time.Hours hours18 = period17.toStandardHours(); org.joda.time.Period period19 = period13.withFields((org.joda.time.ReadablePeriod) period17); org.joda.time.Period period21 = period13.withYears(10); org.joda.time.Period period22 = period9.plus((org.joda.time.ReadablePeriod) period13); org.joda.time.Period period23 = period3.minus((org.joda.time.ReadablePeriod) period22); org.joda.time.Period period25 = period23.plusWeeks(0); // The following exception was thrown during execution in test generation try { int int27 = period23.getValue((-100)); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: -100"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(hours4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(hours18); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period25); } @Test public void test0649() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0649"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Period period11 = period9.withMinutes(0); org.joda.time.Period period12 = period2.minus((org.joda.time.ReadablePeriod) period11); org.joda.time.Chronology chronology15 = null; org.joda.time.Period period16 = new org.joda.time.Period(100L, (long) ' ', chronology15); org.joda.time.Period period18 = period16.plusHours(1); org.joda.time.Weeks weeks19 = period18.toStandardWeeks(); org.joda.time.Chronology chronology22 = null; org.joda.time.Period period23 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology22); java.lang.String str24 = period23.toString(); org.joda.time.Period period25 = new org.joda.time.Period((java.lang.Object) str24); org.joda.time.Period period27 = period25.plusSeconds((int) 'a'); org.joda.time.Period period29 = period25.plusYears((int) (byte) 0); org.joda.time.Period period31 = period25.withMonths(0); org.joda.time.PeriodType periodType33 = null; org.joda.time.Chronology chronology34 = null; org.joda.time.Period period35 = new org.joda.time.Period((long) 'a', periodType33, chronology34); org.joda.time.Period period37 = period35.withMinutes(0); org.joda.time.Period period39 = period37.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod40 = period37.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.Period period43 = new org.joda.time.Period(readableInstant41, readableInstant42); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Duration duration45 = period43.toDurationFrom(readableInstant44); org.joda.time.Period period47 = period43.plusMonths(0); org.joda.time.Period period49 = period47.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.Duration duration51 = period47.toDurationFrom(readableInstant50); org.joda.time.Period period53 = period47.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.PeriodType periodType56 = null; org.joda.time.Period period57 = new org.joda.time.Period(readableInstant54, readableInstant55, periodType56); org.joda.time.Period period59 = period57.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.PeriodType periodType62 = null; org.joda.time.Period period63 = new org.joda.time.Period(readableInstant60, readableInstant61, periodType62); org.joda.time.Period period65 = period63.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant66 = null; org.joda.time.ReadableInstant readableInstant67 = null; org.joda.time.PeriodType periodType68 = null; org.joda.time.Period period69 = new org.joda.time.Period(readableInstant66, readableInstant67, periodType68); org.joda.time.DurationFieldType durationFieldType71 = period69.getFieldType((int) (byte) 0); int int72 = period65.indexOf(durationFieldType71); int int73 = period57.get(durationFieldType71); org.joda.time.Period period75 = period47.withField(durationFieldType71, (int) (short) 0); int int76 = mutablePeriod40.indexOf(durationFieldType71); int int77 = period31.get(durationFieldType71); org.joda.time.Period period79 = period18.withFieldAdded(durationFieldType71, (int) (byte) 1); org.joda.time.Period period81 = period2.withField(durationFieldType71, 0); org.joda.time.Period period82 = period81.toPeriod(); org.joda.time.Period period84 = period81.plusMillis((int) (short) 10); org.joda.time.Period period85 = period81.toPeriod(); int int86 = period81.getHours(); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(weeks19); org.junit.Assert.assertEquals("'" + str24 + "' != '" + "PT0.011S" + "'", str24, "PT0.011S"); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertNotNull(mutablePeriod40); org.junit.Assert.assertNotNull(duration45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(duration51); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(period65); org.junit.Assert.assertNotNull(durationFieldType71); org.junit.Assert.assertTrue("'" + int72 + "' != '" + 0 + "'", int72 == 0); org.junit.Assert.assertTrue("'" + int73 + "' != '" + 0 + "'", int73 == 0); org.junit.Assert.assertNotNull(period75); org.junit.Assert.assertTrue("'" + int76 + "' != '" + 0 + "'", int76 == 0); org.junit.Assert.assertTrue("'" + int77 + "' != '" + 0 + "'", int77 == 0); org.junit.Assert.assertNotNull(period79); org.junit.Assert.assertNotNull(period81); org.junit.Assert.assertNotNull(period82); org.junit.Assert.assertNotNull(period84); org.junit.Assert.assertNotNull(period85); org.junit.Assert.assertTrue("'" + int86 + "' != '" + 0 + "'", int86 == 0); } @Test public void test0650() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0650"); org.joda.time.Period period1 = org.joda.time.Period.hours((int) '4'); org.joda.time.Period period3 = period1.minusDays((int) (byte) 100); org.joda.time.Period period5 = period1.plusMinutes(10); int[] intArray6 = period1.getValues(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(intArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(intArray6), "[0, 0, 0, 0, 52, 0, 0, 0]"); } @Test public void test0651() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0651"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period3.withMinutes((-1)); org.joda.time.PeriodType periodType6 = null; org.joda.time.Period period7 = period5.normalizedStandard(periodType6); org.joda.time.Period period9 = period7.multipliedBy((int) (byte) -1); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Period period12 = new org.joda.time.Period(readableInstant10, readableInstant11); org.joda.time.Period period13 = period12.normalizedStandard(); org.joda.time.Period period15 = period12.plusMinutes((int) ' '); org.joda.time.Duration duration16 = period12.toStandardDuration(); org.joda.time.Period period18 = period12.minusDays((int) (short) 0); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Duration duration20 = period18.toDurationTo(readableInstant19); org.joda.time.Period period21 = period18.toPeriod(); org.joda.time.Period period22 = period9.minus((org.joda.time.ReadablePeriod) period18); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(duration16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(duration20); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period22); } @Test public void test0652() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0652"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Period period5 = new org.joda.time.Period(readableInstant3, readableInstant4); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.PeriodType periodType8 = null; org.joda.time.Period period9 = new org.joda.time.Period(readableInstant6, readableInstant7, periodType8); org.joda.time.MutablePeriod mutablePeriod10 = period9.toMutablePeriod(); org.joda.time.Period period11 = period5.plus((org.joda.time.ReadablePeriod) period9); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.PeriodType periodType14 = null; org.joda.time.Period period15 = new org.joda.time.Period(readableInstant12, readableInstant13, periodType14); org.joda.time.Period period17 = period15.plusMonths((int) '4'); org.joda.time.Period period18 = period9.withFields((org.joda.time.ReadablePeriod) period17); org.joda.time.PeriodType periodType19 = period17.getPeriodType(); org.joda.time.Period period20 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType19); org.joda.time.Weeks weeks21 = period20.toStandardWeeks(); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.Duration duration23 = period20.toDurationFrom(readableInstant22); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Period period28 = new org.joda.time.Period(readableInstant26, readableInstant27); org.joda.time.Period period29 = period28.normalizedStandard(); org.joda.time.Period period31 = period29.withMinutes((-1)); org.joda.time.PeriodType periodType32 = null; org.joda.time.Period period33 = period31.normalizedStandard(periodType32); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.ReadableInstant readableInstant40 = null; org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.Period period42 = new org.joda.time.Period(readableInstant40, readableInstant41); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.Duration duration44 = period42.toDurationFrom(readableInstant43); org.joda.time.Period period46 = period42.plusMonths(0); org.joda.time.Period period48 = period46.plusMonths((int) '#'); org.joda.time.Period period50 = period46.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType51 = period46.getPeriodType(); org.joda.time.Chronology chronology52 = null; org.joda.time.Period period53 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType51, chronology52); org.joda.time.Period period54 = new org.joda.time.Period(readableInstant36, readableInstant37, periodType51); org.joda.time.Period period55 = new org.joda.time.Period(readableInstant34, readableInstant35, periodType51); org.joda.time.Chronology chronology56 = null; org.joda.time.Period period57 = new org.joda.time.Period((java.lang.Object) periodType32, periodType51, chronology56); org.joda.time.Period period58 = new org.joda.time.Period(readableInstant24, readableInstant25, periodType51); org.joda.time.Period period59 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration23, periodType51); org.joda.time.Period period61 = period59.multipliedBy((int) (byte) 10); org.junit.Assert.assertNotNull(mutablePeriod10); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(periodType19); org.junit.Assert.assertNotNull(weeks21); org.junit.Assert.assertNotNull(duration23); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(duration44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(periodType51); org.junit.Assert.assertNotNull(period61); } @Test public void test0653() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0653"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); org.joda.time.Period period7 = period5.minusSeconds((int) (short) 100); org.joda.time.Period period9 = period7.withWeeks((int) (short) -1); int int10 = period7.size(); org.joda.time.Period period13 = new org.joda.time.Period(0L, (-1L)); org.joda.time.Period period15 = period13.minusYears(100); org.joda.time.Period period16 = period15.negated(); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.PeriodType periodType19 = null; org.joda.time.Period period20 = new org.joda.time.Period(readableInstant17, readableInstant18, periodType19); org.joda.time.Period period22 = period20.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.PeriodType periodType25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant23, readableInstant24, periodType25); org.joda.time.DurationFieldType durationFieldType28 = period26.getFieldType((int) (byte) 0); int int29 = period22.indexOf(durationFieldType28); org.joda.time.Period period31 = period15.withField(durationFieldType28, 10); org.joda.time.Chronology chronology33 = null; org.joda.time.Period period34 = new org.joda.time.Period(0L, chronology33); org.joda.time.Period period36 = period34.minusMillis((int) (short) 0); org.joda.time.Period period37 = period15.minus((org.joda.time.ReadablePeriod) period34); org.joda.time.format.PeriodFormatter periodFormatter38 = null; java.lang.String str39 = period15.toString(periodFormatter38); org.joda.time.Period period44 = new org.joda.time.Period(97, (int) (short) 0, 100, (int) (short) 100); org.joda.time.Period period46 = org.joda.time.Period.millis(1); org.joda.time.PeriodType periodType48 = null; org.joda.time.Chronology chronology49 = null; org.joda.time.Period period50 = new org.joda.time.Period((long) 'a', periodType48, chronology49); org.joda.time.Hours hours51 = period50.toStandardHours(); org.joda.time.Period period53 = period50.plusSeconds((int) (byte) 1); org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.PeriodType periodType56 = null; org.joda.time.Period period57 = new org.joda.time.Period(readableInstant54, readableInstant55, periodType56); org.joda.time.DurationFieldType durationFieldType59 = period57.getFieldType((int) (byte) 0); org.joda.time.Period period61 = period50.withField(durationFieldType59, 1); boolean boolean62 = period46.equals((java.lang.Object) 1); org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.PeriodType periodType65 = null; org.joda.time.Period period66 = new org.joda.time.Period(readableInstant63, readableInstant64, periodType65); org.joda.time.Period period68 = period66.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant69 = null; org.joda.time.ReadableInstant readableInstant70 = null; org.joda.time.PeriodType periodType71 = null; org.joda.time.Period period72 = new org.joda.time.Period(readableInstant69, readableInstant70, periodType71); org.joda.time.DurationFieldType durationFieldType74 = period72.getFieldType((int) (byte) 0); int int75 = period68.indexOf(durationFieldType74); org.joda.time.Period period77 = period46.withFieldAdded(durationFieldType74, (int) (short) 0); int int78 = period44.get(durationFieldType74); org.joda.time.ReadableInstant readableInstant79 = null; org.joda.time.ReadableInstant readableInstant80 = null; org.joda.time.Period period81 = new org.joda.time.Period(readableInstant79, readableInstant80); org.joda.time.ReadableInstant readableInstant82 = null; org.joda.time.Duration duration83 = period81.toDurationFrom(readableInstant82); org.joda.time.Period period85 = period81.plusMonths(0); org.joda.time.Period period87 = period85.plusMonths((int) '#'); org.joda.time.Period period89 = period85.plusMinutes((int) (short) 100); org.joda.time.Period period91 = period89.minusWeeks(1); org.joda.time.DurationFieldType durationFieldType93 = period89.getFieldType((int) (byte) 0); boolean boolean94 = period44.isSupported(durationFieldType93); int int95 = period15.indexOf(durationFieldType93); int int96 = period7.indexOf(durationFieldType93); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 8 + "'", int10 == 8); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(durationFieldType28); org.junit.Assert.assertTrue("'" + int29 + "' != '" + 0 + "'", int29 == 0); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertEquals("'" + str39 + "' != '" + "P-100YT0.001S" + "'", str39, "P-100YT0.001S"); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(hours51); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertNotNull(durationFieldType59); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertTrue("'" + boolean62 + "' != '" + false + "'", boolean62 == false); org.junit.Assert.assertNotNull(period68); org.junit.Assert.assertNotNull(durationFieldType74); org.junit.Assert.assertTrue("'" + int75 + "' != '" + 0 + "'", int75 == 0); org.junit.Assert.assertNotNull(period77); org.junit.Assert.assertTrue("'" + int78 + "' != '" + 0 + "'", int78 == 0); org.junit.Assert.assertNotNull(duration83); org.junit.Assert.assertNotNull(period85); org.junit.Assert.assertNotNull(period87); org.junit.Assert.assertNotNull(period89); org.junit.Assert.assertNotNull(period91); org.junit.Assert.assertNotNull(durationFieldType93); org.junit.Assert.assertTrue("'" + boolean94 + "' != '" + true + "'", boolean94 == true); org.junit.Assert.assertTrue("'" + int95 + "' != '" + 0 + "'", int95 == 0); org.junit.Assert.assertTrue("'" + int96 + "' != '" + 0 + "'", int96 == 0); } @Test public void test0654() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0654"); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Period period8 = new org.joda.time.Period(readableInstant6, readableInstant7); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period8.toDurationFrom(readableInstant9); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant12, readableInstant13); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Duration duration16 = period14.toDurationFrom(readableInstant15); org.joda.time.Period period18 = period14.plusMonths(0); org.joda.time.Period period20 = period18.plusMonths((int) '#'); org.joda.time.Period period22 = period18.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType23 = period18.getPeriodType(); org.joda.time.Chronology chronology24 = null; org.joda.time.Period period25 = new org.joda.time.Period((long) (short) -1, periodType23, chronology24); org.joda.time.Period period26 = new org.joda.time.Period(readableInstant5, (org.joda.time.ReadableDuration) duration10, periodType23); org.joda.time.Chronology chronology27 = null; org.joda.time.Period period28 = new org.joda.time.Period((long) (byte) 10, (long) 10, periodType23, chronology27); org.joda.time.Chronology chronology29 = null; org.joda.time.Period period30 = new org.joda.time.Period((long) '#', periodType23, chronology29); org.joda.time.Chronology chronology31 = null; org.joda.time.Period period32 = new org.joda.time.Period(0L, (long) 52, periodType23, chronology31); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(duration16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(periodType23); } @Test public void test0655() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0655"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); int int9 = period8.getSeconds(); java.lang.String str10 = period8.toString(); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Period period24 = new org.joda.time.Period(readableInstant22, readableInstant23); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Duration duration26 = period24.toDurationFrom(readableInstant25); org.joda.time.Period period28 = period24.plusMonths(0); org.joda.time.Period period30 = period28.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Duration duration32 = period28.toDurationFrom(readableInstant31); org.joda.time.Period period34 = period28.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.PeriodType periodType37 = null; org.joda.time.Period period38 = new org.joda.time.Period(readableInstant35, readableInstant36, periodType37); org.joda.time.Period period40 = period38.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.PeriodType periodType43 = null; org.joda.time.Period period44 = new org.joda.time.Period(readableInstant41, readableInstant42, periodType43); org.joda.time.Period period46 = period44.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.PeriodType periodType49 = null; org.joda.time.Period period50 = new org.joda.time.Period(readableInstant47, readableInstant48, periodType49); org.joda.time.DurationFieldType durationFieldType52 = period50.getFieldType((int) (byte) 0); int int53 = period46.indexOf(durationFieldType52); int int54 = period38.get(durationFieldType52); org.joda.time.Period period56 = period28.withField(durationFieldType52, (int) (short) 0); org.joda.time.Chronology chronology59 = null; org.joda.time.Period period60 = new org.joda.time.Period(100L, (long) ' ', chronology59); org.joda.time.Period period62 = period60.plusHours(1); org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.ReadableInstant readableInstant66 = null; org.joda.time.Period period67 = new org.joda.time.Period(readableInstant65, readableInstant66); org.joda.time.ReadableInstant readableInstant68 = null; org.joda.time.Duration duration69 = period67.toDurationFrom(readableInstant68); org.joda.time.ReadableInstant readableInstant71 = null; org.joda.time.ReadableInstant readableInstant72 = null; org.joda.time.Period period73 = new org.joda.time.Period(readableInstant71, readableInstant72); org.joda.time.ReadableInstant readableInstant74 = null; org.joda.time.Duration duration75 = period73.toDurationFrom(readableInstant74); org.joda.time.Period period77 = period73.plusMonths(0); org.joda.time.Period period79 = period77.plusMonths((int) '#'); org.joda.time.Period period81 = period77.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType82 = period77.getPeriodType(); org.joda.time.Chronology chronology83 = null; org.joda.time.Period period84 = new org.joda.time.Period((long) (short) -1, periodType82, chronology83); org.joda.time.Period period85 = new org.joda.time.Period(readableInstant64, (org.joda.time.ReadableDuration) duration69, periodType82); org.joda.time.Chronology chronology86 = null; org.joda.time.Period period87 = new org.joda.time.Period((long) (byte) 0, periodType82, chronology86); org.joda.time.Period period88 = period62.withPeriodType(periodType82); org.joda.time.Period period89 = period28.withPeriodType(periodType82); org.joda.time.Period period90 = new org.joda.time.Period((int) '#', (int) ' ', 0, (int) (short) -1, 100, (int) (byte) 100, (int) (byte) 0, 97, periodType82); org.joda.time.Period period91 = new org.joda.time.Period((long) (byte) -1, periodType82); org.joda.time.Chronology chronology92 = null; org.joda.time.Period period93 = new org.joda.time.Period(0L, (long) (byte) -1, periodType82, chronology92); int int94 = period93.getDays(); org.joda.time.Period period96 = period93.minusMinutes((int) (short) 0); boolean boolean97 = period8.equals((java.lang.Object) (short) 0); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertEquals("'" + str10 + "' != '" + "P35M" + "'", str10, "P35M"); org.junit.Assert.assertNotNull(duration26); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(duration32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(durationFieldType52); org.junit.Assert.assertTrue("'" + int53 + "' != '" + 0 + "'", int53 == 0); org.junit.Assert.assertTrue("'" + int54 + "' != '" + 0 + "'", int54 == 0); org.junit.Assert.assertNotNull(period56); org.junit.Assert.assertNotNull(period62); org.junit.Assert.assertNotNull(duration69); org.junit.Assert.assertNotNull(duration75); org.junit.Assert.assertNotNull(period77); org.junit.Assert.assertNotNull(period79); org.junit.Assert.assertNotNull(period81); org.junit.Assert.assertNotNull(periodType82); org.junit.Assert.assertNotNull(period88); org.junit.Assert.assertNotNull(period89); org.junit.Assert.assertTrue("'" + int94 + "' != '" + 0 + "'", int94 == 0); org.junit.Assert.assertNotNull(period96); org.junit.Assert.assertTrue("'" + boolean97 + "' != '" + false + "'", boolean97 == false); } @Test public void test0656() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0656"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.MutablePeriod mutablePeriod4 = period3.toMutablePeriod(); org.joda.time.Period period6 = period3.minusMinutes((int) (byte) 100); org.joda.time.Seconds seconds7 = period6.toStandardSeconds(); org.joda.time.Period period8 = new org.joda.time.Period((java.lang.Object) period6); org.joda.time.Period period10 = period8.withMillis((int) (byte) 1); org.joda.time.Period period12 = period10.plusSeconds((int) (byte) 1); org.joda.time.Period period14 = period12.plusSeconds((-3)); org.junit.Assert.assertNotNull(mutablePeriod4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(seconds7); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); } @Test public void test0657() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0657"); org.joda.time.Period period1 = org.joda.time.Period.hours(1); org.joda.time.Period period3 = period1.plusSeconds(100); // The following exception was thrown during execution in test generation try { int int5 = period1.getValue((-1)); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: -1"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); } @Test public void test0658() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0658"); org.joda.time.ReadablePartial readablePartial0 = null; org.joda.time.ReadablePartial readablePartial1 = null; org.joda.time.PeriodType periodType3 = null; org.joda.time.Chronology chronology4 = null; org.joda.time.Period period5 = new org.joda.time.Period((long) 'a', periodType3, chronology4); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Hours hours10 = period9.toStandardHours(); org.joda.time.Period period11 = period5.withFields((org.joda.time.ReadablePeriod) period9); org.joda.time.Period period13 = period9.minusSeconds((int) ' '); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.Period period18 = new org.joda.time.Period(readableInstant16, readableInstant17); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.PeriodType periodType21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant19, readableInstant20, periodType21); org.joda.time.MutablePeriod mutablePeriod23 = period22.toMutablePeriod(); org.joda.time.Period period24 = period18.plus((org.joda.time.ReadablePeriod) period22); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.PeriodType periodType27 = null; org.joda.time.Period period28 = new org.joda.time.Period(readableInstant25, readableInstant26, periodType27); org.joda.time.Period period30 = period28.plusMonths((int) '4'); org.joda.time.Period period31 = period22.withFields((org.joda.time.ReadablePeriod) period30); org.joda.time.PeriodType periodType32 = period30.getPeriodType(); org.joda.time.Period period33 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType32); org.joda.time.Period period34 = period13.withPeriodType(periodType32); // The following exception was thrown during execution in test generation try { org.joda.time.Period period35 = new org.joda.time.Period(readablePartial0, readablePartial1, periodType32); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: ReadablePartial objects must not be null"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(hours10); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(mutablePeriod23); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(periodType32); org.junit.Assert.assertNotNull(period34); } @Test public void test0659() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0659"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); org.joda.time.Period period12 = period10.minusWeeks(1); org.joda.time.DurationFieldType durationFieldType14 = period10.getFieldType((int) (byte) 0); java.lang.String str15 = period10.toString(); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Duration duration17 = period10.toDurationFrom(readableInstant16); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant35, readableInstant36); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.PeriodType periodType40 = null; org.joda.time.Period period41 = new org.joda.time.Period(readableInstant38, readableInstant39, periodType40); org.joda.time.MutablePeriod mutablePeriod42 = period41.toMutablePeriod(); org.joda.time.Period period43 = period37.plus((org.joda.time.ReadablePeriod) period41); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.PeriodType periodType46 = null; org.joda.time.Period period47 = new org.joda.time.Period(readableInstant44, readableInstant45, periodType46); org.joda.time.Period period49 = period47.plusMonths((int) '4'); org.joda.time.Period period50 = period41.withFields((org.joda.time.ReadablePeriod) period49); org.joda.time.PeriodType periodType54 = null; org.joda.time.Chronology chronology55 = null; org.joda.time.Period period56 = new org.joda.time.Period((long) 'a', periodType54, chronology55); org.joda.time.PeriodType periodType58 = null; org.joda.time.Chronology chronology59 = null; org.joda.time.Period period60 = new org.joda.time.Period((long) 'a', periodType58, chronology59); org.joda.time.Hours hours61 = period60.toStandardHours(); org.joda.time.Period period62 = period56.withFields((org.joda.time.ReadablePeriod) period60); org.joda.time.Period period64 = period56.withYears(10); org.joda.time.Period period65 = period64.toPeriod(); org.joda.time.Period period67 = period64.plusMillis(1); org.joda.time.ReadableInstant readableInstant69 = null; org.joda.time.ReadableInstant readableInstant70 = null; org.joda.time.ReadableInstant readableInstant71 = null; org.joda.time.Period period72 = new org.joda.time.Period(readableInstant70, readableInstant71); org.joda.time.ReadableInstant readableInstant73 = null; org.joda.time.Duration duration74 = period72.toDurationFrom(readableInstant73); org.joda.time.ReadableInstant readableInstant76 = null; org.joda.time.ReadableInstant readableInstant77 = null; org.joda.time.Period period78 = new org.joda.time.Period(readableInstant76, readableInstant77); org.joda.time.ReadableInstant readableInstant79 = null; org.joda.time.Duration duration80 = period78.toDurationFrom(readableInstant79); org.joda.time.Period period82 = period78.plusMonths(0); org.joda.time.Period period84 = period82.plusMonths((int) '#'); org.joda.time.Period period86 = period82.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType87 = period82.getPeriodType(); org.joda.time.Chronology chronology88 = null; org.joda.time.Period period89 = new org.joda.time.Period((long) (short) -1, periodType87, chronology88); org.joda.time.Period period90 = new org.joda.time.Period(readableInstant69, (org.joda.time.ReadableDuration) duration74, periodType87); org.joda.time.Chronology chronology91 = null; org.joda.time.Period period92 = new org.joda.time.Period((long) (byte) 0, periodType87, chronology91); org.joda.time.Period period93 = period67.normalizedStandard(periodType87); org.joda.time.Chronology chronology94 = null; org.joda.time.Period period95 = new org.joda.time.Period(0L, (long) 8, periodType87, chronology94); org.joda.time.Period period96 = new org.joda.time.Period((java.lang.Object) period41, periodType87); org.joda.time.Period period97 = new org.joda.time.Period((int) 'a', 100, (int) (short) -1, 100, (int) (short) -1, (int) (byte) 1, 8, 100, periodType87); org.joda.time.Period period98 = new org.joda.time.Period((int) '#', (int) (byte) 0, 0, (int) ' ', (int) ' ', (-1), (int) (byte) 100, 97, periodType87); org.joda.time.Period period99 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration17, readableInstant18, periodType87); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(durationFieldType14); org.junit.Assert.assertEquals("'" + str15 + "' != '" + "PT100M" + "'", str15, "PT100M"); org.junit.Assert.assertNotNull(duration17); org.junit.Assert.assertNotNull(mutablePeriod42); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(hours61); org.junit.Assert.assertNotNull(period62); org.junit.Assert.assertNotNull(period64); org.junit.Assert.assertNotNull(period65); org.junit.Assert.assertNotNull(period67); org.junit.Assert.assertNotNull(duration74); org.junit.Assert.assertNotNull(duration80); org.junit.Assert.assertNotNull(period82); org.junit.Assert.assertNotNull(period84); org.junit.Assert.assertNotNull(period86); org.junit.Assert.assertNotNull(periodType87); org.junit.Assert.assertNotNull(period93); } @Test public void test0660() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0660"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period3 = period1.plusMillis((int) 'a'); int int4 = period3.getMinutes(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0); } @Test public void test0661() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0661"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); org.joda.time.Period period12 = period10.withWeeks((int) ' '); org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period((java.lang.Object) period10, periodType13); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Duration duration16 = period10.toDurationTo(readableInstant15); org.joda.time.Chronology chronology19 = null; org.joda.time.Period period20 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology19); java.lang.String str21 = period20.toString(); org.joda.time.Period period23 = period20.plusMinutes((int) (short) 1); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Period period36 = new org.joda.time.Period(readableInstant34, readableInstant35); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.PeriodType periodType39 = null; org.joda.time.Period period40 = new org.joda.time.Period(readableInstant37, readableInstant38, periodType39); org.joda.time.MutablePeriod mutablePeriod41 = period40.toMutablePeriod(); org.joda.time.Period period42 = period36.plus((org.joda.time.ReadablePeriod) period40); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.PeriodType periodType45 = null; org.joda.time.Period period46 = new org.joda.time.Period(readableInstant43, readableInstant44, periodType45); org.joda.time.Period period48 = period46.plusMonths((int) '4'); org.joda.time.Period period49 = period40.withFields((org.joda.time.ReadablePeriod) period48); org.joda.time.PeriodType periodType50 = period48.getPeriodType(); org.joda.time.Period period51 = new org.joda.time.Period((long) ' ', (long) (short) 10, periodType50); org.joda.time.Period period52 = new org.joda.time.Period((int) '4', (int) (byte) 10, (int) (short) 10, 1, 0, 97, (int) (byte) 10, 1, periodType50); org.joda.time.Period period53 = new org.joda.time.Period((java.lang.Object) period20, periodType50); org.joda.time.Chronology chronology54 = null; org.joda.time.Period period55 = new org.joda.time.Period((java.lang.Object) period10, periodType50, chronology54); org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.Duration duration57 = period55.toDurationTo(readableInstant56); org.joda.time.Period period59 = period55.plusMillis((int) (byte) -1); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(duration16); org.junit.Assert.assertEquals("'" + str21 + "' != '" + "PT0.011S" + "'", str21, "PT0.011S"); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(mutablePeriod41); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(periodType50); org.junit.Assert.assertNotNull(duration57); org.junit.Assert.assertNotNull(period59); } @Test public void test0662() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0662"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Period period11 = period9.withMinutes(0); org.joda.time.Period period12 = period2.minus((org.joda.time.ReadablePeriod) period11); org.joda.time.Chronology chronology15 = null; org.joda.time.Period period16 = new org.joda.time.Period(100L, (long) ' ', chronology15); org.joda.time.Period period18 = period16.plusHours(1); org.joda.time.Weeks weeks19 = period18.toStandardWeeks(); org.joda.time.Chronology chronology22 = null; org.joda.time.Period period23 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology22); java.lang.String str24 = period23.toString(); org.joda.time.Period period25 = new org.joda.time.Period((java.lang.Object) str24); org.joda.time.Period period27 = period25.plusSeconds((int) 'a'); org.joda.time.Period period29 = period25.plusYears((int) (byte) 0); org.joda.time.Period period31 = period25.withMonths(0); org.joda.time.PeriodType periodType33 = null; org.joda.time.Chronology chronology34 = null; org.joda.time.Period period35 = new org.joda.time.Period((long) 'a', periodType33, chronology34); org.joda.time.Period period37 = period35.withMinutes(0); org.joda.time.Period period39 = period37.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod40 = period37.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.Period period43 = new org.joda.time.Period(readableInstant41, readableInstant42); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Duration duration45 = period43.toDurationFrom(readableInstant44); org.joda.time.Period period47 = period43.plusMonths(0); org.joda.time.Period period49 = period47.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.Duration duration51 = period47.toDurationFrom(readableInstant50); org.joda.time.Period period53 = period47.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.PeriodType periodType56 = null; org.joda.time.Period period57 = new org.joda.time.Period(readableInstant54, readableInstant55, periodType56); org.joda.time.Period period59 = period57.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.PeriodType periodType62 = null; org.joda.time.Period period63 = new org.joda.time.Period(readableInstant60, readableInstant61, periodType62); org.joda.time.Period period65 = period63.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant66 = null; org.joda.time.ReadableInstant readableInstant67 = null; org.joda.time.PeriodType periodType68 = null; org.joda.time.Period period69 = new org.joda.time.Period(readableInstant66, readableInstant67, periodType68); org.joda.time.DurationFieldType durationFieldType71 = period69.getFieldType((int) (byte) 0); int int72 = period65.indexOf(durationFieldType71); int int73 = period57.get(durationFieldType71); org.joda.time.Period period75 = period47.withField(durationFieldType71, (int) (short) 0); int int76 = mutablePeriod40.indexOf(durationFieldType71); int int77 = period31.get(durationFieldType71); org.joda.time.Period period79 = period18.withFieldAdded(durationFieldType71, (int) (byte) 1); org.joda.time.Period period81 = period2.withField(durationFieldType71, 0); org.joda.time.Period period82 = period81.toPeriod(); org.joda.time.Period period84 = period81.plusMillis((int) (short) 10); org.joda.time.Period period86 = period84.withDays((int) (byte) 100); int int87 = period86.getMonths(); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(weeks19); org.junit.Assert.assertEquals("'" + str24 + "' != '" + "PT0.011S" + "'", str24, "PT0.011S"); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertNotNull(mutablePeriod40); org.junit.Assert.assertNotNull(duration45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(duration51); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(period65); org.junit.Assert.assertNotNull(durationFieldType71); org.junit.Assert.assertTrue("'" + int72 + "' != '" + 0 + "'", int72 == 0); org.junit.Assert.assertTrue("'" + int73 + "' != '" + 0 + "'", int73 == 0); org.junit.Assert.assertNotNull(period75); org.junit.Assert.assertTrue("'" + int76 + "' != '" + 0 + "'", int76 == 0); org.junit.Assert.assertTrue("'" + int77 + "' != '" + 0 + "'", int77 == 0); org.junit.Assert.assertNotNull(period79); org.junit.Assert.assertNotNull(period81); org.junit.Assert.assertNotNull(period82); org.junit.Assert.assertNotNull(period84); org.junit.Assert.assertNotNull(period86); org.junit.Assert.assertTrue("'" + int87 + "' != '" + 0 + "'", int87 == 0); } @Test public void test0663() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0663"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.Period period5 = period3.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Duration duration7 = period3.toDurationTo(readableInstant6); java.lang.Class<?> wildcardClass8 = period3.getClass(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(duration7); org.junit.Assert.assertNotNull(wildcardClass8); } @Test public void test0664() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0664"); org.joda.time.PeriodType periodType5 = null; org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period((long) 'a', periodType5, chronology6); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.Duration duration9 = period7.toStandardDuration(); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant15, readableInstant16); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.PeriodType periodType20 = null; org.joda.time.Period period21 = new org.joda.time.Period(readableInstant18, readableInstant19, periodType20); org.joda.time.MutablePeriod mutablePeriod22 = period21.toMutablePeriod(); org.joda.time.Period period23 = period17.plus((org.joda.time.ReadablePeriod) period21); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.PeriodType periodType26 = null; org.joda.time.Period period27 = new org.joda.time.Period(readableInstant24, readableInstant25, periodType26); org.joda.time.Period period29 = period27.plusMonths((int) '4'); org.joda.time.Period period30 = period21.withFields((org.joda.time.ReadablePeriod) period29); org.joda.time.PeriodType periodType31 = period29.getPeriodType(); org.joda.time.Period period32 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType31); org.joda.time.Period period33 = new org.joda.time.Period((long) 0, periodType31); org.joda.time.Period period34 = new org.joda.time.Period((long) (short) 100, periodType31); org.joda.time.Period period35 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration9, readableInstant10, periodType31); org.joda.time.Period period36 = new org.joda.time.Period((long) (byte) 100, 10L, periodType31); org.joda.time.Period period37 = new org.joda.time.Period((long) 100, (long) 0, periodType31); org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(duration9); org.junit.Assert.assertNotNull(mutablePeriod22); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(periodType31); } @Test public void test0665() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0665"); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant9, readableInstant10); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Duration duration13 = period11.toDurationFrom(readableInstant12); org.joda.time.Period period15 = period11.plusMonths(0); org.joda.time.Period period17 = period15.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Duration duration19 = period15.toDurationFrom(readableInstant18); org.joda.time.Period period21 = period15.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.PeriodType periodType24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant22, readableInstant23, periodType24); org.joda.time.Period period27 = period25.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.PeriodType periodType30 = null; org.joda.time.Period period31 = new org.joda.time.Period(readableInstant28, readableInstant29, periodType30); org.joda.time.Period period33 = period31.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.PeriodType periodType36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant34, readableInstant35, periodType36); org.joda.time.DurationFieldType durationFieldType39 = period37.getFieldType((int) (byte) 0); int int40 = period33.indexOf(durationFieldType39); int int41 = period25.get(durationFieldType39); org.joda.time.Period period43 = period15.withField(durationFieldType39, (int) (short) 0); org.joda.time.Chronology chronology46 = null; org.joda.time.Period period47 = new org.joda.time.Period(100L, (long) ' ', chronology46); org.joda.time.Period period49 = period47.plusHours(1); org.joda.time.ReadableInstant readableInstant51 = null; org.joda.time.ReadableInstant readableInstant52 = null; org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.Period period54 = new org.joda.time.Period(readableInstant52, readableInstant53); org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.Duration duration56 = period54.toDurationFrom(readableInstant55); org.joda.time.ReadableInstant readableInstant58 = null; org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.Period period60 = new org.joda.time.Period(readableInstant58, readableInstant59); org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.Duration duration62 = period60.toDurationFrom(readableInstant61); org.joda.time.Period period64 = period60.plusMonths(0); org.joda.time.Period period66 = period64.plusMonths((int) '#'); org.joda.time.Period period68 = period64.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType69 = period64.getPeriodType(); org.joda.time.Chronology chronology70 = null; org.joda.time.Period period71 = new org.joda.time.Period((long) (short) -1, periodType69, chronology70); org.joda.time.Period period72 = new org.joda.time.Period(readableInstant51, (org.joda.time.ReadableDuration) duration56, periodType69); org.joda.time.Chronology chronology73 = null; org.joda.time.Period period74 = new org.joda.time.Period((long) (byte) 0, periodType69, chronology73); org.joda.time.Period period75 = period49.withPeriodType(periodType69); org.joda.time.Period period76 = period15.withPeriodType(periodType69); org.joda.time.Period period77 = new org.joda.time.Period((int) '#', (int) ' ', 0, (int) (short) -1, 100, (int) (byte) 100, (int) (byte) 0, 97, periodType69); org.joda.time.Period period78 = new org.joda.time.Period((long) (byte) -1, periodType69); java.lang.String str79 = period78.toString(); org.junit.Assert.assertNotNull(duration13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(duration19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(durationFieldType39); org.junit.Assert.assertTrue("'" + int40 + "' != '" + 0 + "'", int40 == 0); org.junit.Assert.assertTrue("'" + int41 + "' != '" + 0 + "'", int41 == 0); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(duration56); org.junit.Assert.assertNotNull(duration62); org.junit.Assert.assertNotNull(period64); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertNotNull(period68); org.junit.Assert.assertNotNull(periodType69); org.junit.Assert.assertNotNull(period75); org.junit.Assert.assertNotNull(period76); org.junit.Assert.assertEquals("'" + str79 + "' != '" + "PT0.001S" + "'", str79, "PT0.001S"); } @Test public void test0666() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0666"); org.joda.time.Period period1 = org.joda.time.Period.seconds(32); org.junit.Assert.assertNotNull(period1); } @Test public void test0667() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0667"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (byte) 1, (long) (short) 10, chronology2); org.joda.time.PeriodType periodType4 = period3.getPeriodType(); org.junit.Assert.assertNotNull(periodType4); } @Test public void test0668() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0668"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); org.joda.time.Period period7 = period5.minusSeconds((int) (short) 100); org.joda.time.Period period9 = period7.minusMinutes(100); org.joda.time.Period period11 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period13 = period11.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.PeriodType periodType16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant14, readableInstant15, periodType16); org.joda.time.Period period19 = period17.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.PeriodType periodType22 = null; org.joda.time.Period period23 = new org.joda.time.Period(readableInstant20, readableInstant21, periodType22); org.joda.time.DurationFieldType durationFieldType25 = period23.getFieldType((int) (byte) 0); int int26 = period19.indexOf(durationFieldType25); org.joda.time.Period period28 = period11.withFieldAdded(durationFieldType25, 1); org.joda.time.Period period29 = period28.negated(); org.joda.time.Period period30 = period9.plus((org.joda.time.ReadablePeriod) period28); org.joda.time.Period period32 = period28.withMinutes(11); org.joda.time.Period period34 = org.joda.time.Period.hours((int) (byte) 100); org.joda.time.Period period36 = period34.minusMinutes((int) (short) -1); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.Period period39 = new org.joda.time.Period(readableInstant37, readableInstant38); org.joda.time.Period period40 = period39.normalizedStandard(); org.joda.time.Period period42 = period39.plusMinutes((int) ' '); org.joda.time.Period period43 = period42.normalizedStandard(); org.joda.time.Period period44 = new org.joda.time.Period((java.lang.Object) period43); org.joda.time.format.PeriodFormatter periodFormatter45 = null; java.lang.String str46 = period44.toString(periodFormatter45); org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.ReadableInstant readableInstant57 = null; org.joda.time.ReadableInstant readableInstant58 = null; org.joda.time.Period period59 = new org.joda.time.Period(readableInstant57, readableInstant58); org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.Duration duration61 = period59.toDurationFrom(readableInstant60); org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.Period period65 = new org.joda.time.Period(readableInstant63, readableInstant64); org.joda.time.ReadableInstant readableInstant66 = null; org.joda.time.Duration duration67 = period65.toDurationFrom(readableInstant66); org.joda.time.Period period69 = period65.plusMonths(0); org.joda.time.Period period71 = period69.plusMonths((int) '#'); org.joda.time.Period period73 = period69.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType74 = period69.getPeriodType(); org.joda.time.Chronology chronology75 = null; org.joda.time.Period period76 = new org.joda.time.Period((long) (short) -1, periodType74, chronology75); org.joda.time.Period period77 = new org.joda.time.Period(readableInstant56, (org.joda.time.ReadableDuration) duration61, periodType74); org.joda.time.Chronology chronology78 = null; org.joda.time.Period period79 = new org.joda.time.Period((long) (short) 100, periodType74, chronology78); org.joda.time.Period period80 = new org.joda.time.Period(0, (int) 'a', (int) ' ', (int) (short) 100, (int) (byte) 0, (int) (byte) 10, 10, (int) (short) -1, periodType74); org.joda.time.Period period81 = new org.joda.time.Period((java.lang.Object) str46, periodType74); org.joda.time.Period period82 = period34.normalizedStandard(periodType74); org.joda.time.Period period83 = new org.joda.time.Period((java.lang.Object) period28, periodType74); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(durationFieldType25); org.junit.Assert.assertTrue("'" + int26 + "' != '" + 0 + "'", int26 == 0); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertEquals("'" + str46 + "' != '" + "PT32M" + "'", str46, "PT32M"); org.junit.Assert.assertNotNull(duration61); org.junit.Assert.assertNotNull(duration67); org.junit.Assert.assertNotNull(period69); org.junit.Assert.assertNotNull(period71); org.junit.Assert.assertNotNull(period73); org.junit.Assert.assertNotNull(periodType74); org.junit.Assert.assertNotNull(period82); } @Test public void test0669() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0669"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.Period period5 = period3.minusMillis((int) '4'); org.joda.time.Period period7 = period5.minusMinutes((int) (short) 100); org.joda.time.Period period9 = period5.minusSeconds((int) (short) -1); org.joda.time.Period period11 = period5.withMillis((int) (short) -1); // The following exception was thrown during execution in test generation try { int int13 = period5.getValue(52); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: 52"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); } @Test public void test0670() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0670"); org.joda.time.Period period1 = org.joda.time.Period.parse("PT32M"); org.joda.time.DurationFieldType[] durationFieldTypeArray2 = period1.getFieldTypes(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(durationFieldTypeArray2); } @Test public void test0671() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0671"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); org.joda.time.Period period12 = period10.withWeeks((int) ' '); org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period((java.lang.Object) period10, periodType13); org.joda.time.PeriodType periodType15 = null; org.joda.time.Period period16 = period14.normalizedStandard(periodType15); org.joda.time.MutablePeriod mutablePeriod17 = period14.toMutablePeriod(); org.joda.time.PeriodType periodType19 = null; org.joda.time.Chronology chronology20 = null; org.joda.time.Period period21 = new org.joda.time.Period((long) 'a', periodType19, chronology20); org.joda.time.PeriodType periodType23 = null; org.joda.time.Chronology chronology24 = null; org.joda.time.Period period25 = new org.joda.time.Period((long) 'a', periodType23, chronology24); org.joda.time.Hours hours26 = period25.toStandardHours(); org.joda.time.Period period27 = period21.withFields((org.joda.time.ReadablePeriod) period25); org.joda.time.Period period29 = period21.withYears(10); org.joda.time.Period period30 = period29.toPeriod(); org.joda.time.Period period32 = period29.plusMillis(1); org.joda.time.Period period33 = period14.minus((org.joda.time.ReadablePeriod) period29); org.joda.time.Period period35 = period33.plusHours(0); org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Period period38 = new org.joda.time.Period(readableInstant36, readableInstant37); org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Duration duration40 = period38.toDurationFrom(readableInstant39); org.joda.time.Period period42 = period38.plusMonths(0); org.joda.time.Period period44 = period42.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.Duration duration46 = period42.toDurationFrom(readableInstant45); org.joda.time.Period period48 = period42.minusMonths((int) (byte) 0); org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.ReadableInstant readableInstant57 = null; org.joda.time.Period period58 = new org.joda.time.Period(readableInstant56, readableInstant57); org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.Duration duration60 = period58.toDurationFrom(readableInstant59); org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.Period period64 = new org.joda.time.Period(readableInstant62, readableInstant63); org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.Duration duration66 = period64.toDurationFrom(readableInstant65); org.joda.time.Period period68 = period64.plusMonths(0); org.joda.time.Period period70 = period68.plusMonths((int) '#'); org.joda.time.Period period72 = period68.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType73 = period68.getPeriodType(); org.joda.time.Chronology chronology74 = null; org.joda.time.Period period75 = new org.joda.time.Period((long) (short) -1, periodType73, chronology74); org.joda.time.Period period76 = new org.joda.time.Period(readableInstant55, (org.joda.time.ReadableDuration) duration60, periodType73); org.joda.time.Period period77 = new org.joda.time.Period(readableInstant53, readableInstant54, periodType73); org.joda.time.Chronology chronology78 = null; org.joda.time.Period period79 = new org.joda.time.Period((long) (-100), (long) (-100), periodType73, chronology78); org.joda.time.Chronology chronology80 = null; org.joda.time.Period period81 = new org.joda.time.Period((long) 0, (long) 100, periodType73, chronology80); org.joda.time.Period period82 = period42.normalizedStandard(periodType73); org.joda.time.Period period83 = new org.joda.time.Period((java.lang.Object) period33, periodType73); org.joda.time.ReadableInstant readableInstant84 = null; org.joda.time.Duration duration85 = period33.toDurationTo(readableInstant84); org.joda.time.ReadableInstant readableInstant86 = null; org.joda.time.Period period87 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration85, readableInstant86); org.joda.time.Period period89 = period87.withMinutes((int) (short) 0); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(mutablePeriod17); org.junit.Assert.assertNotNull(hours26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(duration40); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(duration46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(duration60); org.junit.Assert.assertNotNull(duration66); org.junit.Assert.assertNotNull(period68); org.junit.Assert.assertNotNull(period70); org.junit.Assert.assertNotNull(period72); org.junit.Assert.assertNotNull(periodType73); org.junit.Assert.assertNotNull(period82); org.junit.Assert.assertNotNull(duration85); org.junit.Assert.assertNotNull(period89); } @Test public void test0672() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0672"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Period period11 = period9.withMinutes(0); org.joda.time.Period period12 = period2.minus((org.joda.time.ReadablePeriod) period11); org.joda.time.Period period13 = period2.normalizedStandard(); org.joda.time.Period period15 = period13.withMillis(97); // The following exception was thrown during execution in test generation try { org.joda.time.Period period16 = new org.joda.time.Period((java.lang.Object) 97); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: No period converter found for type: java.lang.Integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); } @Test public void test0673() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0673"); org.joda.time.Period period1 = org.joda.time.Period.days(1); org.joda.time.format.PeriodFormatter periodFormatter2 = null; java.lang.String str3 = period1.toString(periodFormatter2); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertEquals("'" + str3 + "' != '" + "P1D" + "'", str3, "P1D"); } @Test public void test0674() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0674"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period2.plusWeeks((int) ' '); org.joda.time.Period period10 = period2.plusDays(10); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant11, readableInstant12, periodType13); org.joda.time.MutablePeriod mutablePeriod15 = period14.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Period period24 = new org.joda.time.Period(readableInstant22, readableInstant23); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.PeriodType periodType27 = null; org.joda.time.Period period28 = new org.joda.time.Period(readableInstant25, readableInstant26, periodType27); org.joda.time.MutablePeriod mutablePeriod29 = period28.toMutablePeriod(); org.joda.time.Period period30 = period24.plus((org.joda.time.ReadablePeriod) period28); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.PeriodType periodType33 = null; org.joda.time.Period period34 = new org.joda.time.Period(readableInstant31, readableInstant32, periodType33); org.joda.time.Period period36 = period34.plusMonths((int) '4'); org.joda.time.Period period37 = period28.withFields((org.joda.time.ReadablePeriod) period36); org.joda.time.PeriodType periodType38 = period36.getPeriodType(); org.joda.time.Period period39 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType38); org.joda.time.Period period40 = new org.joda.time.Period((long) 'a', (long) 10, periodType38); org.joda.time.Period period41 = new org.joda.time.Period((long) (short) 100, 100L, periodType38); org.joda.time.Period period42 = period14.withPeriodType(periodType38); org.joda.time.Duration duration43 = period42.toStandardDuration(); boolean boolean44 = period2.equals((java.lang.Object) duration43); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(mutablePeriod15); org.junit.Assert.assertNotNull(mutablePeriod29); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(periodType38); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(duration43); org.junit.Assert.assertTrue("'" + boolean44 + "' != '" + false + "'", boolean44 == false); } @Test public void test0675() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0675"); org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant1, readableInstant2); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Duration duration5 = period3.toDurationFrom(readableInstant4); org.joda.time.Period period7 = period3.plusMonths(0); org.joda.time.Period period9 = period7.plusMonths((int) '#'); org.joda.time.Period period11 = period7.plusMinutes((int) (short) 100); org.joda.time.Period period13 = period11.minusWeeks(1); org.joda.time.DurationFieldType durationFieldType15 = period11.getFieldType((int) (byte) 0); org.joda.time.Hours hours16 = period11.toStandardHours(); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Period period19 = new org.joda.time.Period(readableInstant17, readableInstant18); org.joda.time.Period period20 = period19.normalizedStandard(); org.joda.time.Period period22 = period19.plusMinutes((int) ' '); org.joda.time.Period period23 = period22.normalizedStandard(); org.joda.time.Period period24 = new org.joda.time.Period((java.lang.Object) period23); org.joda.time.format.PeriodFormatter periodFormatter25 = null; java.lang.String str26 = period24.toString(periodFormatter25); org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.Period period39 = new org.joda.time.Period(readableInstant37, readableInstant38); org.joda.time.ReadableInstant readableInstant40 = null; org.joda.time.Duration duration41 = period39.toDurationFrom(readableInstant40); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Period period45 = new org.joda.time.Period(readableInstant43, readableInstant44); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.Duration duration47 = period45.toDurationFrom(readableInstant46); org.joda.time.Period period49 = period45.plusMonths(0); org.joda.time.Period period51 = period49.plusMonths((int) '#'); org.joda.time.Period period53 = period49.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType54 = period49.getPeriodType(); org.joda.time.Chronology chronology55 = null; org.joda.time.Period period56 = new org.joda.time.Period((long) (short) -1, periodType54, chronology55); org.joda.time.Period period57 = new org.joda.time.Period(readableInstant36, (org.joda.time.ReadableDuration) duration41, periodType54); org.joda.time.Chronology chronology58 = null; org.joda.time.Period period59 = new org.joda.time.Period((long) (short) 100, periodType54, chronology58); org.joda.time.Period period60 = new org.joda.time.Period(0, (int) 'a', (int) ' ', (int) (short) 100, (int) (byte) 0, (int) (byte) 10, 10, (int) (short) -1, periodType54); org.joda.time.Period period61 = new org.joda.time.Period((java.lang.Object) str26, periodType54); org.joda.time.Chronology chronology62 = null; org.joda.time.Period period63 = new org.joda.time.Period((java.lang.Object) hours16, periodType54, chronology62); org.joda.time.Period period64 = new org.joda.time.Period((long) (byte) 100, periodType54); org.joda.time.Period period66 = period64.plusDays((int) ' '); // The following exception was thrown during execution in test generation try { int int68 = period66.getValue((int) ' '); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: 32"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(duration5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(durationFieldType15); org.junit.Assert.assertNotNull(hours16); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertEquals("'" + str26 + "' != '" + "PT32M" + "'", str26, "PT32M"); org.junit.Assert.assertNotNull(duration41); org.junit.Assert.assertNotNull(duration47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertNotNull(periodType54); org.junit.Assert.assertNotNull(period66); } @Test public void test0676() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0676"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.plusMinutes((int) ' '); org.joda.time.Period period6 = period5.normalizedStandard(); org.joda.time.Period period7 = new org.joda.time.Period((java.lang.Object) period6); org.joda.time.format.PeriodFormatter periodFormatter8 = null; java.lang.String str9 = period7.toString(periodFormatter8); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant20, readableInstant21); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Duration duration24 = period22.toDurationFrom(readableInstant23); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Period period28 = new org.joda.time.Period(readableInstant26, readableInstant27); org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Duration duration30 = period28.toDurationFrom(readableInstant29); org.joda.time.Period period32 = period28.plusMonths(0); org.joda.time.Period period34 = period32.plusMonths((int) '#'); org.joda.time.Period period36 = period32.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType37 = period32.getPeriodType(); org.joda.time.Chronology chronology38 = null; org.joda.time.Period period39 = new org.joda.time.Period((long) (short) -1, periodType37, chronology38); org.joda.time.Period period40 = new org.joda.time.Period(readableInstant19, (org.joda.time.ReadableDuration) duration24, periodType37); org.joda.time.Chronology chronology41 = null; org.joda.time.Period period42 = new org.joda.time.Period((long) (short) 100, periodType37, chronology41); org.joda.time.Period period43 = new org.joda.time.Period(0, (int) 'a', (int) ' ', (int) (short) 100, (int) (byte) 0, (int) (byte) 10, 10, (int) (short) -1, periodType37); org.joda.time.Period period44 = new org.joda.time.Period((java.lang.Object) str9, periodType37); org.joda.time.Period period46 = period44.minusWeeks(100); org.joda.time.Period period48 = period46.withWeeks((int) (short) 100); org.joda.time.Period period50 = period46.withMinutes((-100)); org.joda.time.ReadableInstant readableInstant51 = null; org.joda.time.Duration duration52 = period46.toDurationTo(readableInstant51); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertEquals("'" + str9 + "' != '" + "PT32M" + "'", str9, "PT32M"); org.junit.Assert.assertNotNull(duration24); org.junit.Assert.assertNotNull(duration30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(periodType37); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(duration52); } @Test public void test0677() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0677"); org.joda.time.Period period4 = new org.joda.time.Period(97, (int) (short) 0, 100, (int) (short) 100); org.joda.time.Period period6 = period4.plusHours(100); org.junit.Assert.assertNotNull(period6); } @Test public void test0678() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0678"); org.joda.time.ReadablePartial readablePartial0 = null; org.joda.time.ReadablePartial readablePartial1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period((long) 100, (long) (-1), chronology6); org.joda.time.Period period9 = period7.plusMinutes((int) (short) 10); org.joda.time.Period period11 = period9.plusMinutes((-1)); int int12 = period11.getWeeks(); org.joda.time.Period period14 = period11.withMinutes((int) (byte) 10); org.joda.time.PeriodType periodType15 = period14.getPeriodType(); org.joda.time.Period period16 = new org.joda.time.Period(readableInstant2, readableInstant3, periodType15); // The following exception was thrown during execution in test generation try { org.joda.time.Period period17 = new org.joda.time.Period(readablePartial0, readablePartial1, periodType15); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: ReadablePartial objects must not be null"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(periodType15); } @Test public void test0679() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0679"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period3 = period1.plusMillis((int) 'a'); org.joda.time.MutablePeriod mutablePeriod4 = period3.toMutablePeriod(); int int5 = period3.getMinutes(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(mutablePeriod4); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); } @Test public void test0680() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0680"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.MutablePeriod mutablePeriod4 = period3.toMutablePeriod(); int int5 = period3.getMillis(); org.joda.time.Period period7 = period3.plusWeeks((-1)); org.joda.time.Period period9 = period7.minusWeeks((int) '4'); org.junit.Assert.assertNotNull(mutablePeriod4); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); } @Test public void test0681() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0681"); org.joda.time.PeriodType periodType6 = null; org.joda.time.Chronology chronology7 = null; org.joda.time.Period period8 = new org.joda.time.Period((long) 'a', periodType6, chronology7); org.joda.time.PeriodType periodType10 = null; org.joda.time.Chronology chronology11 = null; org.joda.time.Period period12 = new org.joda.time.Period((long) 'a', periodType10, chronology11); org.joda.time.Hours hours13 = period12.toStandardHours(); org.joda.time.Period period14 = period8.withFields((org.joda.time.ReadablePeriod) period12); org.joda.time.Period period16 = period8.withYears(10); org.joda.time.Period period17 = period16.toPeriod(); org.joda.time.Period period19 = period16.plusMillis(1); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Period period24 = new org.joda.time.Period(readableInstant22, readableInstant23); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Duration duration26 = period24.toDurationFrom(readableInstant25); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant28, readableInstant29); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Duration duration32 = period30.toDurationFrom(readableInstant31); org.joda.time.Period period34 = period30.plusMonths(0); org.joda.time.Period period36 = period34.plusMonths((int) '#'); org.joda.time.Period period38 = period34.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType39 = period34.getPeriodType(); org.joda.time.Chronology chronology40 = null; org.joda.time.Period period41 = new org.joda.time.Period((long) (short) -1, periodType39, chronology40); org.joda.time.Period period42 = new org.joda.time.Period(readableInstant21, (org.joda.time.ReadableDuration) duration26, periodType39); org.joda.time.Chronology chronology43 = null; org.joda.time.Period period44 = new org.joda.time.Period((long) (byte) 0, periodType39, chronology43); org.joda.time.Period period45 = period19.normalizedStandard(periodType39); org.joda.time.Chronology chronology46 = null; org.joda.time.Period period47 = new org.joda.time.Period(0L, (long) 8, periodType39, chronology46); org.joda.time.Chronology chronology48 = null; org.joda.time.Period period49 = new org.joda.time.Period((long) ' ', periodType39, chronology48); org.joda.time.Chronology chronology50 = null; org.joda.time.Period period51 = new org.joda.time.Period((long) 52, (long) ' ', periodType39, chronology50); org.joda.time.DurationFieldType durationFieldType53 = period51.getFieldType((int) (byte) 1); org.junit.Assert.assertNotNull(hours13); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(duration26); org.junit.Assert.assertNotNull(duration32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(periodType39); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertNotNull(durationFieldType53); } @Test public void test0682() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0682"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.MutablePeriod mutablePeriod7 = period6.toMutablePeriod(); org.joda.time.Period period8 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.PeriodType periodType11 = null; org.joda.time.Period period12 = new org.joda.time.Period(readableInstant9, readableInstant10, periodType11); org.joda.time.Period period14 = period12.plusMonths((int) '4'); org.joda.time.Period period15 = period6.withFields((org.joda.time.ReadablePeriod) period14); org.joda.time.PeriodType periodType16 = period14.getPeriodType(); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Period period20 = new org.joda.time.Period(readableInstant18, readableInstant19); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Duration duration22 = period20.toDurationFrom(readableInstant21); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant24, readableInstant25); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Duration duration28 = period26.toDurationFrom(readableInstant27); org.joda.time.Period period30 = period26.plusMonths(0); org.joda.time.Period period32 = period30.plusMonths((int) '#'); org.joda.time.Period period34 = period30.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType35 = period30.getPeriodType(); org.joda.time.Chronology chronology36 = null; org.joda.time.Period period37 = new org.joda.time.Period((long) (short) -1, periodType35, chronology36); org.joda.time.Period period38 = new org.joda.time.Period(readableInstant17, (org.joda.time.ReadableDuration) duration22, periodType35); org.joda.time.Period period39 = period14.normalizedStandard(periodType35); int int40 = period14.size(); java.lang.String str41 = period14.toString(); org.junit.Assert.assertNotNull(mutablePeriod7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(periodType16); org.junit.Assert.assertNotNull(duration22); org.junit.Assert.assertNotNull(duration28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(periodType35); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertTrue("'" + int40 + "' != '" + 8 + "'", int40 == 8); org.junit.Assert.assertEquals("'" + str41 + "' != '" + "P52M" + "'", str41, "P52M"); } @Test public void test0683() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0683"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period3.withMinutes((-1)); org.joda.time.Period period7 = period5.plusDays((int) (short) 100); int int8 = period5.getMonths(); org.joda.time.Days days9 = period5.toStandardDays(); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(days9); } @Test public void test0684() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0684"); org.joda.time.Period period1 = org.joda.time.Period.years((int) (short) 10); org.junit.Assert.assertNotNull(period1); } @Test public void test0685() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0685"); org.joda.time.PeriodType periodType8 = null; org.joda.time.Period period9 = new org.joda.time.Period((-1), 0, (int) '#', (int) (short) 10, (int) (short) 0, 10, (int) (short) 1, (int) (byte) 10, periodType8); org.joda.time.Period period11 = period9.withYears((int) ' '); int int12 = period9.size(); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Duration duration14 = period9.toDurationFrom(readableInstant13); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 8 + "'", int12 == 8); org.junit.Assert.assertNotNull(duration14); } @Test public void test0686() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0686"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.PeriodType periodType5 = null; org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period((long) 'a', periodType5, chronology6); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.Period period9 = period3.withFields((org.joda.time.ReadablePeriod) period7); org.joda.time.Period period11 = period3.withYears(10); org.joda.time.Period period12 = period11.toPeriod(); org.joda.time.Period period14 = period11.plusMillis(1); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Period period19 = new org.joda.time.Period(readableInstant17, readableInstant18); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Duration duration21 = period19.toDurationFrom(readableInstant20); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant23, readableInstant24); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Duration duration27 = period25.toDurationFrom(readableInstant26); org.joda.time.Period period29 = period25.plusMonths(0); org.joda.time.Period period31 = period29.plusMonths((int) '#'); org.joda.time.Period period33 = period29.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType34 = period29.getPeriodType(); org.joda.time.Chronology chronology35 = null; org.joda.time.Period period36 = new org.joda.time.Period((long) (short) -1, periodType34, chronology35); org.joda.time.Period period37 = new org.joda.time.Period(readableInstant16, (org.joda.time.ReadableDuration) duration21, periodType34); org.joda.time.Chronology chronology38 = null; org.joda.time.Period period39 = new org.joda.time.Period((long) (byte) 0, periodType34, chronology38); org.joda.time.Period period40 = period14.normalizedStandard(periodType34); int[] intArray41 = period40.getValues(); int int42 = period40.size(); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.Duration duration44 = period40.toDurationTo(readableInstant43); org.joda.time.Period period46 = period40.plusMinutes(10); org.joda.time.Period period48 = period40.minusYears((int) (byte) -1); org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(duration21); org.junit.Assert.assertNotNull(duration27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(periodType34); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(intArray41); org.junit.Assert.assertEquals(java.util.Arrays.toString(intArray41), "[10, 0, 0, 0, 0, 0, 0, 98]"); org.junit.Assert.assertTrue("'" + int42 + "' != '" + 8 + "'", int42 == 8); org.junit.Assert.assertNotNull(duration44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period48); } @Test public void test0687() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0687"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); int int4 = period2.getMillis(); org.joda.time.Period period6 = period2.withHours((int) (byte) 0); org.joda.time.Days days7 = period2.toStandardDays(); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(days7); } @Test public void test0688() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0688"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period3.withMinutes((-1)); org.joda.time.Period period7 = period5.plusDays((int) (short) 100); int int8 = period5.getMonths(); org.joda.time.Period period10 = period5.withDays((int) '4'); org.joda.time.Period period12 = period10.minusDays((int) (byte) 100); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); } @Test public void test0689() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0689"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.PeriodType periodType5 = null; org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period((long) 'a', periodType5, chronology6); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.Period period9 = period3.withFields((org.joda.time.ReadablePeriod) period7); org.joda.time.Period period11 = period3.withYears(10); org.joda.time.Period period12 = period11.toPeriod(); org.joda.time.Period period14 = period11.plusMillis(1); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Period period19 = new org.joda.time.Period(readableInstant17, readableInstant18); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Duration duration21 = period19.toDurationFrom(readableInstant20); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant23, readableInstant24); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Duration duration27 = period25.toDurationFrom(readableInstant26); org.joda.time.Period period29 = period25.plusMonths(0); org.joda.time.Period period31 = period29.plusMonths((int) '#'); org.joda.time.Period period33 = period29.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType34 = period29.getPeriodType(); org.joda.time.Chronology chronology35 = null; org.joda.time.Period period36 = new org.joda.time.Period((long) (short) -1, periodType34, chronology35); org.joda.time.Period period37 = new org.joda.time.Period(readableInstant16, (org.joda.time.ReadableDuration) duration21, periodType34); org.joda.time.Chronology chronology38 = null; org.joda.time.Period period39 = new org.joda.time.Period((long) (byte) 0, periodType34, chronology38); org.joda.time.Period period40 = period14.normalizedStandard(periodType34); org.joda.time.Period period42 = period40.withMillis((int) (byte) 10); org.joda.time.Period period43 = period40.normalizedStandard(); org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(duration21); org.junit.Assert.assertNotNull(duration27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(periodType34); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period43); } @Test public void test0690() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0690"); org.joda.time.Period period4 = new org.joda.time.Period(97, (int) 'a', 8, (-1)); } @Test public void test0691() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0691"); org.joda.time.Period period1 = new org.joda.time.Period((long) (byte) -1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Period period5 = new org.joda.time.Period(readableInstant3, readableInstant4); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Duration duration7 = period5.toDurationFrom(readableInstant6); org.joda.time.Period period9 = period5.plusMonths(0); org.joda.time.Period period11 = period9.plusMonths((int) '#'); org.joda.time.Period period13 = period9.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType14 = period9.getPeriodType(); org.joda.time.Chronology chronology15 = null; org.joda.time.Period period16 = new org.joda.time.Period((long) (short) -1, periodType14, chronology15); org.joda.time.Period period17 = period1.minus((org.joda.time.ReadablePeriod) period16); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant28, readableInstant29); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Duration duration32 = period30.toDurationFrom(readableInstant31); org.joda.time.Period period34 = period30.plusMonths(0); org.joda.time.Period period36 = period34.plusMonths((int) '#'); org.joda.time.Period period38 = period34.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType39 = period34.getPeriodType(); org.joda.time.Chronology chronology40 = null; org.joda.time.Period period41 = new org.joda.time.Period((long) (short) -1, periodType39, chronology40); org.joda.time.Period period42 = new org.joda.time.Period(0, 1, (int) (short) 100, (-1), (int) (short) 10, 100, (int) ' ', (int) (short) 1, periodType39); org.joda.time.Period period43 = new org.joda.time.Period((long) (byte) 10, periodType39); org.joda.time.Period period44 = period16.withPeriodType(periodType39); org.joda.time.Period period46 = period16.plusMonths(11); org.junit.Assert.assertNotNull(duration7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(periodType14); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(duration32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(periodType39); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period46); } @Test public void test0692() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0692"); org.joda.time.Period period8 = new org.joda.time.Period((int) (byte) 0, 11, (int) (short) -1, (int) (short) 100, (int) 'a', (int) (short) 0, 98, (-100)); } @Test public void test0693() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0693"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', (long) 11, chronology2); } @Test public void test0694() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0694"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period(100L, chronology1); org.joda.time.Period period4 = period2.minusHours((int) (short) -1); org.joda.time.Period period6 = period2.minusYears((int) ' '); org.junit.Assert.assertNotNull(period4); org.junit.Assert.assertNotNull(period6); } @Test public void test0695() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0695"); org.joda.time.Period period1 = new org.joda.time.Period((long) (byte) -1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Period period5 = new org.joda.time.Period(readableInstant3, readableInstant4); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Duration duration7 = period5.toDurationFrom(readableInstant6); org.joda.time.Period period9 = period5.plusMonths(0); org.joda.time.Period period11 = period9.plusMonths((int) '#'); org.joda.time.Period period13 = period9.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType14 = period9.getPeriodType(); org.joda.time.Chronology chronology15 = null; org.joda.time.Period period16 = new org.joda.time.Period((long) (short) -1, periodType14, chronology15); org.joda.time.Period period17 = period1.minus((org.joda.time.ReadablePeriod) period16); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant28, readableInstant29); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Duration duration32 = period30.toDurationFrom(readableInstant31); org.joda.time.Period period34 = period30.plusMonths(0); org.joda.time.Period period36 = period34.plusMonths((int) '#'); org.joda.time.Period period38 = period34.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType39 = period34.getPeriodType(); org.joda.time.Chronology chronology40 = null; org.joda.time.Period period41 = new org.joda.time.Period((long) (short) -1, periodType39, chronology40); org.joda.time.Period period42 = new org.joda.time.Period(0, 1, (int) (short) 100, (-1), (int) (short) 10, 100, (int) ' ', (int) (short) 1, periodType39); org.joda.time.Period period43 = new org.joda.time.Period((long) (byte) 10, periodType39); org.joda.time.Period period44 = period16.withPeriodType(periodType39); int int45 = period44.getMinutes(); org.junit.Assert.assertNotNull(duration7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(periodType14); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(duration32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(periodType39); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertTrue("'" + int45 + "' != '" + 0 + "'", int45 == 0); } @Test public void test0696() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0696"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.MutablePeriod mutablePeriod7 = period6.toMutablePeriod(); org.joda.time.Period period8 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.PeriodType periodType11 = null; org.joda.time.Period period12 = new org.joda.time.Period(readableInstant9, readableInstant10, periodType11); org.joda.time.Period period14 = period12.plusMonths((int) '4'); org.joda.time.Period period15 = period6.withFields((org.joda.time.ReadablePeriod) period14); org.joda.time.PeriodType periodType19 = null; org.joda.time.Chronology chronology20 = null; org.joda.time.Period period21 = new org.joda.time.Period((long) 'a', periodType19, chronology20); org.joda.time.PeriodType periodType23 = null; org.joda.time.Chronology chronology24 = null; org.joda.time.Period period25 = new org.joda.time.Period((long) 'a', periodType23, chronology24); org.joda.time.Hours hours26 = period25.toStandardHours(); org.joda.time.Period period27 = period21.withFields((org.joda.time.ReadablePeriod) period25); org.joda.time.Period period29 = period21.withYears(10); org.joda.time.Period period30 = period29.toPeriod(); org.joda.time.Period period32 = period29.plusMillis(1); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant35, readableInstant36); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.Duration duration39 = period37.toDurationFrom(readableInstant38); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.Period period43 = new org.joda.time.Period(readableInstant41, readableInstant42); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Duration duration45 = period43.toDurationFrom(readableInstant44); org.joda.time.Period period47 = period43.plusMonths(0); org.joda.time.Period period49 = period47.plusMonths((int) '#'); org.joda.time.Period period51 = period47.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType52 = period47.getPeriodType(); org.joda.time.Chronology chronology53 = null; org.joda.time.Period period54 = new org.joda.time.Period((long) (short) -1, periodType52, chronology53); org.joda.time.Period period55 = new org.joda.time.Period(readableInstant34, (org.joda.time.ReadableDuration) duration39, periodType52); org.joda.time.Chronology chronology56 = null; org.joda.time.Period period57 = new org.joda.time.Period((long) (byte) 0, periodType52, chronology56); org.joda.time.Period period58 = period32.normalizedStandard(periodType52); org.joda.time.Chronology chronology59 = null; org.joda.time.Period period60 = new org.joda.time.Period(0L, (long) 8, periodType52, chronology59); org.joda.time.Period period61 = new org.joda.time.Period((java.lang.Object) period6, periodType52); int int62 = period6.getWeeks(); org.junit.Assert.assertNotNull(mutablePeriod7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(hours26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(duration39); org.junit.Assert.assertNotNull(duration45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(periodType52); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertTrue("'" + int62 + "' != '" + 0 + "'", int62 == 0); } @Test public void test0697() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0697"); org.joda.time.Period period2 = org.joda.time.Period.months((int) (short) -1); org.joda.time.PeriodType periodType4 = null; org.joda.time.Chronology chronology5 = null; org.joda.time.Period period6 = new org.joda.time.Period((long) 'a', periodType4, chronology5); org.joda.time.DurationFieldType durationFieldType7 = null; int int8 = period6.get(durationFieldType7); org.joda.time.Period period9 = period2.withFields((org.joda.time.ReadablePeriod) period6); org.joda.time.Period period11 = period9.multipliedBy((int) (short) -1); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant12, readableInstant13); org.joda.time.Period period15 = period14.normalizedStandard(); org.joda.time.Period period17 = period14.plusMinutes((int) ' '); org.joda.time.Period period18 = period17.normalizedStandard(); org.joda.time.Period period19 = new org.joda.time.Period((java.lang.Object) period18); org.joda.time.format.PeriodFormatter periodFormatter20 = null; java.lang.String str21 = period19.toString(periodFormatter20); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Period period34 = new org.joda.time.Period(readableInstant32, readableInstant33); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Duration duration36 = period34.toDurationFrom(readableInstant35); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Period period40 = new org.joda.time.Period(readableInstant38, readableInstant39); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.Duration duration42 = period40.toDurationFrom(readableInstant41); org.joda.time.Period period44 = period40.plusMonths(0); org.joda.time.Period period46 = period44.plusMonths((int) '#'); org.joda.time.Period period48 = period44.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType49 = period44.getPeriodType(); org.joda.time.Chronology chronology50 = null; org.joda.time.Period period51 = new org.joda.time.Period((long) (short) -1, periodType49, chronology50); org.joda.time.Period period52 = new org.joda.time.Period(readableInstant31, (org.joda.time.ReadableDuration) duration36, periodType49); org.joda.time.Chronology chronology53 = null; org.joda.time.Period period54 = new org.joda.time.Period((long) (short) 100, periodType49, chronology53); org.joda.time.Period period55 = new org.joda.time.Period(0, (int) 'a', (int) ' ', (int) (short) 100, (int) (byte) 0, (int) (byte) 10, 10, (int) (short) -1, periodType49); org.joda.time.Period period56 = new org.joda.time.Period((java.lang.Object) str21, periodType49); org.joda.time.Period period57 = period11.withPeriodType(periodType49); org.joda.time.Period period58 = new org.joda.time.Period((long) (byte) -1, periodType49); int int59 = period58.getYears(); org.junit.Assert.assertNotNull(period2); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertEquals("'" + str21 + "' != '" + "PT32M" + "'", str21, "PT32M"); org.junit.Assert.assertNotNull(duration36); org.junit.Assert.assertNotNull(duration42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(periodType49); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertTrue("'" + int59 + "' != '" + 0 + "'", int59 == 0); } @Test public void test0698() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0698"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.MutablePeriod mutablePeriod4 = period3.toMutablePeriod(); org.joda.time.Period period6 = period3.minusMinutes((int) (byte) 100); org.joda.time.Seconds seconds7 = period6.toStandardSeconds(); org.joda.time.Period period8 = new org.joda.time.Period((java.lang.Object) period6); org.joda.time.Period period10 = period8.withMillis((int) (byte) 1); org.joda.time.Period period12 = period10.plusSeconds((int) (byte) 1); org.joda.time.Period period14 = period10.minusWeeks((-100)); org.junit.Assert.assertNotNull(mutablePeriod4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(seconds7); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); } @Test public void test0699() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0699"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant1, readableInstant2); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Duration duration5 = period3.toDurationFrom(readableInstant4); org.joda.time.Period period6 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration5); int int7 = period6.getYears(); org.joda.time.Period period9 = period6.withMonths((int) (byte) 100); org.joda.time.Period period11 = period6.minusYears((int) '4'); org.junit.Assert.assertNotNull(duration5); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); } @Test public void test0700() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0700"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.Period period5 = period3.minusMillis((int) '4'); int int6 = period5.getSeconds(); org.joda.time.Period period8 = period5.withHours(100); int int9 = period8.getYears(); org.joda.time.Period period11 = period8.withMillis(11); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertNotNull(period11); } @Test public void test0701() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0701"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.PeriodType periodType3 = null; org.joda.time.Chronology chronology4 = null; org.joda.time.Period period5 = new org.joda.time.Period((long) 'a', periodType3, chronology4); org.joda.time.DurationFieldType durationFieldType6 = null; int int7 = period5.get(durationFieldType6); org.joda.time.Period period8 = period1.withFields((org.joda.time.ReadablePeriod) period5); org.joda.time.Period period10 = period8.multipliedBy((int) (short) -1); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant11, readableInstant12); org.joda.time.Period period14 = period13.normalizedStandard(); org.joda.time.Period period16 = period13.plusMinutes((int) ' '); org.joda.time.Period period17 = period16.normalizedStandard(); org.joda.time.Period period18 = new org.joda.time.Period((java.lang.Object) period17); org.joda.time.format.PeriodFormatter periodFormatter19 = null; java.lang.String str20 = period18.toString(periodFormatter19); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.Period period33 = new org.joda.time.Period(readableInstant31, readableInstant32); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.Duration duration35 = period33.toDurationFrom(readableInstant34); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.Period period39 = new org.joda.time.Period(readableInstant37, readableInstant38); org.joda.time.ReadableInstant readableInstant40 = null; org.joda.time.Duration duration41 = period39.toDurationFrom(readableInstant40); org.joda.time.Period period43 = period39.plusMonths(0); org.joda.time.Period period45 = period43.plusMonths((int) '#'); org.joda.time.Period period47 = period43.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType48 = period43.getPeriodType(); org.joda.time.Chronology chronology49 = null; org.joda.time.Period period50 = new org.joda.time.Period((long) (short) -1, periodType48, chronology49); org.joda.time.Period period51 = new org.joda.time.Period(readableInstant30, (org.joda.time.ReadableDuration) duration35, periodType48); org.joda.time.Chronology chronology52 = null; org.joda.time.Period period53 = new org.joda.time.Period((long) (short) 100, periodType48, chronology52); org.joda.time.Period period54 = new org.joda.time.Period(0, (int) 'a', (int) ' ', (int) (short) 100, (int) (byte) 0, (int) (byte) 10, 10, (int) (short) -1, periodType48); org.joda.time.Period period55 = new org.joda.time.Period((java.lang.Object) str20, periodType48); org.joda.time.Period period56 = period10.withPeriodType(periodType48); org.joda.time.Period period58 = period10.withMonths(98); int int59 = period10.getDays(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertEquals("'" + str20 + "' != '" + "PT32M" + "'", str20, "PT32M"); org.junit.Assert.assertNotNull(duration35); org.junit.Assert.assertNotNull(duration41); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(periodType48); org.junit.Assert.assertNotNull(period56); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertTrue("'" + int59 + "' != '" + 0 + "'", int59 == 0); } @Test public void test0702() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0702"); org.joda.time.Period period1 = org.joda.time.Period.millis(52); org.junit.Assert.assertNotNull(period1); } @Test public void test0703() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0703"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); java.lang.String str4 = period3.toString(); org.joda.time.Period period5 = new org.joda.time.Period((java.lang.Object) str4); org.joda.time.Period period7 = period5.plusSeconds((int) 'a'); // The following exception was thrown during execution in test generation try { org.joda.time.DurationFieldType durationFieldType9 = period7.getFieldType(32); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: 32"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertEquals("'" + str4 + "' != '" + "PT0.011S" + "'", str4, "PT0.011S"); org.junit.Assert.assertNotNull(period7); } @Test public void test0704() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0704"); org.joda.time.Period period1 = org.joda.time.Period.hours((int) (byte) 1); org.joda.time.Period period3 = period1.withDays(1); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Period period10 = new org.joda.time.Period(readableInstant8, readableInstant9); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Duration duration12 = period10.toDurationFrom(readableInstant11); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Period period16 = new org.joda.time.Period(readableInstant14, readableInstant15); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.Duration duration18 = period16.toDurationFrom(readableInstant17); org.joda.time.Period period20 = period16.plusMonths(0); org.joda.time.Period period22 = period20.plusMonths((int) '#'); org.joda.time.Period period24 = period20.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType25 = period20.getPeriodType(); org.joda.time.Chronology chronology26 = null; org.joda.time.Period period27 = new org.joda.time.Period((long) (short) -1, periodType25, chronology26); org.joda.time.Period period28 = new org.joda.time.Period(readableInstant7, (org.joda.time.ReadableDuration) duration12, periodType25); org.joda.time.Chronology chronology29 = null; org.joda.time.Period period30 = new org.joda.time.Period((long) (short) 100, periodType25, chronology29); org.joda.time.Period period31 = new org.joda.time.Period(readableInstant4, readableInstant5, periodType25); // The following exception was thrown during execution in test generation try { org.joda.time.Period period32 = new org.joda.time.Period((java.lang.Object) 1, periodType25); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: No period converter found for type: java.lang.Integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(duration12); org.junit.Assert.assertNotNull(duration18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(periodType25); } @Test public void test0705() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0705"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 100, (long) (-1), chronology2); org.joda.time.Period period5 = period3.withMonths((int) (short) 0); org.joda.time.Period period7 = period5.withSeconds((int) (short) -1); int int8 = period5.getHours(); org.joda.time.Period period10 = period5.plusDays((int) ' '); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(period10); } @Test public void test0706() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0706"); org.joda.time.Period period4 = new org.joda.time.Period((int) (short) 0, 1, (int) (byte) 0, (int) '4'); org.joda.time.Period period6 = org.joda.time.Period.weeks(97); org.joda.time.Period period7 = period4.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Minutes minutes8 = period6.toStandardMinutes(); org.joda.time.Period period10 = period6.withHours((int) (short) 1); // The following exception was thrown during execution in test generation try { org.joda.time.Period period11 = new org.joda.time.Period((java.lang.Object) (short) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: No period converter found for type: java.lang.Short"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(minutes8); org.junit.Assert.assertNotNull(period10); } @Test public void test0707() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0707"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.plusMinutes((int) ' '); org.joda.time.Period period6 = period5.toPeriod(); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period6); } @Test public void test0708() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0708"); org.joda.time.Chronology chronology17 = null; org.joda.time.Period period18 = new org.joda.time.Period((long) (short) 10, chronology17); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Duration duration20 = period18.toDurationFrom(readableInstant19); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.Period period23 = new org.joda.time.Period(readableInstant21, readableInstant22); org.joda.time.Period period24 = period23.normalizedStandard(); org.joda.time.Period period26 = period23.plusMinutes((int) ' '); org.joda.time.Period period27 = period26.normalizedStandard(); org.joda.time.Period period28 = new org.joda.time.Period((java.lang.Object) period27); org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Period period32 = new org.joda.time.Period(readableInstant30, readableInstant31); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Duration duration34 = period32.toDurationFrom(readableInstant33); org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Period period38 = new org.joda.time.Period(readableInstant36, readableInstant37); org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Duration duration40 = period38.toDurationFrom(readableInstant39); org.joda.time.Period period42 = period38.plusMonths(0); org.joda.time.Period period44 = period42.plusMonths((int) '#'); org.joda.time.Period period46 = period42.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType47 = period42.getPeriodType(); org.joda.time.Chronology chronology48 = null; org.joda.time.Period period49 = new org.joda.time.Period((long) (short) -1, periodType47, chronology48); org.joda.time.Period period50 = new org.joda.time.Period(readableInstant29, (org.joda.time.ReadableDuration) duration34, periodType47); org.joda.time.Period period51 = period28.withPeriodType(periodType47); org.joda.time.Chronology chronology52 = null; org.joda.time.Period period53 = new org.joda.time.Period((java.lang.Object) period18, periodType47, chronology52); org.joda.time.Period period54 = new org.joda.time.Period((int) (byte) -1, (int) (short) 100, (int) (short) 0, (int) (short) 1, 0, (int) (byte) 100, (int) ' ', 0, periodType47); org.joda.time.Period period55 = new org.joda.time.Period((int) 'a', (int) (byte) 100, (int) '4', (-100), 11, 0, 0, 32, periodType47); org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.Period period66 = new org.joda.time.Period(readableInstant64, readableInstant65); org.joda.time.ReadableInstant readableInstant67 = null; org.joda.time.ReadableInstant readableInstant68 = null; org.joda.time.PeriodType periodType69 = null; org.joda.time.Period period70 = new org.joda.time.Period(readableInstant67, readableInstant68, periodType69); org.joda.time.MutablePeriod mutablePeriod71 = period70.toMutablePeriod(); org.joda.time.Period period72 = period66.plus((org.joda.time.ReadablePeriod) period70); org.joda.time.ReadableInstant readableInstant73 = null; org.joda.time.ReadableInstant readableInstant74 = null; org.joda.time.PeriodType periodType75 = null; org.joda.time.Period period76 = new org.joda.time.Period(readableInstant73, readableInstant74, periodType75); org.joda.time.Period period78 = period76.plusMonths((int) '4'); org.joda.time.Period period79 = period70.withFields((org.joda.time.ReadablePeriod) period78); org.joda.time.PeriodType periodType80 = period78.getPeriodType(); org.joda.time.Period period81 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType80); org.joda.time.Period period82 = new org.joda.time.Period((long) 'a', (long) 10, periodType80); org.joda.time.Period period83 = new org.joda.time.Period((long) 97, (long) (short) 100, periodType80); org.joda.time.Chronology chronology84 = null; org.joda.time.Period period85 = new org.joda.time.Period((long) (short) 100, (long) 1, periodType80, chronology84); org.joda.time.Chronology chronology86 = null; // The following exception was thrown during execution in test generation try { org.joda.time.Period period87 = new org.joda.time.Period((java.lang.Object) periodType47, periodType80, chronology86); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: No period converter found for type: org.joda.time.PeriodType"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(duration20); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(duration34); org.junit.Assert.assertNotNull(duration40); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(periodType47); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(mutablePeriod71); org.junit.Assert.assertNotNull(period72); org.junit.Assert.assertNotNull(period78); org.junit.Assert.assertNotNull(period79); org.junit.Assert.assertNotNull(periodType80); } @Test public void test0709() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0709"); org.joda.time.Period period4 = new org.joda.time.Period((-1), 0, (int) (short) 100, 0); org.joda.time.Period period6 = period4.plusMillis((int) (byte) 10); org.joda.time.Period period8 = period6.withMinutes((int) (short) 1); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); } @Test public void test0710() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0710"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period3 = period1.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.PeriodType periodType6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant4, readableInstant5, periodType6); org.joda.time.Period period9 = period7.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.PeriodType periodType12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant10, readableInstant11, periodType12); org.joda.time.DurationFieldType durationFieldType15 = period13.getFieldType((int) (byte) 0); int int16 = period9.indexOf(durationFieldType15); org.joda.time.Period period18 = period1.withFieldAdded(durationFieldType15, 1); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Period period21 = new org.joda.time.Period(readableInstant19, readableInstant20); org.joda.time.Period period22 = period21.normalizedStandard(); int int23 = period21.getMillis(); org.joda.time.Period period24 = period18.withFields((org.joda.time.ReadablePeriod) period21); org.joda.time.Period period26 = period18.withWeeks((int) (byte) 0); int int27 = period26.getYears(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(durationFieldType15); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertTrue("'" + int23 + "' != '" + 0 + "'", int23 == 0); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertTrue("'" + int27 + "' != '" + 1 + "'", int27 == 1); } @Test public void test0711() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0711"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 100, (long) (-1), chronology2); org.joda.time.Period period5 = period3.withHours(0); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant9, readableInstant10); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Duration duration13 = period11.toDurationFrom(readableInstant12); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant15, readableInstant16); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Duration duration19 = period17.toDurationFrom(readableInstant18); org.joda.time.Period period21 = period17.plusMonths(0); org.joda.time.Period period23 = period21.plusMonths((int) '#'); org.joda.time.Period period25 = period21.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType26 = period21.getPeriodType(); org.joda.time.Chronology chronology27 = null; org.joda.time.Period period28 = new org.joda.time.Period((long) (short) -1, periodType26, chronology27); org.joda.time.Period period29 = new org.joda.time.Period(readableInstant8, (org.joda.time.ReadableDuration) duration13, periodType26); org.joda.time.Period period30 = new org.joda.time.Period(readableInstant6, readableInstant7, periodType26); org.joda.time.Period period31 = period3.minus((org.joda.time.ReadablePeriod) period30); org.joda.time.Period period33 = period31.minusHours((int) (byte) 1); int int34 = period31.size(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(duration13); org.junit.Assert.assertNotNull(duration19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(periodType26); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertTrue("'" + int34 + "' != '" + 8 + "'", int34 == 8); } @Test public void test0712() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0712"); org.joda.time.Chronology chronology4 = null; org.joda.time.Period period5 = new org.joda.time.Period(100L, (long) ' ', chronology4); org.joda.time.Period period7 = period5.plusHours(1); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Period period12 = new org.joda.time.Period(readableInstant10, readableInstant11); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Duration duration14 = period12.toDurationFrom(readableInstant13); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.Period period18 = new org.joda.time.Period(readableInstant16, readableInstant17); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Duration duration20 = period18.toDurationFrom(readableInstant19); org.joda.time.Period period22 = period18.plusMonths(0); org.joda.time.Period period24 = period22.plusMonths((int) '#'); org.joda.time.Period period26 = period22.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType27 = period22.getPeriodType(); org.joda.time.Chronology chronology28 = null; org.joda.time.Period period29 = new org.joda.time.Period((long) (short) -1, periodType27, chronology28); org.joda.time.Period period30 = new org.joda.time.Period(readableInstant9, (org.joda.time.ReadableDuration) duration14, periodType27); org.joda.time.Chronology chronology31 = null; org.joda.time.Period period32 = new org.joda.time.Period((long) (byte) 0, periodType27, chronology31); org.joda.time.Period period33 = period7.withPeriodType(periodType27); org.joda.time.Chronology chronology34 = null; org.joda.time.Period period35 = new org.joda.time.Period((long) (byte) 10, (long) 0, periodType27, chronology34); org.joda.time.Minutes minutes36 = period35.toStandardMinutes(); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(duration14); org.junit.Assert.assertNotNull(duration20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(periodType27); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(minutes36); } @Test public void test0713() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0713"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.MutablePeriod mutablePeriod7 = period6.toMutablePeriod(); org.joda.time.Period period8 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Period period10 = period6.withMonths((int) (byte) 0); org.joda.time.Period period12 = period10.minusSeconds((-1)); org.joda.time.Period period14 = period12.minusHours((-1)); org.joda.time.Period period16 = period14.minusDays(100); org.joda.time.Period period21 = new org.joda.time.Period(97, (int) (short) 0, 100, (int) (short) 100); org.joda.time.Period period23 = org.joda.time.Period.millis(1); org.joda.time.PeriodType periodType25 = null; org.joda.time.Chronology chronology26 = null; org.joda.time.Period period27 = new org.joda.time.Period((long) 'a', periodType25, chronology26); org.joda.time.Hours hours28 = period27.toStandardHours(); org.joda.time.Period period30 = period27.plusSeconds((int) (byte) 1); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.PeriodType periodType33 = null; org.joda.time.Period period34 = new org.joda.time.Period(readableInstant31, readableInstant32, periodType33); org.joda.time.DurationFieldType durationFieldType36 = period34.getFieldType((int) (byte) 0); org.joda.time.Period period38 = period27.withField(durationFieldType36, 1); boolean boolean39 = period23.equals((java.lang.Object) 1); org.joda.time.ReadableInstant readableInstant40 = null; org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.PeriodType periodType42 = null; org.joda.time.Period period43 = new org.joda.time.Period(readableInstant40, readableInstant41, periodType42); org.joda.time.Period period45 = period43.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.PeriodType periodType48 = null; org.joda.time.Period period49 = new org.joda.time.Period(readableInstant46, readableInstant47, periodType48); org.joda.time.DurationFieldType durationFieldType51 = period49.getFieldType((int) (byte) 0); int int52 = period45.indexOf(durationFieldType51); org.joda.time.Period period54 = period23.withFieldAdded(durationFieldType51, (int) (short) 0); int int55 = period21.get(durationFieldType51); org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.ReadableInstant readableInstant57 = null; org.joda.time.Period period58 = new org.joda.time.Period(readableInstant56, readableInstant57); org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.Duration duration60 = period58.toDurationFrom(readableInstant59); org.joda.time.Period period62 = period58.plusMonths(0); org.joda.time.Period period64 = period62.plusMonths((int) '#'); org.joda.time.Period period66 = period62.plusMinutes((int) (short) 100); org.joda.time.Period period68 = period66.minusWeeks(1); org.joda.time.DurationFieldType durationFieldType70 = period66.getFieldType((int) (byte) 0); boolean boolean71 = period21.isSupported(durationFieldType70); int int72 = period16.get(durationFieldType70); org.junit.Assert.assertNotNull(mutablePeriod7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(hours28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(durationFieldType36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertTrue("'" + boolean39 + "' != '" + false + "'", boolean39 == false); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertNotNull(durationFieldType51); org.junit.Assert.assertTrue("'" + int52 + "' != '" + 0 + "'", int52 == 0); org.junit.Assert.assertNotNull(period54); org.junit.Assert.assertTrue("'" + int55 + "' != '" + 0 + "'", int55 == 0); org.junit.Assert.assertNotNull(duration60); org.junit.Assert.assertNotNull(period62); org.junit.Assert.assertNotNull(period64); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertNotNull(period68); org.junit.Assert.assertNotNull(durationFieldType70); org.junit.Assert.assertTrue("'" + boolean71 + "' != '" + true + "'", boolean71 == true); org.junit.Assert.assertTrue("'" + int72 + "' != '" + 0 + "'", int72 == 0); } @Test public void test0714() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0714"); org.joda.time.Period period8 = new org.joda.time.Period(0, 0, (int) (short) 1, 98, (int) (byte) -1, (int) 'a', (int) (short) 1, (int) '4'); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant9, readableInstant10); org.joda.time.Period period12 = period11.normalizedStandard(); org.joda.time.PeriodType periodType21 = null; org.joda.time.Period period22 = new org.joda.time.Period((-1), 0, (int) '#', (int) (short) 10, (int) (short) 0, 10, (int) (short) 1, (int) (byte) 10, periodType21); org.joda.time.Period period23 = period12.withFields((org.joda.time.ReadablePeriod) period22); org.joda.time.Period period25 = period23.minusMonths((int) (short) 100); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.Period period31 = new org.joda.time.Period(readableInstant29, readableInstant30); org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.Duration duration33 = period31.toDurationFrom(readableInstant32); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant35, readableInstant36); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.Duration duration39 = period37.toDurationFrom(readableInstant38); org.joda.time.Period period41 = period37.plusMonths(0); org.joda.time.Period period43 = period41.plusMonths((int) '#'); org.joda.time.Period period45 = period41.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType46 = period41.getPeriodType(); org.joda.time.Chronology chronology47 = null; org.joda.time.Period period48 = new org.joda.time.Period((long) (short) -1, periodType46, chronology47); org.joda.time.Period period49 = new org.joda.time.Period(readableInstant28, (org.joda.time.ReadableDuration) duration33, periodType46); org.joda.time.Chronology chronology50 = null; org.joda.time.Period period51 = new org.joda.time.Period((long) (byte) 10, (long) 10, periodType46, chronology50); org.joda.time.Chronology chronology54 = null; org.joda.time.Period period55 = new org.joda.time.Period((long) 100, (long) (-1), chronology54); org.joda.time.Period period57 = period55.plusMinutes((int) (short) 10); org.joda.time.Period period59 = period57.plusMinutes((-1)); int int60 = period59.getWeeks(); org.joda.time.Period period62 = period59.withMinutes((int) (byte) 10); org.joda.time.DurationFieldType durationFieldType64 = period62.getFieldType(0); org.joda.time.Period period66 = period51.withFieldAdded(durationFieldType64, (int) (short) 100); boolean boolean67 = period23.isSupported(durationFieldType64); int int68 = period8.indexOf(durationFieldType64); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(duration33); org.junit.Assert.assertNotNull(duration39); org.junit.Assert.assertNotNull(period41); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertNotNull(periodType46); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertTrue("'" + int60 + "' != '" + 0 + "'", int60 == 0); org.junit.Assert.assertNotNull(period62); org.junit.Assert.assertNotNull(durationFieldType64); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertTrue("'" + boolean67 + "' != '" + true + "'", boolean67 == true); org.junit.Assert.assertTrue("'" + int68 + "' != '" + 0 + "'", int68 == 0); } @Test public void test0715() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0715"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period((long) 'a', periodType2, chronology3); org.joda.time.Hours hours5 = period4.toStandardHours(); org.joda.time.Duration duration6 = period4.toStandardDuration(); org.joda.time.Period period7 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration6); org.junit.Assert.assertNotNull(hours5); org.junit.Assert.assertNotNull(duration6); } @Test public void test0716() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0716"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period(100L, (long) ' ', chronology2); org.joda.time.Period period5 = period3.plusHours(1); org.joda.time.Period period7 = period3.minusMinutes(32); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); } @Test public void test0717() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0717"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); org.joda.time.Period period7 = period5.minusSeconds((int) (short) 100); org.joda.time.Period period9 = period5.minusMillis((int) (short) 100); int int11 = period9.getValue(0); int int12 = period9.getWeeks(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0718() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0718"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Hours hours4 = period3.toStandardHours(); org.joda.time.Duration duration5 = period3.toStandardDuration(); org.joda.time.Period period7 = period3.withDays((int) (short) 0); int int8 = period7.size(); org.junit.Assert.assertNotNull(hours4); org.junit.Assert.assertNotNull(duration5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 8 + "'", int8 == 8); } @Test public void test0719() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0719"); org.joda.time.Period period2 = new org.joda.time.Period((long) (byte) 10, (long) 8); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationTo(readableInstant3); org.joda.time.Period period6 = period2.withWeeks(97); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); } @Test public void test0720() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0720"); org.joda.time.Period period1 = org.joda.time.Period.millis((int) '4'); org.joda.time.Period period3 = period1.minusYears((int) (byte) 0); org.joda.time.Period period5 = period3.withMillis((int) (byte) 100); org.joda.time.format.PeriodFormatter periodFormatter6 = null; java.lang.String str7 = period5.toString(periodFormatter6); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertEquals("'" + str7 + "' != '" + "PT0.100S" + "'", str7, "PT0.100S"); } @Test public void test0721() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0721"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant1, readableInstant2); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Duration duration5 = period3.toDurationFrom(readableInstant4); org.joda.time.Period period6 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration5); int int7 = period6.getYears(); org.joda.time.Period period9 = period6.withMonths((int) (byte) 100); org.joda.time.Period period10 = period6.negated(); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Duration duration12 = period6.toDurationFrom(readableInstant11); java.lang.String str13 = period6.toString(); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant15, readableInstant16); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Duration duration19 = period17.toDurationFrom(readableInstant18); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.Period period23 = new org.joda.time.Period(readableInstant21, readableInstant22); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Duration duration25 = period23.toDurationFrom(readableInstant24); org.joda.time.Period period27 = period23.plusMonths(0); org.joda.time.Period period29 = period27.plusMonths((int) '#'); org.joda.time.Period period31 = period27.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType32 = period27.getPeriodType(); org.joda.time.Chronology chronology33 = null; org.joda.time.Period period34 = new org.joda.time.Period((long) (short) -1, periodType32, chronology33); org.joda.time.Period period35 = new org.joda.time.Period(readableInstant14, (org.joda.time.ReadableDuration) duration19, periodType32); org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.Chronology chronology39 = null; org.joda.time.Period period40 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology39); java.lang.String str41 = period40.toString(); org.joda.time.Period period42 = new org.joda.time.Period((java.lang.Object) str41); org.joda.time.Period period43 = period42.normalizedStandard(); org.joda.time.PeriodType periodType44 = period43.getPeriodType(); org.joda.time.Period period45 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration19, readableInstant36, periodType44); org.joda.time.Period period46 = period6.withPeriodType(periodType44); org.junit.Assert.assertNotNull(duration5); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(duration12); org.junit.Assert.assertEquals("'" + str13 + "' != '" + "PT0S" + "'", str13, "PT0S"); org.junit.Assert.assertNotNull(duration19); org.junit.Assert.assertNotNull(duration25); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(periodType32); org.junit.Assert.assertEquals("'" + str41 + "' != '" + "PT0.011S" + "'", str41, "PT0.011S"); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(periodType44); org.junit.Assert.assertNotNull(period46); } @Test public void test0722() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0722"); org.joda.time.Period period1 = org.joda.time.Period.seconds((int) '#'); org.junit.Assert.assertNotNull(period1); } @Test public void test0723() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0723"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 97, 1L, chronology2); org.joda.time.Period period5 = period3.minusWeeks((int) (byte) -1); org.junit.Assert.assertNotNull(period5); } @Test public void test0724() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0724"); org.joda.time.Period period4 = new org.joda.time.Period((int) (byte) 10, (int) (byte) 1, (-1), (int) 'a'); } @Test public void test0725() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0725"); org.joda.time.Period period1 = org.joda.time.Period.weeks(8); org.joda.time.Period period3 = period1.multipliedBy(100); int int4 = period3.getMonths(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0); } @Test public void test0726() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0726"); org.joda.time.Period period1 = org.joda.time.Period.months(32); org.joda.time.Period period3 = period1.withHours((int) (byte) 100); java.lang.Class<?> wildcardClass4 = period3.getClass(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(wildcardClass4); } @Test public void test0727() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0727"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.Period period2 = new org.joda.time.Period((long) (byte) -1); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant4, readableInstant5); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Duration duration8 = period6.toDurationFrom(readableInstant7); org.joda.time.Period period10 = period6.plusMonths(0); org.joda.time.Period period12 = period10.plusMonths((int) '#'); org.joda.time.Period period14 = period10.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType15 = period10.getPeriodType(); org.joda.time.Chronology chronology16 = null; org.joda.time.Period period17 = new org.joda.time.Period((long) (short) -1, periodType15, chronology16); org.joda.time.Period period18 = period2.minus((org.joda.time.ReadablePeriod) period17); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Duration duration20 = period17.toDurationTo(readableInstant19); org.joda.time.Period period21 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration20); org.junit.Assert.assertNotNull(duration8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(periodType15); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(duration20); } @Test public void test0728() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0728"); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.PeriodType periodType7 = null; org.joda.time.Period period8 = new org.joda.time.Period(readableInstant5, readableInstant6, periodType7); org.joda.time.MutablePeriod mutablePeriod9 = period8.toMutablePeriod(); org.joda.time.Period period10 = period4.plus((org.joda.time.ReadablePeriod) period8); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant11, readableInstant12, periodType13); org.joda.time.Period period16 = period14.plusMonths((int) '4'); org.joda.time.Period period17 = period8.withFields((org.joda.time.ReadablePeriod) period16); org.joda.time.PeriodType periodType18 = period16.getPeriodType(); org.joda.time.Chronology chronology19 = null; org.joda.time.Period period20 = new org.joda.time.Period((-1L), (long) 98, periodType18, chronology19); org.joda.time.Chronology chronology23 = null; org.joda.time.Period period24 = new org.joda.time.Period((long) 100, (long) (-1), chronology23); org.joda.time.Period period26 = period24.plusMinutes((int) (short) 10); org.joda.time.Period period28 = period26.plusMinutes((-1)); int int29 = period28.getWeeks(); org.joda.time.Period period31 = period28.withMinutes((int) (byte) 10); org.joda.time.DurationFieldType durationFieldType33 = period31.getFieldType(0); org.joda.time.Period period35 = period20.withField(durationFieldType33, (-3)); int[] intArray36 = period20.getValues(); org.junit.Assert.assertNotNull(mutablePeriod9); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(periodType18); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertTrue("'" + int29 + "' != '" + 0 + "'", int29 == 0); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(durationFieldType33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(intArray36); org.junit.Assert.assertEquals(java.util.Arrays.toString(intArray36), "[0, 0, 0, 0, 0, 0, 0, 99]"); } @Test public void test0729() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0729"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant1, readableInstant2); org.joda.time.Period period4 = period3.normalizedStandard(); org.joda.time.Period period6 = period3.plusMinutes((int) ' '); org.joda.time.Duration duration7 = period3.toStandardDuration(); org.joda.time.Period period8 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration7); org.joda.time.Period period10 = period8.plusDays(8); org.joda.time.PeriodType periodType11 = period8.getPeriodType(); org.junit.Assert.assertNotNull(period4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(duration7); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(periodType11); } @Test public void test0730() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0730"); org.joda.time.Chronology chronology4 = null; org.joda.time.Period period5 = new org.joda.time.Period((long) 100, (long) (-1), chronology4); org.joda.time.Period period7 = period5.plusMinutes((int) (short) 10); org.joda.time.Period period9 = period7.plusMinutes((-1)); int int10 = period9.getWeeks(); org.joda.time.Period period12 = period9.withMinutes((int) (byte) 10); org.joda.time.PeriodType periodType13 = period12.getPeriodType(); org.joda.time.Period period14 = new org.joda.time.Period((long) 52, (long) 1, periodType13); org.joda.time.Seconds seconds15 = period14.toStandardSeconds(); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(periodType13); org.junit.Assert.assertNotNull(seconds15); } @Test public void test0731() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0731"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period2.plusWeeks((int) ' '); org.joda.time.Period period10 = period2.plusMinutes((-1)); org.joda.time.Period period11 = period10.normalizedStandard(); org.joda.time.Period period12 = new org.joda.time.Period((java.lang.Object) period10); org.joda.time.Period period14 = period12.plusSeconds(52); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period14); } @Test public void test0732() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0732"); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant4, readableInstant5); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Duration duration8 = period6.toDurationFrom(readableInstant7); org.joda.time.Period period10 = period6.plusMonths(0); org.joda.time.Period period12 = period10.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Duration duration14 = period10.toDurationFrom(readableInstant13); org.joda.time.Period period15 = new org.joda.time.Period(readableInstant3, (org.joda.time.ReadableDuration) duration14); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Period period28 = new org.joda.time.Period(readableInstant26, readableInstant27); org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Duration duration30 = period28.toDurationFrom(readableInstant29); org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Period period34 = new org.joda.time.Period(readableInstant32, readableInstant33); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Duration duration36 = period34.toDurationFrom(readableInstant35); org.joda.time.Period period38 = period34.plusMonths(0); org.joda.time.Period period40 = period38.plusMonths((int) '#'); org.joda.time.Period period42 = period38.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType43 = period38.getPeriodType(); org.joda.time.Chronology chronology44 = null; org.joda.time.Period period45 = new org.joda.time.Period((long) (short) -1, periodType43, chronology44); org.joda.time.Period period46 = new org.joda.time.Period(readableInstant25, (org.joda.time.ReadableDuration) duration30, periodType43); org.joda.time.Chronology chronology47 = null; org.joda.time.Period period48 = new org.joda.time.Period((long) (short) 100, periodType43, chronology47); org.joda.time.Period period49 = new org.joda.time.Period(0, (int) 'a', (int) ' ', (int) (short) 100, (int) (byte) 0, (int) (byte) 10, 10, (int) (short) -1, periodType43); org.joda.time.Period period50 = new org.joda.time.Period(readableInstant2, (org.joda.time.ReadableDuration) duration14, periodType43); org.joda.time.Chronology chronology51 = null; org.joda.time.Period period52 = new org.joda.time.Period((long) 1, (long) (short) 100, periodType43, chronology51); org.joda.time.Period period54 = period52.plusYears(8); org.junit.Assert.assertNotNull(duration8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(duration14); org.junit.Assert.assertNotNull(duration30); org.junit.Assert.assertNotNull(duration36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(periodType43); org.junit.Assert.assertNotNull(period54); } @Test public void test0733() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0733"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period((long) 1, chronology1); int int3 = period2.getSeconds(); org.joda.time.Period period5 = period2.withWeeks(11); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); org.junit.Assert.assertNotNull(period5); } @Test public void test0734() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0734"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period6.toDurationFrom(readableInstant9); org.joda.time.Period period12 = period6.minusMinutes((int) (byte) -1); org.joda.time.Seconds seconds13 = period6.toStandardSeconds(); org.joda.time.Period period14 = new org.joda.time.Period((java.lang.Object) period6); org.joda.time.Period period16 = period14.withMinutes((int) '#'); org.joda.time.Period period18 = period16.plusMonths((-3)); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(seconds13); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); } @Test public void test0735() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0735"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period((long) 97, chronology1); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant9, readableInstant10); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.PeriodType periodType14 = null; org.joda.time.Period period15 = new org.joda.time.Period(readableInstant12, readableInstant13, periodType14); org.joda.time.MutablePeriod mutablePeriod16 = period15.toMutablePeriod(); org.joda.time.Period period17 = period11.plus((org.joda.time.ReadablePeriod) period15); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.PeriodType periodType20 = null; org.joda.time.Period period21 = new org.joda.time.Period(readableInstant18, readableInstant19, periodType20); org.joda.time.Period period23 = period21.plusMonths((int) '4'); org.joda.time.Period period24 = period15.withFields((org.joda.time.ReadablePeriod) period23); org.joda.time.PeriodType periodType25 = period23.getPeriodType(); org.joda.time.Period period26 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType25); org.joda.time.Period period27 = new org.joda.time.Period((long) 'a', (long) 10, periodType25); org.joda.time.Period period28 = new org.joda.time.Period((long) (short) 100, 100L, periodType25); org.joda.time.Period period29 = period2.withPeriodType(periodType25); java.lang.Class<?> wildcardClass30 = period2.getClass(); org.junit.Assert.assertNotNull(mutablePeriod16); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(periodType25); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(wildcardClass30); } @Test public void test0736() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0736"); org.joda.time.Period period2 = new org.joda.time.Period((long) (short) 1, (long) (short) 10); } @Test public void test0737() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0737"); org.joda.time.PeriodType periodType8 = null; org.joda.time.Period period9 = new org.joda.time.Period((-1), 0, (int) '#', (int) (short) 10, (int) (short) 0, 10, (int) (short) 1, (int) (byte) 10, periodType8); org.joda.time.Period period11 = period9.minusSeconds((int) ' '); org.joda.time.Period period13 = period11.minusHours((-1)); org.joda.time.Period period15 = period13.minusWeeks((int) ' '); // The following exception was thrown during execution in test generation try { org.joda.time.Days days16 = period13.toStandardDays(); org.junit.Assert.fail("Expected exception of type java.lang.UnsupportedOperationException; message: Cannot convert to Days as this period contains years and years vary in length"); } catch (java.lang.UnsupportedOperationException e) { // Expected exception. } org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); } @Test public void test0738() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0738"); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Period period5 = new org.joda.time.Period(readableInstant3, readableInstant4); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.PeriodType periodType8 = null; org.joda.time.Period period9 = new org.joda.time.Period(readableInstant6, readableInstant7, periodType8); org.joda.time.MutablePeriod mutablePeriod10 = period9.toMutablePeriod(); org.joda.time.Period period11 = period5.plus((org.joda.time.ReadablePeriod) period9); org.joda.time.Period period13 = period9.withMonths((int) (byte) 0); org.joda.time.Period period15 = period13.minusSeconds((-1)); org.joda.time.Period period17 = period15.minusHours((-1)); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.Period period23 = new org.joda.time.Period(readableInstant21, readableInstant22); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Duration duration25 = period23.toDurationFrom(readableInstant24); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.Period period29 = new org.joda.time.Period(readableInstant27, readableInstant28); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.Duration duration31 = period29.toDurationFrom(readableInstant30); org.joda.time.Period period33 = period29.plusMonths(0); org.joda.time.Period period35 = period33.plusMonths((int) '#'); org.joda.time.Period period37 = period33.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType38 = period33.getPeriodType(); org.joda.time.Chronology chronology39 = null; org.joda.time.Period period40 = new org.joda.time.Period((long) (short) -1, periodType38, chronology39); org.joda.time.Period period41 = new org.joda.time.Period(readableInstant20, (org.joda.time.ReadableDuration) duration25, periodType38); org.joda.time.Chronology chronology42 = null; org.joda.time.Period period43 = new org.joda.time.Period((long) (byte) 10, (long) 10, periodType38, chronology42); org.joda.time.Period period44 = period15.withPeriodType(periodType38); org.joda.time.Duration duration45 = period44.toStandardDuration(); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.Duration duration47 = period44.toDurationTo(readableInstant46); org.joda.time.Period period49 = org.joda.time.Period.years((int) (byte) 1); org.joda.time.PeriodType periodType50 = period49.getPeriodType(); org.joda.time.Period period51 = new org.joda.time.Period(readableInstant2, (org.joda.time.ReadableDuration) duration47, periodType50); org.joda.time.Chronology chronology52 = null; org.joda.time.Period period53 = new org.joda.time.Period((long) 97, (long) 52, periodType50, chronology52); org.junit.Assert.assertNotNull(mutablePeriod10); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(duration25); org.junit.Assert.assertNotNull(duration31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(periodType38); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(duration45); org.junit.Assert.assertNotNull(duration47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(periodType50); } @Test public void test0739() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0739"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.Period period5 = period3.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.PeriodType periodType8 = null; org.joda.time.Period period9 = new org.joda.time.Period(readableInstant6, readableInstant7, periodType8); org.joda.time.DurationFieldType durationFieldType11 = period9.getFieldType((int) (byte) 0); int int12 = period5.indexOf(durationFieldType11); org.joda.time.Period period14 = period5.withMonths((int) '#'); org.joda.time.Period period16 = period5.withMillis(52); // The following exception was thrown during execution in test generation try { org.joda.time.Seconds seconds17 = period16.toStandardSeconds(); org.junit.Assert.fail("Expected exception of type java.lang.UnsupportedOperationException; message: Cannot convert to Seconds as this period contains months and months vary in length"); } catch (java.lang.UnsupportedOperationException e) { // Expected exception. } org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(durationFieldType11); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); } @Test public void test0740() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0740"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period6.toDurationFrom(readableInstant9); org.joda.time.Period period12 = period6.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.PeriodType periodType15 = null; org.joda.time.Period period16 = new org.joda.time.Period(readableInstant13, readableInstant14, periodType15); org.joda.time.Period period18 = period16.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.PeriodType periodType21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant19, readableInstant20, periodType21); org.joda.time.Period period24 = period22.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.PeriodType periodType27 = null; org.joda.time.Period period28 = new org.joda.time.Period(readableInstant25, readableInstant26, periodType27); org.joda.time.DurationFieldType durationFieldType30 = period28.getFieldType((int) (byte) 0); int int31 = period24.indexOf(durationFieldType30); int int32 = period16.get(durationFieldType30); org.joda.time.Period period34 = period6.withField(durationFieldType30, (int) (short) 0); org.joda.time.Chronology chronology37 = null; org.joda.time.Period period38 = new org.joda.time.Period(100L, (long) ' ', chronology37); org.joda.time.Period period40 = period38.plusHours(1); org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Period period45 = new org.joda.time.Period(readableInstant43, readableInstant44); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.Duration duration47 = period45.toDurationFrom(readableInstant46); org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.Period period51 = new org.joda.time.Period(readableInstant49, readableInstant50); org.joda.time.ReadableInstant readableInstant52 = null; org.joda.time.Duration duration53 = period51.toDurationFrom(readableInstant52); org.joda.time.Period period55 = period51.plusMonths(0); org.joda.time.Period period57 = period55.plusMonths((int) '#'); org.joda.time.Period period59 = period55.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType60 = period55.getPeriodType(); org.joda.time.Chronology chronology61 = null; org.joda.time.Period period62 = new org.joda.time.Period((long) (short) -1, periodType60, chronology61); org.joda.time.Period period63 = new org.joda.time.Period(readableInstant42, (org.joda.time.ReadableDuration) duration47, periodType60); org.joda.time.Chronology chronology64 = null; org.joda.time.Period period65 = new org.joda.time.Period((long) (byte) 0, periodType60, chronology64); org.joda.time.Period period66 = period40.withPeriodType(periodType60); org.joda.time.Period period67 = period6.withPeriodType(periodType60); org.joda.time.ReadableInstant readableInstant70 = null; org.joda.time.ReadableInstant readableInstant71 = null; org.joda.time.Period period72 = new org.joda.time.Period(readableInstant70, readableInstant71); org.joda.time.ReadableInstant readableInstant73 = null; org.joda.time.Duration duration74 = period72.toDurationFrom(readableInstant73); org.joda.time.Period period76 = period72.plusMonths(0); org.joda.time.Period period78 = period76.plusMonths((int) '#'); org.joda.time.Period period80 = period76.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType81 = period76.getPeriodType(); org.joda.time.Chronology chronology82 = null; org.joda.time.Period period83 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType81, chronology82); org.joda.time.Seconds seconds84 = period83.toStandardSeconds(); org.joda.time.Period period85 = period67.minus((org.joda.time.ReadablePeriod) seconds84); org.joda.time.Period period87 = period67.withMinutes(0); org.joda.time.Duration duration88 = period67.toStandardDuration(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(durationFieldType30); org.junit.Assert.assertTrue("'" + int31 + "' != '" + 0 + "'", int31 == 0); org.junit.Assert.assertTrue("'" + int32 + "' != '" + 0 + "'", int32 == 0); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(duration47); org.junit.Assert.assertNotNull(duration53); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(periodType60); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertNotNull(period67); org.junit.Assert.assertNotNull(duration74); org.junit.Assert.assertNotNull(period76); org.junit.Assert.assertNotNull(period78); org.junit.Assert.assertNotNull(period80); org.junit.Assert.assertNotNull(periodType81); org.junit.Assert.assertNotNull(seconds84); org.junit.Assert.assertNotNull(period85); org.junit.Assert.assertNotNull(period87); org.junit.Assert.assertNotNull(duration88); } @Test public void test0741() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0741"); org.joda.time.format.PeriodFormatter periodFormatter1 = null; // The following exception was thrown during execution in test generation try { org.joda.time.Period period2 = org.joda.time.Period.parse("PT8S", periodFormatter1); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null"); } catch (java.lang.NullPointerException e) { // Expected exception. } } @Test public void test0742() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0742"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.Period period5 = period3.minusMillis((int) '4'); int int6 = period5.getSeconds(); org.joda.time.Period period8 = period5.plusMinutes(8); org.joda.time.DurationFieldType[] durationFieldTypeArray9 = period8.getFieldTypes(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(durationFieldTypeArray9); } @Test public void test0743() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0743"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period((long) (short) 100, chronology1); org.joda.time.Period period4 = period2.minusWeeks((-1)); org.junit.Assert.assertNotNull(period4); } @Test public void test0744() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0744"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 100, (long) (-1), chronology2); org.joda.time.Period period5 = period3.withHours(0); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant9, readableInstant10); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Duration duration13 = period11.toDurationFrom(readableInstant12); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant15, readableInstant16); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Duration duration19 = period17.toDurationFrom(readableInstant18); org.joda.time.Period period21 = period17.plusMonths(0); org.joda.time.Period period23 = period21.plusMonths((int) '#'); org.joda.time.Period period25 = period21.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType26 = period21.getPeriodType(); org.joda.time.Chronology chronology27 = null; org.joda.time.Period period28 = new org.joda.time.Period((long) (short) -1, periodType26, chronology27); org.joda.time.Period period29 = new org.joda.time.Period(readableInstant8, (org.joda.time.ReadableDuration) duration13, periodType26); org.joda.time.Period period30 = new org.joda.time.Period(readableInstant6, readableInstant7, periodType26); org.joda.time.Period period31 = period3.minus((org.joda.time.ReadablePeriod) period30); org.joda.time.Period period33 = period31.minusHours((-3)); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.Duration duration35 = period31.toDurationTo(readableInstant34); org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.Duration duration37 = period31.toDurationTo(readableInstant36); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(duration13); org.junit.Assert.assertNotNull(duration19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(periodType26); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(duration35); org.junit.Assert.assertNotNull(duration37); } @Test public void test0745() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0745"); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant5, readableInstant6); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.Duration duration9 = period7.toDurationFrom(readableInstant8); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant11, readableInstant12); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Duration duration15 = period13.toDurationFrom(readableInstant14); org.joda.time.Period period17 = period13.plusMonths(0); org.joda.time.Period period19 = period17.plusMonths((int) '#'); org.joda.time.Period period21 = period17.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType22 = period17.getPeriodType(); org.joda.time.Chronology chronology23 = null; org.joda.time.Period period24 = new org.joda.time.Period((long) (short) -1, periodType22, chronology23); org.joda.time.Period period25 = new org.joda.time.Period(readableInstant4, (org.joda.time.ReadableDuration) duration9, periodType22); org.joda.time.Period period26 = new org.joda.time.Period(readableInstant2, readableInstant3, periodType22); org.joda.time.Period period27 = new org.joda.time.Period(10L, periodType22); org.joda.time.Chronology chronology28 = null; org.joda.time.Period period29 = new org.joda.time.Period((long) (byte) 10, periodType22, chronology28); org.junit.Assert.assertNotNull(duration9); org.junit.Assert.assertNotNull(duration15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(periodType22); } @Test public void test0746() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0746"); org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period((long) 100, (long) (-1), chronology3); org.joda.time.Period period6 = period4.plusMinutes((int) (short) 10); org.joda.time.Period period8 = period6.plusMinutes((-1)); int int9 = period8.getWeeks(); org.joda.time.Period period11 = period8.withMinutes((int) (byte) 10); org.joda.time.PeriodType periodType12 = period11.getPeriodType(); org.joda.time.Period period13 = new org.joda.time.Period(1L, periodType12); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Duration duration15 = period13.toDurationFrom(readableInstant14); int[] intArray16 = period13.getValues(); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(periodType12); org.junit.Assert.assertNotNull(duration15); org.junit.Assert.assertNotNull(intArray16); org.junit.Assert.assertEquals(java.util.Arrays.toString(intArray16), "[0, 0, 0, 0, 0, 0, 0, 1]"); } @Test public void test0747() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0747"); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.PeriodType periodType7 = null; org.joda.time.Period period8 = new org.joda.time.Period(readableInstant5, readableInstant6, periodType7); org.joda.time.MutablePeriod mutablePeriod9 = period8.toMutablePeriod(); org.joda.time.Period period10 = period4.plus((org.joda.time.ReadablePeriod) period8); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant11, readableInstant12, periodType13); org.joda.time.Period period16 = period14.plusMonths((int) '4'); org.joda.time.Period period17 = period8.withFields((org.joda.time.ReadablePeriod) period16); org.joda.time.PeriodType periodType18 = period16.getPeriodType(); org.joda.time.Period period19 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType18); org.joda.time.Weeks weeks20 = period19.toStandardWeeks(); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Duration duration22 = period19.toDurationFrom(readableInstant21); int int23 = period19.getMinutes(); org.junit.Assert.assertNotNull(mutablePeriod9); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(periodType18); org.junit.Assert.assertNotNull(weeks20); org.junit.Assert.assertNotNull(duration22); org.junit.Assert.assertTrue("'" + int23 + "' != '" + 0 + "'", int23 == 0); } @Test public void test0748() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0748"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); java.lang.String str4 = period3.toString(); org.joda.time.Period period5 = new org.joda.time.Period((java.lang.Object) str4); org.joda.time.Period period7 = period5.plusSeconds((int) 'a'); org.joda.time.DurationFieldType[] durationFieldTypeArray8 = period7.getFieldTypes(); org.joda.time.Period period10 = period7.withDays((int) (byte) 10); org.joda.time.DurationFieldType[] durationFieldTypeArray11 = period10.getFieldTypes(); org.joda.time.Period period13 = period10.withHours((int) '4'); int[] intArray14 = period13.getValues(); org.junit.Assert.assertEquals("'" + str4 + "' != '" + "PT0.011S" + "'", str4, "PT0.011S"); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(durationFieldTypeArray8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(durationFieldTypeArray11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(intArray14); org.junit.Assert.assertEquals(java.util.Arrays.toString(intArray14), "[0, 0, 0, 10, 52, 0, 97, 11]"); } @Test public void test0749() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0749"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period((long) 10, chronology1); } @Test public void test0750() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0750"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period(100L, chronology1); org.joda.time.PeriodType periodType4 = null; org.joda.time.Chronology chronology5 = null; org.joda.time.Period period6 = new org.joda.time.Period((long) 'a', periodType4, chronology5); org.joda.time.PeriodType periodType8 = null; org.joda.time.Chronology chronology9 = null; org.joda.time.Period period10 = new org.joda.time.Period((long) 'a', periodType8, chronology9); org.joda.time.Hours hours11 = period10.toStandardHours(); org.joda.time.Period period12 = period6.withFields((org.joda.time.ReadablePeriod) period10); org.joda.time.Period period14 = period6.withYears(10); org.joda.time.Period period15 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Hours hours16 = period6.toStandardHours(); org.junit.Assert.assertNotNull(hours11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(hours16); } @Test public void test0751() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0751"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period6.toDurationFrom(readableInstant9); org.joda.time.Period period12 = period6.minusMonths((int) (byte) 0); org.joda.time.Period period14 = period6.minusWeeks(1); // The following exception was thrown during execution in test generation try { org.joda.time.DurationFieldType durationFieldType16 = period6.getFieldType(11); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: 11"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); } @Test public void test0752() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0752"); org.joda.time.Period period1 = org.joda.time.Period.seconds((int) (short) 1); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((java.lang.Object) period1, chronology2); org.joda.time.Period period5 = period1.plusYears((int) (short) -1); org.joda.time.PeriodType periodType6 = period5.getPeriodType(); org.joda.time.Period period8 = period5.withSeconds(1); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(periodType6); org.junit.Assert.assertNotNull(period8); } @Test public void test0753() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0753"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); org.joda.time.Period period12 = period10.withWeeks((int) ' '); org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period((java.lang.Object) period10, periodType13); org.joda.time.Period period15 = period10.toPeriod(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period15); } @Test public void test0754() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0754"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 97, 1L, chronology2); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant4, readableInstant5); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.PeriodType periodType9 = null; org.joda.time.Period period10 = new org.joda.time.Period(readableInstant7, readableInstant8, periodType9); org.joda.time.MutablePeriod mutablePeriod11 = period10.toMutablePeriod(); org.joda.time.Period period12 = period6.plus((org.joda.time.ReadablePeriod) period10); org.joda.time.Period period14 = period10.withMonths((int) (byte) 0); org.joda.time.Period period16 = period14.plusMillis((int) (byte) 100); org.joda.time.Period period17 = period3.withFields((org.joda.time.ReadablePeriod) period14); org.junit.Assert.assertNotNull(mutablePeriod11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period17); } @Test public void test0755() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0755"); org.joda.time.Period period1 = org.joda.time.Period.minutes(0); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Duration duration6 = period4.toDurationFrom(readableInstant5); org.joda.time.Period period8 = period4.plusMonths(0); int int9 = period4.getWeeks(); org.joda.time.PeriodType periodType10 = null; org.joda.time.Period period11 = period4.normalizedStandard(periodType10); org.joda.time.Period period12 = period1.minus((org.joda.time.ReadablePeriod) period11); org.joda.time.Period period14 = period12.minusYears(100); java.lang.Class<?> wildcardClass15 = period12.getClass(); org.joda.time.PeriodType periodType16 = null; org.joda.time.Period period17 = new org.joda.time.Period((java.lang.Object) period12, periodType16); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(duration6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(wildcardClass15); } @Test public void test0756() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0756"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period6.toDurationFrom(readableInstant9); org.joda.time.Period period12 = period6.minusMonths((int) (byte) 0); org.joda.time.Period period14 = period6.minusWeeks(1); org.joda.time.Hours hours15 = period14.toStandardHours(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(hours15); } @Test public void test0757() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0757"); org.joda.time.Period period1 = org.joda.time.Period.millis((int) (short) -1); org.joda.time.Period period3 = period1.plusMillis((int) ' '); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); } @Test public void test0758() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0758"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.MutablePeriod mutablePeriod4 = period3.toMutablePeriod(); org.joda.time.Period period6 = period3.minusMinutes((int) (byte) 100); org.joda.time.Seconds seconds7 = period6.toStandardSeconds(); org.joda.time.Period period8 = new org.joda.time.Period((java.lang.Object) period6); org.joda.time.Period period10 = period8.withMillis((int) (byte) 1); int int11 = period8.getMinutes(); org.junit.Assert.assertNotNull(mutablePeriod4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(seconds7); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-100) + "'", int11 == (-100)); } @Test public void test0759() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0759"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 100, (long) (-1), chronology2); org.joda.time.Period period5 = period3.withMonths((int) (short) 0); org.joda.time.Period period7 = period5.minusSeconds((int) (byte) 10); org.joda.time.Period period9 = period5.withWeeks((int) (byte) 100); org.joda.time.Period period11 = period9.withMonths((int) (byte) 0); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); } @Test public void test0760() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0760"); org.joda.time.PeriodType periodType8 = null; org.joda.time.Period period9 = new org.joda.time.Period((-1), 0, (int) '#', (int) (short) 10, (int) (short) 0, 10, (int) (short) 1, (int) (byte) 10, periodType8); org.joda.time.Period period11 = period9.minusSeconds((int) ' '); org.joda.time.Period period13 = period11.minusHours((-1)); org.joda.time.Period period15 = period13.minusWeeks((int) ' '); org.joda.time.ReadablePeriod readablePeriod16 = null; org.joda.time.Period period17 = period15.minus(readablePeriod16); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); } @Test public void test0761() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0761"); org.joda.time.Period period4 = new org.joda.time.Period((-3), (int) (byte) 0, (int) (short) 0, (int) (short) 10); } @Test public void test0762() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0762"); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant15, readableInstant16); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Duration duration19 = period17.toDurationFrom(readableInstant18); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.Period period23 = new org.joda.time.Period(readableInstant21, readableInstant22); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Duration duration25 = period23.toDurationFrom(readableInstant24); org.joda.time.Period period27 = period23.plusMonths(0); org.joda.time.Period period29 = period27.plusMonths((int) '#'); org.joda.time.Period period31 = period27.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType32 = period27.getPeriodType(); org.joda.time.Chronology chronology33 = null; org.joda.time.Period period34 = new org.joda.time.Period((long) (short) -1, periodType32, chronology33); org.joda.time.Period period35 = new org.joda.time.Period(readableInstant14, (org.joda.time.ReadableDuration) duration19, periodType32); org.joda.time.Period period36 = new org.joda.time.Period(readableInstant12, readableInstant13, periodType32); org.joda.time.Chronology chronology37 = null; org.joda.time.Period period38 = new org.joda.time.Period((long) (-100), (long) (-100), periodType32, chronology37); org.joda.time.Chronology chronology39 = null; org.joda.time.Period period40 = new org.joda.time.Period((long) 0, (long) 100, periodType32, chronology39); org.joda.time.PeriodType periodType41 = period40.getPeriodType(); org.joda.time.Period period42 = new org.joda.time.Period(98, 10, (int) (short) 100, (int) (short) 1, (int) (short) 100, (int) (short) 10, (int) (byte) -1, 8, periodType41); org.junit.Assert.assertNotNull(duration19); org.junit.Assert.assertNotNull(duration25); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(periodType32); org.junit.Assert.assertNotNull(periodType41); } @Test public void test0763() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0763"); org.joda.time.Period period1 = org.joda.time.Period.days((int) (short) 0); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Duration duration6 = period4.toDurationFrom(readableInstant5); org.joda.time.Period period8 = period4.plusMonths(0); org.joda.time.Period period10 = period8.plusMonths((int) '#'); org.joda.time.Period period12 = period8.plusMinutes((int) (short) 100); org.joda.time.Period period14 = period12.minusWeeks(1); org.joda.time.DurationFieldType durationFieldType16 = period12.getFieldType((int) (byte) 0); java.lang.String str17 = period12.toString(); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Duration duration19 = period12.toDurationFrom(readableInstant18); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.Period period23 = new org.joda.time.Period(readableInstant21, readableInstant22); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Duration duration25 = period23.toDurationFrom(readableInstant24); org.joda.time.Period period27 = period23.plusMonths(0); org.joda.time.Period period29 = period27.plusMonths((int) '#'); org.joda.time.Period period31 = period27.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType32 = period27.getPeriodType(); org.joda.time.Period period33 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration19, readableInstant20, periodType32); org.joda.time.Period period38 = new org.joda.time.Period(97, (int) (short) 0, 100, (int) (short) 100); org.joda.time.Period period40 = org.joda.time.Period.millis(1); org.joda.time.PeriodType periodType42 = null; org.joda.time.Chronology chronology43 = null; org.joda.time.Period period44 = new org.joda.time.Period((long) 'a', periodType42, chronology43); org.joda.time.Hours hours45 = period44.toStandardHours(); org.joda.time.Period period47 = period44.plusSeconds((int) (byte) 1); org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.PeriodType periodType50 = null; org.joda.time.Period period51 = new org.joda.time.Period(readableInstant48, readableInstant49, periodType50); org.joda.time.DurationFieldType durationFieldType53 = period51.getFieldType((int) (byte) 0); org.joda.time.Period period55 = period44.withField(durationFieldType53, 1); boolean boolean56 = period40.equals((java.lang.Object) 1); org.joda.time.ReadableInstant readableInstant57 = null; org.joda.time.ReadableInstant readableInstant58 = null; org.joda.time.PeriodType periodType59 = null; org.joda.time.Period period60 = new org.joda.time.Period(readableInstant57, readableInstant58, periodType59); org.joda.time.Period period62 = period60.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.PeriodType periodType65 = null; org.joda.time.Period period66 = new org.joda.time.Period(readableInstant63, readableInstant64, periodType65); org.joda.time.DurationFieldType durationFieldType68 = period66.getFieldType((int) (byte) 0); int int69 = period62.indexOf(durationFieldType68); org.joda.time.Period period71 = period40.withFieldAdded(durationFieldType68, (int) (short) 0); int int72 = period38.get(durationFieldType68); org.joda.time.ReadableInstant readableInstant73 = null; org.joda.time.ReadableInstant readableInstant74 = null; org.joda.time.Period period75 = new org.joda.time.Period(readableInstant73, readableInstant74); org.joda.time.ReadableInstant readableInstant76 = null; org.joda.time.Duration duration77 = period75.toDurationFrom(readableInstant76); org.joda.time.Period period79 = period75.plusMonths(0); org.joda.time.Period period81 = period79.plusMonths((int) '#'); org.joda.time.Period period83 = period79.plusMinutes((int) (short) 100); org.joda.time.Period period85 = period83.minusWeeks(1); org.joda.time.DurationFieldType durationFieldType87 = period83.getFieldType((int) (byte) 0); boolean boolean88 = period38.isSupported(durationFieldType87); org.joda.time.Period period90 = period33.withFieldAdded(durationFieldType87, (int) (short) -1); org.joda.time.Period period92 = period1.withField(durationFieldType87, (-3)); org.joda.time.MutablePeriod mutablePeriod93 = period92.toMutablePeriod(); // The following exception was thrown during execution in test generation try { int int95 = period92.getValue((int) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: 100"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(duration6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(durationFieldType16); org.junit.Assert.assertEquals("'" + str17 + "' != '" + "PT100M" + "'", str17, "PT100M"); org.junit.Assert.assertNotNull(duration19); org.junit.Assert.assertNotNull(duration25); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(periodType32); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(hours45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(durationFieldType53); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertTrue("'" + boolean56 + "' != '" + false + "'", boolean56 == false); org.junit.Assert.assertNotNull(period62); org.junit.Assert.assertNotNull(durationFieldType68); org.junit.Assert.assertTrue("'" + int69 + "' != '" + 0 + "'", int69 == 0); org.junit.Assert.assertNotNull(period71); org.junit.Assert.assertTrue("'" + int72 + "' != '" + 0 + "'", int72 == 0); org.junit.Assert.assertNotNull(duration77); org.junit.Assert.assertNotNull(period79); org.junit.Assert.assertNotNull(period81); org.junit.Assert.assertNotNull(period83); org.junit.Assert.assertNotNull(period85); org.junit.Assert.assertNotNull(durationFieldType87); org.junit.Assert.assertTrue("'" + boolean88 + "' != '" + true + "'", boolean88 == true); org.junit.Assert.assertNotNull(period90); org.junit.Assert.assertNotNull(period92); org.junit.Assert.assertNotNull(mutablePeriod93); } @Test public void test0764() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0764"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Hours hours4 = period3.toStandardHours(); org.joda.time.Chronology chronology7 = null; org.joda.time.Period period8 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology7); java.lang.String str9 = period8.toString(); org.joda.time.Period period10 = new org.joda.time.Period((java.lang.Object) str9); org.joda.time.Period period12 = period10.plusSeconds((int) 'a'); org.joda.time.Period period14 = period10.plusYears((int) (byte) 0); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Period period21 = new org.joda.time.Period(readableInstant19, readableInstant20); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.Duration duration23 = period21.toDurationFrom(readableInstant22); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Period period27 = new org.joda.time.Period(readableInstant25, readableInstant26); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.Duration duration29 = period27.toDurationFrom(readableInstant28); org.joda.time.Period period31 = period27.plusMonths(0); org.joda.time.Period period33 = period31.plusMonths((int) '#'); org.joda.time.Period period35 = period31.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType36 = period31.getPeriodType(); org.joda.time.Chronology chronology37 = null; org.joda.time.Period period38 = new org.joda.time.Period((long) (short) -1, periodType36, chronology37); org.joda.time.Period period39 = new org.joda.time.Period(readableInstant18, (org.joda.time.ReadableDuration) duration23, periodType36); org.joda.time.Period period40 = new org.joda.time.Period(readableInstant16, readableInstant17, periodType36); org.joda.time.Chronology chronology41 = null; org.joda.time.Period period42 = new org.joda.time.Period(100L, periodType36, chronology41); org.joda.time.Period period43 = period14.withPeriodType(periodType36); org.joda.time.Chronology chronology45 = null; org.joda.time.Period period46 = new org.joda.time.Period((long) (short) 10, chronology45); org.joda.time.Period period48 = period46.withMinutes((int) (byte) 10); org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.Period period51 = new org.joda.time.Period(readableInstant49, readableInstant50); org.joda.time.ReadableInstant readableInstant52 = null; org.joda.time.Duration duration53 = period51.toDurationFrom(readableInstant52); org.joda.time.Period period55 = period51.plusMonths(0); org.joda.time.Period period57 = period51.plusWeeks((int) ' '); org.joda.time.ReadableInstant readableInstant58 = null; org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.Period period60 = new org.joda.time.Period(readableInstant58, readableInstant59); org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.Duration duration62 = period60.toDurationFrom(readableInstant61); org.joda.time.Period period64 = period60.plusMonths(0); org.joda.time.Period period66 = period64.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant67 = null; org.joda.time.Duration duration68 = period64.toDurationFrom(readableInstant67); org.joda.time.Period period70 = period64.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant71 = null; org.joda.time.ReadableInstant readableInstant72 = null; org.joda.time.PeriodType periodType73 = null; org.joda.time.Period period74 = new org.joda.time.Period(readableInstant71, readableInstant72, periodType73); org.joda.time.Period period76 = period74.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant77 = null; org.joda.time.ReadableInstant readableInstant78 = null; org.joda.time.PeriodType periodType79 = null; org.joda.time.Period period80 = new org.joda.time.Period(readableInstant77, readableInstant78, periodType79); org.joda.time.Period period82 = period80.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant83 = null; org.joda.time.ReadableInstant readableInstant84 = null; org.joda.time.PeriodType periodType85 = null; org.joda.time.Period period86 = new org.joda.time.Period(readableInstant83, readableInstant84, periodType85); org.joda.time.DurationFieldType durationFieldType88 = period86.getFieldType((int) (byte) 0); int int89 = period82.indexOf(durationFieldType88); int int90 = period74.get(durationFieldType88); org.joda.time.Period period92 = period64.withField(durationFieldType88, (int) (short) 0); int int93 = period57.indexOf(durationFieldType88); boolean boolean94 = period48.isSupported(durationFieldType88); int int95 = period43.get(durationFieldType88); int int96 = period3.indexOf(durationFieldType88); org.junit.Assert.assertNotNull(hours4); org.junit.Assert.assertEquals("'" + str9 + "' != '" + "PT0.011S" + "'", str9, "PT0.011S"); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(duration23); org.junit.Assert.assertNotNull(duration29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(periodType36); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(duration53); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertNotNull(duration62); org.junit.Assert.assertNotNull(period64); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertNotNull(duration68); org.junit.Assert.assertNotNull(period70); org.junit.Assert.assertNotNull(period76); org.junit.Assert.assertNotNull(period82); org.junit.Assert.assertNotNull(durationFieldType88); org.junit.Assert.assertTrue("'" + int89 + "' != '" + 0 + "'", int89 == 0); org.junit.Assert.assertTrue("'" + int90 + "' != '" + 0 + "'", int90 == 0); org.junit.Assert.assertNotNull(period92); org.junit.Assert.assertTrue("'" + int93 + "' != '" + 0 + "'", int93 == 0); org.junit.Assert.assertTrue("'" + boolean94 + "' != '" + true + "'", boolean94 == true); org.junit.Assert.assertTrue("'" + int95 + "' != '" + 0 + "'", int95 == 0); org.junit.Assert.assertTrue("'" + int96 + "' != '" + 0 + "'", int96 == 0); } @Test public void test0765() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0765"); org.joda.time.Period period1 = org.joda.time.Period.days(97); org.junit.Assert.assertNotNull(period1); } @Test public void test0766() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0766"); org.joda.time.Period period1 = org.joda.time.Period.seconds((int) (short) 0); org.junit.Assert.assertNotNull(period1); } @Test public void test0767() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0767"); org.joda.time.Period period2 = new org.joda.time.Period((long) (short) 10, 100L); } @Test public void test0768() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0768"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 100, (long) (-1), chronology2); org.joda.time.Period period5 = period3.withMonths((int) (short) 0); org.joda.time.Period period7 = period5.minusMonths((int) 'a'); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); } @Test public void test0769() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0769"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); org.joda.time.Period period7 = period5.minusSeconds((int) (short) 100); org.joda.time.Period period9 = period7.minusMinutes(100); org.joda.time.Period period11 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period13 = period11.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.PeriodType periodType16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant14, readableInstant15, periodType16); org.joda.time.Period period19 = period17.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.PeriodType periodType22 = null; org.joda.time.Period period23 = new org.joda.time.Period(readableInstant20, readableInstant21, periodType22); org.joda.time.DurationFieldType durationFieldType25 = period23.getFieldType((int) (byte) 0); int int26 = period19.indexOf(durationFieldType25); org.joda.time.Period period28 = period11.withFieldAdded(durationFieldType25, 1); org.joda.time.Period period29 = period28.negated(); org.joda.time.Period period30 = period9.plus((org.joda.time.ReadablePeriod) period28); org.joda.time.Period period32 = period9.withDays((int) (byte) 0); org.joda.time.Period period34 = period32.withYears((int) 'a'); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(durationFieldType25); org.junit.Assert.assertTrue("'" + int26 + "' != '" + 0 + "'", int26 == 0); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period34); } @Test public void test0770() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0770"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.MutablePeriod mutablePeriod7 = period6.toMutablePeriod(); org.joda.time.Period period8 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Period period10 = period6.withMonths((int) (byte) 0); int int11 = period10.getMinutes(); org.joda.time.Period period13 = period10.minusWeeks(0); org.joda.time.Period period15 = org.joda.time.Period.days((int) (byte) 100); org.joda.time.Period period17 = period15.withMonths((int) (byte) 10); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Period period20 = new org.joda.time.Period(readableInstant18, readableInstant19); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Duration duration22 = period20.toDurationFrom(readableInstant21); org.joda.time.Period period24 = period20.plusMonths(0); org.joda.time.Period period26 = period24.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Duration duration28 = period24.toDurationFrom(readableInstant27); org.joda.time.Period period30 = period24.minusMinutes((int) (byte) -1); org.joda.time.Seconds seconds31 = period24.toStandardSeconds(); org.joda.time.Period period32 = new org.joda.time.Period((java.lang.Object) period24); org.joda.time.Period period34 = period32.plusSeconds((int) (byte) 1); org.joda.time.Period period36 = period32.withWeeks((int) (byte) 10); boolean boolean37 = period15.equals((java.lang.Object) period32); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Period period40 = new org.joda.time.Period(readableInstant38, readableInstant39); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.Duration duration42 = period40.toDurationFrom(readableInstant41); org.joda.time.Period period44 = period40.plusMonths(0); org.joda.time.Period period46 = period44.plusMonths((int) '#'); org.joda.time.Period period48 = period44.plusMinutes((int) (short) 100); org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.Period period51 = new org.joda.time.Period(readableInstant49, readableInstant50); org.joda.time.ReadableInstant readableInstant52 = null; org.joda.time.Duration duration53 = period51.toDurationFrom(readableInstant52); org.joda.time.Period period55 = period51.plusMonths(0); org.joda.time.Period period57 = period55.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant58 = null; org.joda.time.Duration duration59 = period55.toDurationFrom(readableInstant58); org.joda.time.Period period61 = period55.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.PeriodType periodType64 = null; org.joda.time.Period period65 = new org.joda.time.Period(readableInstant62, readableInstant63, periodType64); org.joda.time.Period period67 = period65.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant68 = null; org.joda.time.ReadableInstant readableInstant69 = null; org.joda.time.PeriodType periodType70 = null; org.joda.time.Period period71 = new org.joda.time.Period(readableInstant68, readableInstant69, periodType70); org.joda.time.Period period73 = period71.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant74 = null; org.joda.time.ReadableInstant readableInstant75 = null; org.joda.time.PeriodType periodType76 = null; org.joda.time.Period period77 = new org.joda.time.Period(readableInstant74, readableInstant75, periodType76); org.joda.time.DurationFieldType durationFieldType79 = period77.getFieldType((int) (byte) 0); int int80 = period73.indexOf(durationFieldType79); int int81 = period65.get(durationFieldType79); org.joda.time.Period period83 = period55.withField(durationFieldType79, (int) (short) 0); boolean boolean84 = period48.isSupported(durationFieldType79); boolean boolean85 = period15.isSupported(durationFieldType79); org.joda.time.Period period87 = period13.withFieldAdded(durationFieldType79, (int) (short) 1); // The following exception was thrown during execution in test generation try { org.joda.time.Seconds seconds88 = period87.toStandardSeconds(); org.junit.Assert.fail("Expected exception of type java.lang.UnsupportedOperationException; message: Cannot convert to Seconds as this period contains years and years vary in length"); } catch (java.lang.UnsupportedOperationException e) { // Expected exception. } org.junit.Assert.assertNotNull(mutablePeriod7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(duration22); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(duration28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(seconds31); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertTrue("'" + boolean37 + "' != '" + false + "'", boolean37 == false); org.junit.Assert.assertNotNull(duration42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(duration53); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertNotNull(duration59); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(period67); org.junit.Assert.assertNotNull(period73); org.junit.Assert.assertNotNull(durationFieldType79); org.junit.Assert.assertTrue("'" + int80 + "' != '" + 0 + "'", int80 == 0); org.junit.Assert.assertTrue("'" + int81 + "' != '" + 0 + "'", int81 == 0); org.junit.Assert.assertNotNull(period83); org.junit.Assert.assertTrue("'" + boolean84 + "' != '" + true + "'", boolean84 == true); org.junit.Assert.assertTrue("'" + boolean85 + "' != '" + true + "'", boolean85 == true); org.junit.Assert.assertNotNull(period87); } @Test public void test0771() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0771"); org.joda.time.ReadablePartial readablePartial0 = null; org.joda.time.ReadablePartial readablePartial1 = null; org.joda.time.Period period4 = new org.joda.time.Period(0L, (-1L)); org.joda.time.Period period6 = period4.plusMillis((int) (short) -1); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant9, readableInstant10); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Duration duration13 = period11.toDurationFrom(readableInstant12); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant15, readableInstant16); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Duration duration19 = period17.toDurationFrom(readableInstant18); org.joda.time.Period period21 = period17.plusMonths(0); org.joda.time.Period period23 = period21.plusMonths((int) '#'); org.joda.time.Period period25 = period21.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType26 = period21.getPeriodType(); org.joda.time.Chronology chronology27 = null; org.joda.time.Period period28 = new org.joda.time.Period((long) (short) -1, periodType26, chronology27); org.joda.time.Period period29 = new org.joda.time.Period(readableInstant8, (org.joda.time.ReadableDuration) duration13, periodType26); org.joda.time.Chronology chronology30 = null; org.joda.time.Period period31 = new org.joda.time.Period((long) (short) 100, periodType26, chronology30); org.joda.time.Period period32 = period6.withPeriodType(periodType26); org.joda.time.Period period34 = period32.plusMillis((int) (byte) 100); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.Period period49 = new org.joda.time.Period(readableInstant47, readableInstant48); org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.ReadableInstant readableInstant51 = null; org.joda.time.PeriodType periodType52 = null; org.joda.time.Period period53 = new org.joda.time.Period(readableInstant50, readableInstant51, periodType52); org.joda.time.MutablePeriod mutablePeriod54 = period53.toMutablePeriod(); org.joda.time.Period period55 = period49.plus((org.joda.time.ReadablePeriod) period53); org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.ReadableInstant readableInstant57 = null; org.joda.time.PeriodType periodType58 = null; org.joda.time.Period period59 = new org.joda.time.Period(readableInstant56, readableInstant57, periodType58); org.joda.time.Period period61 = period59.plusMonths((int) '4'); org.joda.time.Period period62 = period53.withFields((org.joda.time.ReadablePeriod) period61); org.joda.time.PeriodType periodType63 = period61.getPeriodType(); org.joda.time.Period period64 = new org.joda.time.Period((long) ' ', (long) (short) 10, periodType63); org.joda.time.Period period65 = new org.joda.time.Period((int) '4', (int) (byte) 10, (int) (short) 10, 1, 0, 97, (int) (byte) 10, 1, periodType63); org.joda.time.Period period66 = new org.joda.time.Period(readableInstant35, readableInstant36, periodType63); org.joda.time.Period period67 = period32.withPeriodType(periodType63); // The following exception was thrown during execution in test generation try { org.joda.time.Period period68 = new org.joda.time.Period(readablePartial0, readablePartial1, periodType63); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: ReadablePartial objects must not be null"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(duration13); org.junit.Assert.assertNotNull(duration19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(periodType26); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(mutablePeriod54); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(period62); org.junit.Assert.assertNotNull(periodType63); org.junit.Assert.assertNotNull(period67); } @Test public void test0772() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0772"); org.joda.time.PeriodType periodType2 = null; org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period((long) '4', (-1L), periodType2, chronology3); org.joda.time.Period period6 = period4.minusSeconds((int) '#'); org.joda.time.Period period8 = period4.withMonths((int) (byte) -1); org.joda.time.Period period10 = period4.minusSeconds((int) (short) 10); org.joda.time.Period period12 = period10.multipliedBy((int) (short) 10); org.joda.time.Period period14 = period10.withSeconds((int) (byte) 10); org.joda.time.Duration duration15 = period14.toStandardDuration(); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Period period17 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration15, readableInstant16); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(duration15); } @Test public void test0773() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0773"); org.joda.time.Period period4 = new org.joda.time.Period(97, (int) (short) 0, 100, (int) (short) 100); org.joda.time.Period period6 = org.joda.time.Period.millis(1); org.joda.time.PeriodType periodType8 = null; org.joda.time.Chronology chronology9 = null; org.joda.time.Period period10 = new org.joda.time.Period((long) 'a', periodType8, chronology9); org.joda.time.Hours hours11 = period10.toStandardHours(); org.joda.time.Period period13 = period10.plusSeconds((int) (byte) 1); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.PeriodType periodType16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant14, readableInstant15, periodType16); org.joda.time.DurationFieldType durationFieldType19 = period17.getFieldType((int) (byte) 0); org.joda.time.Period period21 = period10.withField(durationFieldType19, 1); boolean boolean22 = period6.equals((java.lang.Object) 1); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.PeriodType periodType25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant23, readableInstant24, periodType25); org.joda.time.Period period28 = period26.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.PeriodType periodType31 = null; org.joda.time.Period period32 = new org.joda.time.Period(readableInstant29, readableInstant30, periodType31); org.joda.time.DurationFieldType durationFieldType34 = period32.getFieldType((int) (byte) 0); int int35 = period28.indexOf(durationFieldType34); org.joda.time.Period period37 = period6.withFieldAdded(durationFieldType34, (int) (short) 0); int int38 = period4.get(durationFieldType34); org.joda.time.Period period39 = period4.toPeriod(); org.joda.time.Period period41 = new org.joda.time.Period((long) (byte) -1); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Period period45 = new org.joda.time.Period(readableInstant43, readableInstant44); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.Duration duration47 = period45.toDurationFrom(readableInstant46); org.joda.time.Period period49 = period45.plusMonths(0); org.joda.time.Period period51 = period49.plusMonths((int) '#'); org.joda.time.Period period53 = period49.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType54 = period49.getPeriodType(); org.joda.time.Chronology chronology55 = null; org.joda.time.Period period56 = new org.joda.time.Period((long) (short) -1, periodType54, chronology55); org.joda.time.Period period57 = period41.minus((org.joda.time.ReadablePeriod) period56); int int58 = period41.getSeconds(); org.joda.time.Period period59 = period4.plus((org.joda.time.ReadablePeriod) period41); int int60 = period41.getDays(); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(hours11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(durationFieldType19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertTrue("'" + boolean22 + "' != '" + false + "'", boolean22 == false); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(durationFieldType34); org.junit.Assert.assertTrue("'" + int35 + "' != '" + 0 + "'", int35 == 0); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertTrue("'" + int38 + "' != '" + 0 + "'", int38 == 0); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertNotNull(duration47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertNotNull(periodType54); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertTrue("'" + int58 + "' != '" + 0 + "'", int58 == 0); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertTrue("'" + int60 + "' != '" + 0 + "'", int60 == 0); } @Test public void test0774() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0774"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) 1); int int2 = period1.getSeconds(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); } @Test public void test0775() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0775"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.PeriodType periodType5 = null; org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period((long) 'a', periodType5, chronology6); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.Period period9 = period3.withFields((org.joda.time.ReadablePeriod) period7); org.joda.time.Period period11 = period7.minusSeconds((int) ' '); org.joda.time.Chronology chronology14 = null; org.joda.time.Period period15 = new org.joda.time.Period((long) 100, (long) (-1), chronology14); org.joda.time.Period period17 = period15.plusMinutes((int) (short) 10); org.joda.time.Period period19 = period17.plusMinutes((-1)); int int20 = period19.getWeeks(); org.joda.time.Period period22 = period19.withMinutes((int) (byte) 10); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant23, readableInstant24); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Duration duration27 = period25.toDurationFrom(readableInstant26); org.joda.time.Period period29 = period25.plusMonths(0); org.joda.time.Period period31 = period29.plusMonths((int) '#'); org.joda.time.Period period33 = period29.plusMinutes((int) (short) 100); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Period period36 = new org.joda.time.Period(readableInstant34, readableInstant35); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Duration duration38 = period36.toDurationFrom(readableInstant37); org.joda.time.Period period40 = period36.plusMonths(0); org.joda.time.Period period42 = period40.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.Duration duration44 = period40.toDurationFrom(readableInstant43); org.joda.time.Period period46 = period40.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.PeriodType periodType49 = null; org.joda.time.Period period50 = new org.joda.time.Period(readableInstant47, readableInstant48, periodType49); org.joda.time.Period period52 = period50.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.PeriodType periodType55 = null; org.joda.time.Period period56 = new org.joda.time.Period(readableInstant53, readableInstant54, periodType55); org.joda.time.Period period58 = period56.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.PeriodType periodType61 = null; org.joda.time.Period period62 = new org.joda.time.Period(readableInstant59, readableInstant60, periodType61); org.joda.time.DurationFieldType durationFieldType64 = period62.getFieldType((int) (byte) 0); int int65 = period58.indexOf(durationFieldType64); int int66 = period50.get(durationFieldType64); org.joda.time.Period period68 = period40.withField(durationFieldType64, (int) (short) 0); boolean boolean69 = period33.isSupported(durationFieldType64); org.joda.time.Period period71 = period22.withField(durationFieldType64, (int) ' '); org.joda.time.Period period73 = period11.withField(durationFieldType64, 100); org.joda.time.Period period75 = period73.plusWeeks((int) (byte) -1); java.lang.String str76 = period75.toString(); org.joda.time.Period period77 = new org.joda.time.Period((java.lang.Object) str76); org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertTrue("'" + int20 + "' != '" + 0 + "'", int20 == 0); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(duration27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(duration38); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(duration44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period52); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertNotNull(durationFieldType64); org.junit.Assert.assertTrue("'" + int65 + "' != '" + 0 + "'", int65 == 0); org.junit.Assert.assertTrue("'" + int66 + "' != '" + 0 + "'", int66 == 0); org.junit.Assert.assertNotNull(period68); org.junit.Assert.assertTrue("'" + boolean69 + "' != '" + true + "'", boolean69 == true); org.junit.Assert.assertNotNull(period71); org.junit.Assert.assertNotNull(period73); org.junit.Assert.assertNotNull(period75); org.junit.Assert.assertEquals("'" + str76 + "' != '" + "P100Y-1WT-31.903S" + "'", str76, "P100Y-1WT-31.903S"); } @Test public void test0776() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0776"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period3 = org.joda.time.Period.years((int) 'a'); org.joda.time.Period period5 = org.joda.time.Period.millis(1); org.joda.time.Period period7 = period5.withWeeks((int) (short) 0); org.joda.time.Period period8 = period3.plus((org.joda.time.ReadablePeriod) period7); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period8.toDurationTo(readableInstant9); org.joda.time.Period period12 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period14 = period12.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.PeriodType periodType17 = null; org.joda.time.Period period18 = new org.joda.time.Period(readableInstant15, readableInstant16, periodType17); org.joda.time.Period period20 = period18.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.PeriodType periodType23 = null; org.joda.time.Period period24 = new org.joda.time.Period(readableInstant21, readableInstant22, periodType23); org.joda.time.DurationFieldType durationFieldType26 = period24.getFieldType((int) (byte) 0); int int27 = period20.indexOf(durationFieldType26); org.joda.time.Period period29 = period12.withFieldAdded(durationFieldType26, 1); org.joda.time.Period period31 = period29.plusSeconds((int) (byte) 1); org.joda.time.PeriodType periodType32 = period31.getPeriodType(); org.joda.time.Period period33 = new org.joda.time.Period((java.lang.Object) readableInstant9, periodType32); org.joda.time.Period period34 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType32); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.PeriodType periodType37 = null; org.joda.time.Period period38 = new org.joda.time.Period(readableInstant35, readableInstant36, periodType37); org.joda.time.MutablePeriod mutablePeriod39 = period38.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.Period period48 = new org.joda.time.Period(readableInstant46, readableInstant47); org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.PeriodType periodType51 = null; org.joda.time.Period period52 = new org.joda.time.Period(readableInstant49, readableInstant50, periodType51); org.joda.time.MutablePeriod mutablePeriod53 = period52.toMutablePeriod(); org.joda.time.Period period54 = period48.plus((org.joda.time.ReadablePeriod) period52); org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.PeriodType periodType57 = null; org.joda.time.Period period58 = new org.joda.time.Period(readableInstant55, readableInstant56, periodType57); org.joda.time.Period period60 = period58.plusMonths((int) '4'); org.joda.time.Period period61 = period52.withFields((org.joda.time.ReadablePeriod) period60); org.joda.time.PeriodType periodType62 = period60.getPeriodType(); org.joda.time.Period period63 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType62); org.joda.time.Period period64 = new org.joda.time.Period((long) 'a', (long) 10, periodType62); org.joda.time.Period period65 = new org.joda.time.Period((long) (short) 100, 100L, periodType62); org.joda.time.Period period66 = period38.withPeriodType(periodType62); java.lang.String str67 = period66.toString(); org.joda.time.Period period68 = period34.minus((org.joda.time.ReadablePeriod) period66); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(durationFieldType26); org.junit.Assert.assertTrue("'" + int27 + "' != '" + 0 + "'", int27 == 0); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(periodType32); org.junit.Assert.assertNotNull(mutablePeriod39); org.junit.Assert.assertNotNull(mutablePeriod53); org.junit.Assert.assertNotNull(period54); org.junit.Assert.assertNotNull(period60); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(periodType62); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertEquals("'" + str67 + "' != '" + "PT0S" + "'", str67, "PT0S"); org.junit.Assert.assertNotNull(period68); } @Test public void test0777() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0777"); org.joda.time.Period period2 = new org.joda.time.Period(0L, (-1L)); org.joda.time.Period period4 = period2.minusYears(100); org.joda.time.Period period5 = period4.negated(); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.PeriodType periodType8 = null; org.joda.time.Period period9 = new org.joda.time.Period(readableInstant6, readableInstant7, periodType8); org.joda.time.Period period11 = period9.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.PeriodType periodType14 = null; org.joda.time.Period period15 = new org.joda.time.Period(readableInstant12, readableInstant13, periodType14); org.joda.time.DurationFieldType durationFieldType17 = period15.getFieldType((int) (byte) 0); int int18 = period11.indexOf(durationFieldType17); org.joda.time.Period period20 = period4.withField(durationFieldType17, 10); org.joda.time.Chronology chronology22 = null; org.joda.time.Period period23 = new org.joda.time.Period(0L, chronology22); org.joda.time.Period period25 = period23.minusMillis((int) (short) 0); org.joda.time.Period period26 = period4.minus((org.joda.time.ReadablePeriod) period23); org.joda.time.format.PeriodFormatter periodFormatter27 = null; java.lang.String str28 = period4.toString(periodFormatter27); org.joda.time.Period period33 = new org.joda.time.Period(97, (int) (short) 0, 100, (int) (short) 100); org.joda.time.Period period35 = org.joda.time.Period.millis(1); org.joda.time.PeriodType periodType37 = null; org.joda.time.Chronology chronology38 = null; org.joda.time.Period period39 = new org.joda.time.Period((long) 'a', periodType37, chronology38); org.joda.time.Hours hours40 = period39.toStandardHours(); org.joda.time.Period period42 = period39.plusSeconds((int) (byte) 1); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.PeriodType periodType45 = null; org.joda.time.Period period46 = new org.joda.time.Period(readableInstant43, readableInstant44, periodType45); org.joda.time.DurationFieldType durationFieldType48 = period46.getFieldType((int) (byte) 0); org.joda.time.Period period50 = period39.withField(durationFieldType48, 1); boolean boolean51 = period35.equals((java.lang.Object) 1); org.joda.time.ReadableInstant readableInstant52 = null; org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.PeriodType periodType54 = null; org.joda.time.Period period55 = new org.joda.time.Period(readableInstant52, readableInstant53, periodType54); org.joda.time.Period period57 = period55.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant58 = null; org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.PeriodType periodType60 = null; org.joda.time.Period period61 = new org.joda.time.Period(readableInstant58, readableInstant59, periodType60); org.joda.time.DurationFieldType durationFieldType63 = period61.getFieldType((int) (byte) 0); int int64 = period57.indexOf(durationFieldType63); org.joda.time.Period period66 = period35.withFieldAdded(durationFieldType63, (int) (short) 0); int int67 = period33.get(durationFieldType63); org.joda.time.ReadableInstant readableInstant68 = null; org.joda.time.ReadableInstant readableInstant69 = null; org.joda.time.Period period70 = new org.joda.time.Period(readableInstant68, readableInstant69); org.joda.time.ReadableInstant readableInstant71 = null; org.joda.time.Duration duration72 = period70.toDurationFrom(readableInstant71); org.joda.time.Period period74 = period70.plusMonths(0); org.joda.time.Period period76 = period74.plusMonths((int) '#'); org.joda.time.Period period78 = period74.plusMinutes((int) (short) 100); org.joda.time.Period period80 = period78.minusWeeks(1); org.joda.time.DurationFieldType durationFieldType82 = period78.getFieldType((int) (byte) 0); boolean boolean83 = period33.isSupported(durationFieldType82); int int84 = period4.indexOf(durationFieldType82); org.joda.time.ReadableInstant readableInstant85 = null; org.joda.time.Duration duration86 = period4.toDurationFrom(readableInstant85); org.joda.time.Period period88 = period4.multipliedBy((int) 'a'); java.lang.Class<?> wildcardClass89 = period88.getClass(); org.junit.Assert.assertNotNull(period4); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(durationFieldType17); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertEquals("'" + str28 + "' != '" + "P-100YT0.001S" + "'", str28, "P-100YT0.001S"); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(hours40); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(durationFieldType48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertTrue("'" + boolean51 + "' != '" + false + "'", boolean51 == false); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertNotNull(durationFieldType63); org.junit.Assert.assertTrue("'" + int64 + "' != '" + 0 + "'", int64 == 0); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertTrue("'" + int67 + "' != '" + 0 + "'", int67 == 0); org.junit.Assert.assertNotNull(duration72); org.junit.Assert.assertNotNull(period74); org.junit.Assert.assertNotNull(period76); org.junit.Assert.assertNotNull(period78); org.junit.Assert.assertNotNull(period80); org.junit.Assert.assertNotNull(durationFieldType82); org.junit.Assert.assertTrue("'" + boolean83 + "' != '" + true + "'", boolean83 == true); org.junit.Assert.assertTrue("'" + int84 + "' != '" + 0 + "'", int84 == 0); org.junit.Assert.assertNotNull(duration86); org.junit.Assert.assertNotNull(period88); org.junit.Assert.assertNotNull(wildcardClass89); } @Test public void test0778() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0778"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableDuration readableDuration1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableDuration1); } @Test public void test0779() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0779"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant1, readableInstant2); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Duration duration5 = period3.toDurationFrom(readableInstant4); org.joda.time.Period period6 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration5); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant11, readableInstant12); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Duration duration15 = period13.toDurationFrom(readableInstant14); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Period period19 = new org.joda.time.Period(readableInstant17, readableInstant18); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Duration duration21 = period19.toDurationFrom(readableInstant20); org.joda.time.Period period23 = period19.plusMonths(0); org.joda.time.Period period25 = period23.plusMonths((int) '#'); org.joda.time.Period period27 = period23.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType28 = period23.getPeriodType(); org.joda.time.Chronology chronology29 = null; org.joda.time.Period period30 = new org.joda.time.Period((long) (short) -1, periodType28, chronology29); org.joda.time.Period period31 = new org.joda.time.Period(readableInstant10, (org.joda.time.ReadableDuration) duration15, periodType28); org.joda.time.Chronology chronology32 = null; org.joda.time.Period period33 = new org.joda.time.Period((long) (byte) 10, (long) 10, periodType28, chronology32); org.joda.time.Period period34 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration5, readableInstant7, periodType28); org.joda.time.Period period35 = new org.joda.time.Period((java.lang.Object) readableInstant7); org.joda.time.Period period37 = period35.minusMinutes((int) (byte) 1); org.joda.time.Period period38 = period37.toPeriod(); int int39 = period38.getMonths(); org.junit.Assert.assertNotNull(duration5); org.junit.Assert.assertNotNull(duration15); org.junit.Assert.assertNotNull(duration21); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(periodType28); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertTrue("'" + int39 + "' != '" + 0 + "'", int39 == 0); } @Test public void test0780() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0780"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.PeriodType periodType4 = null; org.joda.time.Period period5 = new org.joda.time.Period(readableInstant2, readableInstant3, periodType4); org.joda.time.Period period7 = period5.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.Duration duration9 = period5.toDurationTo(readableInstant8); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Period period11 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration9, readableInstant10); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Period period21 = new org.joda.time.Period(readableInstant19, readableInstant20); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.Duration duration23 = period21.toDurationFrom(readableInstant22); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Period period27 = new org.joda.time.Period(readableInstant25, readableInstant26); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.Duration duration29 = period27.toDurationFrom(readableInstant28); org.joda.time.Period period31 = period27.plusMonths(0); org.joda.time.Period period33 = period31.plusMonths((int) '#'); org.joda.time.Period period35 = period31.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType36 = period31.getPeriodType(); org.joda.time.Chronology chronology37 = null; org.joda.time.Period period38 = new org.joda.time.Period((long) (short) -1, periodType36, chronology37); org.joda.time.Period period39 = new org.joda.time.Period(readableInstant18, (org.joda.time.ReadableDuration) duration23, periodType36); org.joda.time.Period period40 = new org.joda.time.Period(readableInstant16, readableInstant17, periodType36); org.joda.time.Chronology chronology41 = null; org.joda.time.Period period42 = new org.joda.time.Period((long) (-100), (long) (-100), periodType36, chronology41); org.joda.time.Chronology chronology43 = null; org.joda.time.Period period44 = new org.joda.time.Period((long) 0, (long) 100, periodType36, chronology43); org.joda.time.Period period45 = period11.withPeriodType(periodType36); org.joda.time.Period period46 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType36); org.joda.time.Period period48 = period46.plusMonths((int) (short) 10); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(duration9); org.junit.Assert.assertNotNull(duration23); org.junit.Assert.assertNotNull(duration29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(periodType36); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertNotNull(period48); } @Test public void test0781() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0781"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); java.lang.String str4 = period3.toString(); org.joda.time.Period period5 = new org.joda.time.Period((java.lang.Object) str4); org.joda.time.Period period7 = period5.plusSeconds((int) 'a'); org.joda.time.Days days8 = period5.toStandardDays(); org.joda.time.Period period9 = new org.joda.time.Period((java.lang.Object) period5); org.joda.time.Chronology chronology12 = null; org.joda.time.Period period13 = new org.joda.time.Period((long) 100, (long) (-1), chronology12); org.joda.time.Period period15 = period13.withHours(0); org.joda.time.Period period17 = period13.plusSeconds(0); org.joda.time.Period period18 = period9.withFields((org.joda.time.ReadablePeriod) period17); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Duration duration20 = period9.toDurationFrom(readableInstant19); org.junit.Assert.assertEquals("'" + str4 + "' != '" + "PT0.011S" + "'", str4, "PT0.011S"); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(days8); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(duration20); } @Test public void test0782() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0782"); org.joda.time.PeriodType periodType2 = null; org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period((long) '4', (-1L), periodType2, chronology3); org.joda.time.Period period5 = period4.toPeriod(); org.joda.time.Period period7 = period5.withYears(1); org.joda.time.format.PeriodFormatter periodFormatter8 = null; java.lang.String str9 = period5.toString(periodFormatter8); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertEquals("'" + str9 + "' != '" + "PT0.053S" + "'", str9, "PT0.053S"); } @Test public void test0783() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0783"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.MutablePeriod mutablePeriod7 = period6.toMutablePeriod(); org.joda.time.Period period8 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Hours hours9 = period6.toStandardHours(); org.joda.time.Period period10 = period6.normalizedStandard(); int int11 = period10.getWeeks(); org.joda.time.Period period13 = period10.plusMinutes(52); org.junit.Assert.assertNotNull(mutablePeriod7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(hours9); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertNotNull(period13); } @Test public void test0784() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0784"); org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.PeriodType periodType3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant1, readableInstant2, periodType3); org.joda.time.Period period6 = period4.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Duration duration8 = period4.toDurationTo(readableInstant7); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Period period10 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration8, readableInstant9); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Period period20 = new org.joda.time.Period(readableInstant18, readableInstant19); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Duration duration22 = period20.toDurationFrom(readableInstant21); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant24, readableInstant25); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Duration duration28 = period26.toDurationFrom(readableInstant27); org.joda.time.Period period30 = period26.plusMonths(0); org.joda.time.Period period32 = period30.plusMonths((int) '#'); org.joda.time.Period period34 = period30.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType35 = period30.getPeriodType(); org.joda.time.Chronology chronology36 = null; org.joda.time.Period period37 = new org.joda.time.Period((long) (short) -1, periodType35, chronology36); org.joda.time.Period period38 = new org.joda.time.Period(readableInstant17, (org.joda.time.ReadableDuration) duration22, periodType35); org.joda.time.Period period39 = new org.joda.time.Period(readableInstant15, readableInstant16, periodType35); org.joda.time.Chronology chronology40 = null; org.joda.time.Period period41 = new org.joda.time.Period((long) (-100), (long) (-100), periodType35, chronology40); org.joda.time.Chronology chronology42 = null; org.joda.time.Period period43 = new org.joda.time.Period((long) 0, (long) 100, periodType35, chronology42); org.joda.time.Period period44 = period10.withPeriodType(periodType35); org.joda.time.Chronology chronology45 = null; org.joda.time.Period period46 = new org.joda.time.Period((long) (byte) 10, periodType35, chronology45); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(duration8); org.junit.Assert.assertNotNull(duration22); org.junit.Assert.assertNotNull(duration28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(periodType35); org.junit.Assert.assertNotNull(period44); } @Test public void test0785() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0785"); org.joda.time.Period period2 = new org.joda.time.Period((long) (byte) -1); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant4, readableInstant5); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Duration duration8 = period6.toDurationFrom(readableInstant7); org.joda.time.Period period10 = period6.plusMonths(0); org.joda.time.Period period12 = period10.plusMonths((int) '#'); org.joda.time.Period period14 = period10.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType15 = period10.getPeriodType(); org.joda.time.Chronology chronology16 = null; org.joda.time.Period period17 = new org.joda.time.Period((long) (short) -1, periodType15, chronology16); org.joda.time.Period period18 = period2.minus((org.joda.time.ReadablePeriod) period17); org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.Period period31 = new org.joda.time.Period(readableInstant29, readableInstant30); org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.Duration duration33 = period31.toDurationFrom(readableInstant32); org.joda.time.Period period35 = period31.plusMonths(0); org.joda.time.Period period37 = period35.plusMonths((int) '#'); org.joda.time.Period period39 = period35.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType40 = period35.getPeriodType(); org.joda.time.Chronology chronology41 = null; org.joda.time.Period period42 = new org.joda.time.Period((long) (short) -1, periodType40, chronology41); org.joda.time.Period period43 = new org.joda.time.Period(0, 1, (int) (short) 100, (-1), (int) (short) 10, 100, (int) ' ', (int) (short) 1, periodType40); org.joda.time.Period period44 = new org.joda.time.Period((long) (byte) 10, periodType40); org.joda.time.Period period45 = period17.withPeriodType(periodType40); org.joda.time.Period period46 = new org.joda.time.Period((long) 11, periodType40); int int47 = period46.getSeconds(); org.junit.Assert.assertNotNull(duration8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(periodType15); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(duration33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertNotNull(periodType40); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertTrue("'" + int47 + "' != '" + 0 + "'", int47 == 0); } @Test public void test0786() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0786"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); org.joda.time.Period period7 = period5.plusMonths(100); org.joda.time.Period period8 = period5.normalizedStandard(); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Period period21 = new org.joda.time.Period(readableInstant19, readableInstant20); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.Duration duration23 = period21.toDurationFrom(readableInstant22); org.joda.time.Period period25 = period21.plusMonths(0); org.joda.time.Period period27 = period25.plusMonths((int) '#'); org.joda.time.Period period29 = period25.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType30 = period25.getPeriodType(); org.joda.time.Chronology chronology31 = null; org.joda.time.Period period32 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType30, chronology31); org.joda.time.Period period33 = new org.joda.time.Period(readableInstant15, readableInstant16, periodType30); org.joda.time.Period period34 = new org.joda.time.Period(readableInstant13, readableInstant14, periodType30); org.joda.time.Chronology chronology35 = null; org.joda.time.Period period36 = new org.joda.time.Period((long) ' ', 0L, periodType30, chronology35); org.joda.time.Chronology chronology37 = null; org.joda.time.Period period38 = new org.joda.time.Period((long) (byte) 0, periodType30, chronology37); org.joda.time.Chronology chronology39 = null; org.joda.time.Period period40 = new org.joda.time.Period((long) 32, periodType30, chronology39); org.joda.time.Period period41 = period8.withPeriodType(periodType30); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(duration23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(periodType30); org.junit.Assert.assertNotNull(period41); } @Test public void test0787() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0787"); org.joda.time.Period period1 = org.joda.time.Period.millis(11); org.joda.time.PeriodType periodType3 = null; org.joda.time.Chronology chronology4 = null; org.joda.time.Period period5 = new org.joda.time.Period((long) 'a', periodType3, chronology4); org.joda.time.Period period7 = period5.withMinutes(0); org.joda.time.Period period9 = period7.minusSeconds((int) (short) 100); org.joda.time.Period period11 = period9.minusMinutes(100); org.joda.time.Period period13 = period11.withSeconds((int) (short) 1); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Period period16 = new org.joda.time.Period(readableInstant14, readableInstant15); org.joda.time.Period period17 = period16.normalizedStandard(); org.joda.time.Period period19 = period16.withWeeks(1); org.joda.time.PeriodType periodType21 = null; org.joda.time.Chronology chronology22 = null; org.joda.time.Period period23 = new org.joda.time.Period((long) 'a', periodType21, chronology22); org.joda.time.Period period25 = period23.withMinutes(0); org.joda.time.Period period26 = period16.minus((org.joda.time.ReadablePeriod) period25); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.Period period29 = new org.joda.time.Period(readableInstant27, readableInstant28); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.Duration duration31 = period29.toDurationFrom(readableInstant30); org.joda.time.Period period33 = period29.plusMonths(0); org.joda.time.Period period35 = period29.plusWeeks((int) ' '); org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Period period38 = new org.joda.time.Period(readableInstant36, readableInstant37); org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Duration duration40 = period38.toDurationFrom(readableInstant39); org.joda.time.Period period42 = period38.plusMonths(0); org.joda.time.Period period44 = period42.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.Duration duration46 = period42.toDurationFrom(readableInstant45); org.joda.time.Period period48 = period42.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.PeriodType periodType51 = null; org.joda.time.Period period52 = new org.joda.time.Period(readableInstant49, readableInstant50, periodType51); org.joda.time.Period period54 = period52.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.PeriodType periodType57 = null; org.joda.time.Period period58 = new org.joda.time.Period(readableInstant55, readableInstant56, periodType57); org.joda.time.Period period60 = period58.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.PeriodType periodType63 = null; org.joda.time.Period period64 = new org.joda.time.Period(readableInstant61, readableInstant62, periodType63); org.joda.time.DurationFieldType durationFieldType66 = period64.getFieldType((int) (byte) 0); int int67 = period60.indexOf(durationFieldType66); int int68 = period52.get(durationFieldType66); org.joda.time.Period period70 = period42.withField(durationFieldType66, (int) (short) 0); int int71 = period35.indexOf(durationFieldType66); org.joda.time.Period period73 = period25.withField(durationFieldType66, (int) (short) 0); org.joda.time.Period period75 = period13.withField(durationFieldType66, 8); int int76 = period1.indexOf(durationFieldType66); org.joda.time.Days days77 = period1.toStandardDays(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(duration31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(duration40); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(duration46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period54); org.junit.Assert.assertNotNull(period60); org.junit.Assert.assertNotNull(durationFieldType66); org.junit.Assert.assertTrue("'" + int67 + "' != '" + 0 + "'", int67 == 0); org.junit.Assert.assertTrue("'" + int68 + "' != '" + 0 + "'", int68 == 0); org.junit.Assert.assertNotNull(period70); org.junit.Assert.assertTrue("'" + int71 + "' != '" + 0 + "'", int71 == 0); org.junit.Assert.assertNotNull(period73); org.junit.Assert.assertNotNull(period75); org.junit.Assert.assertTrue("'" + int76 + "' != '" + 0 + "'", int76 == 0); org.junit.Assert.assertNotNull(days77); } @Test public void test0788() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0788"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period(100L, chronology1); org.joda.time.PeriodType periodType4 = null; org.joda.time.Chronology chronology5 = null; org.joda.time.Period period6 = new org.joda.time.Period((long) 'a', periodType4, chronology5); org.joda.time.PeriodType periodType8 = null; org.joda.time.Chronology chronology9 = null; org.joda.time.Period period10 = new org.joda.time.Period((long) 'a', periodType8, chronology9); org.joda.time.Hours hours11 = period10.toStandardHours(); org.joda.time.Period period12 = period6.withFields((org.joda.time.ReadablePeriod) period10); org.joda.time.Period period14 = period6.withYears(10); org.joda.time.Period period15 = period2.plus((org.joda.time.ReadablePeriod) period6); int int16 = period2.getMonths(); org.joda.time.Period period18 = period2.plusMillis(1); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant20, readableInstant21); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Duration duration24 = period22.toDurationFrom(readableInstant23); org.joda.time.Period period26 = period22.plusMonths(0); org.joda.time.Period period28 = period26.plusMonths((int) '#'); org.joda.time.Period period30 = period26.plusMinutes((int) (short) 100); org.joda.time.Period period32 = period30.withWeeks((int) ' '); org.joda.time.PeriodType periodType33 = null; org.joda.time.Period period34 = new org.joda.time.Period((java.lang.Object) period30, periodType33); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Duration duration36 = period30.toDurationTo(readableInstant35); org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.ReadableInstant readableInstant40 = null; org.joda.time.PeriodType periodType41 = null; org.joda.time.Period period42 = new org.joda.time.Period(readableInstant39, readableInstant40, periodType41); org.joda.time.Period period44 = period42.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.Duration duration46 = period42.toDurationTo(readableInstant45); org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.Period period48 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration46, readableInstant47); org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.ReadableInstant readableInstant57 = null; org.joda.time.Period period58 = new org.joda.time.Period(readableInstant56, readableInstant57); org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.Duration duration60 = period58.toDurationFrom(readableInstant59); org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.Period period64 = new org.joda.time.Period(readableInstant62, readableInstant63); org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.Duration duration66 = period64.toDurationFrom(readableInstant65); org.joda.time.Period period68 = period64.plusMonths(0); org.joda.time.Period period70 = period68.plusMonths((int) '#'); org.joda.time.Period period72 = period68.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType73 = period68.getPeriodType(); org.joda.time.Chronology chronology74 = null; org.joda.time.Period period75 = new org.joda.time.Period((long) (short) -1, periodType73, chronology74); org.joda.time.Period period76 = new org.joda.time.Period(readableInstant55, (org.joda.time.ReadableDuration) duration60, periodType73); org.joda.time.Period period77 = new org.joda.time.Period(readableInstant53, readableInstant54, periodType73); org.joda.time.Chronology chronology78 = null; org.joda.time.Period period79 = new org.joda.time.Period((long) (-100), (long) (-100), periodType73, chronology78); org.joda.time.Chronology chronology80 = null; org.joda.time.Period period81 = new org.joda.time.Period((long) 0, (long) 100, periodType73, chronology80); org.joda.time.Period period82 = period48.withPeriodType(periodType73); org.joda.time.Chronology chronology83 = null; org.joda.time.Period period84 = new org.joda.time.Period((long) (byte) 10, (long) '4', periodType73, chronology83); org.joda.time.Period period85 = new org.joda.time.Period(readableInstant19, (org.joda.time.ReadableDuration) duration36, periodType73); org.joda.time.Period period86 = period18.withPeriodType(periodType73); org.joda.time.DurationFieldType[] durationFieldTypeArray87 = period18.getFieldTypes(); org.junit.Assert.assertNotNull(hours11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(duration24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(duration36); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(duration46); org.junit.Assert.assertNotNull(duration60); org.junit.Assert.assertNotNull(duration66); org.junit.Assert.assertNotNull(period68); org.junit.Assert.assertNotNull(period70); org.junit.Assert.assertNotNull(period72); org.junit.Assert.assertNotNull(periodType73); org.junit.Assert.assertNotNull(period82); org.junit.Assert.assertNotNull(period86); org.junit.Assert.assertNotNull(durationFieldTypeArray87); } @Test public void test0789() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0789"); org.joda.time.Period period8 = new org.joda.time.Period(10, (int) (byte) 100, 52, (int) (byte) 100, (int) (short) 10, (int) (byte) -1, (int) '4', (-100)); java.lang.String str9 = period8.toString(); org.junit.Assert.assertEquals("'" + str9 + "' != '" + "P10Y100M52W100DT10H-1M51.900S" + "'", str9, "P10Y100M52W100DT10H-1M51.900S"); } @Test public void test0790() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0790"); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.PeriodType periodType7 = null; org.joda.time.Period period8 = new org.joda.time.Period(readableInstant5, readableInstant6, periodType7); org.joda.time.MutablePeriod mutablePeriod9 = period8.toMutablePeriod(); org.joda.time.Period period10 = period4.plus((org.joda.time.ReadablePeriod) period8); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant11, readableInstant12, periodType13); org.joda.time.Period period16 = period14.plusMonths((int) '4'); org.joda.time.Period period17 = period8.withFields((org.joda.time.ReadablePeriod) period16); org.joda.time.PeriodType periodType18 = period16.getPeriodType(); org.joda.time.Period period19 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType18); org.joda.time.Period period20 = period19.toPeriod(); org.junit.Assert.assertNotNull(mutablePeriod9); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(periodType18); org.junit.Assert.assertNotNull(period20); } @Test public void test0791() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0791"); org.joda.time.Chronology chronology4 = null; org.joda.time.Period period5 = new org.joda.time.Period((long) 100, (long) (-1), chronology4); org.joda.time.Period period7 = period5.plusMinutes((int) (short) 10); org.joda.time.Period period9 = period7.plusMinutes((-1)); int int10 = period9.getWeeks(); org.joda.time.Period period12 = period9.withMinutes((int) (byte) 10); org.joda.time.PeriodType periodType13 = period12.getPeriodType(); org.joda.time.Period period14 = new org.joda.time.Period((long) 52, (long) 1, periodType13); org.joda.time.Period period16 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period18 = period16.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.PeriodType periodType21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant19, readableInstant20, periodType21); org.joda.time.Period period24 = period22.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.PeriodType periodType27 = null; org.joda.time.Period period28 = new org.joda.time.Period(readableInstant25, readableInstant26, periodType27); org.joda.time.DurationFieldType durationFieldType30 = period28.getFieldType((int) (byte) 0); int int31 = period24.indexOf(durationFieldType30); org.joda.time.Period period33 = period16.withFieldAdded(durationFieldType30, 1); org.joda.time.Period period35 = period33.plusSeconds((int) (byte) 1); org.joda.time.PeriodType periodType36 = period35.getPeriodType(); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.PeriodType periodType39 = null; org.joda.time.Period period40 = new org.joda.time.Period(readableInstant37, readableInstant38, periodType39); org.joda.time.Period period42 = period40.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.PeriodType periodType45 = null; org.joda.time.Period period46 = new org.joda.time.Period(readableInstant43, readableInstant44, periodType45); org.joda.time.Period period48 = period46.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.PeriodType periodType51 = null; org.joda.time.Period period52 = new org.joda.time.Period(readableInstant49, readableInstant50, periodType51); org.joda.time.DurationFieldType durationFieldType54 = period52.getFieldType((int) (byte) 0); int int55 = period48.indexOf(durationFieldType54); int int56 = period40.get(durationFieldType54); org.joda.time.Period period58 = period35.withFieldAdded(durationFieldType54, (int) (short) 0); org.joda.time.Period period60 = period14.withField(durationFieldType54, (int) ' '); int int61 = period14.getWeeks(); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(periodType13); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(durationFieldType30); org.junit.Assert.assertTrue("'" + int31 + "' != '" + 0 + "'", int31 == 0); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(periodType36); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(durationFieldType54); org.junit.Assert.assertTrue("'" + int55 + "' != '" + 0 + "'", int55 == 0); org.junit.Assert.assertTrue("'" + int56 + "' != '" + 0 + "'", int56 == 0); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertNotNull(period60); org.junit.Assert.assertTrue("'" + int61 + "' != '" + 0 + "'", int61 == 0); } @Test public void test0792() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0792"); org.joda.time.ReadablePartial readablePartial0 = null; org.joda.time.ReadablePartial readablePartial1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.Period period4 = org.joda.time.Period.months((int) (short) -1); org.joda.time.PeriodType periodType6 = null; org.joda.time.Chronology chronology7 = null; org.joda.time.Period period8 = new org.joda.time.Period((long) 'a', periodType6, chronology7); org.joda.time.DurationFieldType durationFieldType9 = null; int int10 = period8.get(durationFieldType9); org.joda.time.Period period11 = period4.withFields((org.joda.time.ReadablePeriod) period8); org.joda.time.Period period13 = period4.minusSeconds((int) 'a'); org.joda.time.DurationFieldType[] durationFieldTypeArray14 = period13.getFieldTypes(); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Duration duration16 = period13.toDurationTo(readableInstant15); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.PeriodType periodType19 = null; org.joda.time.Period period20 = new org.joda.time.Period(readableInstant17, readableInstant18, periodType19); org.joda.time.Period period22 = period20.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Duration duration24 = period20.toDurationTo(readableInstant23); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Period period26 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration24, readableInstant25); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant28, readableInstant29); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.PeriodType periodType33 = null; org.joda.time.Period period34 = new org.joda.time.Period(readableInstant31, readableInstant32, periodType33); org.joda.time.MutablePeriod mutablePeriod35 = period34.toMutablePeriod(); org.joda.time.Period period36 = period30.plus((org.joda.time.ReadablePeriod) period34); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.PeriodType periodType39 = null; org.joda.time.Period period40 = new org.joda.time.Period(readableInstant37, readableInstant38, periodType39); org.joda.time.Period period42 = period40.plusMonths((int) '4'); org.joda.time.Period period43 = period34.withFields((org.joda.time.ReadablePeriod) period42); org.joda.time.PeriodType periodType47 = null; org.joda.time.Chronology chronology48 = null; org.joda.time.Period period49 = new org.joda.time.Period((long) 'a', periodType47, chronology48); org.joda.time.PeriodType periodType51 = null; org.joda.time.Chronology chronology52 = null; org.joda.time.Period period53 = new org.joda.time.Period((long) 'a', periodType51, chronology52); org.joda.time.Hours hours54 = period53.toStandardHours(); org.joda.time.Period period55 = period49.withFields((org.joda.time.ReadablePeriod) period53); org.joda.time.Period period57 = period49.withYears(10); org.joda.time.Period period58 = period57.toPeriod(); org.joda.time.Period period60 = period57.plusMillis(1); org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.ReadableInstant readableInstant63 = null; org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.Period period65 = new org.joda.time.Period(readableInstant63, readableInstant64); org.joda.time.ReadableInstant readableInstant66 = null; org.joda.time.Duration duration67 = period65.toDurationFrom(readableInstant66); org.joda.time.ReadableInstant readableInstant69 = null; org.joda.time.ReadableInstant readableInstant70 = null; org.joda.time.Period period71 = new org.joda.time.Period(readableInstant69, readableInstant70); org.joda.time.ReadableInstant readableInstant72 = null; org.joda.time.Duration duration73 = period71.toDurationFrom(readableInstant72); org.joda.time.Period period75 = period71.plusMonths(0); org.joda.time.Period period77 = period75.plusMonths((int) '#'); org.joda.time.Period period79 = period75.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType80 = period75.getPeriodType(); org.joda.time.Chronology chronology81 = null; org.joda.time.Period period82 = new org.joda.time.Period((long) (short) -1, periodType80, chronology81); org.joda.time.Period period83 = new org.joda.time.Period(readableInstant62, (org.joda.time.ReadableDuration) duration67, periodType80); org.joda.time.Chronology chronology84 = null; org.joda.time.Period period85 = new org.joda.time.Period((long) (byte) 0, periodType80, chronology84); org.joda.time.Period period86 = period60.normalizedStandard(periodType80); org.joda.time.Chronology chronology87 = null; org.joda.time.Period period88 = new org.joda.time.Period(0L, (long) 8, periodType80, chronology87); org.joda.time.Period period89 = new org.joda.time.Period((java.lang.Object) period34, periodType80); org.joda.time.Period period90 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration24, readableInstant27, periodType80); org.joda.time.Period period91 = new org.joda.time.Period(readableInstant2, (org.joda.time.ReadableDuration) duration16, periodType80); // The following exception was thrown during execution in test generation try { org.joda.time.Period period92 = new org.joda.time.Period(readablePartial0, readablePartial1, periodType80); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: ReadablePartial objects must not be null"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(period4); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(durationFieldTypeArray14); org.junit.Assert.assertNotNull(duration16); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(duration24); org.junit.Assert.assertNotNull(mutablePeriod35); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(hours54); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertNotNull(period60); org.junit.Assert.assertNotNull(duration67); org.junit.Assert.assertNotNull(duration73); org.junit.Assert.assertNotNull(period75); org.junit.Assert.assertNotNull(period77); org.junit.Assert.assertNotNull(period79); org.junit.Assert.assertNotNull(periodType80); org.junit.Assert.assertNotNull(period86); } @Test public void test0793() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0793"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); java.lang.String str4 = period3.toString(); org.joda.time.Period period5 = new org.joda.time.Period((java.lang.Object) str4); org.joda.time.Period period7 = period5.plusSeconds((int) 'a'); org.joda.time.Period period9 = period5.plusYears((int) (byte) 0); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Period period16 = new org.joda.time.Period(readableInstant14, readableInstant15); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.Duration duration18 = period16.toDurationFrom(readableInstant17); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant20, readableInstant21); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Duration duration24 = period22.toDurationFrom(readableInstant23); org.joda.time.Period period26 = period22.plusMonths(0); org.joda.time.Period period28 = period26.plusMonths((int) '#'); org.joda.time.Period period30 = period26.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType31 = period26.getPeriodType(); org.joda.time.Chronology chronology32 = null; org.joda.time.Period period33 = new org.joda.time.Period((long) (short) -1, periodType31, chronology32); org.joda.time.Period period34 = new org.joda.time.Period(readableInstant13, (org.joda.time.ReadableDuration) duration18, periodType31); org.joda.time.Period period35 = new org.joda.time.Period(readableInstant11, readableInstant12, periodType31); org.joda.time.Chronology chronology36 = null; org.joda.time.Period period37 = new org.joda.time.Period(100L, periodType31, chronology36); org.joda.time.Period period38 = period9.withPeriodType(periodType31); org.joda.time.Period period40 = period9.minusMillis((int) '#'); java.lang.String str41 = period40.toString(); org.junit.Assert.assertEquals("'" + str4 + "' != '" + "PT0.011S" + "'", str4, "PT0.011S"); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(duration18); org.junit.Assert.assertNotNull(duration24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(periodType31); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertEquals("'" + str41 + "' != '" + "PT0.024S" + "'", str41, "PT0.024S"); } @Test public void test0794() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0794"); org.joda.time.Period period1 = new org.joda.time.Period((long) (-100)); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Period period5 = new org.joda.time.Period(readableInstant3, readableInstant4); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Duration duration7 = period5.toDurationFrom(readableInstant6); org.joda.time.Period period8 = new org.joda.time.Period(readableInstant2, (org.joda.time.ReadableDuration) duration7); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Period period15 = new org.joda.time.Period(readableInstant13, readableInstant14); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Duration duration17 = period15.toDurationFrom(readableInstant16); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Period period21 = new org.joda.time.Period(readableInstant19, readableInstant20); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.Duration duration23 = period21.toDurationFrom(readableInstant22); org.joda.time.Period period25 = period21.plusMonths(0); org.joda.time.Period period27 = period25.plusMonths((int) '#'); org.joda.time.Period period29 = period25.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType30 = period25.getPeriodType(); org.joda.time.Chronology chronology31 = null; org.joda.time.Period period32 = new org.joda.time.Period((long) (short) -1, periodType30, chronology31); org.joda.time.Period period33 = new org.joda.time.Period(readableInstant12, (org.joda.time.ReadableDuration) duration17, periodType30); org.joda.time.Chronology chronology34 = null; org.joda.time.Period period35 = new org.joda.time.Period((long) (byte) 10, (long) 10, periodType30, chronology34); org.joda.time.Period period36 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration7, readableInstant9, periodType30); org.joda.time.Period period37 = period1.withPeriodType(periodType30); org.joda.time.Chronology chronology38 = null; // The following exception was thrown during execution in test generation try { org.joda.time.Period period39 = new org.joda.time.Period((java.lang.Object) periodType30, chronology38); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: No period converter found for type: org.joda.time.PeriodType"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(duration7); org.junit.Assert.assertNotNull(duration17); org.junit.Assert.assertNotNull(duration23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(periodType30); org.junit.Assert.assertNotNull(period37); } @Test public void test0795() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0795"); org.joda.time.PeriodType periodType2 = null; org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period((long) '#', (long) '4', periodType2, chronology3); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.Period period9 = new org.joda.time.Period(readableInstant7, readableInstant8); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Duration duration11 = period9.toDurationFrom(readableInstant10); org.joda.time.Period period13 = period9.plusMonths(0); org.joda.time.Period period15 = period13.plusMonths((int) '#'); org.joda.time.Period period17 = period13.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType18 = period13.getPeriodType(); org.joda.time.Chronology chronology19 = null; org.joda.time.Period period20 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType18, chronology19); org.joda.time.Period period21 = period4.normalizedStandard(periodType18); int int22 = period21.getMillis(); org.junit.Assert.assertNotNull(duration11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(periodType18); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertTrue("'" + int22 + "' != '" + 17 + "'", int22 == 17); } @Test public void test0796() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0796"); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.PeriodType periodType7 = null; org.joda.time.Period period8 = new org.joda.time.Period(readableInstant5, readableInstant6, periodType7); org.joda.time.MutablePeriod mutablePeriod9 = period8.toMutablePeriod(); org.joda.time.Period period10 = period4.plus((org.joda.time.ReadablePeriod) period8); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant11, readableInstant12, periodType13); org.joda.time.Period period16 = period14.plusMonths((int) '4'); org.joda.time.Period period17 = period8.withFields((org.joda.time.ReadablePeriod) period16); org.joda.time.PeriodType periodType18 = period16.getPeriodType(); org.joda.time.Chronology chronology19 = null; org.joda.time.Period period20 = new org.joda.time.Period((-1L), (long) 98, periodType18, chronology19); org.joda.time.Chronology chronology23 = null; org.joda.time.Period period24 = new org.joda.time.Period((long) 100, (long) (-1), chronology23); org.joda.time.Period period26 = period24.plusMinutes((int) (short) 10); org.joda.time.Period period28 = period26.plusMinutes((-1)); int int29 = period28.getWeeks(); org.joda.time.Period period31 = period28.withMinutes((int) (byte) 10); org.joda.time.DurationFieldType durationFieldType33 = period31.getFieldType(0); org.joda.time.Period period35 = period20.withField(durationFieldType33, (-3)); org.joda.time.Period period37 = period20.minusDays((int) (byte) 1); org.junit.Assert.assertNotNull(mutablePeriod9); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(periodType18); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertTrue("'" + int29 + "' != '" + 0 + "'", int29 == 0); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(durationFieldType33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(period37); } @Test public void test0797() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0797"); org.joda.time.Period period8 = new org.joda.time.Period(8, (int) (short) 100, 10, 8, (int) 'a', (int) (short) 100, (int) ' ', 0); int int9 = period8.size(); org.joda.time.Period period11 = period8.withYears((int) ' '); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Duration duration13 = period11.toDurationFrom(readableInstant12); org.joda.time.Period period15 = period11.withMonths((int) '4'); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 8 + "'", int9 == 8); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(duration13); org.junit.Assert.assertNotNull(period15); } @Test public void test0798() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0798"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.PeriodType periodType12 = null; org.joda.time.Period period13 = new org.joda.time.Period((-1), 0, (int) '#', (int) (short) 10, (int) (short) 0, 10, (int) (short) 1, (int) (byte) 10, periodType12); org.joda.time.Period period14 = period3.withFields((org.joda.time.ReadablePeriod) period13); org.joda.time.Period period16 = period14.minusMonths((int) (short) 100); org.joda.time.Period period18 = period16.withMillis((int) '4'); org.joda.time.Period period20 = period18.minusHours((-100)); org.joda.time.Period period22 = period18.withWeeks((int) (byte) 0); org.joda.time.MutablePeriod mutablePeriod23 = period22.toMutablePeriod(); int int24 = period22.getHours(); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(mutablePeriod23); org.junit.Assert.assertTrue("'" + int24 + "' != '" + 0 + "'", int24 == 0); } @Test public void test0799() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0799"); org.joda.time.Period period4 = new org.joda.time.Period((int) (byte) 100, (int) (byte) -1, 10, 97); org.joda.time.Period period6 = period4.plusMinutes((int) (short) 1); org.junit.Assert.assertNotNull(period6); } @Test public void test0800() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0800"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Period period11 = period9.withMinutes(0); org.joda.time.Period period12 = period2.minus((org.joda.time.ReadablePeriod) period11); org.joda.time.Period period14 = period11.minusMillis((int) ' '); org.joda.time.PeriodType periodType16 = null; org.joda.time.Chronology chronology17 = null; org.joda.time.Period period18 = new org.joda.time.Period((long) 'a', periodType16, chronology17); org.joda.time.PeriodType periodType20 = null; org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) 'a', periodType20, chronology21); org.joda.time.Hours hours23 = period22.toStandardHours(); org.joda.time.Period period24 = period18.withFields((org.joda.time.ReadablePeriod) period22); org.joda.time.Period period26 = period18.withYears(10); org.joda.time.Period period27 = period26.toPeriod(); org.joda.time.Period period29 = period26.plusMillis(1); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Period period34 = new org.joda.time.Period(readableInstant32, readableInstant33); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Duration duration36 = period34.toDurationFrom(readableInstant35); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Period period40 = new org.joda.time.Period(readableInstant38, readableInstant39); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.Duration duration42 = period40.toDurationFrom(readableInstant41); org.joda.time.Period period44 = period40.plusMonths(0); org.joda.time.Period period46 = period44.plusMonths((int) '#'); org.joda.time.Period period48 = period44.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType49 = period44.getPeriodType(); org.joda.time.Chronology chronology50 = null; org.joda.time.Period period51 = new org.joda.time.Period((long) (short) -1, periodType49, chronology50); org.joda.time.Period period52 = new org.joda.time.Period(readableInstant31, (org.joda.time.ReadableDuration) duration36, periodType49); org.joda.time.Chronology chronology53 = null; org.joda.time.Period period54 = new org.joda.time.Period((long) (byte) 0, periodType49, chronology53); org.joda.time.Period period55 = period29.normalizedStandard(periodType49); org.joda.time.Period period56 = period11.normalizedStandard(periodType49); int int57 = period56.getMonths(); org.joda.time.Period period59 = period56.withMonths((int) (short) 1); java.lang.Class<?> wildcardClass60 = period56.getClass(); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(hours23); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(duration36); org.junit.Assert.assertNotNull(duration42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(periodType49); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertNotNull(period56); org.junit.Assert.assertTrue("'" + int57 + "' != '" + 0 + "'", int57 == 0); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(wildcardClass60); } @Test public void test0801() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0801"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant1, readableInstant2); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Duration duration5 = period3.toDurationFrom(readableInstant4); org.joda.time.Period period6 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration5); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Period period9 = org.joda.time.Period.years((int) 'a'); org.joda.time.Period period11 = org.joda.time.Period.millis(1); org.joda.time.Period period13 = period11.withWeeks((int) (short) 0); org.joda.time.Period period14 = period9.plus((org.joda.time.ReadablePeriod) period13); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Duration duration16 = period14.toDurationTo(readableInstant15); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.Period period18 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration16, readableInstant17); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Chronology chronology23 = null; org.joda.time.Period period24 = new org.joda.time.Period((long) (short) 10, chronology23); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Duration duration26 = period24.toDurationFrom(readableInstant25); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.Period period29 = new org.joda.time.Period(readableInstant27, readableInstant28); org.joda.time.Period period30 = period29.normalizedStandard(); org.joda.time.Period period32 = period29.plusMinutes((int) ' '); org.joda.time.Period period33 = period32.normalizedStandard(); org.joda.time.Period period34 = new org.joda.time.Period((java.lang.Object) period33); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Period period38 = new org.joda.time.Period(readableInstant36, readableInstant37); org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Duration duration40 = period38.toDurationFrom(readableInstant39); org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.Period period44 = new org.joda.time.Period(readableInstant42, readableInstant43); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.Duration duration46 = period44.toDurationFrom(readableInstant45); org.joda.time.Period period48 = period44.plusMonths(0); org.joda.time.Period period50 = period48.plusMonths((int) '#'); org.joda.time.Period period52 = period48.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType53 = period48.getPeriodType(); org.joda.time.Chronology chronology54 = null; org.joda.time.Period period55 = new org.joda.time.Period((long) (short) -1, periodType53, chronology54); org.joda.time.Period period56 = new org.joda.time.Period(readableInstant35, (org.joda.time.ReadableDuration) duration40, periodType53); org.joda.time.Period period57 = period34.withPeriodType(periodType53); org.joda.time.Chronology chronology58 = null; org.joda.time.Period period59 = new org.joda.time.Period((java.lang.Object) period24, periodType53, chronology58); org.joda.time.Chronology chronology60 = null; org.joda.time.Period period61 = new org.joda.time.Period((long) (short) 10, (long) 10, periodType53, chronology60); org.joda.time.Period period62 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration16, readableInstant19, periodType53); org.joda.time.Period period63 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration5, readableInstant7, periodType53); org.junit.Assert.assertNotNull(duration5); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(duration16); org.junit.Assert.assertNotNull(duration26); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(duration40); org.junit.Assert.assertNotNull(duration46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(period52); org.junit.Assert.assertNotNull(periodType53); org.junit.Assert.assertNotNull(period57); } @Test public void test0802() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0802"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant1, readableInstant2); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Duration duration5 = period3.toDurationFrom(readableInstant4); org.joda.time.Period period7 = period3.plusMonths(0); org.joda.time.Period period9 = period7.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Duration duration11 = period7.toDurationFrom(readableInstant10); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Period period15 = new org.joda.time.Period(readableInstant13, readableInstant14); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.PeriodType periodType18 = null; org.joda.time.Period period19 = new org.joda.time.Period(readableInstant16, readableInstant17, periodType18); org.joda.time.MutablePeriod mutablePeriod20 = period19.toMutablePeriod(); org.joda.time.Period period21 = period15.plus((org.joda.time.ReadablePeriod) period19); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.PeriodType periodType24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant22, readableInstant23, periodType24); org.joda.time.Period period27 = period25.plusMonths((int) '4'); org.joda.time.Period period28 = period19.withFields((org.joda.time.ReadablePeriod) period27); org.joda.time.PeriodType periodType29 = period27.getPeriodType(); org.joda.time.Period period30 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration11, readableInstant12, periodType29); org.joda.time.Chronology chronology33 = null; org.joda.time.Period period34 = new org.joda.time.Period((long) 100, (long) (-1), chronology33); org.joda.time.Period period36 = period34.plusMinutes((int) (short) 10); org.joda.time.Period period38 = period36.plusMinutes((-1)); int int39 = period38.getWeeks(); org.joda.time.Period period41 = period38.withMinutes((int) (byte) 10); org.joda.time.Period period42 = period41.negated(); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Period period45 = new org.joda.time.Period(readableInstant43, readableInstant44); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.Duration duration47 = period45.toDurationFrom(readableInstant46); org.joda.time.Period period49 = period45.plusMonths(0); org.joda.time.Period period51 = period45.plusWeeks((int) ' '); org.joda.time.Period period53 = period45.plusMinutes((-1)); org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.Period period61 = new org.joda.time.Period(readableInstant59, readableInstant60); org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.Duration duration63 = period61.toDurationFrom(readableInstant62); org.joda.time.Period period65 = period61.plusMonths(0); org.joda.time.Period period67 = period65.plusMonths((int) '#'); org.joda.time.Period period69 = period65.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType70 = period65.getPeriodType(); org.joda.time.Chronology chronology71 = null; org.joda.time.Period period72 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType70, chronology71); org.joda.time.Period period73 = new org.joda.time.Period(readableInstant55, readableInstant56, periodType70); org.joda.time.Chronology chronology74 = null; org.joda.time.Period period75 = new org.joda.time.Period((long) (-100), periodType70, chronology74); org.joda.time.Period period76 = period53.withPeriodType(periodType70); org.joda.time.Chronology chronology77 = null; org.joda.time.Period period78 = new org.joda.time.Period((java.lang.Object) period41, periodType70, chronology77); org.joda.time.Period period79 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration11, periodType70); org.joda.time.Period period81 = period79.minusMinutes((int) ' '); org.junit.Assert.assertNotNull(duration5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(duration11); org.junit.Assert.assertNotNull(mutablePeriod20); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(periodType29); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertTrue("'" + int39 + "' != '" + 0 + "'", int39 == 0); org.junit.Assert.assertNotNull(period41); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(duration47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertNotNull(duration63); org.junit.Assert.assertNotNull(period65); org.junit.Assert.assertNotNull(period67); org.junit.Assert.assertNotNull(period69); org.junit.Assert.assertNotNull(periodType70); org.junit.Assert.assertNotNull(period76); org.junit.Assert.assertNotNull(period81); } @Test public void test0803() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0803"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); // The following exception was thrown during execution in test generation try { int int7 = period2.getValue((int) '#'); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: 35"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); } @Test public void test0804() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0804"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (byte) 0); org.junit.Assert.assertNotNull(period1); } @Test public void test0805() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0805"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); org.joda.time.Period period12 = period10.minusWeeks(1); org.joda.time.DurationFieldType durationFieldType14 = period10.getFieldType((int) (byte) 0); java.lang.String str15 = period10.toString(); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Duration duration17 = period10.toDurationFrom(readableInstant16); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Period period20 = new org.joda.time.Period(readableInstant18, readableInstant19); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.PeriodType periodType23 = null; org.joda.time.Period period24 = new org.joda.time.Period(readableInstant21, readableInstant22, periodType23); org.joda.time.MutablePeriod mutablePeriod25 = period24.toMutablePeriod(); org.joda.time.Period period26 = period20.plus((org.joda.time.ReadablePeriod) period24); org.joda.time.Period period28 = period24.withMonths((int) (byte) 0); org.joda.time.Period period30 = period28.minusSeconds((-1)); org.joda.time.Period period32 = period30.minusHours((-1)); org.joda.time.Period period34 = period32.minusDays(100); org.joda.time.Period period36 = period32.minusMinutes((int) '4'); java.lang.Object obj37 = null; boolean boolean38 = period36.equals(obj37); boolean boolean39 = period10.equals(obj37); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(durationFieldType14); org.junit.Assert.assertEquals("'" + str15 + "' != '" + "PT100M" + "'", str15, "PT100M"); org.junit.Assert.assertNotNull(duration17); org.junit.Assert.assertNotNull(mutablePeriod25); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertTrue("'" + boolean38 + "' != '" + false + "'", boolean38 == false); org.junit.Assert.assertTrue("'" + boolean39 + "' != '" + false + "'", boolean39 == false); } @Test public void test0806() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0806"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.Period period5 = period3.minusMillis((int) '4'); org.joda.time.Period period7 = period5.minusMinutes((int) (short) 100); org.joda.time.Period period9 = period5.withHours((int) (byte) 10); int int10 = period9.getDays(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); } @Test public void test0807() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0807"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant5, readableInstant6); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.PeriodType periodType10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant8, readableInstant9, periodType10); org.joda.time.MutablePeriod mutablePeriod12 = period11.toMutablePeriod(); org.joda.time.Period period13 = period7.plus((org.joda.time.ReadablePeriod) period11); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.PeriodType periodType16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant14, readableInstant15, periodType16); org.joda.time.Period period19 = period17.plusMonths((int) '4'); org.joda.time.Period period20 = period11.withFields((org.joda.time.ReadablePeriod) period19); org.joda.time.PeriodType periodType21 = period19.getPeriodType(); org.joda.time.Period period22 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType21); org.joda.time.Weeks weeks23 = period22.toStandardWeeks(); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Duration duration25 = period22.toDurationFrom(readableInstant24); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant28, readableInstant29); org.joda.time.Period period31 = period30.normalizedStandard(); org.joda.time.Period period33 = period31.withMinutes((-1)); org.joda.time.PeriodType periodType34 = null; org.joda.time.Period period35 = period33.normalizedStandard(periodType34); org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.Period period44 = new org.joda.time.Period(readableInstant42, readableInstant43); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.Duration duration46 = period44.toDurationFrom(readableInstant45); org.joda.time.Period period48 = period44.plusMonths(0); org.joda.time.Period period50 = period48.plusMonths((int) '#'); org.joda.time.Period period52 = period48.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType53 = period48.getPeriodType(); org.joda.time.Chronology chronology54 = null; org.joda.time.Period period55 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType53, chronology54); org.joda.time.Period period56 = new org.joda.time.Period(readableInstant38, readableInstant39, periodType53); org.joda.time.Period period57 = new org.joda.time.Period(readableInstant36, readableInstant37, periodType53); org.joda.time.Chronology chronology58 = null; org.joda.time.Period period59 = new org.joda.time.Period((java.lang.Object) periodType34, periodType53, chronology58); org.joda.time.Period period60 = new org.joda.time.Period(readableInstant26, readableInstant27, periodType53); org.joda.time.Period period61 = new org.joda.time.Period(readableInstant2, (org.joda.time.ReadableDuration) duration25, periodType53); org.joda.time.Period period62 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType53); org.joda.time.Period period64 = period62.plusMillis((-100)); org.junit.Assert.assertNotNull(mutablePeriod12); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(periodType21); org.junit.Assert.assertNotNull(weeks23); org.junit.Assert.assertNotNull(duration25); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(duration46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(period52); org.junit.Assert.assertNotNull(periodType53); org.junit.Assert.assertNotNull(period64); } @Test public void test0808() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0808"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.MutablePeriod mutablePeriod7 = period6.toMutablePeriod(); org.joda.time.Period period8 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Period period10 = period6.withMonths((int) (byte) 0); org.joda.time.Period period12 = period10.minusSeconds((-1)); org.joda.time.Period period14 = period12.minusHours((-1)); org.joda.time.PeriodType periodType20 = null; org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) 'a', periodType20, chronology21); org.joda.time.PeriodType periodType24 = null; org.joda.time.Chronology chronology25 = null; org.joda.time.Period period26 = new org.joda.time.Period((long) 'a', periodType24, chronology25); org.joda.time.Hours hours27 = period26.toStandardHours(); org.joda.time.Period period28 = period22.withFields((org.joda.time.ReadablePeriod) period26); org.joda.time.Period period30 = period22.withYears(10); org.joda.time.Period period31 = period30.toPeriod(); org.joda.time.Period period33 = period30.plusMillis(1); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Period period38 = new org.joda.time.Period(readableInstant36, readableInstant37); org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Duration duration40 = period38.toDurationFrom(readableInstant39); org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.Period period44 = new org.joda.time.Period(readableInstant42, readableInstant43); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.Duration duration46 = period44.toDurationFrom(readableInstant45); org.joda.time.Period period48 = period44.plusMonths(0); org.joda.time.Period period50 = period48.plusMonths((int) '#'); org.joda.time.Period period52 = period48.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType53 = period48.getPeriodType(); org.joda.time.Chronology chronology54 = null; org.joda.time.Period period55 = new org.joda.time.Period((long) (short) -1, periodType53, chronology54); org.joda.time.Period period56 = new org.joda.time.Period(readableInstant35, (org.joda.time.ReadableDuration) duration40, periodType53); org.joda.time.Chronology chronology57 = null; org.joda.time.Period period58 = new org.joda.time.Period((long) (byte) 0, periodType53, chronology57); org.joda.time.Period period59 = period33.normalizedStandard(periodType53); org.joda.time.Chronology chronology60 = null; org.joda.time.Period period61 = new org.joda.time.Period(0L, (long) 8, periodType53, chronology60); org.joda.time.Chronology chronology62 = null; org.joda.time.Period period63 = new org.joda.time.Period((long) ' ', periodType53, chronology62); org.joda.time.Chronology chronology64 = null; org.joda.time.Period period65 = new org.joda.time.Period(10L, periodType53, chronology64); org.joda.time.Period period66 = period12.plus((org.joda.time.ReadablePeriod) period65); int int67 = period12.getWeeks(); org.joda.time.Hours hours68 = period12.toStandardHours(); java.lang.Class<?> wildcardClass69 = hours68.getClass(); org.junit.Assert.assertNotNull(mutablePeriod7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(hours27); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(duration40); org.junit.Assert.assertNotNull(duration46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(period52); org.junit.Assert.assertNotNull(periodType53); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertTrue("'" + int67 + "' != '" + 0 + "'", int67 == 0); org.junit.Assert.assertNotNull(hours68); org.junit.Assert.assertNotNull(wildcardClass69); } @Test public void test0809() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0809"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); java.lang.String str4 = period3.toString(); org.joda.time.Period period5 = new org.joda.time.Period((java.lang.Object) str4); org.joda.time.Period period7 = period5.plusSeconds((int) 'a'); org.joda.time.DurationFieldType[] durationFieldTypeArray8 = period7.getFieldTypes(); org.joda.time.Period period10 = period7.withSeconds((int) (short) 10); org.joda.time.Period period12 = period7.minusMillis((int) '4'); int int13 = period12.size(); org.junit.Assert.assertEquals("'" + str4 + "' != '" + "PT0.011S" + "'", str4, "PT0.011S"); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(durationFieldTypeArray8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 8 + "'", int13 == 8); } @Test public void test0810() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0810"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period6.toDurationFrom(readableInstant9); org.joda.time.Period period12 = period6.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.PeriodType periodType15 = null; org.joda.time.Period period16 = new org.joda.time.Period(readableInstant13, readableInstant14, periodType15); org.joda.time.Period period18 = period16.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.PeriodType periodType21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant19, readableInstant20, periodType21); org.joda.time.Period period24 = period22.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.PeriodType periodType27 = null; org.joda.time.Period period28 = new org.joda.time.Period(readableInstant25, readableInstant26, periodType27); org.joda.time.DurationFieldType durationFieldType30 = period28.getFieldType((int) (byte) 0); int int31 = period24.indexOf(durationFieldType30); int int32 = period16.get(durationFieldType30); org.joda.time.Period period34 = period6.withField(durationFieldType30, (int) (short) 0); org.joda.time.Period period36 = period34.plusHours((int) (byte) 1); org.joda.time.Hours hours37 = period36.toStandardHours(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(durationFieldType30); org.junit.Assert.assertTrue("'" + int31 + "' != '" + 0 + "'", int31 == 0); org.junit.Assert.assertTrue("'" + int32 + "' != '" + 0 + "'", int32 == 0); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(hours37); } @Test public void test0811() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0811"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.Period period5 = period3.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.PeriodType periodType8 = null; org.joda.time.Period period9 = new org.joda.time.Period(readableInstant6, readableInstant7, periodType8); org.joda.time.DurationFieldType durationFieldType11 = period9.getFieldType((int) (byte) 0); int int12 = period5.indexOf(durationFieldType11); org.joda.time.Period period14 = period5.withMonths((int) '#'); int int15 = period14.getSeconds(); org.joda.time.Period period17 = period14.plusDays((int) (byte) 0); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(durationFieldType11); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); org.junit.Assert.assertNotNull(period17); } @Test public void test0812() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0812"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period2.plusWeeks((int) ' '); org.joda.time.Period period10 = period2.plusDays(10); int int11 = period2.getSeconds(); int int12 = period2.getHours(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0813() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0813"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.MutablePeriod mutablePeriod7 = period6.toMutablePeriod(); org.joda.time.Period period8 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Period period10 = period2.withYears((int) (byte) -1); org.joda.time.Period period12 = period10.minusMillis((int) '#'); org.joda.time.Period period14 = period12.minusMillis((int) (short) 1); org.joda.time.MutablePeriod mutablePeriod15 = period14.toMutablePeriod(); org.junit.Assert.assertNotNull(mutablePeriod7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(mutablePeriod15); } @Test public void test0814() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0814"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Period period11 = period9.withMinutes(0); org.joda.time.Period period12 = period2.minus((org.joda.time.ReadablePeriod) period11); int int13 = period11.getWeeks(); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); } @Test public void test0815() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0815"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); int int6 = period3.getMillis(); org.joda.time.Period period8 = period3.withDays((int) (short) 0); org.joda.time.Period period10 = period3.minusMonths(52); org.joda.time.Period period12 = period10.withMillis((int) ' '); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 97 + "'", int6 == 97); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); } @Test public void test0816() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0816"); org.joda.time.Period period2 = new org.joda.time.Period((long) (short) 0, 1L); } @Test public void test0817() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0817"); // The following exception was thrown during execution in test generation try { org.joda.time.Period period1 = new org.joda.time.Period((java.lang.Object) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: No period converter found for type: java.lang.Integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0818() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0818"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.MutablePeriod mutablePeriod7 = period6.toMutablePeriod(); org.joda.time.Period period8 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Period period10 = period6.withMonths((int) (byte) 0); org.joda.time.Period period12 = period10.plusMillis((int) (byte) 100); org.joda.time.Period period14 = period10.plusMonths((int) (byte) 0); int int15 = period10.getMonths(); org.junit.Assert.assertNotNull(mutablePeriod7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); } @Test public void test0819() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0819"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 97, (long) 10, chronology2); } @Test public void test0820() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0820"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) ' ', (long) 52, chronology2); } @Test public void test0821() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0821"); org.joda.time.Period period1 = org.joda.time.Period.seconds(1); org.joda.time.Period period3 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period5 = period3.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.PeriodType periodType8 = null; org.joda.time.Period period9 = new org.joda.time.Period(readableInstant6, readableInstant7, periodType8); org.joda.time.Period period11 = period9.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.PeriodType periodType14 = null; org.joda.time.Period period15 = new org.joda.time.Period(readableInstant12, readableInstant13, periodType14); org.joda.time.DurationFieldType durationFieldType17 = period15.getFieldType((int) (byte) 0); int int18 = period11.indexOf(durationFieldType17); org.joda.time.Period period20 = period3.withFieldAdded(durationFieldType17, 1); org.joda.time.Period period22 = period20.plusSeconds((int) (byte) 1); org.joda.time.PeriodType periodType23 = period22.getPeriodType(); org.joda.time.Period period24 = period1.withPeriodType(periodType23); org.joda.time.Period period25 = period1.toPeriod(); org.joda.time.Period period27 = period25.plusMonths((int) (short) 0); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(durationFieldType17); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(periodType23); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(period27); } @Test public void test0822() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0822"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.PeriodType periodType5 = null; org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period((long) 'a', periodType5, chronology6); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.Period period9 = period3.withFields((org.joda.time.ReadablePeriod) period7); org.joda.time.Period period11 = period7.minusSeconds((int) ' '); org.joda.time.Period period13 = period11.minusWeeks((-100)); org.joda.time.Hours hours14 = period13.toStandardHours(); org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(hours14); } @Test public void test0823() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0823"); org.joda.time.Period period1 = org.joda.time.Period.parse("P-100YT0.001S"); int int2 = period1.getWeeks(); org.joda.time.MutablePeriod mutablePeriod3 = period1.toMutablePeriod(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertNotNull(mutablePeriod3); } @Test public void test0824() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0824"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); int int7 = period2.getWeeks(); int int8 = period2.getMinutes(); org.joda.time.Weeks weeks9 = period2.toStandardWeeks(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(weeks9); } @Test public void test0825() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0825"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant1, readableInstant2); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.PeriodType periodType6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant4, readableInstant5, periodType6); org.joda.time.MutablePeriod mutablePeriod8 = period7.toMutablePeriod(); org.joda.time.Period period9 = period3.plus((org.joda.time.ReadablePeriod) period7); org.joda.time.Period period11 = period7.withMonths((int) (byte) 0); org.joda.time.Period period13 = period11.withHours((int) (byte) 100); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Duration duration15 = period11.toDurationTo(readableInstant14); org.joda.time.PeriodType periodType16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration15, periodType16); org.junit.Assert.assertNotNull(mutablePeriod8); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(duration15); } @Test public void test0826() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0826"); org.joda.time.Period period2 = new org.joda.time.Period((long) (short) -1, 1L); } @Test public void test0827() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0827"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Duration duration5 = period2.toStandardDuration(); org.joda.time.Period period7 = period2.plusSeconds(8); org.joda.time.Period period12 = new org.joda.time.Period(0L, (-1L)); org.joda.time.Period period14 = period12.plusMillis((int) (short) -1); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Period period19 = new org.joda.time.Period(readableInstant17, readableInstant18); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Duration duration21 = period19.toDurationFrom(readableInstant20); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant23, readableInstant24); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Duration duration27 = period25.toDurationFrom(readableInstant26); org.joda.time.Period period29 = period25.plusMonths(0); org.joda.time.Period period31 = period29.plusMonths((int) '#'); org.joda.time.Period period33 = period29.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType34 = period29.getPeriodType(); org.joda.time.Chronology chronology35 = null; org.joda.time.Period period36 = new org.joda.time.Period((long) (short) -1, periodType34, chronology35); org.joda.time.Period period37 = new org.joda.time.Period(readableInstant16, (org.joda.time.ReadableDuration) duration21, periodType34); org.joda.time.Chronology chronology38 = null; org.joda.time.Period period39 = new org.joda.time.Period((long) (short) 100, periodType34, chronology38); org.joda.time.Period period40 = period14.withPeriodType(periodType34); org.joda.time.Period period41 = new org.joda.time.Period((long) 0, (long) 98, periodType34); org.joda.time.Chronology chronology42 = null; org.joda.time.Period period43 = new org.joda.time.Period((java.lang.Object) period7, periodType34, chronology42); org.joda.time.MutablePeriod mutablePeriod44 = period43.toMutablePeriod(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(duration5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(duration21); org.junit.Assert.assertNotNull(duration27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(periodType34); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(mutablePeriod44); } @Test public void test0828() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0828"); org.joda.time.Period period8 = new org.joda.time.Period((int) (byte) 1, 1, 11, (int) (byte) 0, 98, (-3), (int) (byte) 10, (int) '4'); } @Test public void test0829() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0829"); org.joda.time.Period period1 = org.joda.time.Period.weeks((int) ' '); org.junit.Assert.assertNotNull(period1); } @Test public void test0830() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0830"); org.joda.time.Period period1 = org.joda.time.Period.years((int) 'a'); org.joda.time.Period period3 = org.joda.time.Period.millis(1); org.joda.time.Period period5 = period3.withWeeks((int) (short) 0); org.joda.time.Period period6 = period1.plus((org.joda.time.ReadablePeriod) period5); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Duration duration8 = period6.toDurationTo(readableInstant7); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Period period10 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration8, readableInstant9); // The following exception was thrown during execution in test generation try { org.joda.time.Days days11 = period10.toStandardDays(); org.junit.Assert.fail("Expected exception of type java.lang.UnsupportedOperationException; message: Cannot convert to Days as this period contains years and years vary in length"); } catch (java.lang.UnsupportedOperationException e) { // Expected exception. } org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(duration8); } @Test public void test0831() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0831"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (byte) -1); org.joda.time.Period period3 = period1.minusYears((int) (byte) 100); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); } @Test public void test0832() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0832"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); org.joda.time.Period period7 = period5.plusMonths(100); org.joda.time.Period period8 = period5.normalizedStandard(); org.joda.time.Period period10 = period5.minusMillis(98); org.joda.time.ReadablePeriod readablePeriod11 = null; org.joda.time.Period period12 = period10.plus(readablePeriod11); org.joda.time.Period period14 = period12.withHours((-1)); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); } @Test public void test0833() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0833"); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Period period10 = new org.joda.time.Period(readableInstant8, readableInstant9); org.joda.time.Period period11 = period10.normalizedStandard(); org.joda.time.Period period13 = period10.plusMinutes((int) ' '); org.joda.time.Period period14 = period13.normalizedStandard(); org.joda.time.Period period15 = new org.joda.time.Period((java.lang.Object) period14); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Period period19 = new org.joda.time.Period(readableInstant17, readableInstant18); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Duration duration21 = period19.toDurationFrom(readableInstant20); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant23, readableInstant24); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Duration duration27 = period25.toDurationFrom(readableInstant26); org.joda.time.Period period29 = period25.plusMonths(0); org.joda.time.Period period31 = period29.plusMonths((int) '#'); org.joda.time.Period period33 = period29.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType34 = period29.getPeriodType(); org.joda.time.Chronology chronology35 = null; org.joda.time.Period period36 = new org.joda.time.Period((long) (short) -1, periodType34, chronology35); org.joda.time.Period period37 = new org.joda.time.Period(readableInstant16, (org.joda.time.ReadableDuration) duration21, periodType34); org.joda.time.Period period38 = period15.withPeriodType(periodType34); org.joda.time.Period period39 = new org.joda.time.Period((int) (byte) 1, (int) (byte) 1, 0, (int) (byte) 0, 1, (int) (short) -1, (int) '#', (int) (short) 10, periodType34); org.joda.time.Period period41 = period39.minusMonths(100); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(duration21); org.junit.Assert.assertNotNull(duration27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(periodType34); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(period41); } @Test public void test0834() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0834"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period((long) 11, chronology1); } @Test public void test0835() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0835"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) 1); org.joda.time.PeriodType periodType3 = null; org.joda.time.Chronology chronology4 = null; org.joda.time.Period period5 = new org.joda.time.Period((long) 'a', periodType3, chronology4); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Hours hours10 = period9.toStandardHours(); org.joda.time.Period period11 = period5.withFields((org.joda.time.ReadablePeriod) period9); org.joda.time.Period period13 = period9.minusSeconds((int) ' '); org.joda.time.Chronology chronology16 = null; org.joda.time.Period period17 = new org.joda.time.Period((long) 100, (long) (-1), chronology16); org.joda.time.Period period19 = period17.plusMinutes((int) (short) 10); org.joda.time.Period period21 = period19.plusMinutes((-1)); int int22 = period21.getWeeks(); org.joda.time.Period period24 = period21.withMinutes((int) (byte) 10); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Period period27 = new org.joda.time.Period(readableInstant25, readableInstant26); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.Duration duration29 = period27.toDurationFrom(readableInstant28); org.joda.time.Period period31 = period27.plusMonths(0); org.joda.time.Period period33 = period31.plusMonths((int) '#'); org.joda.time.Period period35 = period31.plusMinutes((int) (short) 100); org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Period period38 = new org.joda.time.Period(readableInstant36, readableInstant37); org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Duration duration40 = period38.toDurationFrom(readableInstant39); org.joda.time.Period period42 = period38.plusMonths(0); org.joda.time.Period period44 = period42.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.Duration duration46 = period42.toDurationFrom(readableInstant45); org.joda.time.Period period48 = period42.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.PeriodType periodType51 = null; org.joda.time.Period period52 = new org.joda.time.Period(readableInstant49, readableInstant50, periodType51); org.joda.time.Period period54 = period52.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.PeriodType periodType57 = null; org.joda.time.Period period58 = new org.joda.time.Period(readableInstant55, readableInstant56, periodType57); org.joda.time.Period period60 = period58.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.PeriodType periodType63 = null; org.joda.time.Period period64 = new org.joda.time.Period(readableInstant61, readableInstant62, periodType63); org.joda.time.DurationFieldType durationFieldType66 = period64.getFieldType((int) (byte) 0); int int67 = period60.indexOf(durationFieldType66); int int68 = period52.get(durationFieldType66); org.joda.time.Period period70 = period42.withField(durationFieldType66, (int) (short) 0); boolean boolean71 = period35.isSupported(durationFieldType66); org.joda.time.Period period73 = period24.withField(durationFieldType66, (int) ' '); org.joda.time.Period period75 = period13.withField(durationFieldType66, 100); org.joda.time.Period period77 = period1.withFieldAdded(durationFieldType66, 98); org.joda.time.ReadableInstant readableInstant78 = null; org.joda.time.ReadableInstant readableInstant79 = null; org.joda.time.Period period80 = new org.joda.time.Period(readableInstant78, readableInstant79); org.joda.time.Period period81 = period80.normalizedStandard(); org.joda.time.Period period83 = period80.withWeeks(1); org.joda.time.PeriodType periodType85 = null; org.joda.time.Chronology chronology86 = null; org.joda.time.Period period87 = new org.joda.time.Period((long) 'a', periodType85, chronology86); org.joda.time.Period period89 = period87.withMinutes(0); org.joda.time.Period period90 = period80.minus((org.joda.time.ReadablePeriod) period89); org.joda.time.Period period91 = period80.normalizedStandard(); org.joda.time.Period period93 = period80.plusSeconds((int) 'a'); org.joda.time.Period period94 = period1.plus((org.joda.time.ReadablePeriod) period80); org.joda.time.Period period96 = period94.withWeeks((int) (byte) 10); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(hours10); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertTrue("'" + int22 + "' != '" + 0 + "'", int22 == 0); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(duration29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(duration40); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(duration46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period54); org.junit.Assert.assertNotNull(period60); org.junit.Assert.assertNotNull(durationFieldType66); org.junit.Assert.assertTrue("'" + int67 + "' != '" + 0 + "'", int67 == 0); org.junit.Assert.assertTrue("'" + int68 + "' != '" + 0 + "'", int68 == 0); org.junit.Assert.assertNotNull(period70); org.junit.Assert.assertTrue("'" + boolean71 + "' != '" + true + "'", boolean71 == true); org.junit.Assert.assertNotNull(period73); org.junit.Assert.assertNotNull(period75); org.junit.Assert.assertNotNull(period77); org.junit.Assert.assertNotNull(period81); org.junit.Assert.assertNotNull(period83); org.junit.Assert.assertNotNull(period89); org.junit.Assert.assertNotNull(period90); org.junit.Assert.assertNotNull(period91); org.junit.Assert.assertNotNull(period93); org.junit.Assert.assertNotNull(period94); org.junit.Assert.assertNotNull(period96); } @Test public void test0836() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0836"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period6.toDurationFrom(readableInstant9); org.joda.time.Period period12 = period6.minusMonths((int) (byte) 0); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant20, readableInstant21); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Duration duration24 = period22.toDurationFrom(readableInstant23); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Period period28 = new org.joda.time.Period(readableInstant26, readableInstant27); org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Duration duration30 = period28.toDurationFrom(readableInstant29); org.joda.time.Period period32 = period28.plusMonths(0); org.joda.time.Period period34 = period32.plusMonths((int) '#'); org.joda.time.Period period36 = period32.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType37 = period32.getPeriodType(); org.joda.time.Chronology chronology38 = null; org.joda.time.Period period39 = new org.joda.time.Period((long) (short) -1, periodType37, chronology38); org.joda.time.Period period40 = new org.joda.time.Period(readableInstant19, (org.joda.time.ReadableDuration) duration24, periodType37); org.joda.time.Period period41 = new org.joda.time.Period(readableInstant17, readableInstant18, periodType37); org.joda.time.Chronology chronology42 = null; org.joda.time.Period period43 = new org.joda.time.Period((long) (-100), (long) (-100), periodType37, chronology42); org.joda.time.Chronology chronology44 = null; org.joda.time.Period period45 = new org.joda.time.Period((long) 0, (long) 100, periodType37, chronology44); org.joda.time.Period period46 = period6.normalizedStandard(periodType37); org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.Period period49 = new org.joda.time.Period(readableInstant47, readableInstant48); org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.Duration duration51 = period49.toDurationFrom(readableInstant50); org.joda.time.Period period53 = period49.plusMonths(0); org.joda.time.Period period55 = period53.plusMonths((int) '#'); org.joda.time.Period period57 = period53.plusMinutes((int) (short) 100); org.joda.time.Period period59 = period57.withWeeks((int) ' '); org.joda.time.PeriodType periodType60 = null; org.joda.time.Period period61 = new org.joda.time.Period((java.lang.Object) period57, periodType60); org.joda.time.PeriodType periodType63 = null; org.joda.time.Chronology chronology64 = null; org.joda.time.Period period65 = new org.joda.time.Period((long) 'a', periodType63, chronology64); org.joda.time.Hours hours66 = period65.toStandardHours(); org.joda.time.Period period68 = period65.plusSeconds((int) (byte) 1); org.joda.time.ReadableInstant readableInstant69 = null; org.joda.time.ReadableInstant readableInstant70 = null; org.joda.time.PeriodType periodType71 = null; org.joda.time.Period period72 = new org.joda.time.Period(readableInstant69, readableInstant70, periodType71); org.joda.time.DurationFieldType durationFieldType74 = period72.getFieldType((int) (byte) 0); org.joda.time.Period period76 = period65.withField(durationFieldType74, 1); int int77 = period61.get(durationFieldType74); boolean boolean78 = period46.isSupported(durationFieldType74); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(duration24); org.junit.Assert.assertNotNull(duration30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(periodType37); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(duration51); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(hours66); org.junit.Assert.assertNotNull(period68); org.junit.Assert.assertNotNull(durationFieldType74); org.junit.Assert.assertNotNull(period76); org.junit.Assert.assertTrue("'" + int77 + "' != '" + 0 + "'", int77 == 0); org.junit.Assert.assertTrue("'" + boolean78 + "' != '" + true + "'", boolean78 == true); } @Test public void test0837() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0837"); org.joda.time.Period period1 = org.joda.time.Period.seconds(98); org.joda.time.PeriodType periodType2 = period1.getPeriodType(); org.joda.time.Period period4 = period1.minusMinutes(17); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(periodType2); org.junit.Assert.assertNotNull(period4); } @Test public void test0838() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0838"); org.joda.time.format.PeriodFormatter periodFormatter1 = null; // The following exception was thrown during execution in test generation try { org.joda.time.Period period2 = org.joda.time.Period.parse("PT-100M1.097S", periodFormatter1); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null"); } catch (java.lang.NullPointerException e) { // Expected exception. } } @Test public void test0839() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0839"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); java.lang.String str4 = period3.toString(); org.joda.time.Period period5 = new org.joda.time.Period((java.lang.Object) str4); org.joda.time.Period period7 = period5.plusSeconds((int) 'a'); org.joda.time.Days days8 = period5.toStandardDays(); org.joda.time.Period period9 = new org.joda.time.Period((java.lang.Object) period5); org.joda.time.Chronology chronology12 = null; org.joda.time.Period period13 = new org.joda.time.Period((long) 100, (long) (-1), chronology12); org.joda.time.Period period15 = period13.withHours(0); org.joda.time.Period period17 = period13.plusSeconds(0); org.joda.time.Period period18 = period9.withFields((org.joda.time.ReadablePeriod) period17); org.joda.time.Period period20 = period18.withHours((-3)); org.junit.Assert.assertEquals("'" + str4 + "' != '" + "PT0.011S" + "'", str4, "PT0.011S"); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(days8); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); } @Test public void test0840() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0840"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); org.joda.time.Period period12 = period10.withWeeks((int) ' '); org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period((java.lang.Object) period10, periodType13); int int15 = period10.getHours(); org.joda.time.Weeks weeks16 = period10.toStandardWeeks(); org.joda.time.Period period18 = period10.plusHours(8); // The following exception was thrown during execution in test generation try { int int20 = period10.getValue((-100)); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: -100"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); org.junit.Assert.assertNotNull(weeks16); org.junit.Assert.assertNotNull(period18); } @Test public void test0841() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0841"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); int int6 = period3.getMillis(); org.joda.time.Period period8 = period3.minusMonths((int) (byte) 0); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.PeriodType periodType11 = null; org.joda.time.Period period12 = new org.joda.time.Period(readableInstant9, readableInstant10, periodType11); org.joda.time.Period period14 = period12.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Duration duration16 = period12.toDurationTo(readableInstant15); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.Period period18 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration16, readableInstant17); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant20, readableInstant21); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.PeriodType periodType25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant23, readableInstant24, periodType25); org.joda.time.MutablePeriod mutablePeriod27 = period26.toMutablePeriod(); org.joda.time.Period period28 = period22.plus((org.joda.time.ReadablePeriod) period26); org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.PeriodType periodType31 = null; org.joda.time.Period period32 = new org.joda.time.Period(readableInstant29, readableInstant30, periodType31); org.joda.time.Period period34 = period32.plusMonths((int) '4'); org.joda.time.Period period35 = period26.withFields((org.joda.time.ReadablePeriod) period34); org.joda.time.PeriodType periodType39 = null; org.joda.time.Chronology chronology40 = null; org.joda.time.Period period41 = new org.joda.time.Period((long) 'a', periodType39, chronology40); org.joda.time.PeriodType periodType43 = null; org.joda.time.Chronology chronology44 = null; org.joda.time.Period period45 = new org.joda.time.Period((long) 'a', periodType43, chronology44); org.joda.time.Hours hours46 = period45.toStandardHours(); org.joda.time.Period period47 = period41.withFields((org.joda.time.ReadablePeriod) period45); org.joda.time.Period period49 = period41.withYears(10); org.joda.time.Period period50 = period49.toPeriod(); org.joda.time.Period period52 = period49.plusMillis(1); org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.Period period57 = new org.joda.time.Period(readableInstant55, readableInstant56); org.joda.time.ReadableInstant readableInstant58 = null; org.joda.time.Duration duration59 = period57.toDurationFrom(readableInstant58); org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.Period period63 = new org.joda.time.Period(readableInstant61, readableInstant62); org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.Duration duration65 = period63.toDurationFrom(readableInstant64); org.joda.time.Period period67 = period63.plusMonths(0); org.joda.time.Period period69 = period67.plusMonths((int) '#'); org.joda.time.Period period71 = period67.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType72 = period67.getPeriodType(); org.joda.time.Chronology chronology73 = null; org.joda.time.Period period74 = new org.joda.time.Period((long) (short) -1, periodType72, chronology73); org.joda.time.Period period75 = new org.joda.time.Period(readableInstant54, (org.joda.time.ReadableDuration) duration59, periodType72); org.joda.time.Chronology chronology76 = null; org.joda.time.Period period77 = new org.joda.time.Period((long) (byte) 0, periodType72, chronology76); org.joda.time.Period period78 = period52.normalizedStandard(periodType72); org.joda.time.Chronology chronology79 = null; org.joda.time.Period period80 = new org.joda.time.Period(0L, (long) 8, periodType72, chronology79); org.joda.time.Period period81 = new org.joda.time.Period((java.lang.Object) period26, periodType72); org.joda.time.Period period82 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration16, readableInstant19, periodType72); boolean boolean83 = period8.equals((java.lang.Object) readableInstant19); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 97 + "'", int6 == 97); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(duration16); org.junit.Assert.assertNotNull(mutablePeriod27); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(hours46); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(period52); org.junit.Assert.assertNotNull(duration59); org.junit.Assert.assertNotNull(duration65); org.junit.Assert.assertNotNull(period67); org.junit.Assert.assertNotNull(period69); org.junit.Assert.assertNotNull(period71); org.junit.Assert.assertNotNull(periodType72); org.junit.Assert.assertNotNull(period78); org.junit.Assert.assertTrue("'" + boolean83 + "' != '" + false + "'", boolean83 == false); } @Test public void test0842() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0842"); org.joda.time.Period period1 = org.joda.time.Period.seconds((int) (short) 10); org.junit.Assert.assertNotNull(period1); } @Test public void test0843() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0843"); org.joda.time.Period period1 = org.joda.time.Period.hours(1); org.joda.time.Period period3 = period1.plusMinutes((int) (byte) 1); int int4 = period3.getHours(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); } @Test public void test0844() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0844"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); int int7 = period2.getWeeks(); int int8 = period2.size(); org.joda.time.Period period10 = period2.minusDays((int) (byte) -1); org.joda.time.Period period12 = period10.withDays((int) (byte) -1); org.joda.time.Period period14 = period10.withYears((int) '4'); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 8 + "'", int8 == 8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); } @Test public void test0845() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0845"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period6.toDurationFrom(readableInstant9); org.joda.time.Period period12 = period6.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.PeriodType periodType15 = null; org.joda.time.Period period16 = new org.joda.time.Period(readableInstant13, readableInstant14, periodType15); org.joda.time.Period period18 = period16.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.PeriodType periodType21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant19, readableInstant20, periodType21); org.joda.time.Period period24 = period22.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.PeriodType periodType27 = null; org.joda.time.Period period28 = new org.joda.time.Period(readableInstant25, readableInstant26, periodType27); org.joda.time.DurationFieldType durationFieldType30 = period28.getFieldType((int) (byte) 0); int int31 = period24.indexOf(durationFieldType30); int int32 = period16.get(durationFieldType30); org.joda.time.Period period34 = period6.withField(durationFieldType30, (int) (short) 0); org.joda.time.Chronology chronology37 = null; org.joda.time.Period period38 = new org.joda.time.Period(100L, (long) ' ', chronology37); org.joda.time.Period period40 = period38.plusHours(1); org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Period period45 = new org.joda.time.Period(readableInstant43, readableInstant44); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.Duration duration47 = period45.toDurationFrom(readableInstant46); org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.Period period51 = new org.joda.time.Period(readableInstant49, readableInstant50); org.joda.time.ReadableInstant readableInstant52 = null; org.joda.time.Duration duration53 = period51.toDurationFrom(readableInstant52); org.joda.time.Period period55 = period51.plusMonths(0); org.joda.time.Period period57 = period55.plusMonths((int) '#'); org.joda.time.Period period59 = period55.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType60 = period55.getPeriodType(); org.joda.time.Chronology chronology61 = null; org.joda.time.Period period62 = new org.joda.time.Period((long) (short) -1, periodType60, chronology61); org.joda.time.Period period63 = new org.joda.time.Period(readableInstant42, (org.joda.time.ReadableDuration) duration47, periodType60); org.joda.time.Chronology chronology64 = null; org.joda.time.Period period65 = new org.joda.time.Period((long) (byte) 0, periodType60, chronology64); org.joda.time.Period period66 = period40.withPeriodType(periodType60); org.joda.time.Period period67 = period6.withPeriodType(periodType60); org.joda.time.Period period69 = period6.withMillis((int) (short) 0); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(durationFieldType30); org.junit.Assert.assertTrue("'" + int31 + "' != '" + 0 + "'", int31 == 0); org.junit.Assert.assertTrue("'" + int32 + "' != '" + 0 + "'", int32 == 0); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(duration47); org.junit.Assert.assertNotNull(duration53); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(periodType60); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertNotNull(period67); org.junit.Assert.assertNotNull(period69); } @Test public void test0846() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0846"); org.joda.time.Period period1 = org.joda.time.Period.millis(32); org.junit.Assert.assertNotNull(period1); } @Test public void test0847() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0847"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period((long) 'a', periodType2, chronology3); org.joda.time.PeriodType periodType6 = null; org.joda.time.Chronology chronology7 = null; org.joda.time.Period period8 = new org.joda.time.Period((long) 'a', periodType6, chronology7); org.joda.time.Hours hours9 = period8.toStandardHours(); org.joda.time.Period period10 = period4.withFields((org.joda.time.ReadablePeriod) period8); org.joda.time.Period period12 = period4.withYears(10); org.joda.time.Period period14 = period4.minusWeeks((int) (short) -1); java.lang.String str15 = period4.toString(); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Duration duration17 = period4.toDurationFrom(readableInstant16); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant24, readableInstant25); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.PeriodType periodType29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant27, readableInstant28, periodType29); org.joda.time.MutablePeriod mutablePeriod31 = period30.toMutablePeriod(); org.joda.time.Period period32 = period26.plus((org.joda.time.ReadablePeriod) period30); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.PeriodType periodType35 = null; org.joda.time.Period period36 = new org.joda.time.Period(readableInstant33, readableInstant34, periodType35); org.joda.time.Period period38 = period36.plusMonths((int) '4'); org.joda.time.Period period39 = period30.withFields((org.joda.time.ReadablePeriod) period38); org.joda.time.PeriodType periodType40 = period38.getPeriodType(); org.joda.time.Period period41 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType40); org.joda.time.Period period42 = new org.joda.time.Period((long) 'a', (long) 10, periodType40); org.joda.time.Period period43 = new org.joda.time.Period((long) (short) 100, 100L, periodType40); org.joda.time.Chronology chronology44 = null; org.joda.time.Period period45 = new org.joda.time.Period((java.lang.Object) duration17, periodType40, chronology44); org.joda.time.Chronology chronology57 = null; org.joda.time.Period period58 = new org.joda.time.Period((long) (short) 10, chronology57); org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.Duration duration60 = period58.toDurationFrom(readableInstant59); org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.Period period63 = new org.joda.time.Period(readableInstant61, readableInstant62); org.joda.time.Period period64 = period63.normalizedStandard(); org.joda.time.Period period66 = period63.plusMinutes((int) ' '); org.joda.time.Period period67 = period66.normalizedStandard(); org.joda.time.Period period68 = new org.joda.time.Period((java.lang.Object) period67); org.joda.time.ReadableInstant readableInstant69 = null; org.joda.time.ReadableInstant readableInstant70 = null; org.joda.time.ReadableInstant readableInstant71 = null; org.joda.time.Period period72 = new org.joda.time.Period(readableInstant70, readableInstant71); org.joda.time.ReadableInstant readableInstant73 = null; org.joda.time.Duration duration74 = period72.toDurationFrom(readableInstant73); org.joda.time.ReadableInstant readableInstant76 = null; org.joda.time.ReadableInstant readableInstant77 = null; org.joda.time.Period period78 = new org.joda.time.Period(readableInstant76, readableInstant77); org.joda.time.ReadableInstant readableInstant79 = null; org.joda.time.Duration duration80 = period78.toDurationFrom(readableInstant79); org.joda.time.Period period82 = period78.plusMonths(0); org.joda.time.Period period84 = period82.plusMonths((int) '#'); org.joda.time.Period period86 = period82.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType87 = period82.getPeriodType(); org.joda.time.Chronology chronology88 = null; org.joda.time.Period period89 = new org.joda.time.Period((long) (short) -1, periodType87, chronology88); org.joda.time.Period period90 = new org.joda.time.Period(readableInstant69, (org.joda.time.ReadableDuration) duration74, periodType87); org.joda.time.Period period91 = period68.withPeriodType(periodType87); org.joda.time.Chronology chronology92 = null; org.joda.time.Period period93 = new org.joda.time.Period((java.lang.Object) period58, periodType87, chronology92); org.joda.time.Period period94 = new org.joda.time.Period((int) (byte) -1, (int) (short) 100, (int) (short) 0, (int) (short) 1, 0, (int) (byte) 100, (int) ' ', 0, periodType87); org.joda.time.Period period95 = new org.joda.time.Period((long) 8, (long) (byte) 100, periodType87); org.joda.time.Period period96 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration17, periodType87); org.junit.Assert.assertNotNull(hours9); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertEquals("'" + str15 + "' != '" + "PT0.097S" + "'", str15, "PT0.097S"); org.junit.Assert.assertNotNull(duration17); org.junit.Assert.assertNotNull(mutablePeriod31); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertNotNull(periodType40); org.junit.Assert.assertNotNull(duration60); org.junit.Assert.assertNotNull(period64); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertNotNull(period67); org.junit.Assert.assertNotNull(duration74); org.junit.Assert.assertNotNull(duration80); org.junit.Assert.assertNotNull(period82); org.junit.Assert.assertNotNull(period84); org.junit.Assert.assertNotNull(period86); org.junit.Assert.assertNotNull(periodType87); org.junit.Assert.assertNotNull(period91); } @Test public void test0848() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0848"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.PeriodType periodType5 = null; org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period((long) 'a', periodType5, chronology6); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.Period period9 = period3.withFields((org.joda.time.ReadablePeriod) period7); int int10 = period9.getDays(); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant11, readableInstant12); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Duration duration15 = period13.toDurationFrom(readableInstant14); org.joda.time.Period period17 = period13.plusMonths(0); org.joda.time.Period period19 = period17.plusMonths((int) '#'); org.joda.time.Period period21 = period17.plusMinutes((int) (short) 100); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Period period24 = new org.joda.time.Period(readableInstant22, readableInstant23); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Duration duration26 = period24.toDurationFrom(readableInstant25); org.joda.time.Period period28 = period24.plusMonths(0); org.joda.time.Period period30 = period28.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Duration duration32 = period28.toDurationFrom(readableInstant31); org.joda.time.Period period34 = period28.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.PeriodType periodType37 = null; org.joda.time.Period period38 = new org.joda.time.Period(readableInstant35, readableInstant36, periodType37); org.joda.time.Period period40 = period38.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.PeriodType periodType43 = null; org.joda.time.Period period44 = new org.joda.time.Period(readableInstant41, readableInstant42, periodType43); org.joda.time.Period period46 = period44.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.PeriodType periodType49 = null; org.joda.time.Period period50 = new org.joda.time.Period(readableInstant47, readableInstant48, periodType49); org.joda.time.DurationFieldType durationFieldType52 = period50.getFieldType((int) (byte) 0); int int53 = period46.indexOf(durationFieldType52); int int54 = period38.get(durationFieldType52); org.joda.time.Period period56 = period28.withField(durationFieldType52, (int) (short) 0); boolean boolean57 = period21.isSupported(durationFieldType52); org.joda.time.Period period59 = period9.withFieldAdded(durationFieldType52, 100); org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertNotNull(duration15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(duration26); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(duration32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(durationFieldType52); org.junit.Assert.assertTrue("'" + int53 + "' != '" + 0 + "'", int53 == 0); org.junit.Assert.assertTrue("'" + int54 + "' != '" + 0 + "'", int54 == 0); org.junit.Assert.assertNotNull(period56); org.junit.Assert.assertTrue("'" + boolean57 + "' != '" + true + "'", boolean57 == true); org.junit.Assert.assertNotNull(period59); } @Test public void test0849() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0849"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period3.withMinutes((-1)); org.joda.time.Period period7 = period5.plusDays((int) (short) 100); int int8 = period5.getMonths(); org.joda.time.Period period10 = period5.withDays((int) '4'); org.joda.time.Period period12 = period5.withSeconds((-100)); org.joda.time.Chronology chronology13 = null; // The following exception was thrown during execution in test generation try { org.joda.time.Period period14 = new org.joda.time.Period((java.lang.Object) (-100), chronology13); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: No period converter found for type: java.lang.Integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); } @Test public void test0850() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0850"); org.joda.time.Period period4 = new org.joda.time.Period(97, (int) (short) 0, 100, (int) (short) 100); org.joda.time.Period period6 = period4.withDays(98); org.junit.Assert.assertNotNull(period6); } @Test public void test0851() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0851"); org.joda.time.format.PeriodFormatter periodFormatter1 = null; // The following exception was thrown during execution in test generation try { org.joda.time.Period period2 = org.joda.time.Period.parse("P10Y100M52W100DT10H-1M51.900S", periodFormatter1); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null"); } catch (java.lang.NullPointerException e) { // Expected exception. } } @Test public void test0852() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0852"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); java.lang.String str4 = period3.toString(); org.joda.time.Period period6 = period3.plusMinutes((int) (short) 1); int int7 = period3.getYears(); org.junit.Assert.assertEquals("'" + str4 + "' != '" + "PT0.011S" + "'", str4, "PT0.011S"); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); } @Test public void test0853() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0853"); org.joda.time.Period period8 = new org.joda.time.Period(8, (int) (short) 100, 10, 8, (int) 'a', (int) (short) 100, (int) ' ', 0); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period8.toDurationFrom(readableInstant9); int int11 = period8.getYears(); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Duration duration13 = period8.toDurationTo(readableInstant12); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 8 + "'", int11 == 8); org.junit.Assert.assertNotNull(duration13); } @Test public void test0854() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0854"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 100, (long) (-1), chronology2); org.joda.time.Period period5 = period3.plusMinutes((int) (short) 10); org.joda.time.Period period7 = period5.plusMinutes((-1)); int int8 = period7.getWeeks(); org.joda.time.Period period10 = period7.withMinutes((int) (byte) 10); org.joda.time.Period period11 = period10.negated(); org.joda.time.Period period12 = period11.normalizedStandard(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); } @Test public void test0855() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0855"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.PeriodType periodType5 = null; org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period((long) 'a', periodType5, chronology6); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.Period period9 = period3.withFields((org.joda.time.ReadablePeriod) period7); org.joda.time.Period period11 = period3.withYears(10); org.joda.time.Period period12 = period11.toPeriod(); org.joda.time.Period period14 = period12.minusHours((int) (byte) -1); org.joda.time.Period period16 = period14.minusYears((int) (byte) 1); org.joda.time.Chronology chronology17 = null; // The following exception was thrown during execution in test generation try { org.joda.time.Period period18 = new org.joda.time.Period((java.lang.Object) (byte) 1, chronology17); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: No period converter found for type: java.lang.Byte"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); } @Test public void test0856() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0856"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period((long) '4', chronology1); } @Test public void test0857() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0857"); org.joda.time.Period period1 = org.joda.time.Period.years(8); int int2 = period1.getYears(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 8 + "'", int2 == 8); } @Test public void test0858() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0858"); org.joda.time.Period period1 = org.joda.time.Period.hours((int) (byte) 1); org.joda.time.Period period3 = period1.withDays(1); int int4 = period1.size(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 8 + "'", int4 == 8); } @Test public void test0859() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0859"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.PeriodType periodType3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant1, readableInstant2, periodType3); org.joda.time.MutablePeriod mutablePeriod5 = period4.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant12, readableInstant13); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.PeriodType periodType17 = null; org.joda.time.Period period18 = new org.joda.time.Period(readableInstant15, readableInstant16, periodType17); org.joda.time.MutablePeriod mutablePeriod19 = period18.toMutablePeriod(); org.joda.time.Period period20 = period14.plus((org.joda.time.ReadablePeriod) period18); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.PeriodType periodType23 = null; org.joda.time.Period period24 = new org.joda.time.Period(readableInstant21, readableInstant22, periodType23); org.joda.time.Period period26 = period24.plusMonths((int) '4'); org.joda.time.Period period27 = period18.withFields((org.joda.time.ReadablePeriod) period26); org.joda.time.PeriodType periodType28 = period26.getPeriodType(); org.joda.time.Period period29 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType28); org.joda.time.Period period30 = new org.joda.time.Period((long) 'a', (long) 10, periodType28); org.joda.time.Period period31 = new org.joda.time.Period((long) (short) 100, 100L, periodType28); org.joda.time.Period period32 = period4.withPeriodType(periodType28); org.joda.time.Duration duration33 = period32.toStandardDuration(); org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.Period period39 = new org.joda.time.Period(readableInstant37, readableInstant38); org.joda.time.ReadableInstant readableInstant40 = null; org.joda.time.Duration duration41 = period39.toDurationFrom(readableInstant40); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Period period45 = new org.joda.time.Period(readableInstant43, readableInstant44); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.Duration duration47 = period45.toDurationFrom(readableInstant46); org.joda.time.Period period49 = period45.plusMonths(0); org.joda.time.Period period51 = period49.plusMonths((int) '#'); org.joda.time.Period period53 = period49.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType54 = period49.getPeriodType(); org.joda.time.Chronology chronology55 = null; org.joda.time.Period period56 = new org.joda.time.Period((long) (short) -1, periodType54, chronology55); org.joda.time.Period period57 = new org.joda.time.Period(readableInstant36, (org.joda.time.ReadableDuration) duration41, periodType54); org.joda.time.Chronology chronology58 = null; org.joda.time.Period period59 = new org.joda.time.Period((long) (byte) 10, (long) 10, periodType54, chronology58); org.joda.time.Period period60 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration33, periodType54); org.joda.time.Period period62 = period60.multipliedBy((int) (short) 100); org.junit.Assert.assertNotNull(mutablePeriod5); org.junit.Assert.assertNotNull(mutablePeriod19); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(periodType28); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(duration33); org.junit.Assert.assertNotNull(duration41); org.junit.Assert.assertNotNull(duration47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertNotNull(periodType54); org.junit.Assert.assertNotNull(period62); } @Test public void test0860() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0860"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (byte) 10, (long) 8); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Duration duration5 = period3.toDurationTo(readableInstant4); org.joda.time.Period period6 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration5); org.junit.Assert.assertNotNull(duration5); } @Test public void test0861() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0861"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.MutablePeriod mutablePeriod7 = period6.toMutablePeriod(); org.joda.time.Period period8 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.PeriodType periodType11 = null; org.joda.time.Period period12 = new org.joda.time.Period(readableInstant9, readableInstant10, periodType11); org.joda.time.Period period14 = period12.plusMonths((int) '4'); org.joda.time.Period period15 = period6.withFields((org.joda.time.ReadablePeriod) period14); int int16 = period6.getWeeks(); int int17 = period6.getMonths(); org.junit.Assert.assertNotNull(mutablePeriod7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0); } @Test public void test0862() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0862"); org.joda.time.Period period1 = org.joda.time.Period.millis(1); org.joda.time.Period period3 = period1.withWeeks((int) (short) 0); org.joda.time.Period period5 = period1.plusHours((int) (short) 100); org.joda.time.Period period7 = period5.multipliedBy((int) (byte) 10); org.joda.time.Period period9 = period5.plusDays(52); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); } @Test public void test0863() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0863"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.Period period5 = period4.normalizedStandard(); org.joda.time.Period period7 = period5.withMinutes((-1)); org.joda.time.PeriodType periodType8 = null; org.joda.time.Period period9 = period7.normalizedStandard(periodType8); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.Period period18 = new org.joda.time.Period(readableInstant16, readableInstant17); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Duration duration20 = period18.toDurationFrom(readableInstant19); org.joda.time.Period period22 = period18.plusMonths(0); org.joda.time.Period period24 = period22.plusMonths((int) '#'); org.joda.time.Period period26 = period22.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType27 = period22.getPeriodType(); org.joda.time.Chronology chronology28 = null; org.joda.time.Period period29 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType27, chronology28); org.joda.time.Period period30 = new org.joda.time.Period(readableInstant12, readableInstant13, periodType27); org.joda.time.Period period31 = new org.joda.time.Period(readableInstant10, readableInstant11, periodType27); org.joda.time.Chronology chronology32 = null; org.joda.time.Period period33 = new org.joda.time.Period((java.lang.Object) periodType8, periodType27, chronology32); org.joda.time.Period period34 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType27); int[] intArray35 = period34.getValues(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(duration20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(periodType27); org.junit.Assert.assertNotNull(intArray35); org.junit.Assert.assertEquals(java.util.Arrays.toString(intArray35), "[0, 0, 0, 0, 0, 0, 0, 0]"); } @Test public void test0864() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0864"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Period period2 = new org.joda.time.Period((long) (-3), periodType1); } @Test public void test0865() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0865"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period6.plusMonths((int) '#'); org.joda.time.Period period10 = period6.plusMinutes((int) (short) 100); org.joda.time.Period period12 = period10.withWeeks((int) ' '); org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period((java.lang.Object) period10, periodType13); int int15 = period10.getHours(); org.joda.time.Weeks weeks16 = period10.toStandardWeeks(); org.joda.time.Period period18 = period10.plusHours(8); int int19 = period10.getSeconds(); int int20 = period10.getYears(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); org.junit.Assert.assertNotNull(weeks16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertTrue("'" + int19 + "' != '" + 0 + "'", int19 == 0); org.junit.Assert.assertTrue("'" + int20 + "' != '" + 0 + "'", int20 == 0); } @Test public void test0866() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0866"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.PeriodType periodType5 = null; org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period((long) 'a', periodType5, chronology6); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.Period period9 = period3.withFields((org.joda.time.ReadablePeriod) period7); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Period period12 = new org.joda.time.Period(readableInstant10, readableInstant11); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Duration duration14 = period12.toDurationFrom(readableInstant13); org.joda.time.Period period16 = period12.plusMonths(0); org.joda.time.Period period18 = period16.plusMonths((int) '#'); org.joda.time.Period period20 = period16.plusMinutes((int) (short) 100); org.joda.time.Period period22 = period20.minusWeeks(1); org.joda.time.DurationFieldType durationFieldType24 = period20.getFieldType((int) (byte) 0); org.joda.time.Period period26 = period7.withFieldAdded(durationFieldType24, (int) 'a'); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Period period32 = new org.joda.time.Period(readableInstant30, readableInstant31); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Duration duration34 = period32.toDurationFrom(readableInstant33); org.joda.time.Period period36 = period32.plusMonths(0); org.joda.time.Period period38 = period36.plusMonths((int) '#'); org.joda.time.Period period40 = period36.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType41 = period36.getPeriodType(); org.joda.time.Chronology chronology42 = null; org.joda.time.Period period43 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType41, chronology42); org.joda.time.Chronology chronology44 = null; org.joda.time.Period period45 = new org.joda.time.Period((long) 'a', periodType41, chronology44); org.joda.time.PeriodType periodType46 = null; org.joda.time.Period period47 = period45.withPeriodType(periodType46); org.joda.time.Period period49 = period47.minusMinutes(11); org.joda.time.Period period51 = period47.plusHours((int) '4'); org.joda.time.Period period52 = period7.plus((org.joda.time.ReadablePeriod) period47); org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(duration14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(durationFieldType24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(duration34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(periodType41); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(period52); } @Test public void test0867() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0867"); org.joda.time.Period period2 = new org.joda.time.Period((long) 100, (long) (-3)); org.joda.time.Period period4 = period2.minusMonths((int) (byte) 1); org.junit.Assert.assertNotNull(period4); } @Test public void test0868() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0868"); org.joda.time.Period period1 = org.joda.time.Period.years(32); org.joda.time.Chronology chronology4 = null; org.joda.time.Period period5 = new org.joda.time.Period((long) 100, (long) (-1), chronology4); org.joda.time.Period period7 = period5.plusMinutes((int) (short) 10); org.joda.time.Period period9 = period7.plusMinutes((-1)); int int10 = period9.getWeeks(); org.joda.time.Period period12 = period9.withMinutes((int) (byte) 10); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Period period15 = new org.joda.time.Period(readableInstant13, readableInstant14); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Duration duration17 = period15.toDurationFrom(readableInstant16); org.joda.time.Period period19 = period15.plusMonths(0); org.joda.time.Period period21 = period19.plusMonths((int) '#'); org.joda.time.Period period23 = period19.plusMinutes((int) (short) 100); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant24, readableInstant25); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Duration duration28 = period26.toDurationFrom(readableInstant27); org.joda.time.Period period30 = period26.plusMonths(0); org.joda.time.Period period32 = period30.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Duration duration34 = period30.toDurationFrom(readableInstant33); org.joda.time.Period period36 = period30.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.PeriodType periodType39 = null; org.joda.time.Period period40 = new org.joda.time.Period(readableInstant37, readableInstant38, periodType39); org.joda.time.Period period42 = period40.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.PeriodType periodType45 = null; org.joda.time.Period period46 = new org.joda.time.Period(readableInstant43, readableInstant44, periodType45); org.joda.time.Period period48 = period46.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.PeriodType periodType51 = null; org.joda.time.Period period52 = new org.joda.time.Period(readableInstant49, readableInstant50, periodType51); org.joda.time.DurationFieldType durationFieldType54 = period52.getFieldType((int) (byte) 0); int int55 = period48.indexOf(durationFieldType54); int int56 = period40.get(durationFieldType54); org.joda.time.Period period58 = period30.withField(durationFieldType54, (int) (short) 0); boolean boolean59 = period23.isSupported(durationFieldType54); org.joda.time.Period period61 = period12.withField(durationFieldType54, (int) ' '); org.joda.time.Period period63 = period1.withField(durationFieldType54, 0); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(duration17); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(duration28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(duration34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(durationFieldType54); org.junit.Assert.assertTrue("'" + int55 + "' != '" + 0 + "'", int55 == 0); org.junit.Assert.assertTrue("'" + int56 + "' != '" + 0 + "'", int56 == 0); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertTrue("'" + boolean59 + "' != '" + true + "'", boolean59 == true); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(period63); } @Test public void test0869() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0869"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Period period11 = period9.withMinutes(0); org.joda.time.Period period12 = period2.minus((org.joda.time.ReadablePeriod) period11); org.joda.time.DurationFieldType[] durationFieldTypeArray13 = period2.getFieldTypes(); org.joda.time.Period period15 = period2.minusHours((int) (byte) 100); org.joda.time.Period period17 = period15.withMillis((int) ' '); org.joda.time.Chronology chronology19 = null; org.joda.time.Period period20 = new org.joda.time.Period(0L, chronology19); boolean boolean21 = period17.equals((java.lang.Object) chronology19); org.joda.time.Chronology chronology22 = null; // The following exception was thrown during execution in test generation try { org.joda.time.Period period23 = new org.joda.time.Period((java.lang.Object) boolean21, chronology22); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: No period converter found for type: java.lang.Boolean"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(durationFieldTypeArray13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + false + "'", boolean21 == false); } @Test public void test0870() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0870"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Duration duration6 = period4.toDurationFrom(readableInstant5); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Period period10 = new org.joda.time.Period(readableInstant8, readableInstant9); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Duration duration12 = period10.toDurationFrom(readableInstant11); org.joda.time.Period period14 = period10.plusMonths(0); org.joda.time.Period period16 = period14.plusMonths((int) '#'); org.joda.time.Period period18 = period14.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType19 = period14.getPeriodType(); org.joda.time.Chronology chronology20 = null; org.joda.time.Period period21 = new org.joda.time.Period((long) (short) -1, periodType19, chronology20); org.joda.time.Period period22 = new org.joda.time.Period(readableInstant1, (org.joda.time.ReadableDuration) duration6, periodType19); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant35, readableInstant36); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.PeriodType periodType40 = null; org.joda.time.Period period41 = new org.joda.time.Period(readableInstant38, readableInstant39, periodType40); org.joda.time.MutablePeriod mutablePeriod42 = period41.toMutablePeriod(); org.joda.time.Period period43 = period37.plus((org.joda.time.ReadablePeriod) period41); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.PeriodType periodType46 = null; org.joda.time.Period period47 = new org.joda.time.Period(readableInstant44, readableInstant45, periodType46); org.joda.time.Period period49 = period47.plusMonths((int) '4'); org.joda.time.Period period50 = period41.withFields((org.joda.time.ReadablePeriod) period49); org.joda.time.PeriodType periodType51 = period49.getPeriodType(); org.joda.time.Period period52 = new org.joda.time.Period((long) ' ', (long) (short) 10, periodType51); org.joda.time.Period period53 = new org.joda.time.Period((int) '4', (int) (byte) 10, (int) (short) 10, 1, 0, 97, (int) (byte) 10, 1, periodType51); org.joda.time.Period period54 = new org.joda.time.Period(readableInstant23, readableInstant24, periodType51); org.joda.time.Period period55 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration6, periodType51); org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.Period period57 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration6, readableInstant56); org.joda.time.ReadableInstant readableInstant58 = null; org.joda.time.Period period59 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration6, readableInstant58); org.junit.Assert.assertNotNull(duration6); org.junit.Assert.assertNotNull(duration12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(periodType19); org.junit.Assert.assertNotNull(mutablePeriod42); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(periodType51); } @Test public void test0871() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0871"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 100, (long) (-1), chronology2); org.joda.time.Period period5 = period3.plusMinutes((int) (short) 10); org.joda.time.Period period7 = period5.plusMinutes((-1)); int int8 = period7.getWeeks(); org.joda.time.Period period10 = period7.withMinutes((int) (byte) 10); org.joda.time.DurationFieldType durationFieldType12 = period10.getFieldType(0); org.joda.time.Period period14 = period10.plusMillis((-100)); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant15, readableInstant16); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Duration duration19 = period17.toDurationFrom(readableInstant18); org.joda.time.Period period21 = period17.plusMonths(0); org.joda.time.Period period23 = period21.plusMonths((int) '#'); org.joda.time.Period period25 = period21.plusMinutes((int) (short) 100); org.joda.time.Period period27 = period25.withWeeks((int) ' '); org.joda.time.PeriodType periodType28 = null; org.joda.time.Period period29 = new org.joda.time.Period((java.lang.Object) period25, periodType28); org.joda.time.PeriodType periodType30 = null; org.joda.time.Period period31 = period29.normalizedStandard(periodType30); org.joda.time.MutablePeriod mutablePeriod32 = period29.toMutablePeriod(); org.joda.time.PeriodType periodType34 = null; org.joda.time.Chronology chronology35 = null; org.joda.time.Period period36 = new org.joda.time.Period((long) 'a', periodType34, chronology35); org.joda.time.PeriodType periodType38 = null; org.joda.time.Chronology chronology39 = null; org.joda.time.Period period40 = new org.joda.time.Period((long) 'a', periodType38, chronology39); org.joda.time.Hours hours41 = period40.toStandardHours(); org.joda.time.Period period42 = period36.withFields((org.joda.time.ReadablePeriod) period40); org.joda.time.Period period44 = period36.withYears(10); org.joda.time.Period period45 = period44.toPeriod(); org.joda.time.Period period47 = period44.plusMillis(1); org.joda.time.Period period48 = period29.minus((org.joda.time.ReadablePeriod) period44); org.joda.time.Period period50 = period48.plusHours(0); org.joda.time.ReadableInstant readableInstant51 = null; org.joda.time.ReadableInstant readableInstant52 = null; org.joda.time.Period period53 = new org.joda.time.Period(readableInstant51, readableInstant52); org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.Duration duration55 = period53.toDurationFrom(readableInstant54); org.joda.time.Period period57 = period53.plusMonths(0); org.joda.time.Period period59 = period57.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.Duration duration61 = period57.toDurationFrom(readableInstant60); org.joda.time.Period period63 = period57.minusMonths((int) (byte) 0); org.joda.time.ReadableInstant readableInstant68 = null; org.joda.time.ReadableInstant readableInstant69 = null; org.joda.time.ReadableInstant readableInstant70 = null; org.joda.time.ReadableInstant readableInstant71 = null; org.joda.time.ReadableInstant readableInstant72 = null; org.joda.time.Period period73 = new org.joda.time.Period(readableInstant71, readableInstant72); org.joda.time.ReadableInstant readableInstant74 = null; org.joda.time.Duration duration75 = period73.toDurationFrom(readableInstant74); org.joda.time.ReadableInstant readableInstant77 = null; org.joda.time.ReadableInstant readableInstant78 = null; org.joda.time.Period period79 = new org.joda.time.Period(readableInstant77, readableInstant78); org.joda.time.ReadableInstant readableInstant80 = null; org.joda.time.Duration duration81 = period79.toDurationFrom(readableInstant80); org.joda.time.Period period83 = period79.plusMonths(0); org.joda.time.Period period85 = period83.plusMonths((int) '#'); org.joda.time.Period period87 = period83.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType88 = period83.getPeriodType(); org.joda.time.Chronology chronology89 = null; org.joda.time.Period period90 = new org.joda.time.Period((long) (short) -1, periodType88, chronology89); org.joda.time.Period period91 = new org.joda.time.Period(readableInstant70, (org.joda.time.ReadableDuration) duration75, periodType88); org.joda.time.Period period92 = new org.joda.time.Period(readableInstant68, readableInstant69, periodType88); org.joda.time.Chronology chronology93 = null; org.joda.time.Period period94 = new org.joda.time.Period((long) (-100), (long) (-100), periodType88, chronology93); org.joda.time.Chronology chronology95 = null; org.joda.time.Period period96 = new org.joda.time.Period((long) 0, (long) 100, periodType88, chronology95); org.joda.time.Period period97 = period57.normalizedStandard(periodType88); org.joda.time.Period period98 = new org.joda.time.Period((java.lang.Object) period48, periodType88); org.joda.time.Period period99 = period10.withPeriodType(periodType88); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(durationFieldType12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(duration19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(mutablePeriod32); org.junit.Assert.assertNotNull(hours41); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(duration55); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(duration61); org.junit.Assert.assertNotNull(period63); org.junit.Assert.assertNotNull(duration75); org.junit.Assert.assertNotNull(duration81); org.junit.Assert.assertNotNull(period83); org.junit.Assert.assertNotNull(period85); org.junit.Assert.assertNotNull(period87); org.junit.Assert.assertNotNull(periodType88); org.junit.Assert.assertNotNull(period97); org.junit.Assert.assertNotNull(period99); } @Test public void test0872() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0872"); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Duration duration6 = period4.toDurationFrom(readableInstant5); org.joda.time.Period period8 = period4.plusMonths(0); org.joda.time.Period period10 = period8.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Duration duration12 = period8.toDurationFrom(readableInstant11); org.joda.time.Period period14 = period8.minusMonths((int) (byte) 0); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Period period24 = new org.joda.time.Period(readableInstant22, readableInstant23); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Duration duration26 = period24.toDurationFrom(readableInstant25); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant28, readableInstant29); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Duration duration32 = period30.toDurationFrom(readableInstant31); org.joda.time.Period period34 = period30.plusMonths(0); org.joda.time.Period period36 = period34.plusMonths((int) '#'); org.joda.time.Period period38 = period34.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType39 = period34.getPeriodType(); org.joda.time.Chronology chronology40 = null; org.joda.time.Period period41 = new org.joda.time.Period((long) (short) -1, periodType39, chronology40); org.joda.time.Period period42 = new org.joda.time.Period(readableInstant21, (org.joda.time.ReadableDuration) duration26, periodType39); org.joda.time.Period period43 = new org.joda.time.Period(readableInstant19, readableInstant20, periodType39); org.joda.time.Chronology chronology44 = null; org.joda.time.Period period45 = new org.joda.time.Period((long) (-100), (long) (-100), periodType39, chronology44); org.joda.time.Chronology chronology46 = null; org.joda.time.Period period47 = new org.joda.time.Period((long) 0, (long) 100, periodType39, chronology46); org.joda.time.Period period48 = period8.normalizedStandard(periodType39); org.joda.time.Chronology chronology49 = null; org.joda.time.Period period50 = new org.joda.time.Period((long) ' ', (long) 8, periodType39, chronology49); org.junit.Assert.assertNotNull(duration6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(duration12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(duration26); org.junit.Assert.assertNotNull(duration32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(periodType39); org.junit.Assert.assertNotNull(period48); } @Test public void test0873() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0873"); org.joda.time.Period period8 = new org.joda.time.Period((int) (short) 1, (int) (short) 10, 97, (int) (byte) 1, 8, (int) (short) -1, 97, 8); org.joda.time.Period period10 = period8.minusMillis(1); org.joda.time.Period period12 = period10.multipliedBy((int) ' '); org.joda.time.Period period13 = period12.normalizedStandard(); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period13); } @Test public void test0874() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0874"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period(0L, chronology1); org.joda.time.Period period4 = period2.withMonths((int) (short) 100); int int5 = period2.getMillis(); org.joda.time.DurationFieldType[] durationFieldTypeArray6 = period2.getFieldTypes(); org.junit.Assert.assertNotNull(period4); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertNotNull(durationFieldTypeArray6); } @Test public void test0875() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0875"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Hours hours4 = period3.toStandardHours(); org.joda.time.Period period6 = period3.minusMinutes(52); org.joda.time.PeriodType periodType8 = null; org.joda.time.Chronology chronology9 = null; org.joda.time.Period period10 = new org.joda.time.Period((long) 'a', periodType8, chronology9); org.joda.time.Period period12 = period10.withMinutes(0); org.joda.time.Period period14 = period12.minusSeconds((int) (short) 100); org.joda.time.Period period16 = period14.minusMinutes(100); org.joda.time.Period period18 = period16.withSeconds((int) (short) 1); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Period period21 = new org.joda.time.Period(readableInstant19, readableInstant20); org.joda.time.Period period22 = period21.normalizedStandard(); org.joda.time.Period period24 = period21.withWeeks(1); org.joda.time.PeriodType periodType26 = null; org.joda.time.Chronology chronology27 = null; org.joda.time.Period period28 = new org.joda.time.Period((long) 'a', periodType26, chronology27); org.joda.time.Period period30 = period28.withMinutes(0); org.joda.time.Period period31 = period21.minus((org.joda.time.ReadablePeriod) period30); org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Period period34 = new org.joda.time.Period(readableInstant32, readableInstant33); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Duration duration36 = period34.toDurationFrom(readableInstant35); org.joda.time.Period period38 = period34.plusMonths(0); org.joda.time.Period period40 = period34.plusWeeks((int) ' '); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.Period period43 = new org.joda.time.Period(readableInstant41, readableInstant42); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Duration duration45 = period43.toDurationFrom(readableInstant44); org.joda.time.Period period47 = period43.plusMonths(0); org.joda.time.Period period49 = period47.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.Duration duration51 = period47.toDurationFrom(readableInstant50); org.joda.time.Period period53 = period47.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.PeriodType periodType56 = null; org.joda.time.Period period57 = new org.joda.time.Period(readableInstant54, readableInstant55, periodType56); org.joda.time.Period period59 = period57.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.PeriodType periodType62 = null; org.joda.time.Period period63 = new org.joda.time.Period(readableInstant60, readableInstant61, periodType62); org.joda.time.Period period65 = period63.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant66 = null; org.joda.time.ReadableInstant readableInstant67 = null; org.joda.time.PeriodType periodType68 = null; org.joda.time.Period period69 = new org.joda.time.Period(readableInstant66, readableInstant67, periodType68); org.joda.time.DurationFieldType durationFieldType71 = period69.getFieldType((int) (byte) 0); int int72 = period65.indexOf(durationFieldType71); int int73 = period57.get(durationFieldType71); org.joda.time.Period period75 = period47.withField(durationFieldType71, (int) (short) 0); int int76 = period40.indexOf(durationFieldType71); org.joda.time.Period period78 = period30.withField(durationFieldType71, (int) (short) 0); org.joda.time.Period period80 = period18.withField(durationFieldType71, 8); int int81 = period3.get(durationFieldType71); org.junit.Assert.assertNotNull(hours4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(duration36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(duration45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(duration51); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(period65); org.junit.Assert.assertNotNull(durationFieldType71); org.junit.Assert.assertTrue("'" + int72 + "' != '" + 0 + "'", int72 == 0); org.junit.Assert.assertTrue("'" + int73 + "' != '" + 0 + "'", int73 == 0); org.junit.Assert.assertNotNull(period75); org.junit.Assert.assertTrue("'" + int76 + "' != '" + 0 + "'", int76 == 0); org.junit.Assert.assertNotNull(period78); org.junit.Assert.assertNotNull(period80); org.junit.Assert.assertTrue("'" + int81 + "' != '" + 0 + "'", int81 == 0); } @Test public void test0876() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0876"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.Period period2 = org.joda.time.Period.months((int) (short) -1); org.joda.time.PeriodType periodType4 = null; org.joda.time.Chronology chronology5 = null; org.joda.time.Period period6 = new org.joda.time.Period((long) 'a', periodType4, chronology5); org.joda.time.DurationFieldType durationFieldType7 = null; int int8 = period6.get(durationFieldType7); org.joda.time.Period period9 = period2.withFields((org.joda.time.ReadablePeriod) period6); org.joda.time.Duration duration10 = period9.toStandardDuration(); org.joda.time.Period period11 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration10); org.junit.Assert.assertNotNull(period2); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(duration10); } @Test public void test0877() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0877"); org.joda.time.Period period1 = org.joda.time.Period.parse("P8Y100M10W8DT97H100M32S"); // The following exception was thrown during execution in test generation try { org.joda.time.Duration duration2 = period1.toStandardDuration(); org.junit.Assert.fail("Expected exception of type java.lang.UnsupportedOperationException; message: Cannot convert to Duration as this period contains months and months vary in length"); } catch (java.lang.UnsupportedOperationException e) { // Expected exception. } org.junit.Assert.assertNotNull(period1); } @Test public void test0878() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0878"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.MutablePeriod mutablePeriod4 = period3.toMutablePeriod(); org.joda.time.Period period6 = period3.minusMinutes((int) (byte) 100); org.joda.time.Seconds seconds7 = period6.toStandardSeconds(); org.joda.time.MutablePeriod mutablePeriod8 = period6.toMutablePeriod(); org.junit.Assert.assertNotNull(mutablePeriod4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(seconds7); org.junit.Assert.assertNotNull(mutablePeriod8); } @Test public void test0879() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0879"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); org.joda.time.Period period5 = period3.withWeeks(100); org.joda.time.Period period7 = period3.multipliedBy((int) (short) -1); org.joda.time.Period period9 = period3.withWeeks(8); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); } @Test public void test0880() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0880"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Period period11 = period9.withMinutes(0); org.joda.time.Period period12 = period2.minus((org.joda.time.ReadablePeriod) period11); org.joda.time.Period period13 = period2.normalizedStandard(); org.joda.time.Period period15 = period2.plusSeconds((int) 'a'); org.joda.time.Period period17 = period2.plusSeconds((int) ' '); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); } @Test public void test0881() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0881"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.plusMinutes((int) ' '); org.joda.time.Period period6 = period5.normalizedStandard(); org.joda.time.Period period7 = new org.joda.time.Period((java.lang.Object) period6); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant9, readableInstant10); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Duration duration13 = period11.toDurationFrom(readableInstant12); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant15, readableInstant16); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Duration duration19 = period17.toDurationFrom(readableInstant18); org.joda.time.Period period21 = period17.plusMonths(0); org.joda.time.Period period23 = period21.plusMonths((int) '#'); org.joda.time.Period period25 = period21.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType26 = period21.getPeriodType(); org.joda.time.Chronology chronology27 = null; org.joda.time.Period period28 = new org.joda.time.Period((long) (short) -1, periodType26, chronology27); org.joda.time.Period period29 = new org.joda.time.Period(readableInstant8, (org.joda.time.ReadableDuration) duration13, periodType26); org.joda.time.Period period30 = period7.withPeriodType(periodType26); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.PeriodType periodType33 = null; org.joda.time.Period period34 = new org.joda.time.Period(readableInstant31, readableInstant32, periodType33); org.joda.time.Period period36 = period34.plusMonths((int) '4'); org.joda.time.Period period38 = org.joda.time.Period.millis(1); org.joda.time.PeriodType periodType40 = null; org.joda.time.Chronology chronology41 = null; org.joda.time.Period period42 = new org.joda.time.Period((long) 'a', periodType40, chronology41); org.joda.time.Hours hours43 = period42.toStandardHours(); org.joda.time.Period period45 = period42.plusSeconds((int) (byte) 1); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.PeriodType periodType48 = null; org.joda.time.Period period49 = new org.joda.time.Period(readableInstant46, readableInstant47, periodType48); org.joda.time.DurationFieldType durationFieldType51 = period49.getFieldType((int) (byte) 0); org.joda.time.Period period53 = period42.withField(durationFieldType51, 1); boolean boolean54 = period38.equals((java.lang.Object) 1); org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.PeriodType periodType57 = null; org.joda.time.Period period58 = new org.joda.time.Period(readableInstant55, readableInstant56, periodType57); org.joda.time.Period period60 = period58.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.PeriodType periodType63 = null; org.joda.time.Period period64 = new org.joda.time.Period(readableInstant61, readableInstant62, periodType63); org.joda.time.DurationFieldType durationFieldType66 = period64.getFieldType((int) (byte) 0); int int67 = period60.indexOf(durationFieldType66); org.joda.time.Period period69 = period38.withFieldAdded(durationFieldType66, (int) (short) 0); org.joda.time.Period period71 = period34.withFieldAdded(durationFieldType66, (int) '#'); int int72 = period71.getMillis(); org.joda.time.Period period74 = period71.plusDays((int) 'a'); org.joda.time.Period period75 = period7.withFields((org.joda.time.ReadablePeriod) period74); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(duration13); org.junit.Assert.assertNotNull(duration19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(periodType26); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(hours43); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertNotNull(durationFieldType51); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertTrue("'" + boolean54 + "' != '" + false + "'", boolean54 == false); org.junit.Assert.assertNotNull(period60); org.junit.Assert.assertNotNull(durationFieldType66); org.junit.Assert.assertTrue("'" + int67 + "' != '" + 0 + "'", int67 == 0); org.junit.Assert.assertNotNull(period69); org.junit.Assert.assertNotNull(period71); org.junit.Assert.assertTrue("'" + int72 + "' != '" + 0 + "'", int72 == 0); org.junit.Assert.assertNotNull(period74); org.junit.Assert.assertNotNull(period75); } @Test public void test0882() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0882"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); org.joda.time.Days days6 = period3.toStandardDays(); org.joda.time.Period period8 = period3.plusSeconds((int) (short) 0); org.joda.time.Period period10 = period8.plusHours(98); org.joda.time.MutablePeriod mutablePeriod11 = period10.toMutablePeriod(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(days6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(mutablePeriod11); } @Test public void test0883() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0883"); org.joda.time.ReadablePartial readablePartial0 = null; org.joda.time.ReadablePartial readablePartial1 = null; org.joda.time.Period period3 = org.joda.time.Period.seconds(1); org.joda.time.Period period5 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period7 = period5.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.PeriodType periodType10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant8, readableInstant9, periodType10); org.joda.time.Period period13 = period11.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.PeriodType periodType16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant14, readableInstant15, periodType16); org.joda.time.DurationFieldType durationFieldType19 = period17.getFieldType((int) (byte) 0); int int20 = period13.indexOf(durationFieldType19); org.joda.time.Period period22 = period5.withFieldAdded(durationFieldType19, 1); org.joda.time.Period period24 = period22.plusSeconds((int) (byte) 1); org.joda.time.PeriodType periodType25 = period24.getPeriodType(); org.joda.time.Period period26 = period3.withPeriodType(periodType25); // The following exception was thrown during execution in test generation try { org.joda.time.Period period27 = new org.joda.time.Period(readablePartial0, readablePartial1, periodType25); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: ReadablePartial objects must not be null"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(durationFieldType19); org.junit.Assert.assertTrue("'" + int20 + "' != '" + 0 + "'", int20 == 0); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(periodType25); org.junit.Assert.assertNotNull(period26); } @Test public void test0884() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0884"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); int[] intArray7 = period2.getValues(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(intArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(intArray7), "[0, 0, 0, 0, 0, 0, 0, 0]"); } @Test public void test0885() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0885"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.MutablePeriod mutablePeriod4 = period3.toMutablePeriod(); int int5 = period3.getMillis(); org.joda.time.Period period7 = period3.plusWeeks((-1)); org.joda.time.DurationFieldType[] durationFieldTypeArray8 = period7.getFieldTypes(); org.junit.Assert.assertNotNull(mutablePeriod4); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(durationFieldTypeArray8); } @Test public void test0886() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0886"); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant5, readableInstant6); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.Duration duration9 = period7.toDurationFrom(readableInstant8); org.joda.time.Period period11 = period7.plusMonths(0); org.joda.time.Period period13 = period11.plusMonths((int) '#'); org.joda.time.Period period15 = period11.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType16 = period11.getPeriodType(); org.joda.time.Chronology chronology17 = null; org.joda.time.Period period18 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType16, chronology17); org.joda.time.Chronology chronology19 = null; org.joda.time.Period period20 = new org.joda.time.Period((long) 'a', periodType16, chronology19); org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) (byte) 10, (-1L), periodType16, chronology21); org.junit.Assert.assertNotNull(duration9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(periodType16); } @Test public void test0887() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0887"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period((long) (short) 0, chronology1); org.joda.time.Period period4 = period2.plusWeeks(11); org.junit.Assert.assertNotNull(period4); } @Test public void test0888() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0888"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period3.withMinutes((-1)); org.joda.time.PeriodType periodType6 = null; org.joda.time.Period period7 = period5.normalizedStandard(periodType6); org.joda.time.Period period9 = period7.plusDays((int) ' '); org.joda.time.Period period11 = period9.plusSeconds((int) ' '); // The following exception was thrown during execution in test generation try { org.joda.time.DurationFieldType durationFieldType13 = period9.getFieldType(100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: 100"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); } @Test public void test0889() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0889"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant5, readableInstant6); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.PeriodType periodType10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant8, readableInstant9, periodType10); org.joda.time.MutablePeriod mutablePeriod12 = period11.toMutablePeriod(); org.joda.time.Period period13 = period7.plus((org.joda.time.ReadablePeriod) period11); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.PeriodType periodType16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant14, readableInstant15, periodType16); org.joda.time.Period period19 = period17.plusMonths((int) '4'); org.joda.time.Period period20 = period11.withFields((org.joda.time.ReadablePeriod) period19); org.joda.time.PeriodType periodType21 = period19.getPeriodType(); org.joda.time.Period period22 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType21); org.joda.time.Weeks weeks23 = period22.toStandardWeeks(); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Duration duration25 = period22.toDurationFrom(readableInstant24); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant28, readableInstant29); org.joda.time.Period period31 = period30.normalizedStandard(); org.joda.time.Period period33 = period31.withMinutes((-1)); org.joda.time.PeriodType periodType34 = null; org.joda.time.Period period35 = period33.normalizedStandard(periodType34); org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.Period period44 = new org.joda.time.Period(readableInstant42, readableInstant43); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.Duration duration46 = period44.toDurationFrom(readableInstant45); org.joda.time.Period period48 = period44.plusMonths(0); org.joda.time.Period period50 = period48.plusMonths((int) '#'); org.joda.time.Period period52 = period48.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType53 = period48.getPeriodType(); org.joda.time.Chronology chronology54 = null; org.joda.time.Period period55 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType53, chronology54); org.joda.time.Period period56 = new org.joda.time.Period(readableInstant38, readableInstant39, periodType53); org.joda.time.Period period57 = new org.joda.time.Period(readableInstant36, readableInstant37, periodType53); org.joda.time.Chronology chronology58 = null; org.joda.time.Period period59 = new org.joda.time.Period((java.lang.Object) periodType34, periodType53, chronology58); org.joda.time.Period period60 = new org.joda.time.Period(readableInstant26, readableInstant27, periodType53); org.joda.time.Period period61 = new org.joda.time.Period(readableInstant2, (org.joda.time.ReadableDuration) duration25, periodType53); org.joda.time.Period period62 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType53); int int63 = period62.getMinutes(); org.junit.Assert.assertNotNull(mutablePeriod12); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(periodType21); org.junit.Assert.assertNotNull(weeks23); org.junit.Assert.assertNotNull(duration25); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(duration46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(period52); org.junit.Assert.assertNotNull(periodType53); org.junit.Assert.assertTrue("'" + int63 + "' != '" + 0 + "'", int63 == 0); } @Test public void test0890() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0890"); org.joda.time.Period period1 = org.joda.time.Period.hours(100); org.joda.time.Period period3 = period1.plusDays((-100)); int int4 = period1.getYears(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0); } @Test public void test0891() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0891"); org.joda.time.Period period2 = new org.joda.time.Period((long) (short) 10, (long) (short) 1); } @Test public void test0892() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0892"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); int int4 = period2.getMillis(); org.joda.time.Period period6 = period2.withHours((int) (byte) 0); org.joda.time.Period period8 = period2.withMonths((int) '4'); org.joda.time.Period period10 = period8.plusSeconds((int) (byte) 10); org.joda.time.DurationFieldType[] durationFieldTypeArray11 = period10.getFieldTypes(); org.joda.time.Period period13 = period10.plusWeeks((int) ' '); org.joda.time.Period period15 = period10.minusMillis((int) (short) 10); org.joda.time.Period period17 = period10.withHours(17); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(durationFieldTypeArray11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); } @Test public void test0893() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0893"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period3.withMinutes((-1)); org.joda.time.PeriodType periodType6 = null; org.joda.time.Period period7 = period5.normalizedStandard(periodType6); org.joda.time.Period period9 = period7.plusDays((int) ' '); org.joda.time.Period period11 = period9.plusSeconds((int) ' '); int int12 = period9.getDays(); org.joda.time.Period period14 = period9.plusMinutes(98); org.joda.time.Days days15 = period9.toStandardDays(); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 32 + "'", int12 == 32); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(days15); } @Test public void test0894() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0894"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 100, (long) (-1), chronology2); org.joda.time.Period period5 = period3.withMonths((int) (short) 0); org.joda.time.Period period7 = period5.withSeconds((int) (short) -1); int int8 = period5.getHours(); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant9, readableInstant10); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.PeriodType periodType14 = null; org.joda.time.Period period15 = new org.joda.time.Period(readableInstant12, readableInstant13, periodType14); org.joda.time.MutablePeriod mutablePeriod16 = period15.toMutablePeriod(); org.joda.time.Period period17 = period11.plus((org.joda.time.ReadablePeriod) period15); org.joda.time.Period period19 = period15.withMonths((int) (byte) 0); org.joda.time.Period period21 = period19.minusSeconds((-1)); org.joda.time.Period period23 = period21.minusHours((-1)); org.joda.time.Period period25 = period23.minusDays(100); org.joda.time.Period period27 = period23.minusMinutes((int) '4'); org.joda.time.PeriodType periodType28 = period27.getPeriodType(); org.joda.time.Period period29 = period5.normalizedStandard(periodType28); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(mutablePeriod16); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(periodType28); org.junit.Assert.assertNotNull(period29); } @Test public void test0895() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0895"); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant5, readableInstant6); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.PeriodType periodType10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant8, readableInstant9, periodType10); org.joda.time.MutablePeriod mutablePeriod12 = period11.toMutablePeriod(); org.joda.time.Period period13 = period7.plus((org.joda.time.ReadablePeriod) period11); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.PeriodType periodType16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant14, readableInstant15, periodType16); org.joda.time.Period period19 = period17.plusMonths((int) '4'); org.joda.time.Period period20 = period11.withFields((org.joda.time.ReadablePeriod) period19); org.joda.time.PeriodType periodType21 = period19.getPeriodType(); org.joda.time.Period period22 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType21); org.joda.time.Period period23 = new org.joda.time.Period((long) (-100), (long) (short) 10, periodType21); org.joda.time.Period period24 = new org.joda.time.Period(0L, periodType21); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant28, readableInstant29); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Duration duration32 = period30.toDurationFrom(readableInstant31); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Period period36 = new org.joda.time.Period(readableInstant34, readableInstant35); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Duration duration38 = period36.toDurationFrom(readableInstant37); org.joda.time.Period period40 = period36.plusMonths(0); org.joda.time.Period period42 = period40.plusMonths((int) '#'); org.joda.time.Period period44 = period40.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType45 = period40.getPeriodType(); org.joda.time.Chronology chronology46 = null; org.joda.time.Period period47 = new org.joda.time.Period((long) (short) -1, periodType45, chronology46); org.joda.time.Period period48 = new org.joda.time.Period(readableInstant27, (org.joda.time.ReadableDuration) duration32, periodType45); org.joda.time.Chronology chronology49 = null; org.joda.time.Period period50 = new org.joda.time.Period((long) (byte) 10, (long) 10, periodType45, chronology49); org.joda.time.Chronology chronology53 = null; org.joda.time.Period period54 = new org.joda.time.Period((long) 100, (long) (-1), chronology53); org.joda.time.Period period56 = period54.plusMinutes((int) (short) 10); org.joda.time.Period period58 = period56.plusMinutes((-1)); int int59 = period58.getWeeks(); org.joda.time.Period period61 = period58.withMinutes((int) (byte) 10); org.joda.time.DurationFieldType durationFieldType63 = period61.getFieldType(0); org.joda.time.Period period65 = period50.withFieldAdded(durationFieldType63, (int) (short) 100); int int66 = period24.get(durationFieldType63); java.lang.String str67 = period24.toString(); org.junit.Assert.assertNotNull(mutablePeriod12); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(periodType21); org.junit.Assert.assertNotNull(duration32); org.junit.Assert.assertNotNull(duration38); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(periodType45); org.junit.Assert.assertNotNull(period56); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertTrue("'" + int59 + "' != '" + 0 + "'", int59 == 0); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(durationFieldType63); org.junit.Assert.assertNotNull(period65); org.junit.Assert.assertTrue("'" + int66 + "' != '" + 0 + "'", int66 == 0); org.junit.Assert.assertEquals("'" + str67 + "' != '" + "PT0S" + "'", str67, "PT0S"); } @Test public void test0896() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0896"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period3.withMinutes((-1)); org.joda.time.PeriodType periodType6 = null; org.joda.time.Period period7 = period5.normalizedStandard(periodType6); org.joda.time.PeriodType periodType9 = null; org.joda.time.Chronology chronology10 = null; org.joda.time.Period period11 = new org.joda.time.Period((long) 'a', periodType9, chronology10); org.joda.time.Period period13 = period11.withMinutes(0); org.joda.time.Period period15 = period13.minusSeconds((int) (short) 100); org.joda.time.Period period17 = period15.withWeeks((int) (short) -1); org.joda.time.Period period18 = period7.minus((org.joda.time.ReadablePeriod) period17); org.joda.time.DurationFieldType[] durationFieldTypeArray19 = period17.getFieldTypes(); org.joda.time.Period period21 = period17.plusMinutes(17); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(durationFieldTypeArray19); org.junit.Assert.assertNotNull(period21); } @Test public void test0897() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0897"); org.joda.time.Chronology chronology9 = null; org.joda.time.Period period10 = new org.joda.time.Period((long) (short) 10, chronology9); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Duration duration12 = period10.toDurationFrom(readableInstant11); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Period period15 = new org.joda.time.Period(readableInstant13, readableInstant14); org.joda.time.Period period16 = period15.normalizedStandard(); org.joda.time.Period period18 = period15.plusMinutes((int) ' '); org.joda.time.Period period19 = period18.normalizedStandard(); org.joda.time.Period period20 = new org.joda.time.Period((java.lang.Object) period19); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Period period24 = new org.joda.time.Period(readableInstant22, readableInstant23); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Duration duration26 = period24.toDurationFrom(readableInstant25); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant28, readableInstant29); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Duration duration32 = period30.toDurationFrom(readableInstant31); org.joda.time.Period period34 = period30.plusMonths(0); org.joda.time.Period period36 = period34.plusMonths((int) '#'); org.joda.time.Period period38 = period34.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType39 = period34.getPeriodType(); org.joda.time.Chronology chronology40 = null; org.joda.time.Period period41 = new org.joda.time.Period((long) (short) -1, periodType39, chronology40); org.joda.time.Period period42 = new org.joda.time.Period(readableInstant21, (org.joda.time.ReadableDuration) duration26, periodType39); org.joda.time.Period period43 = period20.withPeriodType(periodType39); org.joda.time.Chronology chronology44 = null; org.joda.time.Period period45 = new org.joda.time.Period((java.lang.Object) period10, periodType39, chronology44); org.joda.time.Period period46 = new org.joda.time.Period((int) (byte) -1, (int) (short) 100, (int) (short) 0, (int) (short) 1, 0, (int) (byte) 100, (int) ' ', 0, periodType39); int int47 = period46.getDays(); org.junit.Assert.assertNotNull(duration12); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(duration26); org.junit.Assert.assertNotNull(duration32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(periodType39); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertTrue("'" + int47 + "' != '" + 1 + "'", int47 == 1); } @Test public void test0898() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0898"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period((long) 'a', periodType2, chronology3); org.joda.time.PeriodType periodType6 = null; org.joda.time.Chronology chronology7 = null; org.joda.time.Period period8 = new org.joda.time.Period((long) 'a', periodType6, chronology7); org.joda.time.Hours hours9 = period8.toStandardHours(); org.joda.time.Period period10 = period4.withFields((org.joda.time.ReadablePeriod) period8); org.joda.time.Period period12 = period4.withYears(10); org.joda.time.Period period14 = period4.minusWeeks((int) (short) -1); java.lang.String str15 = period4.toString(); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Duration duration17 = period4.toDurationFrom(readableInstant16); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant24, readableInstant25); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.PeriodType periodType29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant27, readableInstant28, periodType29); org.joda.time.MutablePeriod mutablePeriod31 = period30.toMutablePeriod(); org.joda.time.Period period32 = period26.plus((org.joda.time.ReadablePeriod) period30); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.PeriodType periodType35 = null; org.joda.time.Period period36 = new org.joda.time.Period(readableInstant33, readableInstant34, periodType35); org.joda.time.Period period38 = period36.plusMonths((int) '4'); org.joda.time.Period period39 = period30.withFields((org.joda.time.ReadablePeriod) period38); org.joda.time.PeriodType periodType40 = period38.getPeriodType(); org.joda.time.Period period41 = new org.joda.time.Period((long) (short) -1, (long) '4', periodType40); org.joda.time.Period period42 = new org.joda.time.Period((long) 'a', (long) 10, periodType40); org.joda.time.Period period43 = new org.joda.time.Period((long) (short) 100, 100L, periodType40); org.joda.time.Chronology chronology44 = null; org.joda.time.Period period45 = new org.joda.time.Period((java.lang.Object) duration17, periodType40, chronology44); org.joda.time.Period period46 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration17); org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.PeriodType periodType48 = null; org.joda.time.Period period49 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration17, readableInstant47, periodType48); org.junit.Assert.assertNotNull(hours9); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertEquals("'" + str15 + "' != '" + "PT0.097S" + "'", str15, "PT0.097S"); org.junit.Assert.assertNotNull(duration17); org.junit.Assert.assertNotNull(mutablePeriod31); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertNotNull(periodType40); } @Test public void test0899() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0899"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Period period11 = period9.withMinutes(0); org.joda.time.Period period12 = period2.minus((org.joda.time.ReadablePeriod) period11); org.joda.time.Chronology chronology15 = null; org.joda.time.Period period16 = new org.joda.time.Period(100L, (long) ' ', chronology15); org.joda.time.Period period18 = period16.plusHours(1); org.joda.time.Weeks weeks19 = period18.toStandardWeeks(); org.joda.time.Chronology chronology22 = null; org.joda.time.Period period23 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology22); java.lang.String str24 = period23.toString(); org.joda.time.Period period25 = new org.joda.time.Period((java.lang.Object) str24); org.joda.time.Period period27 = period25.plusSeconds((int) 'a'); org.joda.time.Period period29 = period25.plusYears((int) (byte) 0); org.joda.time.Period period31 = period25.withMonths(0); org.joda.time.PeriodType periodType33 = null; org.joda.time.Chronology chronology34 = null; org.joda.time.Period period35 = new org.joda.time.Period((long) 'a', periodType33, chronology34); org.joda.time.Period period37 = period35.withMinutes(0); org.joda.time.Period period39 = period37.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod40 = period37.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.Period period43 = new org.joda.time.Period(readableInstant41, readableInstant42); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Duration duration45 = period43.toDurationFrom(readableInstant44); org.joda.time.Period period47 = period43.plusMonths(0); org.joda.time.Period period49 = period47.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant50 = null; org.joda.time.Duration duration51 = period47.toDurationFrom(readableInstant50); org.joda.time.Period period53 = period47.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.PeriodType periodType56 = null; org.joda.time.Period period57 = new org.joda.time.Period(readableInstant54, readableInstant55, periodType56); org.joda.time.Period period59 = period57.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.PeriodType periodType62 = null; org.joda.time.Period period63 = new org.joda.time.Period(readableInstant60, readableInstant61, periodType62); org.joda.time.Period period65 = period63.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant66 = null; org.joda.time.ReadableInstant readableInstant67 = null; org.joda.time.PeriodType periodType68 = null; org.joda.time.Period period69 = new org.joda.time.Period(readableInstant66, readableInstant67, periodType68); org.joda.time.DurationFieldType durationFieldType71 = period69.getFieldType((int) (byte) 0); int int72 = period65.indexOf(durationFieldType71); int int73 = period57.get(durationFieldType71); org.joda.time.Period period75 = period47.withField(durationFieldType71, (int) (short) 0); int int76 = mutablePeriod40.indexOf(durationFieldType71); int int77 = period31.get(durationFieldType71); org.joda.time.Period period79 = period18.withFieldAdded(durationFieldType71, (int) (byte) 1); org.joda.time.Period period81 = period2.withField(durationFieldType71, 0); org.joda.time.Period period82 = period81.toPeriod(); org.joda.time.Period period84 = period82.plusMonths((int) (short) 0); org.joda.time.Period period86 = period82.plusWeeks((-100)); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(weeks19); org.junit.Assert.assertEquals("'" + str24 + "' != '" + "PT0.011S" + "'", str24, "PT0.011S"); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertNotNull(mutablePeriod40); org.junit.Assert.assertNotNull(duration45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(duration51); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(period65); org.junit.Assert.assertNotNull(durationFieldType71); org.junit.Assert.assertTrue("'" + int72 + "' != '" + 0 + "'", int72 == 0); org.junit.Assert.assertTrue("'" + int73 + "' != '" + 0 + "'", int73 == 0); org.junit.Assert.assertNotNull(period75); org.junit.Assert.assertTrue("'" + int76 + "' != '" + 0 + "'", int76 == 0); org.junit.Assert.assertTrue("'" + int77 + "' != '" + 0 + "'", int77 == 0); org.junit.Assert.assertNotNull(period79); org.junit.Assert.assertNotNull(period81); org.junit.Assert.assertNotNull(period82); org.junit.Assert.assertNotNull(period84); org.junit.Assert.assertNotNull(period86); } @Test public void test0900() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0900"); org.joda.time.Period period1 = org.joda.time.Period.parse("P-1Y"); org.joda.time.Period period3 = period1.minusMillis(11); org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period(100L, (long) ' ', chronology6); org.joda.time.Period period9 = period7.plusHours(1); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant12, readableInstant13); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Duration duration16 = period14.toDurationFrom(readableInstant15); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Period period20 = new org.joda.time.Period(readableInstant18, readableInstant19); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Duration duration22 = period20.toDurationFrom(readableInstant21); org.joda.time.Period period24 = period20.plusMonths(0); org.joda.time.Period period26 = period24.plusMonths((int) '#'); org.joda.time.Period period28 = period24.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType29 = period24.getPeriodType(); org.joda.time.Chronology chronology30 = null; org.joda.time.Period period31 = new org.joda.time.Period((long) (short) -1, periodType29, chronology30); org.joda.time.Period period32 = new org.joda.time.Period(readableInstant11, (org.joda.time.ReadableDuration) duration16, periodType29); org.joda.time.Chronology chronology33 = null; org.joda.time.Period period34 = new org.joda.time.Period((long) (byte) 0, periodType29, chronology33); org.joda.time.Period period35 = period9.withPeriodType(periodType29); org.joda.time.Period period36 = new org.joda.time.Period((java.lang.Object) period3, periodType29); // The following exception was thrown during execution in test generation try { org.joda.time.Minutes minutes37 = period36.toStandardMinutes(); org.junit.Assert.fail("Expected exception of type java.lang.UnsupportedOperationException; message: Cannot convert to Minutes as this period contains years and years vary in length"); } catch (java.lang.UnsupportedOperationException e) { // Expected exception. } org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(duration16); org.junit.Assert.assertNotNull(duration22); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(periodType29); org.junit.Assert.assertNotNull(period35); } @Test public void test0901() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0901"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.PeriodType periodType3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant1, readableInstant2, periodType3); org.joda.time.Period period6 = period4.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Duration duration8 = period4.toDurationTo(readableInstant7); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Period period12 = new org.joda.time.Period(readableInstant10, readableInstant11); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Duration duration14 = period12.toDurationFrom(readableInstant13); org.joda.time.Period period16 = period12.plusMonths(0); org.joda.time.Period period18 = period16.plusMonths((int) '#'); org.joda.time.Period period20 = period16.plusMinutes((int) (short) 100); org.joda.time.Period period22 = period20.withWeeks((int) ' '); org.joda.time.PeriodType periodType23 = null; org.joda.time.Period period24 = new org.joda.time.Period((java.lang.Object) period20, periodType23); org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Duration duration26 = period20.toDurationTo(readableInstant25); org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.PeriodType periodType31 = null; org.joda.time.Period period32 = new org.joda.time.Period(readableInstant29, readableInstant30, periodType31); org.joda.time.Period period34 = period32.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Duration duration36 = period32.toDurationTo(readableInstant35); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Period period38 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration36, readableInstant37); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.Period period48 = new org.joda.time.Period(readableInstant46, readableInstant47); org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.Duration duration50 = period48.toDurationFrom(readableInstant49); org.joda.time.ReadableInstant readableInstant52 = null; org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.Period period54 = new org.joda.time.Period(readableInstant52, readableInstant53); org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.Duration duration56 = period54.toDurationFrom(readableInstant55); org.joda.time.Period period58 = period54.plusMonths(0); org.joda.time.Period period60 = period58.plusMonths((int) '#'); org.joda.time.Period period62 = period58.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType63 = period58.getPeriodType(); org.joda.time.Chronology chronology64 = null; org.joda.time.Period period65 = new org.joda.time.Period((long) (short) -1, periodType63, chronology64); org.joda.time.Period period66 = new org.joda.time.Period(readableInstant45, (org.joda.time.ReadableDuration) duration50, periodType63); org.joda.time.Period period67 = new org.joda.time.Period(readableInstant43, readableInstant44, periodType63); org.joda.time.Chronology chronology68 = null; org.joda.time.Period period69 = new org.joda.time.Period((long) (-100), (long) (-100), periodType63, chronology68); org.joda.time.Chronology chronology70 = null; org.joda.time.Period period71 = new org.joda.time.Period((long) 0, (long) 100, periodType63, chronology70); org.joda.time.Period period72 = period38.withPeriodType(periodType63); org.joda.time.Chronology chronology73 = null; org.joda.time.Period period74 = new org.joda.time.Period((long) (byte) 10, (long) '4', periodType63, chronology73); org.joda.time.Period period75 = new org.joda.time.Period(readableInstant9, (org.joda.time.ReadableDuration) duration26, periodType63); org.joda.time.Period period76 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration8, periodType63); org.joda.time.Seconds seconds77 = period76.toStandardSeconds(); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(duration8); org.junit.Assert.assertNotNull(duration14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(duration26); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(duration36); org.junit.Assert.assertNotNull(duration50); org.junit.Assert.assertNotNull(duration56); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertNotNull(period60); org.junit.Assert.assertNotNull(period62); org.junit.Assert.assertNotNull(periodType63); org.junit.Assert.assertNotNull(period72); org.junit.Assert.assertNotNull(seconds77); } @Test public void test0902() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0902"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); org.joda.time.Period period7 = period5.minusSeconds((int) (short) 100); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.Period period13 = new org.joda.time.Period(97, (int) (short) 0, 100, (int) (short) 100); org.joda.time.Period period15 = org.joda.time.Period.millis(1); org.joda.time.PeriodType periodType17 = null; org.joda.time.Chronology chronology18 = null; org.joda.time.Period period19 = new org.joda.time.Period((long) 'a', periodType17, chronology18); org.joda.time.Hours hours20 = period19.toStandardHours(); org.joda.time.Period period22 = period19.plusSeconds((int) (byte) 1); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.PeriodType periodType25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant23, readableInstant24, periodType25); org.joda.time.DurationFieldType durationFieldType28 = period26.getFieldType((int) (byte) 0); org.joda.time.Period period30 = period19.withField(durationFieldType28, 1); boolean boolean31 = period15.equals((java.lang.Object) 1); org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.PeriodType periodType34 = null; org.joda.time.Period period35 = new org.joda.time.Period(readableInstant32, readableInstant33, periodType34); org.joda.time.Period period37 = period35.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.PeriodType periodType40 = null; org.joda.time.Period period41 = new org.joda.time.Period(readableInstant38, readableInstant39, periodType40); org.joda.time.DurationFieldType durationFieldType43 = period41.getFieldType((int) (byte) 0); int int44 = period37.indexOf(durationFieldType43); org.joda.time.Period period46 = period15.withFieldAdded(durationFieldType43, (int) (short) 0); int int47 = period13.get(durationFieldType43); org.joda.time.Period period49 = period7.withField(durationFieldType43, (int) (short) 100); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(hours20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(durationFieldType28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertTrue("'" + boolean31 + "' != '" + false + "'", boolean31 == false); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(durationFieldType43); org.junit.Assert.assertTrue("'" + int44 + "' != '" + 0 + "'", int44 == 0); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertTrue("'" + int47 + "' != '" + 0 + "'", int47 == 0); org.junit.Assert.assertNotNull(period49); } @Test public void test0903() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0903"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); org.joda.time.Period period7 = period5.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod8 = period5.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.PeriodType periodType11 = null; org.joda.time.Period period12 = new org.joda.time.Period(readableInstant9, readableInstant10, periodType11); org.joda.time.Period period14 = period12.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.PeriodType periodType17 = null; org.joda.time.Period period18 = new org.joda.time.Period(readableInstant15, readableInstant16, periodType17); org.joda.time.DurationFieldType durationFieldType20 = period18.getFieldType((int) (byte) 0); int int21 = period14.indexOf(durationFieldType20); org.joda.time.Period period23 = period5.withFieldAdded(durationFieldType20, 10); org.joda.time.PeriodType periodType24 = period23.getPeriodType(); org.joda.time.Period period26 = new org.joda.time.Period((long) (byte) -1); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant28, readableInstant29); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Duration duration32 = period30.toDurationFrom(readableInstant31); org.joda.time.Period period34 = period30.plusMonths(0); org.joda.time.Period period36 = period34.plusMonths((int) '#'); org.joda.time.Period period38 = period34.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType39 = period34.getPeriodType(); org.joda.time.Chronology chronology40 = null; org.joda.time.Period period41 = new org.joda.time.Period((long) (short) -1, periodType39, chronology40); org.joda.time.Period period42 = period26.minus((org.joda.time.ReadablePeriod) period41); org.joda.time.Hours hours43 = period42.toStandardHours(); org.joda.time.PeriodType periodType45 = null; org.joda.time.Chronology chronology46 = null; org.joda.time.Period period47 = new org.joda.time.Period((long) 'a', periodType45, chronology46); org.joda.time.Period period49 = period47.withMinutes(0); org.joda.time.Period period51 = period49.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod52 = period49.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.PeriodType periodType55 = null; org.joda.time.Period period56 = new org.joda.time.Period(readableInstant53, readableInstant54, periodType55); org.joda.time.Period period58 = period56.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.PeriodType periodType61 = null; org.joda.time.Period period62 = new org.joda.time.Period(readableInstant59, readableInstant60, periodType61); org.joda.time.DurationFieldType durationFieldType64 = period62.getFieldType((int) (byte) 0); int int65 = period58.indexOf(durationFieldType64); org.joda.time.Period period67 = period49.withFieldAdded(durationFieldType64, 10); org.joda.time.Period period69 = period42.withField(durationFieldType64, 97); int int70 = period23.get(durationFieldType64); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(mutablePeriod8); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(durationFieldType20); org.junit.Assert.assertTrue("'" + int21 + "' != '" + 0 + "'", int21 == 0); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(periodType24); org.junit.Assert.assertNotNull(duration32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(periodType39); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(hours43); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(mutablePeriod52); org.junit.Assert.assertNotNull(period58); org.junit.Assert.assertNotNull(durationFieldType64); org.junit.Assert.assertTrue("'" + int65 + "' != '" + 0 + "'", int65 == 0); org.junit.Assert.assertNotNull(period67); org.junit.Assert.assertNotNull(period69); org.junit.Assert.assertTrue("'" + int70 + "' != '" + 10 + "'", int70 == 10); } @Test public void test0904() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0904"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period(0L, 0L, chronology2); org.joda.time.Period period5 = period3.withHours((int) 'a'); org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology8); org.joda.time.Period period10 = period5.minus((org.joda.time.ReadablePeriod) period9); org.joda.time.Period period11 = period10.negated(); java.lang.Class<?> wildcardClass12 = period10.getClass(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(wildcardClass12); } @Test public void test0905() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0905"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period3 = period1.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.PeriodType periodType6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant4, readableInstant5, periodType6); org.joda.time.Period period9 = period7.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.PeriodType periodType12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant10, readableInstant11, periodType12); org.joda.time.DurationFieldType durationFieldType15 = period13.getFieldType((int) (byte) 0); int int16 = period9.indexOf(durationFieldType15); org.joda.time.Period period18 = period1.withFieldAdded(durationFieldType15, 1); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Period period21 = new org.joda.time.Period(readableInstant19, readableInstant20); org.joda.time.Period period22 = period21.normalizedStandard(); int int23 = period21.getMillis(); org.joda.time.Period period24 = period18.withFields((org.joda.time.ReadablePeriod) period21); org.joda.time.Period period26 = period18.withWeeks((int) (byte) 0); // The following exception was thrown during execution in test generation try { int int28 = period18.getValue(52); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: 52"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(durationFieldType15); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertTrue("'" + int23 + "' != '" + 0 + "'", int23 == 0); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); } @Test public void test0906() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0906"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.PeriodType periodType5 = null; org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period((long) 'a', periodType5, chronology6); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.Period period9 = period3.withFields((org.joda.time.ReadablePeriod) period7); org.joda.time.Period period11 = period3.withYears(10); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant12, readableInstant13); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Duration duration16 = period14.toDurationFrom(readableInstant15); org.joda.time.Period period18 = period14.plusMonths(0); org.joda.time.Period period20 = period14.plusWeeks((int) ' '); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.Period period23 = new org.joda.time.Period(readableInstant21, readableInstant22); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Duration duration25 = period23.toDurationFrom(readableInstant24); org.joda.time.Period period27 = period23.plusMonths(0); org.joda.time.Period period29 = period27.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.Duration duration31 = period27.toDurationFrom(readableInstant30); org.joda.time.Period period33 = period27.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.PeriodType periodType36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant34, readableInstant35, periodType36); org.joda.time.Period period39 = period37.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant40 = null; org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.PeriodType periodType42 = null; org.joda.time.Period period43 = new org.joda.time.Period(readableInstant40, readableInstant41, periodType42); org.joda.time.Period period45 = period43.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.PeriodType periodType48 = null; org.joda.time.Period period49 = new org.joda.time.Period(readableInstant46, readableInstant47, periodType48); org.joda.time.DurationFieldType durationFieldType51 = period49.getFieldType((int) (byte) 0); int int52 = period45.indexOf(durationFieldType51); int int53 = period37.get(durationFieldType51); org.joda.time.Period period55 = period27.withField(durationFieldType51, (int) (short) 0); int int56 = period20.indexOf(durationFieldType51); int int57 = period11.get(durationFieldType51); int int58 = period11.size(); // The following exception was thrown during execution in test generation try { org.joda.time.Weeks weeks59 = period11.toStandardWeeks(); org.junit.Assert.fail("Expected exception of type java.lang.UnsupportedOperationException; message: Cannot convert to Weeks as this period contains years and years vary in length"); } catch (java.lang.UnsupportedOperationException e) { // Expected exception. } org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(duration16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(duration25); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(duration31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertNotNull(durationFieldType51); org.junit.Assert.assertTrue("'" + int52 + "' != '" + 0 + "'", int52 == 0); org.junit.Assert.assertTrue("'" + int53 + "' != '" + 0 + "'", int53 == 0); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertTrue("'" + int56 + "' != '" + 0 + "'", int56 == 0); org.junit.Assert.assertTrue("'" + int57 + "' != '" + 10 + "'", int57 == 10); org.junit.Assert.assertTrue("'" + int58 + "' != '" + 8 + "'", int58 == 8); } @Test public void test0907() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0907"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period(0L, 0L, chronology2); org.joda.time.Period period5 = period3.withHours((int) 'a'); org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology8); org.joda.time.Period period10 = period5.minus((org.joda.time.ReadablePeriod) period9); org.joda.time.Period period11 = period10.negated(); org.joda.time.Period period13 = org.joda.time.Period.years(0); org.joda.time.Chronology chronology16 = null; org.joda.time.Period period17 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology16); java.lang.String str18 = period17.toString(); org.joda.time.Period period19 = new org.joda.time.Period((java.lang.Object) str18); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant20, readableInstant21); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Duration duration24 = period22.toDurationFrom(readableInstant23); org.joda.time.Period period26 = period22.plusMonths(0); org.joda.time.Period period28 = period26.plusMonths((int) '#'); org.joda.time.Period period30 = period26.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType31 = period26.getPeriodType(); org.joda.time.Period period32 = new org.joda.time.Period((java.lang.Object) str18, periodType31); org.joda.time.PeriodType periodType34 = null; org.joda.time.Chronology chronology35 = null; org.joda.time.Period period36 = new org.joda.time.Period((long) 'a', periodType34, chronology35); org.joda.time.Period period38 = period36.withMinutes(0); org.joda.time.Period period40 = period38.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod41 = period38.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.Period period44 = new org.joda.time.Period(readableInstant42, readableInstant43); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.Duration duration46 = period44.toDurationFrom(readableInstant45); org.joda.time.Period period48 = period44.plusMonths(0); org.joda.time.Period period50 = period48.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant51 = null; org.joda.time.Duration duration52 = period48.toDurationFrom(readableInstant51); org.joda.time.Period period54 = period48.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.PeriodType periodType57 = null; org.joda.time.Period period58 = new org.joda.time.Period(readableInstant55, readableInstant56, periodType57); org.joda.time.Period period60 = period58.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.PeriodType periodType63 = null; org.joda.time.Period period64 = new org.joda.time.Period(readableInstant61, readableInstant62, periodType63); org.joda.time.Period period66 = period64.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant67 = null; org.joda.time.ReadableInstant readableInstant68 = null; org.joda.time.PeriodType periodType69 = null; org.joda.time.Period period70 = new org.joda.time.Period(readableInstant67, readableInstant68, periodType69); org.joda.time.DurationFieldType durationFieldType72 = period70.getFieldType((int) (byte) 0); int int73 = period66.indexOf(durationFieldType72); int int74 = period58.get(durationFieldType72); org.joda.time.Period period76 = period48.withField(durationFieldType72, (int) (short) 0); int int77 = mutablePeriod41.indexOf(durationFieldType72); int int78 = period32.get(durationFieldType72); org.joda.time.Period period80 = period13.withField(durationFieldType72, 0); boolean boolean81 = period11.isSupported(durationFieldType72); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertEquals("'" + str18 + "' != '" + "PT0.011S" + "'", str18, "PT0.011S"); org.junit.Assert.assertNotNull(duration24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(periodType31); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(mutablePeriod41); org.junit.Assert.assertNotNull(duration46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(duration52); org.junit.Assert.assertNotNull(period54); org.junit.Assert.assertNotNull(period60); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertNotNull(durationFieldType72); org.junit.Assert.assertTrue("'" + int73 + "' != '" + 0 + "'", int73 == 0); org.junit.Assert.assertTrue("'" + int74 + "' != '" + 0 + "'", int74 == 0); org.junit.Assert.assertNotNull(period76); org.junit.Assert.assertTrue("'" + int77 + "' != '" + 0 + "'", int77 == 0); org.junit.Assert.assertTrue("'" + int78 + "' != '" + 0 + "'", int78 == 0); org.junit.Assert.assertNotNull(period80); org.junit.Assert.assertTrue("'" + boolean81 + "' != '" + true + "'", boolean81 == true); } @Test public void test0908() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0908"); org.joda.time.Period period1 = new org.joda.time.Period((long) 100); org.joda.time.Period period4 = new org.joda.time.Period(0L, (-1L)); org.joda.time.Period period6 = period4.minusYears(100); org.joda.time.Period period7 = period6.negated(); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.PeriodType periodType10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant8, readableInstant9, periodType10); org.joda.time.Period period13 = period11.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.PeriodType periodType16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant14, readableInstant15, periodType16); org.joda.time.DurationFieldType durationFieldType19 = period17.getFieldType((int) (byte) 0); int int20 = period13.indexOf(durationFieldType19); org.joda.time.Period period22 = period6.withField(durationFieldType19, 10); boolean boolean23 = period1.isSupported(durationFieldType19); org.joda.time.Period period25 = period1.minusYears((int) (short) 10); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(durationFieldType19); org.junit.Assert.assertTrue("'" + int20 + "' != '" + 0 + "'", int20 == 0); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + true + "'", boolean23 == true); org.junit.Assert.assertNotNull(period25); } @Test public void test0909() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0909"); org.joda.time.Period period8 = new org.joda.time.Period((int) (byte) 1, (-1), (int) (byte) 100, 0, (int) (short) -1, (int) (byte) 10, (int) (short) 1, (int) '#'); int int9 = period8.getSeconds(); org.joda.time.Period period11 = period8.minusMillis(52); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1); org.junit.Assert.assertNotNull(period11); } @Test public void test0910() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0910"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant4, readableInstant5); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Duration duration8 = period6.toDurationFrom(readableInstant7); org.joda.time.Period period10 = period6.plusMonths(0); org.joda.time.Period period12 = period10.plusMonths((int) '#'); org.joda.time.Period period14 = period10.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType15 = period10.getPeriodType(); org.joda.time.Chronology chronology16 = null; org.joda.time.Period period17 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType15, chronology16); org.joda.time.Period period18 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType15); org.joda.time.Period period20 = period18.plusWeeks((int) 'a'); org.joda.time.Period period21 = period20.toPeriod(); org.joda.time.Period period23 = period20.withMinutes((-3)); org.junit.Assert.assertNotNull(duration8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(periodType15); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period23); } @Test public void test0911() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0911"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Period period11 = period9.withMinutes(0); org.joda.time.Period period12 = period2.minus((org.joda.time.ReadablePeriod) period11); org.joda.time.Period period14 = period11.minusMillis((int) ' '); org.joda.time.PeriodType periodType16 = null; org.joda.time.Chronology chronology17 = null; org.joda.time.Period period18 = new org.joda.time.Period((long) 'a', periodType16, chronology17); org.joda.time.PeriodType periodType20 = null; org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) 'a', periodType20, chronology21); org.joda.time.Hours hours23 = period22.toStandardHours(); org.joda.time.Period period24 = period18.withFields((org.joda.time.ReadablePeriod) period22); org.joda.time.Period period26 = period18.withYears(10); org.joda.time.Period period27 = period26.toPeriod(); org.joda.time.Period period29 = period26.plusMillis(1); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Period period34 = new org.joda.time.Period(readableInstant32, readableInstant33); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Duration duration36 = period34.toDurationFrom(readableInstant35); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Period period40 = new org.joda.time.Period(readableInstant38, readableInstant39); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.Duration duration42 = period40.toDurationFrom(readableInstant41); org.joda.time.Period period44 = period40.plusMonths(0); org.joda.time.Period period46 = period44.plusMonths((int) '#'); org.joda.time.Period period48 = period44.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType49 = period44.getPeriodType(); org.joda.time.Chronology chronology50 = null; org.joda.time.Period period51 = new org.joda.time.Period((long) (short) -1, periodType49, chronology50); org.joda.time.Period period52 = new org.joda.time.Period(readableInstant31, (org.joda.time.ReadableDuration) duration36, periodType49); org.joda.time.Chronology chronology53 = null; org.joda.time.Period period54 = new org.joda.time.Period((long) (byte) 0, periodType49, chronology53); org.joda.time.Period period55 = period29.normalizedStandard(periodType49); org.joda.time.Period period56 = period11.normalizedStandard(periodType49); int int57 = period56.getMonths(); org.joda.time.ReadableInstant readableInstant58 = null; org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.Period period60 = new org.joda.time.Period(readableInstant58, readableInstant59); org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.Duration duration62 = period60.toDurationFrom(readableInstant61); org.joda.time.Period period64 = period60.plusMonths(0); org.joda.time.Period period66 = period64.plusMonths((int) '#'); org.joda.time.Period period68 = period64.plusMinutes((int) (short) 100); org.joda.time.Period period70 = period68.withWeeks((int) ' '); org.joda.time.PeriodType periodType71 = null; org.joda.time.Period period72 = new org.joda.time.Period((java.lang.Object) period68, periodType71); org.joda.time.PeriodType periodType74 = null; org.joda.time.Chronology chronology75 = null; org.joda.time.Period period76 = new org.joda.time.Period((long) 'a', periodType74, chronology75); org.joda.time.Hours hours77 = period76.toStandardHours(); org.joda.time.Period period79 = period76.plusSeconds((int) (byte) 1); org.joda.time.ReadableInstant readableInstant80 = null; org.joda.time.ReadableInstant readableInstant81 = null; org.joda.time.PeriodType periodType82 = null; org.joda.time.Period period83 = new org.joda.time.Period(readableInstant80, readableInstant81, periodType82); org.joda.time.DurationFieldType durationFieldType85 = period83.getFieldType((int) (byte) 0); org.joda.time.Period period87 = period76.withField(durationFieldType85, 1); int int88 = period72.get(durationFieldType85); org.joda.time.Period period90 = period56.withFieldAdded(durationFieldType85, (-3)); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(hours23); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(duration36); org.junit.Assert.assertNotNull(duration42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(periodType49); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertNotNull(period56); org.junit.Assert.assertTrue("'" + int57 + "' != '" + 0 + "'", int57 == 0); org.junit.Assert.assertNotNull(duration62); org.junit.Assert.assertNotNull(period64); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertNotNull(period68); org.junit.Assert.assertNotNull(period70); org.junit.Assert.assertNotNull(hours77); org.junit.Assert.assertNotNull(period79); org.junit.Assert.assertNotNull(durationFieldType85); org.junit.Assert.assertNotNull(period87); org.junit.Assert.assertTrue("'" + int88 + "' != '" + 0 + "'", int88 == 0); org.junit.Assert.assertNotNull(period90); } @Test public void test0912() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0912"); org.joda.time.Period period1 = org.joda.time.Period.parse("PT0.100S"); org.junit.Assert.assertNotNull(period1); } @Test public void test0913() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0913"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period2.plusWeeks((int) ' '); org.joda.time.Period period10 = period2.plusMinutes((-1)); org.joda.time.Period period11 = period2.normalizedStandard(); org.joda.time.Period period16 = new org.joda.time.Period(97, (int) (short) 0, 100, (int) (short) 100); org.joda.time.Period period18 = org.joda.time.Period.millis(1); org.joda.time.PeriodType periodType20 = null; org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) 'a', periodType20, chronology21); org.joda.time.Hours hours23 = period22.toStandardHours(); org.joda.time.Period period25 = period22.plusSeconds((int) (byte) 1); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.PeriodType periodType28 = null; org.joda.time.Period period29 = new org.joda.time.Period(readableInstant26, readableInstant27, periodType28); org.joda.time.DurationFieldType durationFieldType31 = period29.getFieldType((int) (byte) 0); org.joda.time.Period period33 = period22.withField(durationFieldType31, 1); boolean boolean34 = period18.equals((java.lang.Object) 1); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.PeriodType periodType37 = null; org.joda.time.Period period38 = new org.joda.time.Period(readableInstant35, readableInstant36, periodType37); org.joda.time.Period period40 = period38.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.PeriodType periodType43 = null; org.joda.time.Period period44 = new org.joda.time.Period(readableInstant41, readableInstant42, periodType43); org.joda.time.DurationFieldType durationFieldType46 = period44.getFieldType((int) (byte) 0); int int47 = period40.indexOf(durationFieldType46); org.joda.time.Period period49 = period18.withFieldAdded(durationFieldType46, (int) (short) 0); int int50 = period16.get(durationFieldType46); int int51 = period2.get(durationFieldType46); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(hours23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(durationFieldType31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertTrue("'" + boolean34 + "' != '" + false + "'", boolean34 == false); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(durationFieldType46); org.junit.Assert.assertTrue("'" + int47 + "' != '" + 0 + "'", int47 == 0); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertTrue("'" + int50 + "' != '" + 0 + "'", int50 == 0); org.junit.Assert.assertTrue("'" + int51 + "' != '" + 0 + "'", int51 == 0); } @Test public void test0914() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0914"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); org.joda.time.Period period7 = period5.minusSeconds((int) (short) 100); org.joda.time.Period period9 = period7.minusMinutes(100); org.joda.time.Period period11 = period9.withSeconds((int) (short) 1); org.joda.time.Period period13 = period11.withHours(1); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); } @Test public void test0915() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0915"); org.joda.time.PeriodType periodType4 = null; org.joda.time.Chronology chronology5 = null; org.joda.time.Period period6 = new org.joda.time.Period((long) 'a', periodType4, chronology5); org.joda.time.PeriodType periodType8 = null; org.joda.time.Chronology chronology9 = null; org.joda.time.Period period10 = new org.joda.time.Period((long) 'a', periodType8, chronology9); org.joda.time.Hours hours11 = period10.toStandardHours(); org.joda.time.Period period12 = period6.withFields((org.joda.time.ReadablePeriod) period10); org.joda.time.Period period14 = period6.withYears(10); org.joda.time.Period period15 = period14.toPeriod(); org.joda.time.Period period17 = period14.plusMillis(1); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant20, readableInstant21); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Duration duration24 = period22.toDurationFrom(readableInstant23); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Period period28 = new org.joda.time.Period(readableInstant26, readableInstant27); org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Duration duration30 = period28.toDurationFrom(readableInstant29); org.joda.time.Period period32 = period28.plusMonths(0); org.joda.time.Period period34 = period32.plusMonths((int) '#'); org.joda.time.Period period36 = period32.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType37 = period32.getPeriodType(); org.joda.time.Chronology chronology38 = null; org.joda.time.Period period39 = new org.joda.time.Period((long) (short) -1, periodType37, chronology38); org.joda.time.Period period40 = new org.joda.time.Period(readableInstant19, (org.joda.time.ReadableDuration) duration24, periodType37); org.joda.time.Chronology chronology41 = null; org.joda.time.Period period42 = new org.joda.time.Period((long) (byte) 0, periodType37, chronology41); org.joda.time.Period period43 = period17.normalizedStandard(periodType37); org.joda.time.Chronology chronology44 = null; org.joda.time.Period period45 = new org.joda.time.Period(0L, (long) 8, periodType37, chronology44); org.joda.time.Chronology chronology46 = null; org.joda.time.Period period47 = new org.joda.time.Period((long) ' ', periodType37, chronology46); org.joda.time.Period period49 = period47.minusSeconds(97); org.junit.Assert.assertNotNull(hours11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(duration24); org.junit.Assert.assertNotNull(duration30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(periodType37); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(period49); } @Test public void test0916() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0916"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Period period11 = period9.withMinutes(0); org.joda.time.Period period12 = period2.minus((org.joda.time.ReadablePeriod) period11); org.joda.time.DurationFieldType[] durationFieldTypeArray13 = period2.getFieldTypes(); org.joda.time.Period period15 = period2.minusHours((int) (byte) 100); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.Period period18 = new org.joda.time.Period(readableInstant16, readableInstant17); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Duration duration20 = period18.toDurationFrom(readableInstant19); org.joda.time.Period period22 = period18.plusMonths(0); int int23 = period18.getWeeks(); int int24 = period18.size(); org.joda.time.Period period26 = period18.minusDays((int) (byte) -1); org.joda.time.Period period28 = period26.withDays((int) (byte) -1); org.joda.time.Period period29 = period15.withFields((org.joda.time.ReadablePeriod) period26); org.joda.time.Period period31 = period29.plusDays((int) (short) 100); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(durationFieldTypeArray13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(duration20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertTrue("'" + int23 + "' != '" + 0 + "'", int23 == 0); org.junit.Assert.assertTrue("'" + int24 + "' != '" + 8 + "'", int24 == 8); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); } @Test public void test0917() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0917"); org.joda.time.Period period1 = org.joda.time.Period.minutes(0); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Duration duration6 = period4.toDurationFrom(readableInstant5); org.joda.time.Period period8 = period4.plusMonths(0); int int9 = period4.getWeeks(); org.joda.time.PeriodType periodType10 = null; org.joda.time.Period period11 = period4.normalizedStandard(periodType10); org.joda.time.Period period12 = period1.minus((org.joda.time.ReadablePeriod) period11); org.joda.time.Chronology chronology15 = null; org.joda.time.Period period16 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology15); java.lang.String str17 = period16.toString(); org.joda.time.Period period18 = new org.joda.time.Period((java.lang.Object) str17); org.joda.time.Period period20 = period18.plusSeconds((int) 'a'); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant24, readableInstant25); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Duration duration28 = period26.toDurationFrom(readableInstant27); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Period period32 = new org.joda.time.Period(readableInstant30, readableInstant31); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Duration duration34 = period32.toDurationFrom(readableInstant33); org.joda.time.Period period36 = period32.plusMonths(0); org.joda.time.Period period38 = period36.plusMonths((int) '#'); org.joda.time.Period period40 = period36.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType41 = period36.getPeriodType(); org.joda.time.Chronology chronology42 = null; org.joda.time.Period period43 = new org.joda.time.Period((long) (short) -1, periodType41, chronology42); org.joda.time.Period period44 = new org.joda.time.Period(readableInstant23, (org.joda.time.ReadableDuration) duration28, periodType41); org.joda.time.Chronology chronology45 = null; org.joda.time.Period period46 = new org.joda.time.Period((long) (byte) 10, (long) 10, periodType41, chronology45); org.joda.time.Chronology chronology49 = null; org.joda.time.Period period50 = new org.joda.time.Period((long) 100, (long) (-1), chronology49); org.joda.time.Period period52 = period50.plusMinutes((int) (short) 10); org.joda.time.Period period54 = period52.plusMinutes((-1)); int int55 = period54.getWeeks(); org.joda.time.Period period57 = period54.withMinutes((int) (byte) 10); org.joda.time.DurationFieldType durationFieldType59 = period57.getFieldType(0); org.joda.time.Period period61 = period46.withFieldAdded(durationFieldType59, (int) (short) 100); org.joda.time.Period period63 = period20.withFieldAdded(durationFieldType59, 52); org.joda.time.Period period64 = period11.withFields((org.joda.time.ReadablePeriod) period20); org.joda.time.Period period66 = period11.withDays(10); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(duration6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertEquals("'" + str17 + "' != '" + "PT0.011S" + "'", str17, "PT0.011S"); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(duration28); org.junit.Assert.assertNotNull(duration34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(periodType41); org.junit.Assert.assertNotNull(period52); org.junit.Assert.assertNotNull(period54); org.junit.Assert.assertTrue("'" + int55 + "' != '" + 0 + "'", int55 == 0); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertNotNull(durationFieldType59); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(period63); org.junit.Assert.assertNotNull(period64); org.junit.Assert.assertNotNull(period66); } @Test public void test0918() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0918"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType10 = null; org.joda.time.Period period11 = new org.joda.time.Period((-1), 0, (int) '#', (int) (short) 10, (int) (short) 0, 10, (int) (short) 1, (int) (byte) 10, periodType10); org.joda.time.Period period13 = period11.withYears((int) ' '); org.joda.time.Period period15 = period13.withWeeks((int) ' '); org.joda.time.PeriodType periodType18 = null; org.joda.time.Chronology chronology19 = null; org.joda.time.Period period20 = new org.joda.time.Period((long) 'a', periodType18, chronology19); org.joda.time.PeriodType periodType22 = null; org.joda.time.Chronology chronology23 = null; org.joda.time.Period period24 = new org.joda.time.Period((long) 'a', periodType22, chronology23); org.joda.time.Hours hours25 = period24.toStandardHours(); org.joda.time.Period period26 = period20.withFields((org.joda.time.ReadablePeriod) period24); org.joda.time.Period period28 = period20.withYears(10); org.joda.time.Period period29 = period28.toPeriod(); org.joda.time.Period period31 = period28.plusMillis(1); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Period period36 = new org.joda.time.Period(readableInstant34, readableInstant35); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Duration duration38 = period36.toDurationFrom(readableInstant37); org.joda.time.ReadableInstant readableInstant40 = null; org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.Period period42 = new org.joda.time.Period(readableInstant40, readableInstant41); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.Duration duration44 = period42.toDurationFrom(readableInstant43); org.joda.time.Period period46 = period42.plusMonths(0); org.joda.time.Period period48 = period46.plusMonths((int) '#'); org.joda.time.Period period50 = period46.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType51 = period46.getPeriodType(); org.joda.time.Chronology chronology52 = null; org.joda.time.Period period53 = new org.joda.time.Period((long) (short) -1, periodType51, chronology52); org.joda.time.Period period54 = new org.joda.time.Period(readableInstant33, (org.joda.time.ReadableDuration) duration38, periodType51); org.joda.time.Chronology chronology55 = null; org.joda.time.Period period56 = new org.joda.time.Period((long) (byte) 0, periodType51, chronology55); org.joda.time.Period period57 = period31.normalizedStandard(periodType51); org.joda.time.Chronology chronology58 = null; org.joda.time.Period period59 = new org.joda.time.Period((long) 'a', periodType51, chronology58); org.joda.time.Chronology chronology60 = null; org.joda.time.Period period61 = new org.joda.time.Period((java.lang.Object) period13, periodType51, chronology60); org.joda.time.Period period62 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType51); // The following exception was thrown during execution in test generation try { org.joda.time.DurationFieldType durationFieldType64 = period62.getFieldType((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: -1"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(hours25); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(duration38); org.junit.Assert.assertNotNull(duration44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(periodType51); org.junit.Assert.assertNotNull(period57); } @Test public void test0919() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0919"); org.joda.time.Period period2 = new org.joda.time.Period((long) 1, (long) (byte) 1); } @Test public void test0920() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0920"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.MutablePeriod mutablePeriod4 = period3.toMutablePeriod(); org.joda.time.Chronology chronology5 = null; org.joda.time.Period period6 = new org.joda.time.Period((java.lang.Object) period3, chronology5); org.joda.time.Minutes minutes7 = period6.toStandardMinutes(); org.joda.time.Period period9 = period6.withYears(100); org.junit.Assert.assertNotNull(mutablePeriod4); org.junit.Assert.assertNotNull(minutes7); org.junit.Assert.assertNotNull(period9); } @Test public void test0921() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0921"); org.joda.time.Period period1 = org.joda.time.Period.months(8); org.joda.time.Period period3 = period1.plusYears((-1)); org.joda.time.Period period5 = period1.plusMinutes(97); org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology8); java.lang.String str10 = period9.toString(); org.joda.time.Period period11 = new org.joda.time.Period((java.lang.Object) str10); org.joda.time.Period period13 = period11.plusSeconds((int) 'a'); org.joda.time.Period period15 = period11.plusYears((int) (byte) 0); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant20, readableInstant21); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Duration duration24 = period22.toDurationFrom(readableInstant23); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Period period28 = new org.joda.time.Period(readableInstant26, readableInstant27); org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Duration duration30 = period28.toDurationFrom(readableInstant29); org.joda.time.Period period32 = period28.plusMonths(0); org.joda.time.Period period34 = period32.plusMonths((int) '#'); org.joda.time.Period period36 = period32.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType37 = period32.getPeriodType(); org.joda.time.Chronology chronology38 = null; org.joda.time.Period period39 = new org.joda.time.Period((long) (short) -1, periodType37, chronology38); org.joda.time.Period period40 = new org.joda.time.Period(readableInstant19, (org.joda.time.ReadableDuration) duration24, periodType37); org.joda.time.Period period41 = new org.joda.time.Period(readableInstant17, readableInstant18, periodType37); org.joda.time.Chronology chronology42 = null; org.joda.time.Period period43 = new org.joda.time.Period(100L, periodType37, chronology42); org.joda.time.Period period44 = period15.withPeriodType(periodType37); boolean boolean45 = period1.equals((java.lang.Object) period15); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertEquals("'" + str10 + "' != '" + "PT0.011S" + "'", str10, "PT0.011S"); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(duration24); org.junit.Assert.assertNotNull(duration30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(periodType37); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertTrue("'" + boolean45 + "' != '" + false + "'", boolean45 == false); } @Test public void test0922() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0922"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.PeriodType periodType3 = null; org.joda.time.Chronology chronology4 = null; org.joda.time.Period period5 = new org.joda.time.Period((long) 'a', periodType3, chronology4); org.joda.time.DurationFieldType durationFieldType6 = null; int int7 = period5.get(durationFieldType6); org.joda.time.Period period8 = period1.withFields((org.joda.time.ReadablePeriod) period5); org.joda.time.Period period10 = period8.multipliedBy((int) (short) -1); org.joda.time.Period period11 = period10.negated(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period11); } @Test public void test0923() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0923"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.MutablePeriod mutablePeriod7 = period6.toMutablePeriod(); org.joda.time.Period period8 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Period period10 = period6.withMonths((int) (byte) 0); org.joda.time.Period period12 = period10.minusSeconds((-1)); org.joda.time.Period period14 = period12.minusHours((-1)); org.joda.time.Period period16 = period14.minusDays(100); org.joda.time.Period period18 = period14.minusMinutes((int) '4'); org.joda.time.PeriodType periodType19 = period18.getPeriodType(); org.joda.time.Period period21 = period18.minusYears((int) (short) 10); org.junit.Assert.assertNotNull(mutablePeriod7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(periodType19); org.junit.Assert.assertNotNull(period21); } @Test public void test0924() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0924"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period((long) 98, chronology1); } @Test public void test0925() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0925"); org.joda.time.Period period1 = org.joda.time.Period.minutes(0); int int2 = period1.getMillis(); org.joda.time.Period period4 = period1.minusSeconds(52); org.joda.time.Period period6 = period4.minusYears((int) ' '); org.joda.time.Period period7 = period6.negated(); org.joda.time.Period period9 = period6.minusDays((-100)); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertNotNull(period4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); } @Test public void test0926() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0926"); org.joda.time.Period period1 = new org.joda.time.Period((long) '#'); org.joda.time.DurationFieldType durationFieldType2 = null; boolean boolean3 = period1.isSupported(durationFieldType2); org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false); } @Test public void test0927() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0927"); org.joda.time.Period period1 = org.joda.time.Period.millis(1); org.joda.time.Period period3 = period1.withWeeks((int) (short) 0); org.joda.time.PeriodType periodType5 = null; org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period((long) 'a', periodType5, chronology6); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.Period period10 = period7.plusSeconds((int) (byte) 1); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant11, readableInstant12, periodType13); org.joda.time.DurationFieldType durationFieldType16 = period14.getFieldType((int) (byte) 0); org.joda.time.Period period18 = period7.withField(durationFieldType16, 1); org.joda.time.Period period19 = period1.minus((org.joda.time.ReadablePeriod) period7); org.joda.time.format.PeriodFormatter periodFormatter20 = null; java.lang.String str21 = period1.toString(periodFormatter20); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(durationFieldType16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertEquals("'" + str21 + "' != '" + "PT0.001S" + "'", str21, "PT0.001S"); } @Test public void test0928() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0928"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); int int7 = period2.getWeeks(); org.joda.time.PeriodType periodType8 = null; org.joda.time.Period period9 = period2.normalizedStandard(periodType8); org.joda.time.Period period11 = period9.minusMonths((int) ' '); org.joda.time.Period period12 = period9.negated(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); } @Test public void test0929() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0929"); org.joda.time.PeriodType periodType8 = null; org.joda.time.Period period9 = new org.joda.time.Period((-1), 0, (int) '#', (int) (short) 10, (int) (short) 0, 10, (int) (short) 1, (int) (byte) 10, periodType8); org.joda.time.Period period11 = period9.withYears((int) ' '); org.joda.time.Period period13 = period11.withWeeks((int) ' '); org.joda.time.PeriodType periodType16 = null; org.joda.time.Chronology chronology17 = null; org.joda.time.Period period18 = new org.joda.time.Period((long) 'a', periodType16, chronology17); org.joda.time.PeriodType periodType20 = null; org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) 'a', periodType20, chronology21); org.joda.time.Hours hours23 = period22.toStandardHours(); org.joda.time.Period period24 = period18.withFields((org.joda.time.ReadablePeriod) period22); org.joda.time.Period period26 = period18.withYears(10); org.joda.time.Period period27 = period26.toPeriod(); org.joda.time.Period period29 = period26.plusMillis(1); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Period period34 = new org.joda.time.Period(readableInstant32, readableInstant33); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Duration duration36 = period34.toDurationFrom(readableInstant35); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Period period40 = new org.joda.time.Period(readableInstant38, readableInstant39); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.Duration duration42 = period40.toDurationFrom(readableInstant41); org.joda.time.Period period44 = period40.plusMonths(0); org.joda.time.Period period46 = period44.plusMonths((int) '#'); org.joda.time.Period period48 = period44.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType49 = period44.getPeriodType(); org.joda.time.Chronology chronology50 = null; org.joda.time.Period period51 = new org.joda.time.Period((long) (short) -1, periodType49, chronology50); org.joda.time.Period period52 = new org.joda.time.Period(readableInstant31, (org.joda.time.ReadableDuration) duration36, periodType49); org.joda.time.Chronology chronology53 = null; org.joda.time.Period period54 = new org.joda.time.Period((long) (byte) 0, periodType49, chronology53); org.joda.time.Period period55 = period29.normalizedStandard(periodType49); org.joda.time.Chronology chronology56 = null; org.joda.time.Period period57 = new org.joda.time.Period((long) 'a', periodType49, chronology56); org.joda.time.Chronology chronology58 = null; org.joda.time.Period period59 = new org.joda.time.Period((java.lang.Object) period11, periodType49, chronology58); org.joda.time.Chronology chronology62 = null; org.joda.time.Period period63 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology62); java.lang.String str64 = period63.toString(); org.joda.time.Period period65 = new org.joda.time.Period((java.lang.Object) str64); org.joda.time.Period period67 = period65.plusSeconds((int) 'a'); org.joda.time.Period period69 = org.joda.time.Period.seconds((int) (short) 1); org.joda.time.Chronology chronology70 = null; org.joda.time.Period period71 = new org.joda.time.Period((java.lang.Object) period69, chronology70); org.joda.time.Period period73 = period69.plusYears((int) (short) -1); org.joda.time.PeriodType periodType74 = period73.getPeriodType(); org.joda.time.Chronology chronology75 = null; org.joda.time.Period period76 = new org.joda.time.Period((java.lang.Object) period65, periodType74, chronology75); org.joda.time.Chronology chronology77 = null; org.joda.time.Period period78 = new org.joda.time.Period((java.lang.Object) period59, periodType74, chronology77); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(hours23); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(duration36); org.junit.Assert.assertNotNull(duration42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(periodType49); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertEquals("'" + str64 + "' != '" + "PT0.011S" + "'", str64, "PT0.011S"); org.junit.Assert.assertNotNull(period67); org.junit.Assert.assertNotNull(period69); org.junit.Assert.assertNotNull(period73); org.junit.Assert.assertNotNull(periodType74); } @Test public void test0930() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0930"); org.joda.time.Period period2 = new org.joda.time.Period(0L, (-1L)); org.joda.time.Period period4 = period2.plusMillis((int) (short) -1); org.joda.time.MutablePeriod mutablePeriod5 = period4.toMutablePeriod(); org.joda.time.Period period7 = period4.plusHours((int) (short) 10); org.joda.time.Seconds seconds8 = period7.toStandardSeconds(); org.joda.time.Period period10 = period7.minusDays((int) '#'); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant11, readableInstant12); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Duration duration15 = period13.toDurationFrom(readableInstant14); org.joda.time.Period period17 = period13.plusMonths(0); org.joda.time.Period period19 = period17.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Duration duration21 = period17.toDurationFrom(readableInstant20); org.joda.time.Period period23 = period17.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.PeriodType periodType26 = null; org.joda.time.Period period27 = new org.joda.time.Period(readableInstant24, readableInstant25, periodType26); org.joda.time.Period period29 = period27.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.PeriodType periodType32 = null; org.joda.time.Period period33 = new org.joda.time.Period(readableInstant30, readableInstant31, periodType32); org.joda.time.Period period35 = period33.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.PeriodType periodType38 = null; org.joda.time.Period period39 = new org.joda.time.Period(readableInstant36, readableInstant37, periodType38); org.joda.time.DurationFieldType durationFieldType41 = period39.getFieldType((int) (byte) 0); int int42 = period35.indexOf(durationFieldType41); int int43 = period27.get(durationFieldType41); org.joda.time.Period period45 = period17.withField(durationFieldType41, (int) (short) 0); boolean boolean46 = period10.isSupported(durationFieldType41); org.junit.Assert.assertNotNull(period4); org.junit.Assert.assertNotNull(mutablePeriod5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(seconds8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(duration15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(duration21); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(durationFieldType41); org.junit.Assert.assertTrue("'" + int42 + "' != '" + 0 + "'", int42 == 0); org.junit.Assert.assertTrue("'" + int43 + "' != '" + 0 + "'", int43 == 0); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertTrue("'" + boolean46 + "' != '" + true + "'", boolean46 == true); } @Test public void test0931() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0931"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant1, readableInstant2); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Duration duration5 = period3.toDurationFrom(readableInstant4); org.joda.time.Period period7 = period3.plusMonths(0); org.joda.time.Period period9 = period7.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Duration duration11 = period7.toDurationFrom(readableInstant10); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Period period15 = new org.joda.time.Period(readableInstant13, readableInstant14); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.PeriodType periodType18 = null; org.joda.time.Period period19 = new org.joda.time.Period(readableInstant16, readableInstant17, periodType18); org.joda.time.MutablePeriod mutablePeriod20 = period19.toMutablePeriod(); org.joda.time.Period period21 = period15.plus((org.joda.time.ReadablePeriod) period19); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.PeriodType periodType24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant22, readableInstant23, periodType24); org.joda.time.Period period27 = period25.plusMonths((int) '4'); org.joda.time.Period period28 = period19.withFields((org.joda.time.ReadablePeriod) period27); org.joda.time.PeriodType periodType29 = period27.getPeriodType(); org.joda.time.Period period30 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration11, readableInstant12, periodType29); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Period period32 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration11, readableInstant31); org.joda.time.Period period33 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration11); org.junit.Assert.assertNotNull(duration5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(duration11); org.junit.Assert.assertNotNull(mutablePeriod20); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(periodType29); } @Test public void test0932() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0932"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 100, (long) (-1), chronology2); org.joda.time.Period period5 = period3.withHours(0); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant9, readableInstant10); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Duration duration13 = period11.toDurationFrom(readableInstant12); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant15, readableInstant16); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Duration duration19 = period17.toDurationFrom(readableInstant18); org.joda.time.Period period21 = period17.plusMonths(0); org.joda.time.Period period23 = period21.plusMonths((int) '#'); org.joda.time.Period period25 = period21.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType26 = period21.getPeriodType(); org.joda.time.Chronology chronology27 = null; org.joda.time.Period period28 = new org.joda.time.Period((long) (short) -1, periodType26, chronology27); org.joda.time.Period period29 = new org.joda.time.Period(readableInstant8, (org.joda.time.ReadableDuration) duration13, periodType26); org.joda.time.Period period30 = new org.joda.time.Period(readableInstant6, readableInstant7, periodType26); org.joda.time.Period period31 = period3.minus((org.joda.time.ReadablePeriod) period30); org.joda.time.Period period33 = period31.minusHours((-3)); org.joda.time.Period period35 = period33.plusHours(32); org.joda.time.Period period37 = period35.minusSeconds((-1)); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(duration13); org.junit.Assert.assertNotNull(duration19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(periodType26); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(period37); } @Test public void test0933() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0933"); org.joda.time.Period period1 = new org.joda.time.Period((long) (short) 100); org.joda.time.MutablePeriod mutablePeriod2 = period1.toMutablePeriod(); org.junit.Assert.assertNotNull(mutablePeriod2); } @Test public void test0934() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0934"); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Period period12 = new org.joda.time.Period(readableInstant10, readableInstant11); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Duration duration14 = period12.toDurationFrom(readableInstant13); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.Period period18 = new org.joda.time.Period(readableInstant16, readableInstant17); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Duration duration20 = period18.toDurationFrom(readableInstant19); org.joda.time.Period period22 = period18.plusMonths(0); org.joda.time.Period period24 = period22.plusMonths((int) '#'); org.joda.time.Period period26 = period22.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType27 = period22.getPeriodType(); org.joda.time.Chronology chronology28 = null; org.joda.time.Period period29 = new org.joda.time.Period((long) (short) -1, periodType27, chronology28); org.joda.time.Period period30 = new org.joda.time.Period(readableInstant9, (org.joda.time.ReadableDuration) duration14, periodType27); org.joda.time.Chronology chronology31 = null; org.joda.time.Period period32 = new org.joda.time.Period((long) (short) 100, periodType27, chronology31); org.joda.time.Period period33 = new org.joda.time.Period(0, (int) 'a', (int) ' ', (int) (short) 100, (int) (byte) 0, (int) (byte) 10, 10, (int) (short) -1, periodType27); // The following exception was thrown during execution in test generation try { int int35 = period33.getValue((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: -1"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(duration14); org.junit.Assert.assertNotNull(duration20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(periodType27); } @Test public void test0935() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0935"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period2.plusWeeks((int) ' '); org.joda.time.Period period10 = period2.plusDays(10); org.joda.time.Period period12 = period2.withMillis(0); int int13 = period2.getMonths(); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); } @Test public void test0936() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0936"); org.joda.time.ReadablePartial readablePartial0 = null; org.joda.time.ReadablePartial readablePartial1 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (byte) -1); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant5, readableInstant6); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.Duration duration9 = period7.toDurationFrom(readableInstant8); org.joda.time.Period period11 = period7.plusMonths(0); org.joda.time.Period period13 = period11.plusMonths((int) '#'); org.joda.time.Period period15 = period11.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType16 = period11.getPeriodType(); org.joda.time.Chronology chronology17 = null; org.joda.time.Period period18 = new org.joda.time.Period((long) (short) -1, periodType16, chronology17); org.joda.time.Period period19 = period3.minus((org.joda.time.ReadablePeriod) period18); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Period period32 = new org.joda.time.Period(readableInstant30, readableInstant31); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Duration duration34 = period32.toDurationFrom(readableInstant33); org.joda.time.Period period36 = period32.plusMonths(0); org.joda.time.Period period38 = period36.plusMonths((int) '#'); org.joda.time.Period period40 = period36.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType41 = period36.getPeriodType(); org.joda.time.Chronology chronology42 = null; org.joda.time.Period period43 = new org.joda.time.Period((long) (short) -1, periodType41, chronology42); org.joda.time.Period period44 = new org.joda.time.Period(0, 1, (int) (short) 100, (-1), (int) (short) 10, 100, (int) ' ', (int) (short) 1, periodType41); org.joda.time.Period period45 = new org.joda.time.Period((long) (byte) 10, periodType41); org.joda.time.Period period46 = period18.withPeriodType(periodType41); // The following exception was thrown during execution in test generation try { org.joda.time.Period period47 = new org.joda.time.Period(readablePartial0, readablePartial1, periodType41); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: ReadablePartial objects must not be null"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(duration9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(periodType16); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(duration34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(periodType41); org.junit.Assert.assertNotNull(period46); } @Test public void test0937() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0937"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period(100L, chronology1); org.joda.time.PeriodType periodType4 = null; org.joda.time.Chronology chronology5 = null; org.joda.time.Period period6 = new org.joda.time.Period((long) 'a', periodType4, chronology5); org.joda.time.PeriodType periodType8 = null; org.joda.time.Chronology chronology9 = null; org.joda.time.Period period10 = new org.joda.time.Period((long) 'a', periodType8, chronology9); org.joda.time.Hours hours11 = period10.toStandardHours(); org.joda.time.Period period12 = period6.withFields((org.joda.time.ReadablePeriod) period10); org.joda.time.Period period14 = period6.withYears(10); org.joda.time.Period period15 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Period period17 = new org.joda.time.Period((long) 100); org.joda.time.Period period20 = new org.joda.time.Period(0L, (-1L)); org.joda.time.Period period22 = period20.minusYears(100); org.joda.time.Period period23 = period22.negated(); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.PeriodType periodType26 = null; org.joda.time.Period period27 = new org.joda.time.Period(readableInstant24, readableInstant25, periodType26); org.joda.time.Period period29 = period27.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.PeriodType periodType32 = null; org.joda.time.Period period33 = new org.joda.time.Period(readableInstant30, readableInstant31, periodType32); org.joda.time.DurationFieldType durationFieldType35 = period33.getFieldType((int) (byte) 0); int int36 = period29.indexOf(durationFieldType35); org.joda.time.Period period38 = period22.withField(durationFieldType35, 10); boolean boolean39 = period17.isSupported(durationFieldType35); int int40 = period15.get(durationFieldType35); org.joda.time.Period period42 = period15.plusMonths((int) ' '); org.joda.time.Period period44 = period42.minusWeeks(97); org.joda.time.Period period45 = period44.normalizedStandard(); org.joda.time.format.PeriodFormatter periodFormatter46 = null; java.lang.String str47 = period44.toString(periodFormatter46); org.junit.Assert.assertNotNull(hours11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(durationFieldType35); org.junit.Assert.assertTrue("'" + int36 + "' != '" + 0 + "'", int36 == 0); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertTrue("'" + boolean39 + "' != '" + true + "'", boolean39 == true); org.junit.Assert.assertTrue("'" + int40 + "' != '" + 0 + "'", int40 == 0); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertEquals("'" + str47 + "' != '" + "P32M-97WT0.197S" + "'", str47, "P32M-97WT0.197S"); } @Test public void test0938() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0938"); org.joda.time.ReadablePartial readablePartial0 = null; org.joda.time.ReadablePartial readablePartial1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Duration duration6 = period4.toDurationFrom(readableInstant5); org.joda.time.Period period8 = period4.plusMonths(0); org.joda.time.Period period10 = period8.plusMonths((int) '#'); org.joda.time.Period period12 = period8.plusMinutes((int) (short) 100); org.joda.time.Period period14 = period12.withWeeks((int) ' '); org.joda.time.PeriodType periodType15 = null; org.joda.time.Period period16 = new org.joda.time.Period((java.lang.Object) period12, periodType15); int int17 = period12.getHours(); org.joda.time.PeriodType periodType19 = null; org.joda.time.Chronology chronology20 = null; org.joda.time.Period period21 = new org.joda.time.Period((long) 'a', periodType19, chronology20); org.joda.time.PeriodType periodType23 = null; org.joda.time.Chronology chronology24 = null; org.joda.time.Period period25 = new org.joda.time.Period((long) 'a', periodType23, chronology24); org.joda.time.Hours hours26 = period25.toStandardHours(); org.joda.time.Period period27 = period21.withFields((org.joda.time.ReadablePeriod) period25); org.joda.time.Period period29 = period21.withYears(10); org.joda.time.Period period30 = period29.toPeriod(); org.joda.time.Period period32 = period29.plusMillis(1); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant35, readableInstant36); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.Duration duration39 = period37.toDurationFrom(readableInstant38); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.Period period43 = new org.joda.time.Period(readableInstant41, readableInstant42); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Duration duration45 = period43.toDurationFrom(readableInstant44); org.joda.time.Period period47 = period43.plusMonths(0); org.joda.time.Period period49 = period47.plusMonths((int) '#'); org.joda.time.Period period51 = period47.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType52 = period47.getPeriodType(); org.joda.time.Chronology chronology53 = null; org.joda.time.Period period54 = new org.joda.time.Period((long) (short) -1, periodType52, chronology53); org.joda.time.Period period55 = new org.joda.time.Period(readableInstant34, (org.joda.time.ReadableDuration) duration39, periodType52); org.joda.time.Chronology chronology56 = null; org.joda.time.Period period57 = new org.joda.time.Period((long) (byte) 0, periodType52, chronology56); org.joda.time.Period period58 = period32.normalizedStandard(periodType52); org.joda.time.Period period59 = new org.joda.time.Period((java.lang.Object) period12, periodType52); // The following exception was thrown during execution in test generation try { org.joda.time.Period period60 = new org.joda.time.Period(readablePartial0, readablePartial1, periodType52); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: ReadablePartial objects must not be null"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(duration6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0); org.junit.Assert.assertNotNull(hours26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(duration39); org.junit.Assert.assertNotNull(duration45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period49); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(periodType52); org.junit.Assert.assertNotNull(period58); } @Test public void test0939() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0939"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.PeriodType periodType2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant0, readableInstant1, periodType2); org.joda.time.Period period5 = period3.plusMonths((int) '4'); org.joda.time.Period period7 = org.joda.time.Period.millis(1); org.joda.time.PeriodType periodType9 = null; org.joda.time.Chronology chronology10 = null; org.joda.time.Period period11 = new org.joda.time.Period((long) 'a', periodType9, chronology10); org.joda.time.Hours hours12 = period11.toStandardHours(); org.joda.time.Period period14 = period11.plusSeconds((int) (byte) 1); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.PeriodType periodType17 = null; org.joda.time.Period period18 = new org.joda.time.Period(readableInstant15, readableInstant16, periodType17); org.joda.time.DurationFieldType durationFieldType20 = period18.getFieldType((int) (byte) 0); org.joda.time.Period period22 = period11.withField(durationFieldType20, 1); boolean boolean23 = period7.equals((java.lang.Object) 1); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.PeriodType periodType26 = null; org.joda.time.Period period27 = new org.joda.time.Period(readableInstant24, readableInstant25, periodType26); org.joda.time.Period period29 = period27.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.PeriodType periodType32 = null; org.joda.time.Period period33 = new org.joda.time.Period(readableInstant30, readableInstant31, periodType32); org.joda.time.DurationFieldType durationFieldType35 = period33.getFieldType((int) (byte) 0); int int36 = period29.indexOf(durationFieldType35); org.joda.time.Period period38 = period7.withFieldAdded(durationFieldType35, (int) (short) 0); org.joda.time.Period period40 = period3.withFieldAdded(durationFieldType35, (int) '#'); // The following exception was thrown during execution in test generation try { org.joda.time.DurationFieldType durationFieldType42 = period3.getFieldType((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: -1"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(hours12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(durationFieldType20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + false + "'", boolean23 == false); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(durationFieldType35); org.junit.Assert.assertTrue("'" + int36 + "' != '" + 0 + "'", int36 == 0); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(period40); } @Test public void test0940() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0940"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 100, (long) (-1), chronology2); org.joda.time.Period period5 = period3.withHours(0); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant9, readableInstant10); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Duration duration13 = period11.toDurationFrom(readableInstant12); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant15, readableInstant16); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Duration duration19 = period17.toDurationFrom(readableInstant18); org.joda.time.Period period21 = period17.plusMonths(0); org.joda.time.Period period23 = period21.plusMonths((int) '#'); org.joda.time.Period period25 = period21.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType26 = period21.getPeriodType(); org.joda.time.Chronology chronology27 = null; org.joda.time.Period period28 = new org.joda.time.Period((long) (short) -1, periodType26, chronology27); org.joda.time.Period period29 = new org.joda.time.Period(readableInstant8, (org.joda.time.ReadableDuration) duration13, periodType26); org.joda.time.Period period30 = new org.joda.time.Period(readableInstant6, readableInstant7, periodType26); org.joda.time.Period period31 = period3.minus((org.joda.time.ReadablePeriod) period30); org.joda.time.Period period33 = period31.minusHours((-3)); org.joda.time.Period period35 = period33.withMinutes((int) 'a'); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(duration13); org.junit.Assert.assertNotNull(duration19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertNotNull(periodType26); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(period35); } @Test public void test0941() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0941"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.withWeeks(1); org.joda.time.PeriodType periodType7 = null; org.joda.time.Chronology chronology8 = null; org.joda.time.Period period9 = new org.joda.time.Period((long) 'a', periodType7, chronology8); org.joda.time.Period period11 = period9.withMinutes(0); org.joda.time.Period period12 = period2.minus((org.joda.time.ReadablePeriod) period11); org.joda.time.Period period14 = period11.minusMillis((int) ' '); org.joda.time.PeriodType periodType16 = null; org.joda.time.Chronology chronology17 = null; org.joda.time.Period period18 = new org.joda.time.Period((long) 'a', periodType16, chronology17); org.joda.time.PeriodType periodType20 = null; org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) 'a', periodType20, chronology21); org.joda.time.Hours hours23 = period22.toStandardHours(); org.joda.time.Period period24 = period18.withFields((org.joda.time.ReadablePeriod) period22); org.joda.time.Period period26 = period18.withYears(10); org.joda.time.Period period27 = period26.toPeriod(); org.joda.time.Period period29 = period26.plusMillis(1); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Period period34 = new org.joda.time.Period(readableInstant32, readableInstant33); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Duration duration36 = period34.toDurationFrom(readableInstant35); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Period period40 = new org.joda.time.Period(readableInstant38, readableInstant39); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.Duration duration42 = period40.toDurationFrom(readableInstant41); org.joda.time.Period period44 = period40.plusMonths(0); org.joda.time.Period period46 = period44.plusMonths((int) '#'); org.joda.time.Period period48 = period44.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType49 = period44.getPeriodType(); org.joda.time.Chronology chronology50 = null; org.joda.time.Period period51 = new org.joda.time.Period((long) (short) -1, periodType49, chronology50); org.joda.time.Period period52 = new org.joda.time.Period(readableInstant31, (org.joda.time.ReadableDuration) duration36, periodType49); org.joda.time.Chronology chronology53 = null; org.joda.time.Period period54 = new org.joda.time.Period((long) (byte) 0, periodType49, chronology53); org.joda.time.Period period55 = period29.normalizedStandard(periodType49); org.joda.time.Period period56 = period11.normalizedStandard(periodType49); org.joda.time.ReadableInstant readableInstant66 = null; org.joda.time.ReadableInstant readableInstant67 = null; org.joda.time.Period period68 = new org.joda.time.Period(readableInstant66, readableInstant67); org.joda.time.ReadableInstant readableInstant69 = null; org.joda.time.Duration duration70 = period68.toDurationFrom(readableInstant69); org.joda.time.Period period72 = period68.plusMonths(0); org.joda.time.Period period74 = period72.plusMonths((int) '#'); org.joda.time.Period period76 = period72.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType77 = period72.getPeriodType(); org.joda.time.Chronology chronology78 = null; org.joda.time.Period period79 = new org.joda.time.Period((long) (short) -1, periodType77, chronology78); org.joda.time.Period period80 = new org.joda.time.Period(0, 1, (int) (short) 100, (-1), (int) (short) 10, 100, (int) ' ', (int) (short) 1, periodType77); org.joda.time.Period period81 = period56.normalizedStandard(periodType77); org.joda.time.Period period82 = new org.joda.time.Period((java.lang.Object) period81); org.joda.time.Period period84 = period82.plusHours(97); org.joda.time.Hours hours85 = period82.toStandardHours(); int int86 = period82.size(); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(hours23); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(duration36); org.junit.Assert.assertNotNull(duration42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(periodType49); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertNotNull(period56); org.junit.Assert.assertNotNull(duration70); org.junit.Assert.assertNotNull(period72); org.junit.Assert.assertNotNull(period74); org.junit.Assert.assertNotNull(period76); org.junit.Assert.assertNotNull(periodType77); org.junit.Assert.assertNotNull(period81); org.junit.Assert.assertNotNull(period84); org.junit.Assert.assertNotNull(hours85); org.junit.Assert.assertTrue("'" + int86 + "' != '" + 8 + "'", int86 == 8); } @Test public void test0942() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0942"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Period period5 = new org.joda.time.Period(readableInstant3, readableInstant4); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.Duration duration7 = period5.toDurationFrom(readableInstant6); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant9, readableInstant10); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Duration duration13 = period11.toDurationFrom(readableInstant12); org.joda.time.Period period15 = period11.plusMonths(0); org.joda.time.Period period17 = period15.plusMonths((int) '#'); org.joda.time.Period period19 = period15.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType20 = period15.getPeriodType(); org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) (short) -1, periodType20, chronology21); org.joda.time.Period period23 = new org.joda.time.Period(readableInstant2, (org.joda.time.ReadableDuration) duration7, periodType20); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Period period38 = new org.joda.time.Period(readableInstant36, readableInstant37); org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.ReadableInstant readableInstant40 = null; org.joda.time.PeriodType periodType41 = null; org.joda.time.Period period42 = new org.joda.time.Period(readableInstant39, readableInstant40, periodType41); org.joda.time.MutablePeriod mutablePeriod43 = period42.toMutablePeriod(); org.joda.time.Period period44 = period38.plus((org.joda.time.ReadablePeriod) period42); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.ReadableInstant readableInstant46 = null; org.joda.time.PeriodType periodType47 = null; org.joda.time.Period period48 = new org.joda.time.Period(readableInstant45, readableInstant46, periodType47); org.joda.time.Period period50 = period48.plusMonths((int) '4'); org.joda.time.Period period51 = period42.withFields((org.joda.time.ReadablePeriod) period50); org.joda.time.PeriodType periodType52 = period50.getPeriodType(); org.joda.time.Period period53 = new org.joda.time.Period((long) ' ', (long) (short) 10, periodType52); org.joda.time.Period period54 = new org.joda.time.Period((int) '4', (int) (byte) 10, (int) (short) 10, 1, 0, 97, (int) (byte) 10, 1, periodType52); org.joda.time.Period period55 = new org.joda.time.Period(readableInstant24, readableInstant25, periodType52); org.joda.time.Period period56 = new org.joda.time.Period(readableInstant1, (org.joda.time.ReadableDuration) duration7, periodType52); org.joda.time.ReadableInstant readableInstant57 = null; org.joda.time.Period period58 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration7, readableInstant57); org.joda.time.Chronology chronology61 = null; org.joda.time.Period period62 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology61); java.lang.String str63 = period62.toString(); org.joda.time.Period period64 = new org.joda.time.Period((java.lang.Object) str63); org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.ReadableInstant readableInstant66 = null; org.joda.time.Period period67 = new org.joda.time.Period(readableInstant65, readableInstant66); org.joda.time.ReadableInstant readableInstant68 = null; org.joda.time.Duration duration69 = period67.toDurationFrom(readableInstant68); org.joda.time.Period period71 = period67.plusMonths(0); org.joda.time.Period period73 = period71.plusMonths((int) '#'); org.joda.time.Period period75 = period71.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType76 = period71.getPeriodType(); org.joda.time.Period period77 = new org.joda.time.Period((java.lang.Object) str63, periodType76); org.joda.time.Period period78 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration7, periodType76); org.joda.time.Duration duration79 = period78.toStandardDuration(); org.junit.Assert.assertNotNull(duration7); org.junit.Assert.assertNotNull(duration13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(periodType20); org.junit.Assert.assertNotNull(mutablePeriod43); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(period51); org.junit.Assert.assertNotNull(periodType52); org.junit.Assert.assertEquals("'" + str63 + "' != '" + "PT0.011S" + "'", str63, "PT0.011S"); org.junit.Assert.assertNotNull(duration69); org.junit.Assert.assertNotNull(period71); org.junit.Assert.assertNotNull(period73); org.junit.Assert.assertNotNull(period75); org.junit.Assert.assertNotNull(periodType76); org.junit.Assert.assertNotNull(duration79); } @Test public void test0943() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0943"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); java.lang.String str4 = period3.toString(); org.joda.time.Period period5 = new org.joda.time.Period((java.lang.Object) str4); org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Period period8 = new org.joda.time.Period(readableInstant6, readableInstant7); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period8.toDurationFrom(readableInstant9); org.joda.time.Period period12 = period8.plusMonths(0); org.joda.time.Period period14 = period12.plusMonths((int) '#'); org.joda.time.Period period16 = period12.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType17 = period12.getPeriodType(); org.joda.time.Period period18 = new org.joda.time.Period((java.lang.Object) str4, periodType17); org.joda.time.PeriodType periodType20 = null; org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) 'a', periodType20, chronology21); org.joda.time.Period period24 = period22.withMinutes(0); org.joda.time.Period period26 = period24.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod27 = period24.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant28, readableInstant29); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Duration duration32 = period30.toDurationFrom(readableInstant31); org.joda.time.Period period34 = period30.plusMonths(0); org.joda.time.Period period36 = period34.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Duration duration38 = period34.toDurationFrom(readableInstant37); org.joda.time.Period period40 = period34.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.PeriodType periodType43 = null; org.joda.time.Period period44 = new org.joda.time.Period(readableInstant41, readableInstant42, periodType43); org.joda.time.Period period46 = period44.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.PeriodType periodType49 = null; org.joda.time.Period period50 = new org.joda.time.Period(readableInstant47, readableInstant48, periodType49); org.joda.time.Period period52 = period50.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.PeriodType periodType55 = null; org.joda.time.Period period56 = new org.joda.time.Period(readableInstant53, readableInstant54, periodType55); org.joda.time.DurationFieldType durationFieldType58 = period56.getFieldType((int) (byte) 0); int int59 = period52.indexOf(durationFieldType58); int int60 = period44.get(durationFieldType58); org.joda.time.Period period62 = period34.withField(durationFieldType58, (int) (short) 0); int int63 = mutablePeriod27.indexOf(durationFieldType58); int int64 = period18.get(durationFieldType58); int int66 = period18.getValue(0); java.lang.Class<?> wildcardClass67 = period18.getClass(); org.junit.Assert.assertEquals("'" + str4 + "' != '" + "PT0.011S" + "'", str4, "PT0.011S"); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(periodType17); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(mutablePeriod27); org.junit.Assert.assertNotNull(duration32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(duration38); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period52); org.junit.Assert.assertNotNull(durationFieldType58); org.junit.Assert.assertTrue("'" + int59 + "' != '" + 0 + "'", int59 == 0); org.junit.Assert.assertTrue("'" + int60 + "' != '" + 0 + "'", int60 == 0); org.junit.Assert.assertNotNull(period62); org.junit.Assert.assertTrue("'" + int63 + "' != '" + 0 + "'", int63 == 0); org.junit.Assert.assertTrue("'" + int64 + "' != '" + 0 + "'", int64 == 0); org.junit.Assert.assertTrue("'" + int66 + "' != '" + 0 + "'", int66 == 0); org.junit.Assert.assertNotNull(wildcardClass67); } @Test public void test0944() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0944"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Period period6 = period2.plusMonths(0); org.joda.time.Period period8 = period2.plusWeeks((int) ' '); org.joda.time.Period period10 = period2.plusMinutes((-1)); org.joda.time.Period period12 = period10.minusMillis(100); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); } @Test public void test0945() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0945"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); java.lang.String str4 = period3.toString(); org.joda.time.Period period5 = new org.joda.time.Period((java.lang.Object) str4); org.joda.time.Period period7 = period5.plusSeconds((int) 'a'); org.joda.time.Days days8 = period5.toStandardDays(); org.joda.time.Period period9 = new org.joda.time.Period((java.lang.Object) period5); org.joda.time.Period period11 = period9.minusHours((int) (short) 0); org.junit.Assert.assertEquals("'" + str4 + "' != '" + "PT0.011S" + "'", str4, "PT0.011S"); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(days8); org.junit.Assert.assertNotNull(period11); } @Test public void test0946() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0946"); org.joda.time.Period period1 = org.joda.time.Period.months(32); org.joda.time.Period period3 = period1.minusSeconds((int) (short) 1); // The following exception was thrown during execution in test generation try { org.joda.time.Period period4 = new org.joda.time.Period((java.lang.Object) (short) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: No period converter found for type: java.lang.Short"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); } @Test public void test0947() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0947"); org.joda.time.Period period1 = org.joda.time.Period.days(1); org.joda.time.Period period3 = period1.withSeconds(8); org.joda.time.Weeks weeks4 = period3.toStandardWeeks(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(weeks4); } @Test public void test0948() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0948"); org.joda.time.Period period2 = new org.joda.time.Period((long) (short) 1, (long) 11); } @Test public void test0949() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0949"); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Period period19 = new org.joda.time.Period(readableInstant17, readableInstant18); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Duration duration21 = period19.toDurationFrom(readableInstant20); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant23, readableInstant24); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Duration duration27 = period25.toDurationFrom(readableInstant26); org.joda.time.Period period29 = period25.plusMonths(0); org.joda.time.Period period31 = period29.plusMonths((int) '#'); org.joda.time.Period period33 = period29.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType34 = period29.getPeriodType(); org.joda.time.Chronology chronology35 = null; org.joda.time.Period period36 = new org.joda.time.Period((long) (short) -1, periodType34, chronology35); org.joda.time.Period period37 = new org.joda.time.Period(readableInstant16, (org.joda.time.ReadableDuration) duration21, periodType34); org.joda.time.Period period38 = new org.joda.time.Period(readableInstant14, readableInstant15, periodType34); org.joda.time.Chronology chronology39 = null; org.joda.time.Period period40 = new org.joda.time.Period((long) (-100), (long) (-100), periodType34, chronology39); org.joda.time.Chronology chronology41 = null; org.joda.time.Period period42 = new org.joda.time.Period((long) 0, (long) 100, periodType34, chronology41); org.joda.time.Period period43 = new org.joda.time.Period(10, 8, (int) (short) 10, (int) (short) 1, (int) (short) 1, (int) (short) 1, 32, 8, periodType34); org.joda.time.Chronology chronology44 = null; org.joda.time.Period period45 = new org.joda.time.Period(100L, (-1L), periodType34, chronology44); org.junit.Assert.assertNotNull(duration21); org.junit.Assert.assertNotNull(duration27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(periodType34); } @Test public void test0950() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0950"); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Period period16 = new org.joda.time.Period(readableInstant14, readableInstant15); org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.PeriodType periodType19 = null; org.joda.time.Period period20 = new org.joda.time.Period(readableInstant17, readableInstant18, periodType19); org.joda.time.MutablePeriod mutablePeriod21 = period20.toMutablePeriod(); org.joda.time.Period period22 = period16.plus((org.joda.time.ReadablePeriod) period20); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.PeriodType periodType25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant23, readableInstant24, periodType25); org.joda.time.Period period28 = period26.plusMonths((int) '4'); org.joda.time.Period period29 = period20.withFields((org.joda.time.ReadablePeriod) period28); org.joda.time.PeriodType periodType30 = period28.getPeriodType(); org.joda.time.Period period31 = new org.joda.time.Period((long) ' ', (long) (short) 10, periodType30); org.joda.time.Period period32 = new org.joda.time.Period((int) (short) 10, (int) '#', 98, 98, (int) (byte) 0, (int) (short) -1, 98, 97, periodType30); org.joda.time.Period period33 = new org.joda.time.Period(readableInstant2, readableInstant3, periodType30); org.joda.time.Chronology chronology34 = null; org.joda.time.Period period35 = new org.joda.time.Period((long) 17, (long) 32, periodType30, chronology34); org.junit.Assert.assertNotNull(mutablePeriod21); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(periodType30); } @Test public void test0951() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0951"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); org.joda.time.Period period7 = period5.minusSeconds((int) (short) 100); org.joda.time.Period period9 = period7.withWeeks((int) (short) -1); int int10 = period7.size(); org.joda.time.Period period12 = period7.withMonths((int) (byte) 10); org.joda.time.Chronology chronology15 = null; org.joda.time.Period period16 = new org.joda.time.Period((long) 100, (long) (-1), chronology15); org.joda.time.Period period18 = period16.plusMinutes((int) (short) 10); org.joda.time.Period period20 = period18.plusMinutes((-1)); int int21 = period20.getWeeks(); org.joda.time.Period period23 = period20.withMinutes((int) (byte) 10); org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.ReadableInstant readableInstant25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant24, readableInstant25); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.Duration duration28 = period26.toDurationFrom(readableInstant27); org.joda.time.Period period30 = period26.plusMonths(0); org.joda.time.Period period32 = period30.plusMonths((int) '#'); org.joda.time.Period period34 = period30.plusMinutes((int) (short) 100); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant35, readableInstant36); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.Duration duration39 = period37.toDurationFrom(readableInstant38); org.joda.time.Period period41 = period37.plusMonths(0); org.joda.time.Period period43 = period41.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.Duration duration45 = period41.toDurationFrom(readableInstant44); org.joda.time.Period period47 = period41.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.PeriodType periodType50 = null; org.joda.time.Period period51 = new org.joda.time.Period(readableInstant48, readableInstant49, periodType50); org.joda.time.Period period53 = period51.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.PeriodType periodType56 = null; org.joda.time.Period period57 = new org.joda.time.Period(readableInstant54, readableInstant55, periodType56); org.joda.time.Period period59 = period57.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.PeriodType periodType62 = null; org.joda.time.Period period63 = new org.joda.time.Period(readableInstant60, readableInstant61, periodType62); org.joda.time.DurationFieldType durationFieldType65 = period63.getFieldType((int) (byte) 0); int int66 = period59.indexOf(durationFieldType65); int int67 = period51.get(durationFieldType65); org.joda.time.Period period69 = period41.withField(durationFieldType65, (int) (short) 0); boolean boolean70 = period34.isSupported(durationFieldType65); org.joda.time.Period period72 = period23.withField(durationFieldType65, (int) ' '); int[] intArray73 = period72.getValues(); boolean boolean74 = period7.equals((java.lang.Object) intArray73); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 8 + "'", int10 == 8); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertTrue("'" + int21 + "' != '" + 0 + "'", int21 == 0); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(duration28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(duration39); org.junit.Assert.assertNotNull(period41); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(duration45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period53); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(durationFieldType65); org.junit.Assert.assertTrue("'" + int66 + "' != '" + 0 + "'", int66 == 0); org.junit.Assert.assertTrue("'" + int67 + "' != '" + 0 + "'", int67 == 0); org.junit.Assert.assertNotNull(period69); org.junit.Assert.assertTrue("'" + boolean70 + "' != '" + true + "'", boolean70 == true); org.junit.Assert.assertNotNull(period72); org.junit.Assert.assertNotNull(intArray73); org.junit.Assert.assertEquals(java.util.Arrays.toString(intArray73), "[32, 0, 0, 0, 0, 10, 0, -101]"); org.junit.Assert.assertTrue("'" + boolean74 + "' != '" + false + "'", boolean74 == false); } @Test public void test0952() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0952"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (-3), (long) (short) 10, chronology2); } @Test public void test0953() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0953"); org.joda.time.Period period1 = org.joda.time.Period.hours((int) (byte) 1); org.joda.time.PeriodType periodType2 = period1.getPeriodType(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(periodType2); } @Test public void test0954() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0954"); org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Period period20 = new org.joda.time.Period(readableInstant18, readableInstant19); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.PeriodType periodType23 = null; org.joda.time.Period period24 = new org.joda.time.Period(readableInstant21, readableInstant22, periodType23); org.joda.time.MutablePeriod mutablePeriod25 = period24.toMutablePeriod(); org.joda.time.Period period26 = period20.plus((org.joda.time.ReadablePeriod) period24); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.PeriodType periodType29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant27, readableInstant28, periodType29); org.joda.time.Period period32 = period30.plusMonths((int) '4'); org.joda.time.Period period33 = period24.withFields((org.joda.time.ReadablePeriod) period32); org.joda.time.PeriodType periodType37 = null; org.joda.time.Chronology chronology38 = null; org.joda.time.Period period39 = new org.joda.time.Period((long) 'a', periodType37, chronology38); org.joda.time.PeriodType periodType41 = null; org.joda.time.Chronology chronology42 = null; org.joda.time.Period period43 = new org.joda.time.Period((long) 'a', periodType41, chronology42); org.joda.time.Hours hours44 = period43.toStandardHours(); org.joda.time.Period period45 = period39.withFields((org.joda.time.ReadablePeriod) period43); org.joda.time.Period period47 = period39.withYears(10); org.joda.time.Period period48 = period47.toPeriod(); org.joda.time.Period period50 = period47.plusMillis(1); org.joda.time.ReadableInstant readableInstant52 = null; org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.Period period55 = new org.joda.time.Period(readableInstant53, readableInstant54); org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.Duration duration57 = period55.toDurationFrom(readableInstant56); org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.ReadableInstant readableInstant60 = null; org.joda.time.Period period61 = new org.joda.time.Period(readableInstant59, readableInstant60); org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.Duration duration63 = period61.toDurationFrom(readableInstant62); org.joda.time.Period period65 = period61.plusMonths(0); org.joda.time.Period period67 = period65.plusMonths((int) '#'); org.joda.time.Period period69 = period65.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType70 = period65.getPeriodType(); org.joda.time.Chronology chronology71 = null; org.joda.time.Period period72 = new org.joda.time.Period((long) (short) -1, periodType70, chronology71); org.joda.time.Period period73 = new org.joda.time.Period(readableInstant52, (org.joda.time.ReadableDuration) duration57, periodType70); org.joda.time.Chronology chronology74 = null; org.joda.time.Period period75 = new org.joda.time.Period((long) (byte) 0, periodType70, chronology74); org.joda.time.Period period76 = period50.normalizedStandard(periodType70); org.joda.time.Chronology chronology77 = null; org.joda.time.Period period78 = new org.joda.time.Period(0L, (long) 8, periodType70, chronology77); org.joda.time.Period period79 = new org.joda.time.Period((java.lang.Object) period24, periodType70); org.joda.time.Period period80 = new org.joda.time.Period((int) 'a', 100, (int) (short) -1, 100, (int) (short) -1, (int) (byte) 1, 8, 100, periodType70); org.joda.time.Period period81 = new org.joda.time.Period((int) '#', (int) (byte) 0, 0, (int) ' ', (int) ' ', (-1), (int) (byte) 100, 97, periodType70); org.joda.time.Chronology chronology82 = null; org.joda.time.Period period83 = new org.joda.time.Period((long) (short) 1, 0L, periodType70, chronology82); org.junit.Assert.assertNotNull(mutablePeriod25); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(hours44); org.junit.Assert.assertNotNull(period45); org.junit.Assert.assertNotNull(period47); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(duration57); org.junit.Assert.assertNotNull(duration63); org.junit.Assert.assertNotNull(period65); org.junit.Assert.assertNotNull(period67); org.junit.Assert.assertNotNull(period69); org.junit.Assert.assertNotNull(periodType70); org.junit.Assert.assertNotNull(period76); } @Test public void test0955() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0955"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period3 = period1.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.PeriodType periodType6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant4, readableInstant5, periodType6); org.joda.time.Period period9 = period7.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.PeriodType periodType12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant10, readableInstant11, periodType12); org.joda.time.DurationFieldType durationFieldType15 = period13.getFieldType((int) (byte) 0); int int16 = period9.indexOf(durationFieldType15); org.joda.time.Period period18 = period1.withFieldAdded(durationFieldType15, 1); org.joda.time.Period period20 = period18.plusSeconds((int) (byte) 1); org.joda.time.PeriodType periodType21 = period20.getPeriodType(); org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.PeriodType periodType24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant22, readableInstant23, periodType24); org.joda.time.Period period27 = period25.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.PeriodType periodType30 = null; org.joda.time.Period period31 = new org.joda.time.Period(readableInstant28, readableInstant29, periodType30); org.joda.time.Period period33 = period31.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.PeriodType periodType36 = null; org.joda.time.Period period37 = new org.joda.time.Period(readableInstant34, readableInstant35, periodType36); org.joda.time.DurationFieldType durationFieldType39 = period37.getFieldType((int) (byte) 0); int int40 = period33.indexOf(durationFieldType39); int int41 = period25.get(durationFieldType39); org.joda.time.Period period43 = period20.withFieldAdded(durationFieldType39, (int) (short) 0); org.joda.time.Period period45 = period43.minusYears(8); // The following exception was thrown during execution in test generation try { org.joda.time.Hours hours46 = period43.toStandardHours(); org.junit.Assert.fail("Expected exception of type java.lang.UnsupportedOperationException; message: Cannot convert to Hours as this period contains months and months vary in length"); } catch (java.lang.UnsupportedOperationException e) { // Expected exception. } org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(durationFieldType15); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(periodType21); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(durationFieldType39); org.junit.Assert.assertTrue("'" + int40 + "' != '" + 0 + "'", int40 == 0); org.junit.Assert.assertTrue("'" + int41 + "' != '" + 0 + "'", int41 == 0); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(period45); } @Test public void test0956() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0956"); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant12, readableInstant13); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Duration duration16 = period14.toDurationFrom(readableInstant15); org.joda.time.Period period18 = period14.plusMonths(0); org.joda.time.Period period20 = period18.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Duration duration22 = period18.toDurationFrom(readableInstant21); org.joda.time.Period period23 = new org.joda.time.Period(readableInstant11, (org.joda.time.ReadableDuration) duration22); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Period period36 = new org.joda.time.Period(readableInstant34, readableInstant35); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Duration duration38 = period36.toDurationFrom(readableInstant37); org.joda.time.ReadableInstant readableInstant40 = null; org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.Period period42 = new org.joda.time.Period(readableInstant40, readableInstant41); org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.Duration duration44 = period42.toDurationFrom(readableInstant43); org.joda.time.Period period46 = period42.plusMonths(0); org.joda.time.Period period48 = period46.plusMonths((int) '#'); org.joda.time.Period period50 = period46.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType51 = period46.getPeriodType(); org.joda.time.Chronology chronology52 = null; org.joda.time.Period period53 = new org.joda.time.Period((long) (short) -1, periodType51, chronology52); org.joda.time.Period period54 = new org.joda.time.Period(readableInstant33, (org.joda.time.ReadableDuration) duration38, periodType51); org.joda.time.Chronology chronology55 = null; org.joda.time.Period period56 = new org.joda.time.Period((long) (short) 100, periodType51, chronology55); org.joda.time.Period period57 = new org.joda.time.Period(0, (int) 'a', (int) ' ', (int) (short) 100, (int) (byte) 0, (int) (byte) 10, 10, (int) (short) -1, periodType51); org.joda.time.Period period58 = new org.joda.time.Period(readableInstant10, (org.joda.time.ReadableDuration) duration22, periodType51); org.joda.time.Chronology chronology59 = null; org.joda.time.Period period60 = new org.joda.time.Period((long) 1, (long) (short) 100, periodType51, chronology59); org.joda.time.Period period61 = new org.joda.time.Period(0, (int) (byte) 1, (int) (byte) 1, (int) '#', 52, 0, 0, (int) (short) -1, periodType51); org.junit.Assert.assertNotNull(duration16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(duration22); org.junit.Assert.assertNotNull(duration38); org.junit.Assert.assertNotNull(duration44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(periodType51); } @Test public void test0957() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0957"); org.joda.time.Period period4 = new org.joda.time.Period((int) 'a', 11, (int) (byte) 100, (int) ' '); int[] intArray5 = period4.getValues(); org.junit.Assert.assertNotNull(intArray5); org.junit.Assert.assertEquals(java.util.Arrays.toString(intArray5), "[0, 0, 0, 0, 97, 11, 100, 32]"); } @Test public void test0958() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0958"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period3 = period1.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.PeriodType periodType6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant4, readableInstant5, periodType6); org.joda.time.Period period9 = period7.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.PeriodType periodType12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant10, readableInstant11, periodType12); org.joda.time.DurationFieldType durationFieldType15 = period13.getFieldType((int) (byte) 0); int int16 = period9.indexOf(durationFieldType15); org.joda.time.Period period18 = period1.withFieldAdded(durationFieldType15, 1); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Period period21 = new org.joda.time.Period(readableInstant19, readableInstant20); org.joda.time.Period period22 = period21.normalizedStandard(); int int23 = period21.getMillis(); org.joda.time.Period period24 = period18.withFields((org.joda.time.ReadablePeriod) period21); org.joda.time.Period period26 = period21.withSeconds((int) (byte) -1); org.joda.time.Period period28 = period26.plusWeeks(1); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(durationFieldType15); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertTrue("'" + int23 + "' != '" + 0 + "'", int23 == 0); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period28); } @Test public void test0959() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0959"); org.joda.time.Period period1 = org.joda.time.Period.millis(1); org.joda.time.Period period3 = period1.withWeeks((int) (short) 0); org.joda.time.Period period5 = period1.minusYears((int) '#'); org.joda.time.Period period7 = period5.withSeconds((int) (short) -1); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); } @Test public void test0960() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0960"); org.joda.time.Period period1 = org.joda.time.Period.parse("PT0.097S"); org.joda.time.Duration duration2 = period1.toStandardDuration(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(duration2); } @Test public void test0961() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0961"); org.joda.time.Period period1 = org.joda.time.Period.months(0); org.joda.time.Period period2 = period1.negated(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period2); } @Test public void test0962() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0962"); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.PeriodType periodType7 = null; org.joda.time.Period period8 = new org.joda.time.Period(readableInstant5, readableInstant6, periodType7); org.joda.time.MutablePeriod mutablePeriod9 = period8.toMutablePeriod(); org.joda.time.Period period10 = period4.plus((org.joda.time.ReadablePeriod) period8); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.PeriodType periodType13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant11, readableInstant12, periodType13); org.joda.time.Period period16 = period14.plusMonths((int) '4'); org.joda.time.Period period17 = period8.withFields((org.joda.time.ReadablePeriod) period16); org.joda.time.PeriodType periodType18 = period16.getPeriodType(); org.joda.time.Chronology chronology19 = null; org.joda.time.Period period20 = new org.joda.time.Period((long) (short) 1, (long) '4', periodType18, chronology19); org.junit.Assert.assertNotNull(mutablePeriod9); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(periodType18); } @Test public void test0963() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0963"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.MutablePeriod mutablePeriod7 = period6.toMutablePeriod(); org.joda.time.Period period8 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Period period10 = period6.withMonths((int) (byte) 0); org.joda.time.Period period12 = period10.minusSeconds((-1)); org.joda.time.Period period14 = period12.minusHours((-1)); org.joda.time.Period period16 = period14.minusDays(100); org.joda.time.Period period18 = period14.minusMinutes((int) '4'); java.lang.Object obj19 = null; boolean boolean20 = period18.equals(obj19); org.joda.time.Period period22 = period18.withDays((int) (short) 100); org.junit.Assert.assertNotNull(mutablePeriod7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false); org.junit.Assert.assertNotNull(period22); } @Test public void test0964() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0964"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Duration duration4 = period2.toDurationFrom(readableInstant3); org.joda.time.Duration duration5 = period2.toStandardDuration(); org.joda.time.Period period7 = period2.plusDays(11); org.joda.time.Period period8 = period7.negated(); org.joda.time.Period period10 = period7.minusDays(0); org.junit.Assert.assertNotNull(duration4); org.junit.Assert.assertNotNull(duration5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); } @Test public void test0965() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0965"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.PeriodType periodType5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant3, readableInstant4, periodType5); org.joda.time.MutablePeriod mutablePeriod7 = period6.toMutablePeriod(); org.joda.time.Period period8 = period2.plus((org.joda.time.ReadablePeriod) period6); org.joda.time.Period period10 = period6.withMonths((int) (byte) 0); org.joda.time.Period period12 = period10.minusSeconds((-1)); org.joda.time.Period period14 = period12.minusHours((-1)); org.joda.time.Period period16 = period14.minusDays(100); org.joda.time.Period period18 = period14.minusMinutes((int) '4'); org.joda.time.Period period20 = period14.minusMillis(17); int[] intArray21 = period20.getValues(); org.junit.Assert.assertNotNull(mutablePeriod7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(intArray21); org.junit.Assert.assertEquals(java.util.Arrays.toString(intArray21), "[0, 0, 0, 0, 1, 0, 1, -17]"); } @Test public void test0966() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0966"); org.joda.time.Period period1 = org.joda.time.Period.hours((int) 'a'); org.junit.Assert.assertNotNull(period1); } @Test public void test0967() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0967"); org.joda.time.Period period1 = org.joda.time.Period.seconds((int) (short) 1); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((java.lang.Object) period1, chronology2); org.joda.time.Period period5 = period1.plusYears((int) (short) -1); org.joda.time.Period period7 = org.joda.time.Period.years((int) 'a'); org.joda.time.Period period9 = org.joda.time.Period.millis(1); org.joda.time.Period period11 = period9.withWeeks((int) (short) 0); org.joda.time.Period period12 = period7.plus((org.joda.time.ReadablePeriod) period11); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Period period15 = new org.joda.time.Period(readableInstant13, readableInstant14); org.joda.time.Period period16 = period15.normalizedStandard(); org.joda.time.PeriodType periodType25 = null; org.joda.time.Period period26 = new org.joda.time.Period((-1), 0, (int) '#', (int) (short) 10, (int) (short) 0, 10, (int) (short) 1, (int) (byte) 10, periodType25); org.joda.time.Period period27 = period16.withFields((org.joda.time.ReadablePeriod) period26); org.joda.time.Period period28 = period12.plus((org.joda.time.ReadablePeriod) period26); org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.PeriodType periodType31 = null; org.joda.time.Period period32 = new org.joda.time.Period(readableInstant29, readableInstant30, periodType31); org.joda.time.Period period34 = period32.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.Duration duration36 = period32.toDurationTo(readableInstant35); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Period period38 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration36, readableInstant37); org.joda.time.PeriodType periodType40 = null; org.joda.time.Chronology chronology41 = null; org.joda.time.Period period42 = new org.joda.time.Period((long) 'a', periodType40, chronology41); org.joda.time.Period period44 = period42.withMinutes(0); org.joda.time.Period period46 = period44.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod47 = period44.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.ReadableInstant readableInstant49 = null; org.joda.time.Period period50 = new org.joda.time.Period(readableInstant48, readableInstant49); org.joda.time.ReadableInstant readableInstant51 = null; org.joda.time.Duration duration52 = period50.toDurationFrom(readableInstant51); org.joda.time.Period period54 = period50.plusMonths(0); org.joda.time.Period period56 = period54.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant57 = null; org.joda.time.Duration duration58 = period54.toDurationFrom(readableInstant57); org.joda.time.Period period60 = period54.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.ReadableInstant readableInstant62 = null; org.joda.time.PeriodType periodType63 = null; org.joda.time.Period period64 = new org.joda.time.Period(readableInstant61, readableInstant62, periodType63); org.joda.time.Period period66 = period64.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant67 = null; org.joda.time.ReadableInstant readableInstant68 = null; org.joda.time.PeriodType periodType69 = null; org.joda.time.Period period70 = new org.joda.time.Period(readableInstant67, readableInstant68, periodType69); org.joda.time.Period period72 = period70.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant73 = null; org.joda.time.ReadableInstant readableInstant74 = null; org.joda.time.PeriodType periodType75 = null; org.joda.time.Period period76 = new org.joda.time.Period(readableInstant73, readableInstant74, periodType75); org.joda.time.DurationFieldType durationFieldType78 = period76.getFieldType((int) (byte) 0); int int79 = period72.indexOf(durationFieldType78); int int80 = period64.get(durationFieldType78); org.joda.time.Period period82 = period54.withField(durationFieldType78, (int) (short) 0); int int83 = mutablePeriod47.indexOf(durationFieldType78); boolean boolean84 = period38.isSupported(durationFieldType78); org.joda.time.Period period86 = period12.withField(durationFieldType78, (int) (short) 10); org.joda.time.Period period88 = period5.withField(durationFieldType78, 0); org.joda.time.PeriodType periodType89 = period88.getPeriodType(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(duration36); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(mutablePeriod47); org.junit.Assert.assertNotNull(duration52); org.junit.Assert.assertNotNull(period54); org.junit.Assert.assertNotNull(period56); org.junit.Assert.assertNotNull(duration58); org.junit.Assert.assertNotNull(period60); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertNotNull(period72); org.junit.Assert.assertNotNull(durationFieldType78); org.junit.Assert.assertTrue("'" + int79 + "' != '" + 0 + "'", int79 == 0); org.junit.Assert.assertTrue("'" + int80 + "' != '" + 0 + "'", int80 == 0); org.junit.Assert.assertNotNull(period82); org.junit.Assert.assertTrue("'" + int83 + "' != '" + 0 + "'", int83 == 0); org.junit.Assert.assertTrue("'" + boolean84 + "' != '" + true + "'", boolean84 == true); org.junit.Assert.assertNotNull(period86); org.junit.Assert.assertNotNull(period88); org.junit.Assert.assertNotNull(periodType89); } @Test public void test0968() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0968"); org.joda.time.Period period1 = new org.joda.time.Period((long) 10); org.joda.time.Period period3 = period1.plusSeconds((int) 'a'); org.joda.time.Period period5 = period3.plusMonths((int) 'a'); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); } @Test public void test0969() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0969"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.PeriodType periodType5 = null; org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period((long) 'a', periodType5, chronology6); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.Period period9 = period3.withFields((org.joda.time.ReadablePeriod) period7); org.joda.time.Period period11 = period3.withYears(10); org.joda.time.Period period12 = period11.toPeriod(); org.joda.time.Period period14 = period11.plusMillis(1); org.joda.time.ReadableInstant readableInstant16 = null; org.joda.time.ReadableInstant readableInstant17 = null; org.joda.time.ReadableInstant readableInstant18 = null; org.joda.time.Period period19 = new org.joda.time.Period(readableInstant17, readableInstant18); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.Duration duration21 = period19.toDurationFrom(readableInstant20); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.Period period25 = new org.joda.time.Period(readableInstant23, readableInstant24); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.Duration duration27 = period25.toDurationFrom(readableInstant26); org.joda.time.Period period29 = period25.plusMonths(0); org.joda.time.Period period31 = period29.plusMonths((int) '#'); org.joda.time.Period period33 = period29.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType34 = period29.getPeriodType(); org.joda.time.Chronology chronology35 = null; org.joda.time.Period period36 = new org.joda.time.Period((long) (short) -1, periodType34, chronology35); org.joda.time.Period period37 = new org.joda.time.Period(readableInstant16, (org.joda.time.ReadableDuration) duration21, periodType34); org.joda.time.Chronology chronology38 = null; org.joda.time.Period period39 = new org.joda.time.Period((long) (byte) 0, periodType34, chronology38); org.joda.time.Period period40 = period14.normalizedStandard(periodType34); org.joda.time.Period period42 = period40.withMillis((int) (byte) 10); org.joda.time.Period period44 = period40.withMinutes(32); org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(duration21); org.junit.Assert.assertNotNull(duration27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(periodType34); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); } @Test public void test0970() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0970"); org.joda.time.ReadablePartial readablePartial0 = null; org.joda.time.ReadablePartial readablePartial1 = null; org.joda.time.Period period3 = org.joda.time.Period.years((int) 'a'); org.joda.time.Period period5 = org.joda.time.Period.millis(1); org.joda.time.Period period7 = period5.withWeeks((int) (short) 0); org.joda.time.Period period8 = period3.plus((org.joda.time.ReadablePeriod) period7); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period8.toDurationTo(readableInstant9); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Period period12 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration10, readableInstant11); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Chronology chronology17 = null; org.joda.time.Period period18 = new org.joda.time.Period((long) (short) 10, chronology17); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.Duration duration20 = period18.toDurationFrom(readableInstant19); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.Period period23 = new org.joda.time.Period(readableInstant21, readableInstant22); org.joda.time.Period period24 = period23.normalizedStandard(); org.joda.time.Period period26 = period23.plusMinutes((int) ' '); org.joda.time.Period period27 = period26.normalizedStandard(); org.joda.time.Period period28 = new org.joda.time.Period((java.lang.Object) period27); org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Period period32 = new org.joda.time.Period(readableInstant30, readableInstant31); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.Duration duration34 = period32.toDurationFrom(readableInstant33); org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Period period38 = new org.joda.time.Period(readableInstant36, readableInstant37); org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Duration duration40 = period38.toDurationFrom(readableInstant39); org.joda.time.Period period42 = period38.plusMonths(0); org.joda.time.Period period44 = period42.plusMonths((int) '#'); org.joda.time.Period period46 = period42.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType47 = period42.getPeriodType(); org.joda.time.Chronology chronology48 = null; org.joda.time.Period period49 = new org.joda.time.Period((long) (short) -1, periodType47, chronology48); org.joda.time.Period period50 = new org.joda.time.Period(readableInstant29, (org.joda.time.ReadableDuration) duration34, periodType47); org.joda.time.Period period51 = period28.withPeriodType(periodType47); org.joda.time.Chronology chronology52 = null; org.joda.time.Period period53 = new org.joda.time.Period((java.lang.Object) period18, periodType47, chronology52); org.joda.time.Chronology chronology54 = null; org.joda.time.Period period55 = new org.joda.time.Period((long) (short) 10, (long) 10, periodType47, chronology54); org.joda.time.Period period56 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration10, readableInstant13, periodType47); // The following exception was thrown during execution in test generation try { org.joda.time.Period period57 = new org.joda.time.Period(readablePartial0, readablePartial1, periodType47); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: ReadablePartial objects must not be null"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(duration20); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(duration34); org.junit.Assert.assertNotNull(duration40); org.junit.Assert.assertNotNull(period42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(periodType47); org.junit.Assert.assertNotNull(period51); } @Test public void test0971() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0971"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.PeriodType periodType3 = null; org.joda.time.Chronology chronology4 = null; org.joda.time.Period period5 = new org.joda.time.Period((long) 'a', periodType3, chronology4); org.joda.time.DurationFieldType durationFieldType6 = null; int int7 = period5.get(durationFieldType6); org.joda.time.Period period8 = period1.withFields((org.joda.time.ReadablePeriod) period5); org.joda.time.Days days9 = period8.toStandardDays(); org.joda.time.Period period11 = period8.minusWeeks(0); org.joda.time.Period period13 = period11.plusDays(8); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(days9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); } @Test public void test0972() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0972"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 100, (long) (-1), chronology2); org.joda.time.Period period5 = period3.minusDays(8); int int6 = period5.getMinutes(); int int7 = period5.getYears(); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.PeriodType periodType10 = null; org.joda.time.Period period11 = new org.joda.time.Period(readableInstant8, readableInstant9, periodType10); org.joda.time.Period period13 = period11.plusMonths((int) '4'); org.joda.time.Period period15 = org.joda.time.Period.millis(1); org.joda.time.PeriodType periodType17 = null; org.joda.time.Chronology chronology18 = null; org.joda.time.Period period19 = new org.joda.time.Period((long) 'a', periodType17, chronology18); org.joda.time.Hours hours20 = period19.toStandardHours(); org.joda.time.Period period22 = period19.plusSeconds((int) (byte) 1); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.ReadableInstant readableInstant24 = null; org.joda.time.PeriodType periodType25 = null; org.joda.time.Period period26 = new org.joda.time.Period(readableInstant23, readableInstant24, periodType25); org.joda.time.DurationFieldType durationFieldType28 = period26.getFieldType((int) (byte) 0); org.joda.time.Period period30 = period19.withField(durationFieldType28, 1); boolean boolean31 = period15.equals((java.lang.Object) 1); org.joda.time.ReadableInstant readableInstant32 = null; org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.PeriodType periodType34 = null; org.joda.time.Period period35 = new org.joda.time.Period(readableInstant32, readableInstant33, periodType34); org.joda.time.Period period37 = period35.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.PeriodType periodType40 = null; org.joda.time.Period period41 = new org.joda.time.Period(readableInstant38, readableInstant39, periodType40); org.joda.time.DurationFieldType durationFieldType43 = period41.getFieldType((int) (byte) 0); int int44 = period37.indexOf(durationFieldType43); org.joda.time.Period period46 = period15.withFieldAdded(durationFieldType43, (int) (short) 0); org.joda.time.Period period48 = period11.withFieldAdded(durationFieldType43, (int) '#'); org.joda.time.Period period50 = period5.withField(durationFieldType43, (int) '#'); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(hours20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(durationFieldType28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertTrue("'" + boolean31 + "' != '" + false + "'", boolean31 == false); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(durationFieldType43); org.junit.Assert.assertTrue("'" + int44 + "' != '" + 0 + "'", int44 == 0); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period50); } @Test public void test0973() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0973"); org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant1, readableInstant2); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.PeriodType periodType6 = null; org.joda.time.Period period7 = new org.joda.time.Period(readableInstant4, readableInstant5, periodType6); org.joda.time.MutablePeriod mutablePeriod8 = period7.toMutablePeriod(); org.joda.time.Period period9 = period3.plus((org.joda.time.ReadablePeriod) period7); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.PeriodType periodType12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant10, readableInstant11, periodType12); org.joda.time.Period period15 = period13.plusMonths((int) '4'); org.joda.time.Period period16 = period7.withFields((org.joda.time.ReadablePeriod) period15); org.joda.time.PeriodType periodType17 = period15.getPeriodType(); org.joda.time.Period period18 = new org.joda.time.Period((long) '#', periodType17); org.junit.Assert.assertNotNull(mutablePeriod8); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(periodType17); } @Test public void test0974() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0974"); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.ReadableInstant readableInstant6 = null; org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.Period period13 = new org.joda.time.Period(readableInstant11, readableInstant12); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Duration duration15 = period13.toDurationFrom(readableInstant14); org.joda.time.Period period17 = period13.plusMonths(0); org.joda.time.Period period19 = period17.plusMonths((int) '#'); org.joda.time.Period period21 = period17.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType22 = period17.getPeriodType(); org.joda.time.Chronology chronology23 = null; org.joda.time.Period period24 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType22, chronology23); org.joda.time.Period period25 = new org.joda.time.Period(readableInstant7, readableInstant8, periodType22); org.joda.time.Period period26 = new org.joda.time.Period(readableInstant5, readableInstant6, periodType22); org.joda.time.Chronology chronology27 = null; org.joda.time.Period period28 = new org.joda.time.Period((long) ' ', 0L, periodType22, chronology27); org.joda.time.Period period29 = new org.joda.time.Period(100L, periodType22); org.joda.time.Chronology chronology30 = null; org.joda.time.Period period31 = new org.joda.time.Period((long) 0, periodType22, chronology30); org.joda.time.Chronology chronology32 = null; org.joda.time.Period period33 = new org.joda.time.Period((long) '4', periodType22, chronology32); org.joda.time.Period period35 = period33.plusDays((-3)); org.junit.Assert.assertNotNull(duration15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(period21); org.junit.Assert.assertNotNull(periodType22); org.junit.Assert.assertNotNull(period35); } @Test public void test0975() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0975"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period(100L, chronology1); org.joda.time.PeriodType periodType4 = null; org.joda.time.Chronology chronology5 = null; org.joda.time.Period period6 = new org.joda.time.Period((long) 'a', periodType4, chronology5); org.joda.time.PeriodType periodType8 = null; org.joda.time.Chronology chronology9 = null; org.joda.time.Period period10 = new org.joda.time.Period((long) 'a', periodType8, chronology9); org.joda.time.Hours hours11 = period10.toStandardHours(); org.joda.time.Period period12 = period6.withFields((org.joda.time.ReadablePeriod) period10); org.joda.time.Period period14 = period6.withYears(10); org.joda.time.Period period15 = period2.plus((org.joda.time.ReadablePeriod) period6); int int16 = period2.getMonths(); org.joda.time.Period period18 = period2.plusMillis(1); org.joda.time.Chronology chronology19 = null; org.joda.time.Period period20 = new org.joda.time.Period((java.lang.Object) period2, chronology19); org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((java.lang.Object) period2, chronology21); org.junit.Assert.assertNotNull(hours11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertNotNull(period18); } @Test public void test0976() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0976"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 0, 0L, chronology2); } @Test public void test0977() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0977"); org.joda.time.Period period1 = org.joda.time.Period.years((int) 'a'); org.joda.time.Period period3 = period1.withSeconds(100); org.joda.time.Chronology chronology4 = null; org.joda.time.Period period5 = new org.joda.time.Period((java.lang.Object) period3, chronology4); org.joda.time.Period period6 = period3.toPeriod(); java.lang.String str7 = period6.toString(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertEquals("'" + str7 + "' != '" + "P97YT100S" + "'", str7, "P97YT100S"); } @Test public void test0978() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0978"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.Period period3 = new org.joda.time.Period(readableInstant1, readableInstant2); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.Duration duration5 = period3.toDurationFrom(readableInstant4); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.Period period9 = new org.joda.time.Period(readableInstant7, readableInstant8); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Duration duration11 = period9.toDurationFrom(readableInstant10); org.joda.time.Period period13 = period9.plusMonths(0); org.joda.time.Period period15 = period13.plusMonths((int) '#'); org.joda.time.Period period17 = period13.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType18 = period13.getPeriodType(); org.joda.time.Chronology chronology19 = null; org.joda.time.Period period20 = new org.joda.time.Period((long) (short) -1, periodType18, chronology19); org.joda.time.Period period21 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration5, periodType18); int int22 = period21.getSeconds(); org.junit.Assert.assertNotNull(duration5); org.junit.Assert.assertNotNull(duration11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(periodType18); org.junit.Assert.assertTrue("'" + int22 + "' != '" + 0 + "'", int22 == 0); } @Test public void test0979() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0979"); org.joda.time.PeriodType periodType2 = null; org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period((long) '4', (-1L), periodType2, chronology3); org.joda.time.MutablePeriod mutablePeriod5 = period4.toMutablePeriod(); int int6 = period4.getSeconds(); org.junit.Assert.assertNotNull(mutablePeriod5); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); } @Test public void test0980() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0980"); org.joda.time.Period period3 = org.joda.time.Period.hours((int) (byte) 100); org.joda.time.PeriodType periodType4 = period3.getPeriodType(); org.joda.time.Chronology chronology5 = null; org.joda.time.Period period6 = new org.joda.time.Period((long) 'a', (long) 'a', periodType4, chronology5); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.Period period9 = new org.joda.time.Period(readableInstant7, readableInstant8); org.joda.time.ReadableInstant readableInstant10 = null; org.joda.time.Duration duration11 = period9.toDurationFrom(readableInstant10); org.joda.time.Period period13 = period9.plusMonths(0); org.joda.time.Period period15 = period13.plusMonths((int) '#'); org.joda.time.Period period17 = period13.plusMinutes((int) (short) 100); org.joda.time.Period period19 = period17.withWeeks((int) ' '); org.joda.time.PeriodType periodType20 = null; org.joda.time.Period period21 = new org.joda.time.Period((java.lang.Object) period17, periodType20); org.joda.time.Period period23 = period21.minusDays((int) (byte) 10); org.joda.time.ReadableInstant readableInstant26 = null; org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.Period period29 = new org.joda.time.Period(readableInstant27, readableInstant28); org.joda.time.ReadableInstant readableInstant30 = null; org.joda.time.Duration duration31 = period29.toDurationFrom(readableInstant30); org.joda.time.ReadableInstant readableInstant33 = null; org.joda.time.ReadableInstant readableInstant34 = null; org.joda.time.Period period35 = new org.joda.time.Period(readableInstant33, readableInstant34); org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.Duration duration37 = period35.toDurationFrom(readableInstant36); org.joda.time.Period period39 = period35.plusMonths(0); org.joda.time.Period period41 = period39.plusMonths((int) '#'); org.joda.time.Period period43 = period39.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType44 = period39.getPeriodType(); org.joda.time.Chronology chronology45 = null; org.joda.time.Period period46 = new org.joda.time.Period((long) (short) -1, periodType44, chronology45); org.joda.time.Period period47 = new org.joda.time.Period(readableInstant26, (org.joda.time.ReadableDuration) duration31, periodType44); org.joda.time.Chronology chronology48 = null; org.joda.time.Period period49 = new org.joda.time.Period((long) (byte) 10, (long) 10, periodType44, chronology48); org.joda.time.Chronology chronology52 = null; org.joda.time.Period period53 = new org.joda.time.Period((long) 100, (long) (-1), chronology52); org.joda.time.Period period55 = period53.plusMinutes((int) (short) 10); org.joda.time.Period period57 = period55.plusMinutes((-1)); int int58 = period57.getWeeks(); org.joda.time.Period period60 = period57.withMinutes((int) (byte) 10); org.joda.time.DurationFieldType durationFieldType62 = period60.getFieldType(0); org.joda.time.Period period64 = period49.withFieldAdded(durationFieldType62, (int) (short) 100); int int65 = period21.get(durationFieldType62); org.joda.time.Period period67 = period6.withFieldAdded(durationFieldType62, 11); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(periodType4); org.junit.Assert.assertNotNull(duration11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period17); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(period23); org.junit.Assert.assertNotNull(duration31); org.junit.Assert.assertNotNull(duration37); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertNotNull(period41); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(periodType44); org.junit.Assert.assertNotNull(period55); org.junit.Assert.assertNotNull(period57); org.junit.Assert.assertTrue("'" + int58 + "' != '" + 0 + "'", int58 == 0); org.junit.Assert.assertNotNull(period60); org.junit.Assert.assertNotNull(durationFieldType62); org.junit.Assert.assertNotNull(period64); org.junit.Assert.assertTrue("'" + int65 + "' != '" + 0 + "'", int65 == 0); org.junit.Assert.assertNotNull(period67); } @Test public void test0981() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0981"); org.joda.time.Period period1 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period3 = period1.plusMillis((int) 'a'); org.joda.time.MutablePeriod mutablePeriod4 = period3.toMutablePeriod(); org.joda.time.Period period6 = period3.withMinutes((int) (short) 100); int int7 = period3.size(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(mutablePeriod4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 8 + "'", int7 == 8); } @Test public void test0982() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0982"); org.joda.time.Period period2 = new org.joda.time.Period((long) (byte) -1, 0L); } @Test public void test0983() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0983"); org.joda.time.Period period1 = org.joda.time.Period.years((int) 'a'); org.joda.time.Period period3 = org.joda.time.Period.millis(1); org.joda.time.Period period5 = period3.withWeeks((int) (short) 0); org.joda.time.Period period6 = period1.plus((org.joda.time.ReadablePeriod) period5); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Duration duration8 = period6.toDurationTo(readableInstant7); org.joda.time.Period period10 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period12 = period10.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.PeriodType periodType15 = null; org.joda.time.Period period16 = new org.joda.time.Period(readableInstant13, readableInstant14, periodType15); org.joda.time.Period period18 = period16.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant19 = null; org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.PeriodType periodType21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant19, readableInstant20, periodType21); org.joda.time.DurationFieldType durationFieldType24 = period22.getFieldType((int) (byte) 0); int int25 = period18.indexOf(durationFieldType24); org.joda.time.Period period27 = period10.withFieldAdded(durationFieldType24, 1); org.joda.time.Period period29 = period27.plusSeconds((int) (byte) 1); org.joda.time.PeriodType periodType30 = period29.getPeriodType(); org.joda.time.Period period31 = new org.joda.time.Period((java.lang.Object) readableInstant7, periodType30); org.joda.time.Period period32 = period31.toPeriod(); org.joda.time.Chronology chronology35 = null; org.joda.time.Period period36 = new org.joda.time.Period((long) 100, (long) (-1), chronology35); org.joda.time.Period period38 = period36.plusMinutes((int) (short) 10); org.joda.time.Period period40 = period38.plusMinutes((-1)); int int41 = period40.getWeeks(); org.joda.time.Period period43 = period40.withMinutes((int) (byte) 10); org.joda.time.ReadableInstant readableInstant44 = null; org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.Period period46 = new org.joda.time.Period(readableInstant44, readableInstant45); org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.Duration duration48 = period46.toDurationFrom(readableInstant47); org.joda.time.Period period50 = period46.plusMonths(0); org.joda.time.Period period52 = period50.plusMonths((int) '#'); org.joda.time.Period period54 = period50.plusMinutes((int) (short) 100); org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.Period period57 = new org.joda.time.Period(readableInstant55, readableInstant56); org.joda.time.ReadableInstant readableInstant58 = null; org.joda.time.Duration duration59 = period57.toDurationFrom(readableInstant58); org.joda.time.Period period61 = period57.plusMonths(0); org.joda.time.Period period63 = period61.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.Duration duration65 = period61.toDurationFrom(readableInstant64); org.joda.time.Period period67 = period61.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant68 = null; org.joda.time.ReadableInstant readableInstant69 = null; org.joda.time.PeriodType periodType70 = null; org.joda.time.Period period71 = new org.joda.time.Period(readableInstant68, readableInstant69, periodType70); org.joda.time.Period period73 = period71.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant74 = null; org.joda.time.ReadableInstant readableInstant75 = null; org.joda.time.PeriodType periodType76 = null; org.joda.time.Period period77 = new org.joda.time.Period(readableInstant74, readableInstant75, periodType76); org.joda.time.Period period79 = period77.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant80 = null; org.joda.time.ReadableInstant readableInstant81 = null; org.joda.time.PeriodType periodType82 = null; org.joda.time.Period period83 = new org.joda.time.Period(readableInstant80, readableInstant81, periodType82); org.joda.time.DurationFieldType durationFieldType85 = period83.getFieldType((int) (byte) 0); int int86 = period79.indexOf(durationFieldType85); int int87 = period71.get(durationFieldType85); org.joda.time.Period period89 = period61.withField(durationFieldType85, (int) (short) 0); boolean boolean90 = period54.isSupported(durationFieldType85); org.joda.time.Period period92 = period43.withField(durationFieldType85, (int) ' '); org.joda.time.Period period94 = period31.withField(durationFieldType85, (int) ' '); org.joda.time.Period period96 = period31.withMonths((int) ' '); java.lang.Class<?> wildcardClass97 = period31.getClass(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(duration8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(durationFieldType24); org.junit.Assert.assertTrue("'" + int25 + "' != '" + 0 + "'", int25 == 0); org.junit.Assert.assertNotNull(period27); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(periodType30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period38); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertTrue("'" + int41 + "' != '" + 0 + "'", int41 == 0); org.junit.Assert.assertNotNull(period43); org.junit.Assert.assertNotNull(duration48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(period52); org.junit.Assert.assertNotNull(period54); org.junit.Assert.assertNotNull(duration59); org.junit.Assert.assertNotNull(period61); org.junit.Assert.assertNotNull(period63); org.junit.Assert.assertNotNull(duration65); org.junit.Assert.assertNotNull(period67); org.junit.Assert.assertNotNull(period73); org.junit.Assert.assertNotNull(period79); org.junit.Assert.assertNotNull(durationFieldType85); org.junit.Assert.assertTrue("'" + int86 + "' != '" + 0 + "'", int86 == 0); org.junit.Assert.assertTrue("'" + int87 + "' != '" + 0 + "'", int87 == 0); org.junit.Assert.assertNotNull(period89); org.junit.Assert.assertTrue("'" + boolean90 + "' != '" + true + "'", boolean90 == true); org.junit.Assert.assertNotNull(period92); org.junit.Assert.assertNotNull(period94); org.junit.Assert.assertNotNull(period96); org.junit.Assert.assertNotNull(wildcardClass97); } @Test public void test0984() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0984"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.Period period2 = new org.joda.time.Period(readableInstant0, readableInstant1); org.joda.time.Period period3 = period2.normalizedStandard(); org.joda.time.Period period5 = period2.plusMinutes((int) ' '); org.joda.time.Duration duration6 = period2.toStandardDuration(); org.joda.time.Period period8 = period2.minusDays((int) (short) 0); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Duration duration10 = period8.toDurationTo(readableInstant9); org.joda.time.Period period12 = period8.plusMinutes((int) (short) 0); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(duration6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(duration10); org.junit.Assert.assertNotNull(period12); } @Test public void test0985() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0985"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period(100L, (long) ' ', chronology2); org.joda.time.Period period5 = period3.plusHours(1); org.joda.time.Weeks weeks6 = period5.toStandardWeeks(); org.joda.time.Chronology chronology9 = null; org.joda.time.Period period10 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology9); java.lang.String str11 = period10.toString(); org.joda.time.Period period12 = new org.joda.time.Period((java.lang.Object) str11); org.joda.time.Period period14 = period12.plusSeconds((int) 'a'); org.joda.time.Period period16 = period12.plusYears((int) (byte) 0); org.joda.time.Period period18 = period12.withMonths(0); org.joda.time.PeriodType periodType20 = null; org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) 'a', periodType20, chronology21); org.joda.time.Period period24 = period22.withMinutes(0); org.joda.time.Period period26 = period24.minusSeconds((int) (short) 100); org.joda.time.MutablePeriod mutablePeriod27 = period24.toMutablePeriod(); org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.ReadableInstant readableInstant29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant28, readableInstant29); org.joda.time.ReadableInstant readableInstant31 = null; org.joda.time.Duration duration32 = period30.toDurationFrom(readableInstant31); org.joda.time.Period period34 = period30.plusMonths(0); org.joda.time.Period period36 = period34.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Duration duration38 = period34.toDurationFrom(readableInstant37); org.joda.time.Period period40 = period34.minusMinutes((int) (byte) -1); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.PeriodType periodType43 = null; org.joda.time.Period period44 = new org.joda.time.Period(readableInstant41, readableInstant42, periodType43); org.joda.time.Period period46 = period44.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.ReadableInstant readableInstant48 = null; org.joda.time.PeriodType periodType49 = null; org.joda.time.Period period50 = new org.joda.time.Period(readableInstant47, readableInstant48, periodType49); org.joda.time.Period period52 = period50.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant53 = null; org.joda.time.ReadableInstant readableInstant54 = null; org.joda.time.PeriodType periodType55 = null; org.joda.time.Period period56 = new org.joda.time.Period(readableInstant53, readableInstant54, periodType55); org.joda.time.DurationFieldType durationFieldType58 = period56.getFieldType((int) (byte) 0); int int59 = period52.indexOf(durationFieldType58); int int60 = period44.get(durationFieldType58); org.joda.time.Period period62 = period34.withField(durationFieldType58, (int) (short) 0); int int63 = mutablePeriod27.indexOf(durationFieldType58); int int64 = period18.get(durationFieldType58); org.joda.time.Period period66 = period5.withFieldAdded(durationFieldType58, (int) (byte) 1); org.joda.time.Period period68 = period66.multipliedBy((int) (short) -1); org.joda.time.Period period70 = period68.minusSeconds((int) ' '); org.joda.time.Period period72 = period70.plusSeconds(17); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(weeks6); org.junit.Assert.assertEquals("'" + str11 + "' != '" + "PT0.011S" + "'", str11, "PT0.011S"); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(mutablePeriod27); org.junit.Assert.assertNotNull(duration32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period36); org.junit.Assert.assertNotNull(duration38); org.junit.Assert.assertNotNull(period40); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(period52); org.junit.Assert.assertNotNull(durationFieldType58); org.junit.Assert.assertTrue("'" + int59 + "' != '" + 0 + "'", int59 == 0); org.junit.Assert.assertTrue("'" + int60 + "' != '" + 0 + "'", int60 == 0); org.junit.Assert.assertNotNull(period62); org.junit.Assert.assertTrue("'" + int63 + "' != '" + 0 + "'", int63 == 0); org.junit.Assert.assertTrue("'" + int64 + "' != '" + 0 + "'", int64 == 0); org.junit.Assert.assertNotNull(period66); org.junit.Assert.assertNotNull(period68); org.junit.Assert.assertNotNull(period70); org.junit.Assert.assertNotNull(period72); } @Test public void test0986() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0986"); org.joda.time.Period period1 = org.joda.time.Period.days(8); org.junit.Assert.assertNotNull(period1); } @Test public void test0987() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0987"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.PeriodType periodType3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant1, readableInstant2, periodType3); org.joda.time.Period period6 = period4.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Duration duration8 = period4.toDurationTo(readableInstant7); org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Period period10 = new org.joda.time.Period((org.joda.time.ReadableDuration) duration8, readableInstant9); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Duration duration12 = period10.toDurationFrom(readableInstant11); org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.Period period16 = org.joda.time.Period.seconds(1); org.joda.time.Period period18 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period20 = period18.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.ReadableInstant readableInstant22 = null; org.joda.time.PeriodType periodType23 = null; org.joda.time.Period period24 = new org.joda.time.Period(readableInstant21, readableInstant22, periodType23); org.joda.time.Period period26 = period24.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant27 = null; org.joda.time.ReadableInstant readableInstant28 = null; org.joda.time.PeriodType periodType29 = null; org.joda.time.Period period30 = new org.joda.time.Period(readableInstant27, readableInstant28, periodType29); org.joda.time.DurationFieldType durationFieldType32 = period30.getFieldType((int) (byte) 0); int int33 = period26.indexOf(durationFieldType32); org.joda.time.Period period35 = period18.withFieldAdded(durationFieldType32, 1); org.joda.time.Period period37 = period35.plusSeconds((int) (byte) 1); org.joda.time.PeriodType periodType38 = period37.getPeriodType(); org.joda.time.Period period39 = period16.withPeriodType(periodType38); org.joda.time.Period period40 = new org.joda.time.Period(readableInstant13, readableInstant14, periodType38); org.joda.time.Period period41 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration12, periodType38); org.joda.time.Period period43 = period41.plusHours(100); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(duration8); org.junit.Assert.assertNotNull(duration12); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(durationFieldType32); org.junit.Assert.assertTrue("'" + int33 + "' != '" + 0 + "'", int33 == 0); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(periodType38); org.junit.Assert.assertNotNull(period39); org.junit.Assert.assertNotNull(period43); } @Test public void test0988() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0988"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (byte) 10, chronology2); org.joda.time.Period period5 = period3.minusYears(100); org.joda.time.PeriodType periodType6 = period5.getPeriodType(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(periodType6); } @Test public void test0989() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0989"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 100, (long) (-1), chronology2); org.joda.time.Period period5 = period3.minusDays(8); org.joda.time.Period period6 = period3.negated(); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period6); } @Test public void test0990() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0990"); org.joda.time.Period period1 = org.joda.time.Period.hours((int) '4'); org.joda.time.Period period3 = period1.minusDays((int) (byte) 100); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant4, readableInstant5); org.joda.time.Period period7 = period6.normalizedStandard(); org.joda.time.Period period9 = period6.withWeeks(1); org.joda.time.PeriodType periodType11 = null; org.joda.time.Chronology chronology12 = null; org.joda.time.Period period13 = new org.joda.time.Period((long) 'a', periodType11, chronology12); org.joda.time.Period period15 = period13.withMinutes(0); org.joda.time.Period period16 = period6.minus((org.joda.time.ReadablePeriod) period15); org.joda.time.Period period18 = period15.minusMillis((int) ' '); org.joda.time.PeriodType periodType20 = null; org.joda.time.Chronology chronology21 = null; org.joda.time.Period period22 = new org.joda.time.Period((long) 'a', periodType20, chronology21); org.joda.time.PeriodType periodType24 = null; org.joda.time.Chronology chronology25 = null; org.joda.time.Period period26 = new org.joda.time.Period((long) 'a', periodType24, chronology25); org.joda.time.Hours hours27 = period26.toStandardHours(); org.joda.time.Period period28 = period22.withFields((org.joda.time.ReadablePeriod) period26); org.joda.time.Period period30 = period22.withYears(10); org.joda.time.Period period31 = period30.toPeriod(); org.joda.time.Period period33 = period30.plusMillis(1); org.joda.time.ReadableInstant readableInstant35 = null; org.joda.time.ReadableInstant readableInstant36 = null; org.joda.time.ReadableInstant readableInstant37 = null; org.joda.time.Period period38 = new org.joda.time.Period(readableInstant36, readableInstant37); org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Duration duration40 = period38.toDurationFrom(readableInstant39); org.joda.time.ReadableInstant readableInstant42 = null; org.joda.time.ReadableInstant readableInstant43 = null; org.joda.time.Period period44 = new org.joda.time.Period(readableInstant42, readableInstant43); org.joda.time.ReadableInstant readableInstant45 = null; org.joda.time.Duration duration46 = period44.toDurationFrom(readableInstant45); org.joda.time.Period period48 = period44.plusMonths(0); org.joda.time.Period period50 = period48.plusMonths((int) '#'); org.joda.time.Period period52 = period48.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType53 = period48.getPeriodType(); org.joda.time.Chronology chronology54 = null; org.joda.time.Period period55 = new org.joda.time.Period((long) (short) -1, periodType53, chronology54); org.joda.time.Period period56 = new org.joda.time.Period(readableInstant35, (org.joda.time.ReadableDuration) duration40, periodType53); org.joda.time.Chronology chronology57 = null; org.joda.time.Period period58 = new org.joda.time.Period((long) (byte) 0, periodType53, chronology57); org.joda.time.Period period59 = period33.normalizedStandard(periodType53); org.joda.time.Period period60 = period15.normalizedStandard(periodType53); org.joda.time.ReadableInstant readableInstant70 = null; org.joda.time.ReadableInstant readableInstant71 = null; org.joda.time.Period period72 = new org.joda.time.Period(readableInstant70, readableInstant71); org.joda.time.ReadableInstant readableInstant73 = null; org.joda.time.Duration duration74 = period72.toDurationFrom(readableInstant73); org.joda.time.Period period76 = period72.plusMonths(0); org.joda.time.Period period78 = period76.plusMonths((int) '#'); org.joda.time.Period period80 = period76.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType81 = period76.getPeriodType(); org.joda.time.Chronology chronology82 = null; org.joda.time.Period period83 = new org.joda.time.Period((long) (short) -1, periodType81, chronology82); org.joda.time.Period period84 = new org.joda.time.Period(0, 1, (int) (short) 100, (-1), (int) (short) 10, 100, (int) ' ', (int) (short) 1, periodType81); org.joda.time.Period period85 = period60.normalizedStandard(periodType81); int int86 = period60.getMonths(); org.joda.time.Period period87 = period3.withFields((org.joda.time.ReadablePeriod) period60); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(period3); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(hours27); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period33); org.junit.Assert.assertNotNull(duration40); org.junit.Assert.assertNotNull(duration46); org.junit.Assert.assertNotNull(period48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(period52); org.junit.Assert.assertNotNull(periodType53); org.junit.Assert.assertNotNull(period59); org.junit.Assert.assertNotNull(period60); org.junit.Assert.assertNotNull(duration74); org.junit.Assert.assertNotNull(period76); org.junit.Assert.assertNotNull(period78); org.junit.Assert.assertNotNull(period80); org.junit.Assert.assertNotNull(periodType81); org.junit.Assert.assertNotNull(period85); org.junit.Assert.assertTrue("'" + int86 + "' != '" + 0 + "'", int86 == 0); org.junit.Assert.assertNotNull(period87); } @Test public void test0991() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0991"); org.joda.time.ReadableInstant readableInstant4 = null; org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Period period6 = new org.joda.time.Period(readableInstant4, readableInstant5); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.Duration duration8 = period6.toDurationFrom(readableInstant7); org.joda.time.Period period10 = period6.plusMonths(0); org.joda.time.Period period12 = period10.plusMonths((int) '#'); org.joda.time.Period period14 = period10.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType15 = period10.getPeriodType(); org.joda.time.Chronology chronology16 = null; org.joda.time.Period period17 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType15, chronology16); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.Period period22 = new org.joda.time.Period(readableInstant20, readableInstant21); org.joda.time.ReadableInstant readableInstant23 = null; org.joda.time.Duration duration24 = period22.toDurationFrom(readableInstant23); org.joda.time.Period period26 = period22.plusMonths(0); org.joda.time.Period period28 = period26.plusMonths((int) '#'); org.joda.time.Period period30 = period26.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType31 = period26.getPeriodType(); org.joda.time.Chronology chronology32 = null; org.joda.time.Period period33 = new org.joda.time.Period((long) (short) 1, (long) 1, periodType31, chronology32); org.joda.time.Period period34 = period17.withPeriodType(periodType31); org.joda.time.Period period35 = new org.joda.time.Period((long) 17, 0L, periodType31); org.junit.Assert.assertNotNull(duration8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(periodType15); org.junit.Assert.assertNotNull(duration24); org.junit.Assert.assertNotNull(period26); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(periodType31); org.junit.Assert.assertNotNull(period34); } @Test public void test0992() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0992"); org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) (short) 10, (long) (short) -1, chronology2); java.lang.String str4 = period3.toString(); org.joda.time.Period period5 = new org.joda.time.Period((java.lang.Object) str4); org.joda.time.Period period7 = period5.plusSeconds((int) 'a'); org.joda.time.Period period9 = period7.plusWeeks((int) (short) 10); org.joda.time.Period period11 = period7.minusMillis((int) (byte) 1); org.joda.time.Period period12 = period11.normalizedStandard(); org.joda.time.Period period13 = period12.negated(); org.junit.Assert.assertEquals("'" + str4 + "' != '" + "PT0.011S" + "'", str4, "PT0.011S"); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period13); } @Test public void test0993() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0993"); org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Duration duration6 = period4.toDurationFrom(readableInstant5); org.joda.time.Period period8 = period4.plusMonths(0); org.joda.time.Period period10 = period8.plusMonths((int) '#'); org.joda.time.Period period12 = period8.plusMinutes((int) (short) 100); org.joda.time.Period period14 = period12.withWeeks((int) ' '); org.joda.time.PeriodType periodType15 = null; org.joda.time.Period period16 = new org.joda.time.Period((java.lang.Object) period12, periodType15); org.joda.time.PeriodType periodType17 = null; org.joda.time.Period period18 = period16.normalizedStandard(periodType17); org.joda.time.MutablePeriod mutablePeriod19 = period16.toMutablePeriod(); org.joda.time.PeriodType periodType21 = null; org.joda.time.Chronology chronology22 = null; org.joda.time.Period period23 = new org.joda.time.Period((long) 'a', periodType21, chronology22); org.joda.time.PeriodType periodType25 = null; org.joda.time.Chronology chronology26 = null; org.joda.time.Period period27 = new org.joda.time.Period((long) 'a', periodType25, chronology26); org.joda.time.Hours hours28 = period27.toStandardHours(); org.joda.time.Period period29 = period23.withFields((org.joda.time.ReadablePeriod) period27); org.joda.time.Period period31 = period23.withYears(10); org.joda.time.Period period32 = period31.toPeriod(); org.joda.time.Period period34 = period31.plusMillis(1); org.joda.time.Period period35 = period16.minus((org.joda.time.ReadablePeriod) period31); org.joda.time.Period period37 = period35.plusHours(0); org.joda.time.ReadableInstant readableInstant38 = null; org.joda.time.ReadableInstant readableInstant39 = null; org.joda.time.Period period40 = new org.joda.time.Period(readableInstant38, readableInstant39); org.joda.time.ReadableInstant readableInstant41 = null; org.joda.time.Duration duration42 = period40.toDurationFrom(readableInstant41); org.joda.time.Period period44 = period40.plusMonths(0); org.joda.time.Period period46 = period44.plusMonths((int) '#'); org.joda.time.ReadableInstant readableInstant47 = null; org.joda.time.Duration duration48 = period44.toDurationFrom(readableInstant47); org.joda.time.Period period50 = period44.minusMonths((int) (byte) 0); org.joda.time.ReadableInstant readableInstant55 = null; org.joda.time.ReadableInstant readableInstant56 = null; org.joda.time.ReadableInstant readableInstant57 = null; org.joda.time.ReadableInstant readableInstant58 = null; org.joda.time.ReadableInstant readableInstant59 = null; org.joda.time.Period period60 = new org.joda.time.Period(readableInstant58, readableInstant59); org.joda.time.ReadableInstant readableInstant61 = null; org.joda.time.Duration duration62 = period60.toDurationFrom(readableInstant61); org.joda.time.ReadableInstant readableInstant64 = null; org.joda.time.ReadableInstant readableInstant65 = null; org.joda.time.Period period66 = new org.joda.time.Period(readableInstant64, readableInstant65); org.joda.time.ReadableInstant readableInstant67 = null; org.joda.time.Duration duration68 = period66.toDurationFrom(readableInstant67); org.joda.time.Period period70 = period66.plusMonths(0); org.joda.time.Period period72 = period70.plusMonths((int) '#'); org.joda.time.Period period74 = period70.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType75 = period70.getPeriodType(); org.joda.time.Chronology chronology76 = null; org.joda.time.Period period77 = new org.joda.time.Period((long) (short) -1, periodType75, chronology76); org.joda.time.Period period78 = new org.joda.time.Period(readableInstant57, (org.joda.time.ReadableDuration) duration62, periodType75); org.joda.time.Period period79 = new org.joda.time.Period(readableInstant55, readableInstant56, periodType75); org.joda.time.Chronology chronology80 = null; org.joda.time.Period period81 = new org.joda.time.Period((long) (-100), (long) (-100), periodType75, chronology80); org.joda.time.Chronology chronology82 = null; org.joda.time.Period period83 = new org.joda.time.Period((long) 0, (long) 100, periodType75, chronology82); org.joda.time.Period period84 = period44.normalizedStandard(periodType75); org.joda.time.Period period85 = new org.joda.time.Period((java.lang.Object) period35, periodType75); org.joda.time.Chronology chronology86 = null; org.joda.time.Period period87 = new org.joda.time.Period((long) 17, (long) 98, periodType75, chronology86); org.junit.Assert.assertNotNull(duration6); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(mutablePeriod19); org.junit.Assert.assertNotNull(hours28); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period31); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period34); org.junit.Assert.assertNotNull(period35); org.junit.Assert.assertNotNull(period37); org.junit.Assert.assertNotNull(duration42); org.junit.Assert.assertNotNull(period44); org.junit.Assert.assertNotNull(period46); org.junit.Assert.assertNotNull(duration48); org.junit.Assert.assertNotNull(period50); org.junit.Assert.assertNotNull(duration62); org.junit.Assert.assertNotNull(duration68); org.junit.Assert.assertNotNull(period70); org.junit.Assert.assertNotNull(period72); org.junit.Assert.assertNotNull(period74); org.junit.Assert.assertNotNull(periodType75); org.junit.Assert.assertNotNull(period84); } @Test public void test0994() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0994"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.Period period5 = period3.withMinutes(0); org.joda.time.Period period7 = period5.minusSeconds((int) (short) 100); org.joda.time.Period period9 = period7.minusMinutes(100); org.joda.time.Period period11 = org.joda.time.Period.months((int) (short) -1); org.joda.time.Period period13 = period11.plusMillis((int) 'a'); org.joda.time.ReadableInstant readableInstant14 = null; org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.PeriodType periodType16 = null; org.joda.time.Period period17 = new org.joda.time.Period(readableInstant14, readableInstant15, periodType16); org.joda.time.Period period19 = period17.plusMonths((int) '4'); org.joda.time.ReadableInstant readableInstant20 = null; org.joda.time.ReadableInstant readableInstant21 = null; org.joda.time.PeriodType periodType22 = null; org.joda.time.Period period23 = new org.joda.time.Period(readableInstant20, readableInstant21, periodType22); org.joda.time.DurationFieldType durationFieldType25 = period23.getFieldType((int) (byte) 0); int int26 = period19.indexOf(durationFieldType25); org.joda.time.Period period28 = period11.withFieldAdded(durationFieldType25, 1); org.joda.time.Period period29 = period28.negated(); org.joda.time.Period period30 = period9.plus((org.joda.time.ReadablePeriod) period28); org.joda.time.Period period32 = period28.withMinutes(11); org.joda.time.Period period34 = period28.withYears((-100)); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertNotNull(period7); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period19); org.junit.Assert.assertNotNull(durationFieldType25); org.junit.Assert.assertTrue("'" + int26 + "' != '" + 0 + "'", int26 == 0); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(period29); org.junit.Assert.assertNotNull(period30); org.junit.Assert.assertNotNull(period32); org.junit.Assert.assertNotNull(period34); } @Test public void test0995() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0995"); org.joda.time.Period period1 = org.joda.time.Period.days(52); org.joda.time.ReadableInstant readableInstant12 = null; org.joda.time.ReadableInstant readableInstant13 = null; org.joda.time.Period period14 = new org.joda.time.Period(readableInstant12, readableInstant13); org.joda.time.ReadableInstant readableInstant15 = null; org.joda.time.Duration duration16 = period14.toDurationFrom(readableInstant15); org.joda.time.Period period18 = period14.plusMonths(0); org.joda.time.Period period20 = period18.plusMonths((int) '#'); org.joda.time.Period period22 = period18.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType23 = period18.getPeriodType(); org.joda.time.Chronology chronology24 = null; org.joda.time.Period period25 = new org.joda.time.Period((long) (short) -1, periodType23, chronology24); org.joda.time.Period period26 = new org.joda.time.Period(0, 1, (int) (short) 100, (-1), (int) (short) 10, 100, (int) ' ', (int) (short) 1, periodType23); org.joda.time.Period period27 = new org.joda.time.Period((long) (byte) 10, periodType23); org.joda.time.Period period28 = period1.normalizedStandard(periodType23); org.joda.time.MutablePeriod mutablePeriod29 = period28.toMutablePeriod(); org.junit.Assert.assertNotNull(period1); org.junit.Assert.assertNotNull(duration16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(period20); org.junit.Assert.assertNotNull(period22); org.junit.Assert.assertNotNull(periodType23); org.junit.Assert.assertNotNull(period28); org.junit.Assert.assertNotNull(mutablePeriod29); } @Test public void test0996() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0996"); org.joda.time.PeriodType periodType2 = null; org.joda.time.Chronology chronology3 = null; org.joda.time.Period period4 = new org.joda.time.Period((long) '4', (-1L), periodType2, chronology3); org.joda.time.Period period5 = period4.toPeriod(); int int6 = period4.getMonths(); org.joda.time.Period period8 = period4.withMillis(97); org.joda.time.Period period10 = period8.plusMillis((int) (short) 1); org.joda.time.Period period12 = period8.withWeeks(17); org.junit.Assert.assertNotNull(period5); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertNotNull(period8); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); } @Test public void test0997() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0997"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period(0L, chronology1); org.joda.time.Period period4 = period2.withMonths((int) (short) 100); org.joda.time.Period period6 = period4.withYears((int) (short) 100); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.Period period9 = new org.joda.time.Period(readableInstant7, readableInstant8); org.joda.time.Period period10 = period9.normalizedStandard(); org.joda.time.Period period12 = period9.withWeeks(1); org.joda.time.Period period14 = period12.plusMonths(100); org.joda.time.Period period15 = period12.normalizedStandard(); org.joda.time.Period period16 = period6.withFields((org.joda.time.ReadablePeriod) period15); org.joda.time.Period period18 = period15.plusHours(98); org.joda.time.Minutes minutes19 = period15.toStandardMinutes(); org.junit.Assert.assertNotNull(period4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(minutes19); } @Test public void test0998() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0998"); org.joda.time.Chronology chronology1 = null; org.joda.time.Period period2 = new org.joda.time.Period(0L, chronology1); org.joda.time.Period period4 = period2.withMonths((int) (short) 100); org.joda.time.Period period6 = period4.withYears((int) (short) 100); org.joda.time.ReadableInstant readableInstant7 = null; org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.Period period9 = new org.joda.time.Period(readableInstant7, readableInstant8); org.joda.time.Period period10 = period9.normalizedStandard(); org.joda.time.Period period12 = period9.withWeeks(1); org.joda.time.Period period14 = period12.plusMonths(100); org.joda.time.Period period15 = period12.normalizedStandard(); org.joda.time.Period period16 = period6.withFields((org.joda.time.ReadablePeriod) period15); org.joda.time.Period period18 = period15.plusHours(98); int int19 = period18.getHours(); org.junit.Assert.assertNotNull(period4); org.junit.Assert.assertNotNull(period6); org.junit.Assert.assertNotNull(period10); org.junit.Assert.assertNotNull(period12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period15); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertTrue("'" + int19 + "' != '" + 98 + "'", int19 == 98); } @Test public void test0999() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0999"); org.joda.time.PeriodType periodType1 = null; org.joda.time.Chronology chronology2 = null; org.joda.time.Period period3 = new org.joda.time.Period((long) 'a', periodType1, chronology2); org.joda.time.PeriodType periodType5 = null; org.joda.time.Chronology chronology6 = null; org.joda.time.Period period7 = new org.joda.time.Period((long) 'a', periodType5, chronology6); org.joda.time.Hours hours8 = period7.toStandardHours(); org.joda.time.Period period9 = period3.withFields((org.joda.time.ReadablePeriod) period7); org.joda.time.Period period10 = new org.joda.time.Period((java.lang.Object) period9); org.joda.time.Period period11 = period9.toPeriod(); org.joda.time.Period period13 = period11.plusMonths(0); org.joda.time.Period period15 = period11.plusMillis((int) (short) 100); org.junit.Assert.assertNotNull(hours8); org.junit.Assert.assertNotNull(period9); org.junit.Assert.assertNotNull(period11); org.junit.Assert.assertNotNull(period13); org.junit.Assert.assertNotNull(period15); } @Test public void test1000() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test1000"); org.joda.time.ReadableInstant readableInstant0 = null; org.joda.time.ReadableInstant readableInstant1 = null; org.joda.time.ReadableInstant readableInstant2 = null; org.joda.time.ReadableInstant readableInstant3 = null; org.joda.time.Period period4 = new org.joda.time.Period(readableInstant2, readableInstant3); org.joda.time.ReadableInstant readableInstant5 = null; org.joda.time.Duration duration6 = period4.toDurationFrom(readableInstant5); org.joda.time.ReadableInstant readableInstant8 = null; org.joda.time.ReadableInstant readableInstant9 = null; org.joda.time.Period period10 = new org.joda.time.Period(readableInstant8, readableInstant9); org.joda.time.ReadableInstant readableInstant11 = null; org.joda.time.Duration duration12 = period10.toDurationFrom(readableInstant11); org.joda.time.Period period14 = period10.plusMonths(0); org.joda.time.Period period16 = period14.plusMonths((int) '#'); org.joda.time.Period period18 = period14.plusMinutes((int) (short) 100); org.joda.time.PeriodType periodType19 = period14.getPeriodType(); org.joda.time.Chronology chronology20 = null; org.joda.time.Period period21 = new org.joda.time.Period((long) (short) -1, periodType19, chronology20); org.joda.time.Period period22 = new org.joda.time.Period(readableInstant1, (org.joda.time.ReadableDuration) duration6, periodType19); org.joda.time.Period period23 = new org.joda.time.Period(readableInstant0, (org.joda.time.ReadableDuration) duration6); org.joda.time.Period period25 = period23.withSeconds((int) (short) 10); int int26 = period25.getMillis(); org.junit.Assert.assertNotNull(duration6); org.junit.Assert.assertNotNull(duration12); org.junit.Assert.assertNotNull(period14); org.junit.Assert.assertNotNull(period16); org.junit.Assert.assertNotNull(period18); org.junit.Assert.assertNotNull(periodType19); org.junit.Assert.assertNotNull(period25); org.junit.Assert.assertTrue("'" + int26 + "' != '" + 0 + "'", int26 == 0); } }
8c70c881ffbd25d5a18660052114b06b0b9650c0
ea33e8c996ce520fd199808f80b15bc9475b8a4a
/src/main/java/com/yyy/shop/controller/UserController.java
64fd9ab1c4dda085fef43596e78cc0647814aac1
[]
no_license
phanvietdung2101/online-shop-web
6e561fc52879a584e81be29dac9f31efb3c290b8
0c15aacbacfdc50c25bbe4312e2298ff8f6ab583
refs/heads/master
2022-08-02T12:50:52.150744
2020-05-20T16:40:26
2020-05-20T16:40:26
265,527,505
0
0
null
null
null
null
UTF-8
Java
false
false
1,431
java
package com.yyy.shop.controller; import com.yyy.shop.model.Role; import com.yyy.shop.model.User; import com.yyy.shop.service.RoleService; import com.yyy.shop.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestAttribute; import org.springframework.web.servlet.ModelAndView; import java.util.List; @Controller public class UserController { @Autowired RoleService roleService; @Autowired UserService userService; @ModelAttribute User user(){ return new User(); } @GetMapping("/sign-up-user") public ModelAndView showFormSignUpUser(){ ModelAndView modelAndView = new ModelAndView("user/sign-up-user"); List<Role> roleList = roleService.findAll(); modelAndView.addObject("roleList",roleList); return modelAndView; } @PostMapping("/sign-up-user") public ModelAndView createUser(@ModelAttribute User user){ userService.saveUser(user); ModelAndView modelAndView = new ModelAndView("user/sign-up-success"); modelAndView.addObject("username",user.getUsername()); return modelAndView; } }
ae43885013bad039c834b590d16caa580bb8f455
21757f1230e575e8118e23177b34f6b25b4b24b4
/code/broker-web/src/main/java/com/htw/master/prog/broker/rest/ApplicationContainer.java
ce2044cad111b3406093dec9881593042e1905f6
[]
no_license
SergejMeister/htw-programming
42993184f95411a9c811c15e6e922c6d0ff2df7b
e1406532c25dcc4bcad5d12a046023843ab26c2d
refs/heads/master
2021-01-09T07:40:39.836107
2016-01-22T14:00:30
2016-01-22T14:00:30
46,640,101
0
0
null
2015-11-22T00:31:52
2015-11-22T00:31:52
null
UTF-8
Java
false
false
4,234
java
package com.htw.master.prog.broker.rest; import com.sun.net.httpserver.HttpServer; import de.sb.java.TypeMetadata; import de.sb.java.net.HttpModuleHandler; import org.glassfish.jersey.jdkhttp.JdkHttpServerFactory; import org.glassfish.jersey.message.filtering.EntityFilteringFeature; import org.glassfish.jersey.moxy.json.MoxyJsonFeature; import org.glassfish.jersey.moxy.xml.MoxyXmlFeature; import org.glassfish.jersey.server.ResourceConfig; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.InetAddress; import java.net.URI; import java.net.URISyntaxException; /** * This class is used within a Java-SE VM to deploy REST services. * Note that for LAZY fetching of entities with EclipseLink (dynamic weaving) the following * has to be added to the JVM start parameters: -javaagent:[path]eclipselink.jar */ @TypeMetadata(copyright = "2013-2015 Sascha Baumeister, all rights reserved", version = "1.0.0", authors = "Sascha Baumeister") public class ApplicationContainer { private final Logger LOG = LoggerFactory.getLogger(ApplicationContainer.class); private final int servicePort; public ApplicationContainer(int servicePort) { this.servicePort = servicePort; } /** * Application entry point. The given argument is expected to be a service port. * * @param args the runtime arguments * * @throws NumberFormatException if the given port is not a number * @throws IOException if there is an I/O related problem */ static public void main(final String[] args) throws NumberFormatException, IOException { final int servicePort = args.length == 0 ? 80 : Integer.parseInt(args[0]); new ApplicationContainer(servicePort).run(); } public void run() throws NumberFormatException, IOException { final URI serviceURI; try { serviceURI = new URI("http", null, InetAddress.getLocalHost().getCanonicalHostName(), servicePort, "/services", null, null); } catch (final URISyntaxException exception) { throw new AssertionError(); } // Note that server-startup is only required in Java-SE, as any Java-EE engine must ship a built-in HTTP server // implementation and XML-based configuration. The Factory-Class used is Jersey-specific, while the HTTP server // type used is Oracle/OpenJDK-specific. Other HTTP server types more suitable for production environments are // available, such as Apache Tomcat, Grizzly, Simple, etc. final ResourceConfig configuration = new ResourceConfig() .packages(ApplicationContainer.class.getPackage().toString()) .register(MoxyJsonFeature.class) // edit "network.http.accept.default" in Firefox's "about:config" .register(MoxyXmlFeature.class) // to make "application/json" preferable to "application/xml" .register(EntityFilteringFeature.class); try { final HttpServer container = JdkHttpServerFactory.createHttpServer(serviceURI, configuration); final HttpModuleHandler resourceHandler = new HttpModuleHandler("/resources"); container.createContext(resourceHandler.getContextPath(), resourceHandler); try { System.out.format("HTTP container running on service address %s:%s, enter \"quit\" to stop.\n", serviceURI.getHost(), serviceURI.getPort()); System.out.format("Service path \"%s\" is configured for REST service access.\n", serviceURI.getPath()); System.out.format("Service path \"%s\" is configured for JAR resource access.\n", resourceHandler.getContextPath()); final BufferedReader charSource = new BufferedReader(new InputStreamReader(System.in)); while (!"quit".equals(charSource.readLine())) ; } finally { container.stop(0); } } catch (Exception e) { LOG.error(e.getLocalizedMessage(), e); } } }
1710cc2377f91b4d3e1fb2d95009e4e19ced57ec
4b4aea463d7ff0677889145cdf9d1a002d069032
/Main.java
16bffe07ed41780245b93bdfbe3a79bafeb531ef
[]
no_license
trp216/LabZoo2
3807672fb9fdbdd795530dae0053e2ab585e531b
1cea25e243a16a1a208a2834344100c0137c69ce
refs/heads/master
2020-04-25T23:12:17.760728
2019-02-28T15:42:14
2019-02-28T15:42:14
171,954,313
0
0
null
null
null
null
UTF-8
Java
false
false
3,315
java
package userInterface; import model.*; import java.util.Scanner; public class Main{ private Zoo zooCali; private String message; public Main(){ Zoo zooCali = new Zoo("Zoo of Cali", "Bosque municipal, a orillas del rio Cali, barrio Santa Teresita", "1969"); } public static void main (String[] args){ Main objMain = new Main(); System.out.println(" WELCOME TO CALI'S ZOO\n"); System.out.println(" (This is the monitor program of Australia's Section.)\n\n"); System.out.println(objMain.getZooCali().reportZoo()); String msg = objMain.addKangaroo(); //preguntar que hacer con esto System.out.println(objMain.getZooCali().reportZoo()); } public String menu(int entry) { System.out.println("What do you want to do?\n"); System.out.println("1- See the report of the Zoo\n"); System.out.println("2- Add a kangaroo\n"); System.out.println("3- Erase a kangaroo\n"); System.out.println("4- Find animals which name starts and ends with vocals"); System.out.println("5- Change kangaroos habitat"); Scanner x = new Scanner(System.in); entry = x.nextInt(); switch(entry){ case 1: System.out.println(getZooCali().reportZoo()); //preguntar entonces que hago con objMain break; case 2: String msg = addKangaroo(); //preguntar que hacer para que se muestre puesto que esta void break; case 3: eraseKangaroo(); break; case 4: zooCali.vocalsZ(); break; case 5: } } public String getMessage() { //Call this when you want to see if the kangaroo was added return message; } public Zoo getZooCali() { return zooCali; } public void setZooCali(Zoo zooCali) { this.zooCali = zooCali; } public void addKangaroo() { Scanner kangarooX = new Scanner(System.in); System.out.println("Insert the name of the new kangaroo"); String nameNK = kangarooX.next(); System.out.println("Insert the height of the new kangaroo"); double heightNK = kangarooX.nextDouble(); System.out.println("Insert the weight of the new kangaroo"); double weightNK = kangarooX.nextDouble(); System.out.println("Insert the age of the new kangaroo"); double ageNK = kangarooX.nextDouble(); System.out.println("Insert the sex of the new kangaroo (F o M)"); char sexNK = kangarooX.next().charAt(0); System.out.println("Insert the bloodtype of the new kangaroo"); String bloodtypeNK = kangarooX.next(); message = zooCali.addKangaroo(nameNK, weightNK, heightNK, sexNK, bloodtypeNK, ageNK); } public void eraseKangaroo() { Scanner erase = new Scanner(System.in); System.out.println("Insert the name of the kangaroo that you want to erase:"); String nameKE = erase.next(); zooCali.eraseKangaroo(nameKE); } public void moveKangarooMain() { Scanner change = new Scanner(System.in); System.out.println("Insert the name of the kangaroo that you want to move:"); String nameKM = change.next(); System.out.println("Insert the name of the habitat wheere you want to move the kangaroo(habitatc1,habitatc2,habitatc3):"); String nameHM = change.next(); zooCali.moveKangarooZoo(nameKM, nameHM); } }
789453e8983e6f453a05e59b7df9462fba9973ea
ea5ffd1e5a72bb3c8ed88c6f223a6e7c81776cf7
/Algorithm/src/test/java/TestSolution.java
73096f7063a01eecfc2fc4cd0cd9b9c019172d1b
[]
no_license
yanghaogn/CommonCode
7bd95ec107edf16f37e97e0369c4fffe4121c3cd
46d5c1f95b4b1b9a3a406259d80cbc01217b9c01
refs/heads/master
2021-01-21T21:49:05.342202
2017-12-29T01:21:20
2017-12-29T01:21:20
21,678,586
0
0
null
null
null
null
UTF-8
Java
false
false
427
java
import junit.framework.Assert; import org.junit.Test; /** * Created by yang on 2015/4/15. */ public class TestSolution { @Test public void testGetShortestSubString() { Solution solution = new Solution(); System.out.println(Runtime.getRuntime().totalMemory()); } private ThreadLocal<Integer> tl = new ThreadLocal<Integer>() { @Override protected Integer initialValue() { return 0; } }; }
69e4770b465a98122810e8d7d16844bedbfe634d
9042adcdf57f229ebcf4d5d643aa31c1c919133f
/src/main/java/org/broad/igv/synteny/BlastParser.java
5aa38b7c3c9ff01429a03c6c662b64ff0616368a
[ "MIT" ]
permissive
Weeks-UNC/igv
db3db79f81157bd9856da8b7e68fdcca9159e4c3
79a79e140fd2d629a44e2bb22ce0eb2ab9206615
refs/heads/master
2020-03-11T11:07:46.761994
2018-04-19T20:20:01
2018-04-19T20:20:01
129,961,372
0
0
MIT
2018-04-17T20:28:48
2018-04-17T20:28:48
null
UTF-8
Java
false
false
5,939
java
/* * The MIT License (MIT) * * Copyright (c) 2007-2015 Broad Institute * * 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 org.broad.igv.synteny; //~--- JDK imports ------------------------------------------------------------ import org.broad.igv.exceptions.ParserException; import org.broad.igv.feature.Strand; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.List; /** * @author jrobinso */ public class BlastParser { /** * Method description * <p/> * queryID,subjectID,percentIden,alignmentLength, * mismatches,gapOpenings,queryStart,queryStop,subjectStart,subjectStop,eval,bitScore * <p/> * 1 9 87.73 864 106 0 100842 101705 222166 221303 0 872 * * @param file * @return */ public List<BlastMapping> parse(String file) { List<BlastMapping> mappings = new ArrayList(); BufferedReader reader = null; boolean tabblastn = file.contains(".tabblastn"); int queryChrIdx = 0; int queryStartIdx = tabblastn ? 6 : 1; int queryEndIdx = tabblastn ? 7 : 2; int queryStrandIdx = tabblastn ? -1 : 3; int subjectChrIdx = tabblastn ? 1 : 4; int subjectStartIdx = tabblastn ? 8 : 5; int subjectEndIdx = tabblastn ? 9 : 6; int subjectStrandIdx = tabblastn ? -1 : 7; int nTokens = tabblastn ? 10 : 8; long lineCount = 0; String nextLine = null; boolean dataParsed = false; try { reader = new BufferedReader(new FileReader(file)); while ((nextLine = reader.readLine()) != null) { lineCount++; String[] tokens = nextLine.split("\t"); if (tokens.length >= nTokens) { dataParsed = true; String queryCht = tokens[queryChrIdx]; int queryStart; int queryEnd; try { queryStart = Integer.parseInt(tokens[queryStartIdx]); queryEnd = Integer.parseInt(tokens[queryEndIdx]); } catch (NumberFormatException ne) { throw new RuntimeException("Non-numeric value found in either start or end column"); } Strand queryStrand = Strand.NONE; if (!tabblastn) { int str = Integer.parseInt(tokens[queryStrandIdx]); queryStrand = str == 1 ? Strand.POSITIVE : Strand.NEGATIVE; } String subjectChr = tokens[subjectChrIdx]; int subjectStart; int subjectEnd; try { subjectStart = Integer.parseInt(tokens[subjectStartIdx]); subjectEnd = Integer.parseInt(tokens[subjectEndIdx]); } catch (NumberFormatException ne) { throw new RuntimeException("Non-numeric value found in " + " either subject start or end column"); } Strand subjectStrand = Strand.NONE; if (!tabblastn) { try { int str = Integer.parseInt(tokens[subjectStrandIdx]); subjectStrand = str == 1 ? Strand.POSITIVE : Strand.NEGATIVE; } catch (NumberFormatException ne) { throw new RuntimeException("Non-numeric value found in " + " either subject strand column"); } } float percentIden = tabblastn ? Float.parseFloat(tokens[2]) : 100.0f; BlastMapping.Block queryBlock = new BlastMapping.Block(queryCht, queryStart, queryEnd, queryStrand); BlastMapping.Block subjectBlock = new BlastMapping.Block(subjectChr, subjectStart, subjectEnd, subjectStrand); mappings.add(new BlastMapping(queryBlock, subjectBlock, percentIden)); } } if (!dataParsed) { throw new RuntimeException("Data not loaded. Number of columns is less than " + nTokens + "."); } } catch (Exception ex) { if (lineCount != 0) { throw new ParserException(ex.getMessage(), lineCount, nextLine); } else { throw new RuntimeException(ex); } } finally { if (reader != null) { try { reader.close(); } catch (IOException iOException) { } } } return mappings; } }
2a7a62db6204e0d1275f6f8f443d793b4119d34a
9190adb13dcbcaba303a699e9d6e39f5fd174b01
/app/src/main/java/ir/kcoder/cooldevicestats/Theme/ThemeProvider.java
56047392536eba0054cab024f6c295136708e584
[ "MIT" ]
permissive
mnvoh/CoolDeviceStats
b430791df86e9f4d80aa35a522cae33de974f797
f22ff75d15a264b0e342242c94540e2007c4a662
refs/heads/master
2020-07-05T11:16:17.469178
2017-06-02T21:18:48
2017-06-02T21:18:48
74,120,839
2
0
null
null
null
null
UTF-8
Java
false
false
31,546
java
package ir.kcoder.cooldevicestats.Theme; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.Path; import android.graphics.PorterDuff; import android.graphics.PorterDuffXfermode; import android.util.DisplayMetrics; import android.util.Log; import java.util.Calendar; import ir.kcoder.cooldevicestats.CDSPrefsManager; import ir.kcoder.cooldevicestats.R; /** * Created by mnvoh on 3/24/15. * */ public class ThemeProvider { private ThemeConfigParser config; private SpriteLoader sprites; private final int DISABLED_ALPHA = 90; private boolean supportedDevice = true; private Context context; private String lastKnownTheme = ""; public ThemeProvider(Context c) { context = c.getApplicationContext(); init(); } public int getWidgetWidth() { return (int)context.getResources().getDimension(R.dimen.widget_width); } public int getWidgetHeight() { return (int)context.getResources().getDimension(R.dimen.widget_height); } /** * Checks the final bitmap for each cell before returning it. In case we are on an * unsupported device, a completely transparent bitmap will be returned. * @param input The input bitmap which is about to be placed on the app widget. * @param printNotice If the device is not supported, print "Unsupported Device" on the * transparent bitmap. * @return The resulting bitmap. */ public Bitmap resizeBitmap(Bitmap input, boolean printNotice) { if(supportedDevice) { return input; } Bitmap retval = Bitmap.createBitmap(input.getWidth(), input.getHeight(), Bitmap.Config.ARGB_8888); retval.eraseColor(0x33cccccc); if(printNotice) { Canvas canvas = new Canvas(retval); Paint p = new Paint(); p.setAntiAlias(true); p.setTextSize(16.0f); p.setColor(0xff111111); p.setShadowLayer(3.0f, 0.0f, 0.0f, 0xffffffff); String text = context.getResources().getString(R.string.unsupported_device); float textWidth = p.measureText(text); canvas.drawText(text, input.getWidth() / 2 - textWidth / 2, input.getHeight() / 2 - p.getTextSize() / 2, p); } return retval; } public Bitmap getClock() { checkThemeChanged(); int hour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY); int minute = Calendar.getInstance().get(Calendar.MINUTE); Bitmap hour10 = sprites.getDigit(hour / 10); Bitmap hour1 = sprites.getDigit(hour % 10); Bitmap minute10 = sprites.getDigit(minute / 10); Bitmap minute1 = sprites.getDigit(minute % 10); Bitmap separator = sprites.getSeparator(); int width = hour10.getWidth() + hour1.getWidth() + separator.getWidth() + minute10.getWidth() + minute1.getWidth(); Bitmap clock = sprites.getClockBg(); Canvas canvas = new Canvas(clock); int startX = clock.getWidth() / 2 - width / 2; Paint p = new Paint(); canvas.drawBitmap(hour10, startX, 0, p); canvas.drawBitmap(hour1, startX + hour10.getWidth(), 0, p); canvas.drawBitmap(separator, startX + hour10.getWidth() + hour1.getWidth(), 0, p); canvas.drawBitmap(minute10, startX + hour10.getWidth() + hour1.getWidth() + separator.getWidth(), 0, p); canvas.drawBitmap(minute1, startX + hour10.getWidth() + hour1.getWidth() + separator.getWidth() + minute10.getWidth(), 0, p); hour10.recycle(); hour1.recycle(); separator.recycle(); minute10.recycle(); minute1.recycle(); return resizeBitmap(clock, true); } /** * Returns the corresponding bitmap to the temperature provided * @param temperature the temperature in tenth of celsius * @return The bitmap */ public Bitmap getThermometer(int temperature) { checkThemeChanged(); /** * In order to get the fill, we have multiple condition: * 1. temperature > MAX_TEMP in which the fill is red and always fills the thermometer * completely. * 2. temperature > NORMAL_TEMP_UPPER and temperature < MAX_TEMP in which the fill is red and fills a * portion of the thermometer. * 3. temperature > NORMAL_TEMP_LOWER and temperature < NORMAL_TEMP_UPPER in which the fill is blue and fills a * portion of the thermometer. * 4. temerature > 0 and temperature < NORMAL_TEMP_LOWER in which the fill is red and fills a portion * of the thermometer between the zero level and upwards. * 5. temperature > MIN_TEMP and temperature < 0 in which the fill is red and fills a * portion of the thermometer between the base and the zero level. * 6. temperature < MIN_TEMP in which the fill is red and just above the base. */ final int MAX_TEMP = 75; final int NORMAL_TEMP_UPPER = 45; final int NORMAL_TEMP_LOWER = 5; final int MIN_TEMP = -15; temperature = temperature / 10; int eraseHeight = 0; Bitmap bmp = null; // CONDITION #1 if(temperature >= MAX_TEMP) { bmp = sprites.getThermometerCritical(); eraseHeight = 0; } // CONDITION #2 else if(temperature >= NORMAL_TEMP_UPPER && temperature < MAX_TEMP) { bmp = sprites.getThermometerCritical(); int availableSpace = (int)Math.round(bmp.getHeight() * config.getDoubleValue(ThemeConfigParser.KEY_THERMOMETER_ZERO_POSITION)); eraseHeight = Math.round((MAX_TEMP - temperature) / (float)MAX_TEMP * availableSpace); } // CONDITION #3 else if(temperature < NORMAL_TEMP_UPPER && temperature >= NORMAL_TEMP_LOWER) { bmp = sprites.getThermometerNormal(); int availableSpace = (int)Math.round(bmp.getHeight() * config.getDoubleValue(ThemeConfigParser.KEY_THERMOMETER_ZERO_POSITION)); eraseHeight = Math.round((MAX_TEMP - temperature) / (float)MAX_TEMP * availableSpace); } // CONDITION #4 else if(temperature < NORMAL_TEMP_LOWER && temperature >= 0) { bmp = sprites.getThermometerCritical(); int availableSpace = (int)Math.round(bmp.getHeight() * config.getDoubleValue(ThemeConfigParser.KEY_THERMOMETER_ZERO_POSITION)); eraseHeight = Math.round((MAX_TEMP - temperature) / (float)MAX_TEMP * availableSpace); } // CONDITION #5 else if(temperature >= MIN_TEMP && temperature < 0) { bmp = sprites.getThermometerCritical(); int scale = MAX_TEMP - MIN_TEMP; int emptySpace = Math.abs(temperature); eraseHeight = (int)Math.round(bmp.getHeight() * ((emptySpace / (float)scale) + config.getDoubleValue(ThemeConfigParser.KEY_THERMOMETER_ZERO_POSITION))); } // CONDITION #6 else if(temperature < MIN_TEMP) { bmp = sprites.getThermometerCritical(); eraseHeight = (int)Math.round(bmp.getHeight() * config.getDoubleValue(ThemeConfigParser.KEY_THERMOMETER_BASE_POSITION)); } Canvas canvas = new Canvas(bmp); Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); p.setColor(0x00000000); p.setStyle(Paint.Style.FILL); p.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); canvas.drawRect(0, 0, bmp.getWidth(), eraseHeight, p); p.reset(); canvas.drawBitmap(sprites.getThermometerBorder(), 0, 0, p); return resizeBitmap(bmp, false); } /** * returns the wifi sprite * @param signalStrength The signal strength from -1 to 4, -1 being disabled. * @return Returns the bitmap corresponding to wifi status */ public Bitmap getWifi(int signalStrength) { checkThemeChanged(); switch(signalStrength) { case -1: Bitmap wifi = sprites.getWifi0(); Bitmap disBitmap = Bitmap.createBitmap(wifi.getWidth(), wifi.getHeight(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(disBitmap); Paint p = new Paint(); p.setAlpha(DISABLED_ALPHA); canvas.drawBitmap(wifi, 0, 0, p); wifi.recycle(); return resizeBitmap(disBitmap, false); case 0: return resizeBitmap(sprites.getWifi0(), false); case 1: return resizeBitmap(sprites.getWifi1(), false); case 2: return resizeBitmap(sprites.getWifi2(), false); case 3: return resizeBitmap(sprites.getWifi3(), false); case 4: return resizeBitmap(sprites.getWifi4(), false); default: return resizeBitmap(sprites.getWifi0(), false); } } /** * returns the corresponding bitmap to the bluetooth status * @param status True: on, false: off * @return Bitmap */ public Bitmap getBluetooth(boolean status) { checkThemeChanged(); Bitmap bmp; if(status) { bmp = sprites.getBluetoothOn(); } else { bmp = sprites.getBluetoothOff(); } return resizeBitmap(bmp, false); } public Bitmap getBattery(int percent) { checkThemeChanged(); Bitmap bmp; if(percent > 80) { bmp = sprites.getBattery5(); } else if(percent > 60) { bmp = sprites.getBattery4(); } else if(percent > 40) { bmp = sprites.getBattery3(); } else if(percent > 20) { bmp = sprites.getBattery2(); } else { bmp = sprites.getBattery1(); } Canvas canvas = new Canvas(bmp); Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); canvas.drawBitmap(sprites.getBatteryBorder(), 0, 0, p); return resizeBitmap(bmp, false); } public Bitmap getSignal(int strength) { checkThemeChanged(); Bitmap bmp; if(strength <= 1) { bmp = sprites.getSignal1(); } else if(strength > 1 && strength <= 2) { bmp = sprites.getSignal2(); } else if(strength > 2 && strength <= 3) { bmp = sprites.getSignal3(); } else if(strength > 3 && strength <= 4) { bmp = sprites.getSignal4(); } else { bmp = sprites.getSignal5(); } return resizeBitmap(bmp, false); } public Bitmap getInternalStorage(int percentFull) { checkThemeChanged(); Bitmap bmp = sprites.getInternalStorageBg(); Bitmap fg = sprites.getProgressFg(); int progType = config.getIntValue(ThemeConfigParser.KEY_PROGRESS_TYPE); if(progType == ThemeConfigParser.PROGTYPE_PIE) { Canvas c = new Canvas(fg); Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); p.setColor(0xffffffff); p.setStrokeWidth(3); p.setStyle(Paint.Style.FILL); p.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); if(percentFull <= 0) { c.drawRect(0, 0, fg.getWidth(), fg.getHeight(), p); } else if(percentFull < 100) { Path path = createPiePath(fg.getWidth(), fg.getHeight(), percentFull); c.drawPath(path, p); } Canvas canvas = new Canvas(bmp); p = new Paint(Paint.ANTI_ALIAS_FLAG); canvas.drawBitmap(fg, 0, 0, p); fg.recycle(); return resizeBitmap(bmp, false); } else if(progType == ThemeConfigParser.PROGTYPE_GAUGE) { int gaugeRangeDegree = config.getIntValue(ThemeConfigParser.KEY_GAUGE_RANGE_DEGREE); float degreesToRotate = gaugeRangeDegree * (percentFull / 100.0f); Matrix matrix = new Matrix(); matrix.postRotate(degreesToRotate, fg.getWidth() / 2, fg.getWidth() / 2); Canvas canvas = new Canvas(bmp); Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); canvas.drawBitmap(fg, matrix, p); fg.recycle(); return resizeBitmap(bmp, false); } return Bitmap.createBitmap(2, 2, Bitmap.Config.ARGB_8888); } /** * * @param percentFull The full percentage or -1 if no extSD is present. * @return The corresponding bitmap */ public Bitmap getExternalStorage(int percentFull) { checkThemeChanged(); Bitmap bmp = sprites.getExternalStorageBg(); Bitmap fg = sprites.getProgressFg(); if(percentFull == -1) { Bitmap retval = Bitmap.createBitmap(bmp.getWidth(), bmp.getHeight(), Bitmap.Config.ARGB_8888); Canvas disCanvas = new Canvas(retval); Paint p = new Paint(); p.setAlpha(DISABLED_ALPHA); disCanvas.drawBitmap(bmp, 0, 0, p); bmp.recycle(); fg.recycle(); return resizeBitmap(retval, false); } int progType = config.getIntValue(ThemeConfigParser.KEY_PROGRESS_TYPE); if(progType == ThemeConfigParser.PROGTYPE_PIE) { Canvas c = new Canvas(fg); Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); p.setColor(0xffffffff); p.setStrokeWidth(3); p.setStyle(Paint.Style.FILL); p.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); if(percentFull <= 0) { c.drawRect(0, 0, fg.getWidth(), fg.getHeight(), p); } else if(percentFull < 100) { Path path = createPiePath(fg.getWidth(), fg.getHeight(), percentFull); c.drawPath(path, p); } Canvas canvas = new Canvas(bmp); p = new Paint(Paint.ANTI_ALIAS_FLAG); canvas.drawBitmap(fg, 0, 0, p); fg.recycle(); return resizeBitmap(bmp, false); } else if(progType == ThemeConfigParser.PROGTYPE_GAUGE) { int gaugeRangeDegree = config.getIntValue(ThemeConfigParser.KEY_GAUGE_RANGE_DEGREE); float degreesToRotate = gaugeRangeDegree * (percentFull / 100.0f); Matrix matrix = new Matrix(); matrix.postRotate(degreesToRotate, fg.getWidth() / 2, fg.getWidth() / 2); Canvas canvas = new Canvas(bmp); Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); canvas.drawBitmap(fg, matrix, p); fg.recycle(); return resizeBitmap(bmp, false); } return Bitmap.createBitmap(2, 2, Bitmap.Config.ARGB_8888); } public Bitmap getMemory(int percentFull) { checkThemeChanged(); Bitmap bmp = sprites.getMemoryBg(); Bitmap fg = sprites.getProgressFg(); int progType = config.getIntValue(ThemeConfigParser.KEY_PROGRESS_TYPE); if(progType == ThemeConfigParser.PROGTYPE_PIE) { Canvas c = new Canvas(fg); Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); p.setColor(0xffffffff); p.setStrokeWidth(3); p.setStyle(Paint.Style.FILL); p.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); if(percentFull <= 0) { c.drawRect(0, 0, fg.getWidth(), fg.getHeight(), p); } else if(percentFull < 100) { Path path = createPiePath(fg.getWidth(), fg.getHeight(), percentFull); c.drawPath(path, p); } Canvas canvas = new Canvas(bmp); p = new Paint(Paint.ANTI_ALIAS_FLAG); canvas.drawBitmap(fg, 0, 0, p); fg.recycle(); return resizeBitmap(bmp, false); } else if(progType == ThemeConfigParser.PROGTYPE_GAUGE) { int gaugeRangeDegree = config.getIntValue(ThemeConfigParser.KEY_GAUGE_RANGE_DEGREE); float degreesToRotate = gaugeRangeDegree * (percentFull / 100.0f); Matrix matrix = new Matrix(); matrix.postRotate(degreesToRotate, fg.getWidth() / 2, fg.getWidth() / 2); Canvas canvas = new Canvas(bmp); Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); canvas.drawBitmap(fg, matrix, p); fg.recycle(); return resizeBitmap(bmp, false); } return Bitmap.createBitmap(2, 2, Bitmap.Config.ARGB_8888); } public Bitmap getCpu(int percentFull) { checkThemeChanged(); Bitmap bmp = sprites.getCpuBg(); Bitmap fg = sprites.getProgressFg(); int progType = config.getIntValue(ThemeConfigParser.KEY_PROGRESS_TYPE); if(progType == ThemeConfigParser.PROGTYPE_PIE) { Canvas c = new Canvas(fg); Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); p.setColor(0xffffffff); p.setStrokeWidth(3); p.setStyle(Paint.Style.FILL); p.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); if(percentFull <= 0) { c.drawRect(0, 0, fg.getWidth(), fg.getHeight(), p); } else if(percentFull < 100) { Path path = createPiePath(fg.getWidth(), fg.getHeight(), percentFull); c.drawPath(path, p); } Canvas canvas = new Canvas(bmp); p = new Paint(Paint.ANTI_ALIAS_FLAG); canvas.drawBitmap(fg, 0, 0, p); fg.recycle(); return resizeBitmap(bmp, false); } else if(progType == ThemeConfigParser.PROGTYPE_GAUGE) { int gaugeRangeDegree = config.getIntValue(ThemeConfigParser.KEY_GAUGE_RANGE_DEGREE); Log.e("Gauge_RAnge_degrees", "GRD: " + gaugeRangeDegree); float degreesToRotate = gaugeRangeDegree * (percentFull / 100.0f); Matrix matrix = new Matrix(); matrix.postRotate(degreesToRotate, fg.getWidth() / 2, fg.getWidth() / 2); Canvas canvas = new Canvas(bmp); Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); canvas.drawBitmap(fg, matrix, p); fg.recycle(); return resizeBitmap(bmp, false); } return Bitmap.createBitmap(2, 2, Bitmap.Config.ARGB_8888); } private void init() { CDSPrefsManager prefs = new CDSPrefsManager(context); String activeThemeName = prefs.getActiveTheme(); String activeThemePath = context.getExternalFilesDir(null).getParent() + "/themes/" + activeThemeName + "/"; int dpi = context.getResources().getDisplayMetrics().densityDpi; String spritePath; String confPath; switch(dpi) { case DisplayMetrics.DENSITY_MEDIUM: spritePath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "mdpi" + ".png"; confPath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "mdpi" + ".conf"; break; case DisplayMetrics.DENSITY_HIGH: spritePath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "hdpi" + ".png"; confPath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "hdpi" + ".conf"; break; case DisplayMetrics.DENSITY_XHIGH: spritePath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "xhdpi" + ".png"; confPath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "xhdpi" + ".conf"; break; case DisplayMetrics.DENSITY_XXHIGH: spritePath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "xxhdpi" + ".png"; confPath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "xxhdpi" + ".conf"; break; case DisplayMetrics.DENSITY_XXXHIGH: spritePath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "xxxhdpi" + ".png"; confPath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "xxxhdpi" + ".conf"; break; case DisplayMetrics.DENSITY_TV: spritePath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "tvdpi" + ".png"; confPath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "tvdpi" + ".conf"; break; default: spritePath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "xxxhdpi" + ".png"; confPath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "xxxhdpi" + ".conf"; supportedDevice = false; break; } config = ThemeConfigParser.getInstance(confPath); sprites = SpriteLoader.getInstance(spritePath, config); } public Bitmap getRefreshButton() { return sprites.getRefreshButton(); } public Bitmap getLaunchButton() { return sprites.getLaunchButton(); } private void reinit() { CDSPrefsManager prefs = new CDSPrefsManager(context); String activeThemeName = prefs.getActiveTheme(); String activeThemePath = context.getExternalFilesDir(null).getParent() + "/themes/" + activeThemeName + "/"; int dpi = context.getResources().getDisplayMetrics().densityDpi; String spritePath; String confPath; switch(dpi) { case DisplayMetrics.DENSITY_MEDIUM: spritePath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "mdpi" + ".png"; confPath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "mdpi" + ".conf"; break; case DisplayMetrics.DENSITY_HIGH: spritePath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "hdpi" + ".png"; confPath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "hdpi" + ".conf"; break; case DisplayMetrics.DENSITY_XHIGH: spritePath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "xhdpi" + ".png"; confPath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "xhdpi" + ".conf"; break; case DisplayMetrics.DENSITY_XXHIGH: spritePath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "xxhdpi" + ".png"; confPath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "xxhdpi" + ".conf"; break; case DisplayMetrics.DENSITY_XXXHIGH: spritePath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "xxxhdpi" + ".png"; confPath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "xxxhdpi" + ".conf"; break; case DisplayMetrics.DENSITY_TV: spritePath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "tvdpi" + ".png"; confPath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "tvdpi" + ".conf"; break; default: spritePath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "xxxhdpi" + ".png"; confPath = activeThemePath + produceFilenameFromThemeName(activeThemeName, false) + "xxxhdpi" + ".conf"; supportedDevice = false; break; } config = ThemeConfigParser.getInstance(confPath, true); sprites = SpriteLoader.getInstance(spritePath, config, true); } private void checkThemeChanged() { CDSPrefsManager prefs = new CDSPrefsManager(context); String currentTheme = prefs.getActiveTheme(); if(!currentTheme.equals(lastKnownTheme)) { reinit(); } lastKnownTheme = currentTheme; } private Path createPiePath(int width, int height, int percent) { final double DEG45 = Math.PI / 4; final double DEG135 = Math.PI / 4 * 3; final double DEG225 = Math.PI * (5 / 4.0f); final double DEG315 = Math.PI * (7 / 4.0f); double angle = (percent / 100.0f) * (Math.PI * 2); double cartesianAngle = CDSMath.percentToAngle(percent); int x = (int)(width * CDSMath.x(cartesianAngle)); int y = (int)(height * CDSMath.y(cartesianAngle)); Path path = new Path(); if(angle > 0 && angle < DEG45) { path.moveTo(width / 2, 0); path.lineTo(width / 2, height / 2); path.lineTo(x, y); path.lineTo(width, 0); path.lineTo(width, height); path.lineTo(0, height); path.lineTo(0, 0); path.lineTo(width / 2, 0); } else if(angle >= DEG45 && angle < DEG135) { path.moveTo(width / 2, 0); path.lineTo(width / 2, height / 2); path.lineTo(x, y); path.lineTo(width, height); path.lineTo(0, height); path.lineTo(0, 0); path.lineTo(width / 2, 0); } else if(angle >= DEG135 && angle < DEG225) { path.moveTo(width / 2, 0); path.lineTo(width / 2, height / 2); path.lineTo(x, y); path.lineTo(0, height); path.lineTo(0, 0); path.lineTo(width / 2, 0); } else if(angle >= DEG225 && angle < DEG315) { path.moveTo(width / 2, 0); path.lineTo(width / 2, height / 2); path.lineTo(x, y); path.lineTo(0, 0); path.lineTo(width / 2, 0); } else { path.moveTo(width / 2, 0); path.lineTo(width / 2, height / 2); path.lineTo(x, y); path.lineTo(width / 2, 0); } return path; } private static String produceFilenameFromThemeName(String themeName, boolean omitLastDash) { String regex = "([A-Z][a-z]+)"; String replacement = "$1-"; String replaced = themeName.replaceAll(regex, replacement).toLowerCase(); String retval; if(omitLastDash) { retval = replaced.substring(0, replaced.length() - 1); } else { retval = replaced; if(!retval.contains("-")) { retval += "-"; } } return retval; } public static class CDSMath { /** * returns a value from 0 to 1 based on the given angle using cotangent * @param angle The angle in radians * @return The value from 0 to 1 which is the the x position of the angle * on the unit circle, calculated from the bottom of the circle. */ public static double x(double angle) { final double DEG45 = Math.PI / 4; final double DEG90 = Math.PI / 2; final double DEG135 = Math.PI / 4 * 3; final double DEG225 = Math.PI * (5 / 4.0f); final double DEG270 = Math.PI * (3 / 2.0f); final double DEG315 = Math.PI * (7 / 4.0f); if(angle >= DEG315 || angle <= DEG45) { return 1.0; } else if(angle > DEG45 && angle <= DEG90) { return ctan(angle) / 2.0f + 0.5; } else if(angle > DEG90 && angle <= DEG135) { return (1 - Math.abs(ctan(angle))) / 2.0f; } else if(angle > DEG135 && angle <= DEG225) { return 0.0; } else if(angle > DEG225 && angle <= DEG270) { return (1 - Math.abs(ctan(angle))) / 2.0f; } else if(angle > DEG270 && angle <= DEG315) { return Math.abs(ctan(angle)) / 2.0f + 0.5; } return 0; } /** * returns a value from 0 to 1 based on the given angle using tangent * @param angle The angle in radians * @return The value from 0 to 1 which is the the y position of the angle * on the unit circle, calculated from the bottom of the circle. */ public static double y(double angle) { final double DEG45 = Math.PI / 4; final double DEG135 = Math.PI / 4 * 3; final double DEG180 = Math.PI; final double DEG225 = Math.PI * (5 / 4.0f); final double DEG315 = Math.PI * (7 / 4.0f); final double DEG360 = Math.PI * 2; if(angle >= 0 && angle <= DEG45) { return (1 - Math.tan(angle)) / 2.0f; } else if(angle > DEG45 && angle < DEG135) { return 0.0; } else if(angle >= DEG135 && angle < DEG180) { return (1 - Math.abs(Math.tan(angle))) / 2.0f; } else if(angle >= DEG180 && angle < DEG225) { return Math.tan(angle) / 2.0f + 0.5; } else if(angle >= DEG225 && angle < DEG315) { return 1.0; } else if(angle >= DEG315 && angle < DEG360) { return Math.abs(Math.tan(angle)) / 2.0f + 0.5; } return 0; } public static double ctan(double angle) { return 1 / Math.tan(angle); } public static double percentToAngle(int percent) { if(percent > 0 && percent <= 25) { return ((25 - percent) / 25.0f) * (Math.PI / 2); } else if(percent > 25 && percent <= 50) { return ((50 - percent) / 25.0f) * (Math.PI / 2) + (Math.PI * (3 / 2.0f)); } else if(percent > 50 && percent <= 75) { return ((75 - percent) / 25.0f) * (Math.PI / 2) + Math.PI; } else if(percent > 75 && percent <= 100) { return ((100 - percent) / 25.0f) * (Math.PI / 2) + (Math.PI / 2); } return 0; } } }
345e558ec8ff65a4a8f8860118594a98b21769d2
510c1dbef2d708caf24b43064490a48f06f8a86d
/core/src/main/java/com/sequenceiq/cloudbreak/service/blueprint/BlueprintValidatorFactory.java
34cedc449ad15c7e614079554b5bb5d77608bee6
[ "LicenseRef-scancode-warranty-disclaimer", "ANTLR-PD", "CDDL-1.0", "bzip2-1.0.6", "Zlib", "BSD-3-Clause", "MIT", "EPL-1.0", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-jdbm-1.00", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
benyoka/cloudbreak
b0a5a30b1c0f0d6770944c9d6d49923fd8f28737
48d26aa05c0133ebe6b4e5e606d89ec5ff09a15b
refs/heads/master
2021-07-10T05:43:25.947752
2019-09-26T09:35:26
2019-09-26T09:35:26
211,061,721
0
0
Apache-2.0
2019-09-26T10:22:22
2019-09-26T10:22:21
null
UTF-8
Java
false
false
1,405
java
package com.sequenceiq.cloudbreak.service.blueprint; import static com.sequenceiq.cloudbreak.cluster.api.ClusterApi.AMBARI; import static com.sequenceiq.cloudbreak.cluster.api.ClusterApi.CLOUDERA_MANAGER; import javax.inject.Inject; import org.apache.commons.lang3.NotImplementedException; import org.springframework.stereotype.Component; import com.sequenceiq.cloudbreak.blueprint.utils.BlueprintUtils; import com.sequenceiq.cloudbreak.blueprint.validation.AmbariBlueprintValidator; import com.sequenceiq.cloudbreak.template.validation.BlueprintValidator; import com.sequenceiq.cloudbreak.cmtemplate.CmTemplateValidator; import com.sequenceiq.cloudbreak.domain.Blueprint; @Component public class BlueprintValidatorFactory { @Inject private BlueprintUtils blueprintUtils; @Inject private AmbariBlueprintValidator ambariBlueprintValidator; @Inject private CmTemplateValidator cmTemplateValidator; public BlueprintValidator createBlueprintValidator(Blueprint blueprint) { String variant = blueprintUtils.getBlueprintVariant(blueprint.getBlueprintText()); switch (variant) { case AMBARI: return ambariBlueprintValidator; case CLOUDERA_MANAGER: return cmTemplateValidator; default: throw new NotImplementedException("BlueprintValidator for " + variant); } } }
2c7ceb2b969c32fedcbae5eeb152f60af4870fce
3e555f0dddb74f8d698012547c0f6b98e9b2402b
/app/src/main/java/com/example/amal_pc/test/fragments/SignBook.java
09e47ff3fa54e1c5b2da4f16b3673e8ebd0a1018
[]
no_license
amalx/Book-s-Row-
d9ef54fbde32de5c2515ac7ed782166818de457a
14dac59116b8503d7f8b3d98e2b47bb733bfa96f
refs/heads/master
2021-09-18T19:51:38.257417
2017-10-22T10:26:19
2017-10-22T10:26:19
107,853,387
0
0
null
null
null
null
UTF-8
Java
false
false
3,439
java
package com.example.med.test.fragments; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.provider.MediaStore; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.AdapterView.OnItemLongClickListener; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.ListView; import android.widget.Spinner; import com.example.med.test.R; import com.example.med.test.utils.Media; import com.example.med.test.utils.MediaAdapter; import java.io.File; import java.io.IOException; import java.util.ArrayList; public class SignBook extends Fragment { private static ViewGroup layout; int TAKE_PHOTO_CODE = 0; public static int count = 0; public String array_spinner[]; private View view; private String array_spinner2[]; final String dir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES) + "/picFolder/"; File newdir = new File(dir); @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { super.onCreateView(inflater, container, savedInstanceState); layout = (ViewGroup) inflater.inflate(R.layout.add_book, container, false); Button capture = (Button) layout.findViewById(R.id.btnCapture); Spinner s = (Spinner) layout.findViewById(R.id.spinner1); Spinner s2 = (Spinner) layout.findViewById(R.id.spinner2); newdir.mkdirs(); array_spinner=new String[8]; array_spinner[0]="Romance"; array_spinner[1]="Action"; array_spinner[2]="Drama"; array_spinner[3]="Biography"; array_spinner[4]="Crime"; array_spinner[5]="Comedy"; array_spinner[6]="History"; array_spinner[7]="Mystery"; //*******// array_spinner2=new String[6]; array_spinner2[0]="Gafsa"; array_spinner2[1]="Ariana"; array_spinner2[2]="Tunis"; array_spinner2[3]="Manouba"; array_spinner2[4]="Ben Arous"; array_spinner2[5]="Monastir"; s.setAdapter(new ArrayAdapter<String>(getActivity().getApplicationContext(), android.R.layout.simple_list_item_1, array_spinner)); s2.setAdapter(new ArrayAdapter<String>(getActivity().getApplicationContext(), android.R.layout.simple_list_item_1, array_spinner2)); return layout; } @Override public void onStart() { // TODO Auto-generated method stub // init_phone_music_grid(); super.onStart(); } public void onClick(View v) { switch (v.getId()){ case R.id.btnCapture: // Here, the counter will be incremented each time, and the // picture taken by camera will be stored as 1.jpg,2.jpg // and likewise. count++; String file = dir + count + ".jpg"; File newfile = new File(file); try { newfile.createNewFile(); } catch (IOException e) { } Uri outputFileUri = Uri.fromFile(newfile); Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri); startActivityForResult(cameraIntent, TAKE_PHOTO_CODE); break; } } }
3fdb2eb6adf286e62e51403a35a310a7e8f55536
9e17e2c24d6a7db86699f483eec1fb5b6376ff59
/catalogue_service/src/main/java/app/models/Song.java
8f431398584010b184c7da015d48740c36868674
[]
no_license
dvdmlgn/oscen_music
b0e3c457cf870f735f080e3b11dcea894bd3592e
3a2774b2c564627afc2705cbdd701df340cee4a1
refs/heads/master
2020-05-09T19:18:19.432662
2019-04-18T22:34:57
2019-04-18T22:34:57
181,373,443
0
0
null
null
null
null
UTF-8
Java
false
false
647
java
package app.models; import com.fasterxml.jackson.annotation.JsonProperty; public class Song { @JsonProperty("id") public int id; @JsonProperty("name") public String name; private Song() {} public static class Builder { private int id; private String name; public Builder() {} public Builder withId(final int id) { this.id = id; return this; } public Builder withName(final String name) { this.name = name; return this; } public Song build() { final Song song = new Song(); song.id = this.id; song.name = this.name; return song; } } }
b0c1005ce569b488a54008d0afd5aae66ed45301
07c0b10085b81bf10c7f730c32bd167d4b1866e9
/src/week4/day1/enums/Shop.java
69bf364047b5e10528ca8480defad14c5dee089b
[]
no_license
presly808/oop4
77d068ba9544594e3deb42bd7246621963c558c6
f66252996f490704c09f479118ba79f42be3d541
refs/heads/master
2016-09-06T09:46:20.200229
2014-06-03T12:53:09
2014-06-03T12:53:09
null
0
0
null
null
null
null
UTF-8
Java
false
false
757
java
package week4.day1.enums; public class Shop { public static void main(String[] args) { // sell(Sizes.MIDDLE); // sell(25); // Sizes[] allValues = Sizes.values(); // for(Sizes s : allValues){ // System.out.println(s); // } Sizes mySize = Sizes.valueOf("SMALL"); System.out.println(mySize); } public static void sell(Sizes size){ if(Sizes.SMALL == size) { System.out.println("Sell small thing"); } else if (Sizes.MIDDLE == size) { System.out.println("Sell middle thing"); } } public static void sell(int val){ if(val == Sizes.SMALL.getLength()) { System.out.println("Sell small thing"); } else if (val == Sizes.MIDDLE.getLength()) { System.out.println("Sell middle thing"); } } }
6f85ab6d6d5dbd6652055e0720100adb9e44ddf0
d2e6d0dfd032a02bedab6f3a13293d8837abfc76
/src/main/java/com/ekaqu/cumulus/pool/KeyedPool.java
37ef02050093e5ace391ef3e2bb500d0c8decaf1
[]
no_license
sjroot/Cumulus
396cf98e611aa98cee8f58587e62da02b2fbbd87
5723852443bccadab1f438d17a25ba1cec686295
refs/heads/master
2021-01-18T13:41:25.991955
2012-11-20T18:33:26
2012-11-20T18:33:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,422
java
package com.ekaqu.cumulus.pool; import com.google.common.annotations.Beta; import com.google.common.base.Optional; import java.util.Map; import java.util.concurrent.TimeUnit; /** * Defines a Pool that is essentially a map of {@code Key -> Pool<V>}. * <p/> * A KeyedPool is also a pool and should act just like any pool, so methods like {@link * com.ekaqu.cumulus.pool.Pool#borrow()} should return a valid value. * <p/> * It is recommended that while working with pools that the {@link ExecutingPool} is used with a {@link * com.ekaqu.cumulus.retry.Retryer}. This combination will handle most error cases for you. Also it is best to use the * {@link PoolBuilder} for creating pools. The builder always returns a thread safe pool and sane defaults. * <p/> * Example building with the {@link PoolBuilder} * <pre> * {@code * ExecutingPool<Map.Entry<K, V>> pool; * pool = new PoolBuilder<K>() * .corePoolSize(2) // optional size the pool should try to stay around * .maxPoolSize(4) // optional max size the pool can reach * .executorService(executorService) // optional executor service for * .withKeyType(K.class) * .coreSizePerKey(2) // optional size the underlining pools should stay around * .maxSizePerKey(4) // optional max size each underline pool can reach * .keySupplier(keySupplier) // creates new keys that index underline pools * .factory(poolObjFactory) // creates objects for new pools * .buildExecutingPool(Retryers.newExponentialBackoffRetryer(10)); * } * </pre> * <p/> * A simpler example * <pre> * {@code * ExecutingPool<Map.Entry<K, V>> pool; * pool = new PoolBuilder<K>() * .withKeyType(K.class) * .keySupplier(keySupplier) // creates new keys that index underline pools * .factory(poolObjFactory) // creates objects for new pools * .buildExecutingPool(Retryers.newExponentialBackoffRetryer(10)); * } * </pre> * * @param <K> key type * @param <V> pool value type */ @Beta public interface KeyedPool<K, V> extends Pool<Map.Entry<K, V>> { /** * This is a non-blocking operation that returns a element from the pool. If no objects are in the pool then the * returned value will be {@code Optional#absent()} * <p/> * This method should run between O(1) and O(n) * * @param key key to use * @return optional entry * @throws ClosedPoolException pool is closed * @throws IllegalArgumentException if key doesn't exist */ //TODO should a non existing key return Optional#absent? Optional<Map.Entry<K, V>> borrow(K key) throws IllegalArgumentException, ClosedPoolException; /** * This is a blocking operation that returns a element from the pool. A timeout is given to know how long this method * is allowed to block for. If the time has exceeded then the returned value will be empty. * <p/> * This method should run between O(1) and O(n) * * @param key key to use * @param timeout how long to wait for items if pool is empty * @param unit used for timeout * @return optional entry * @throws ClosedPoolException pool is closed * @throws IllegalArgumentException if key doesn't exist */ //TODO should a non existing key return Optional#absent? Optional<Map.Entry<K, V>> borrow(K key, long timeout, TimeUnit unit) throws IllegalArgumentException, ClosedPoolException; }
ce6e2376cb026d7a1cbc47ac76b7e8a156b8849b
bbdba888e9ba5ca87a1a8235cf4fd19276c9292d
/NumberOfValleys/src/myPackage/MyClass.java
c2ad208ba86a5017ceb99ea0366bb621eb693acc
[]
no_license
alessyleblanc/Number-Of-Valleys
4ec0b853b0feadcf1a4a4373ad4ce9314211d079
5e3ec1333aee7d40c642460f087cdcfe1a0c54fe
refs/heads/master
2020-11-29T16:33:49.187649
2019-12-26T01:07:01
2019-12-26T01:07:01
230,169,345
0
0
null
null
null
null
UTF-8
Java
false
false
2,429
java
package myPackage; /* import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import java.util.regex.*; public class MyClass { // Complete the countingValleys function below. static int countingValleys(int n, String s) { String a = "ABCDE"; String[] path = a.split(""); int[] pathNew = new int[n]; for(int i = 0; i < n; i++) { path[i] = path[i].replaceAll("D", "-1").replaceAll("U", "1"); pathNew[i] = Integer.parseInt(path[i]); } int location = 0; int valleyCount = 0; for(int i = 0; i < pathNew.length; i++) { location = location + pathNew[i]; if(location == 0 && i != 0 && (pathNew[i] > 0)) { valleyCount++; } } return valleyCount; } private static final Scanner scanner = new Scanner(System.in); public static void main(String[] args) throws IOException { BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH"))); int n = scanner.nextInt(); scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); String s = scanner.nextLine(); int result = countingValleys(n, s); bufferedWriter.write(String.valueOf(result)); bufferedWriter.newLine(); bufferedWriter.close(); scanner.close(); } } */ import java.lang.Character.*; import java.util.*; import java.io.*; import java.math.*; /*public class MyClass { public static void main(String[] args) { String s = "UDDDUDUU"; String[] path = s.split(""); int[] pathNew = new int[path.length]; int location = 0; int valleyCount = 0; for(int i = 0; i < path.length; i++) { path[i] = path[i].replaceAll("D", "-1").replaceAll("U", "1"); pathNew[i] = Integer.parseInt(path[i]); location = location + pathNew[i]; if(location == 0 && i > 0 && pathNew[i] > 0) { valleyCount++; } } System.out.print(valleyCount); } } */ public class MyClass { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String input = br.readLine(); String input2 = br.readLine(); double inp = Double.parseDouble(input); double a = 39.3; System.out.println(Math.ceil(a)); } }
7cc21800d5997693daa46d09c2c829d5d350e969
a1c48a7444d9f46540800dd28f735eecf268ad82
/app/src/main/java/com/guowei/android/widght/reflesh/BattleCityView.java
45ce03816747bfa39c361e03ba3d33cb590d3974
[]
no_license
davisliuu/myknowledgesummary
8059c7b30b165206e05f87d581e7ce24e9c9ca73
809faa510d0682782c684e9e65a61dd7b115005d
refs/heads/master
2021-04-26T15:24:40.025726
2018-02-11T17:34:33
2018-02-11T17:34:33
121,227,951
1
0
null
2018-02-12T09:43:30
2018-02-12T09:43:29
null
UTF-8
Java
false
false
10,943
java
package com.guowei.android.widght.reflesh; import android.content.Context; import android.graphics.Canvas; import android.graphics.Point; import android.graphics.RectF; import android.util.AttributeSet; import android.util.SparseArray; import java.util.LinkedList; import java.util.Queue; import java.util.Random; /** * Created by Hitomis on 2016/3/09. * email:[email protected] */ public class BattleCityView extends FunGameView { /** * 轨道数量 */ private static int TANK_ROW_NUM = 3; /** * 炮管尺寸所在tank尺寸的比率 */ private static final float TANK_BARREL_RATIO = 1/3.f; /** * 默认子弹之间空隙间距 */ private static final int DEFAULT_BULLET_NUM_SPACING = 360; /** * 默认敌方坦克之间间距 */ private static final int DEFAULT_ENEMY_TANK_NUM_SPACING = 60; /** * 表示运行漏掉的敌方坦克总数量 和 升级后消灭坦克总数量的增量 */ private static final int DEFAULT_TANK_MAGIC_TOTAL_NUM = 8; /** * 所有轨道上敌方坦克矩阵集合 */ private SparseArray<Queue<RectF>> eTankSparseArray; /** * 屏幕上所有子弹坐标点集合 */ private Queue<Point> mBulletList; /** * 击中敌方坦克的子弹坐标点 */ private Point usedBullet; /** * 用于随机定位一个轨道下标值 */ private Random random; /** * 子弹半径 */ private float bulletRadius; /** * 敌方坦克间距、子弹间距 */ private int enemyTankSpace, bulletSpace; /** * 炮筒尺寸 */ private int barrelSize; /** * 敌方坦克速度、子弹速度 */ private int enemySpeed = 2, bulletSpeed = 7; /** * 当前前一辆敌方坦克和后一辆已经存在的间距值 * 用于确定是否要派出新的一辆敌方坦克 */ private int offsetETankX; /** * 当前前一颗子弹和后一颗子弹的间距值 * 用于确定是否要发射新的一颗子弹 */ private int offsetMBulletX; /** * 当前漏掉的坦克数量 */ private int overstepNum; /** * 当前难度等级需要消灭坦克数量 */ private int levelNum; /** * 当前难度等级内消灭的敌方坦克数量 */ private int wipeOutNum; /** * 表示第一次标示值,用于添加第一辆敌方坦克逻辑 */ private boolean once = true; public BattleCityView(Context context) { this(context, null); } public BattleCityView(Context context, AttributeSet attrs) { this(context, attrs, 0); } public BattleCityView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override protected void initConcreteView() { random = new Random(); controllerSize = (int) (Math.floor((screenHeight * VIEW_HEIGHT_RATIO - (TANK_ROW_NUM + 1) * DIVIDING_LINE_SIZE) / TANK_ROW_NUM + .5f)); barrelSize = (int) Math.floor(controllerSize * TANK_BARREL_RATIO + .5f); bulletRadius = (barrelSize - 2 * DIVIDING_LINE_SIZE) * .5f; resetConfigParams(); } @Override protected void drawGame(Canvas canvas) { drawSelfTank(canvas); if (status == STATUS_GAME_PLAY || status == STATUS_GAME_FINISHED) { drawEnemyTank(canvas); makeBulletPath(canvas); } } @Override protected void resetConfigParams() { controllerPosition = DIVIDING_LINE_SIZE; status = FunGameView.STATUS_GAME_PREPAR; enemySpeed = 2; bulletSpeed = 7; levelNum = DEFAULT_TANK_MAGIC_TOTAL_NUM; wipeOutNum = 0; once = true; enemyTankSpace = controllerSize + barrelSize + DEFAULT_ENEMY_TANK_NUM_SPACING; bulletSpace = DEFAULT_BULLET_NUM_SPACING; eTankSparseArray = new SparseArray<>(); for (int i = 0; i < TANK_ROW_NUM; i++) { Queue<RectF> rectFQueue = new LinkedList<>(); eTankSparseArray.put(i, rectFQueue); } mBulletList = new LinkedList<>(); } /** * 由index轨道下标从左边起始位置生成一个用于绘制敌方坦克的Rect * @param index 轨道下标 * @return 敌方坦克矩阵 */ private RectF generateEnemyTank(int index) { float left = - (controllerSize + barrelSize); float top = index * (controllerSize + DIVIDING_LINE_SIZE) + DIVIDING_LINE_SIZE; return new RectF(left, top, left + barrelSize * 2.5f, top + controllerSize); } /** * 绘制子弹路径 * @param canvas 默认画布 */ private void makeBulletPath(Canvas canvas) { mPaint.setColor(mModelColor); offsetMBulletX += bulletSpeed; if (offsetMBulletX / bulletSpace == 1) { offsetMBulletX = 0; } if (offsetMBulletX == 0) { Point bulletPoint = new Point(); bulletPoint.x = screenWidth - controllerSize - barrelSize; bulletPoint.y = (int) (controllerPosition + controllerSize * .5f); mBulletList.offer(bulletPoint); } boolean isOversetp = false; for (Point point : mBulletList) { if (checkWipeOutETank(point)) { usedBullet = point; continue; } if (point.x + bulletRadius <= 0) { isOversetp = true; } drawBullet(canvas, point); } if (isOversetp) { mBulletList.poll(); } mBulletList.remove(usedBullet); usedBullet = null; } /** * 由Y坐标获取该坐标所在轨道的下标 * @param y 坐标Y值 * @return 轨道下标 */ private int getTrackIndex(int y) { int index = y / (getMeasuredHeight() / TANK_ROW_NUM); index = index >= TANK_ROW_NUM ? TANK_ROW_NUM - 1 : index; index = index < 0 ? 0 : index; return index; } /** * 判断是否消灭敌方坦克 * @param point 单签子弹坐标点 * @return 消灭:true, 反之:false */ private boolean checkWipeOutETank(Point point) { boolean beHit = false; int trackIndex = getTrackIndex(point.y); RectF rectF = eTankSparseArray.get(trackIndex).peek(); if (rectF != null && rectF.contains(point.x, point.y)) { // 击中 if (++wipeOutNum == levelNum) { upLevel(); } eTankSparseArray.get(trackIndex).poll(); beHit = true; } return beHit; } /** * 难度升级 */ private void upLevel() { levelNum += DEFAULT_TANK_MAGIC_TOTAL_NUM; enemySpeed++; bulletSpeed += 2; wipeOutNum = 0; if (enemyTankSpace > 12) enemyTankSpace -= 12; if (bulletSpace > 30) bulletSpace -= 30; } /** * 绘制子弹 * @param canvas 默认画布 * @param point 子弹圆心坐标点 */ private void drawBullet(Canvas canvas, Point point) { point.x -= bulletSpeed; canvas.drawCircle(point.x, point.y, bulletRadius, mPaint); } /** * 判断我方坦克是否与敌方坦克相撞 * @param index 轨道下标 * @param selfX 我方坦克所在坐标X值 * @param selfY 我方坦克矩阵的top 或者 bottom 值 * @return true:相撞,反之:false */ private boolean checkTankCrash(int index, float selfX, float selfY) { boolean isCrash = false; RectF rectF = eTankSparseArray.get(index).peek(); if (rectF != null && rectF.contains(selfX, selfY)) { isCrash = true; } return isCrash; } /** * 绘制我方坦克 * @param canvas 默认画布 */ private void drawSelfTank(Canvas canvas) { mPaint.setColor(rModelColor); boolean isAboveCrash = checkTankCrash(getTrackIndex((int) controllerPosition), screenWidth - controllerSize, controllerPosition); boolean isBelowCrash = checkTankCrash(getTrackIndex((int) (controllerPosition + controllerSize)), screenWidth - controllerSize, controllerPosition + controllerSize); if (isAboveCrash || isBelowCrash) { status = STATUS_GAME_OVER; } canvas.drawRect(screenWidth - controllerSize, controllerPosition, screenWidth, controllerPosition + controllerSize, mPaint); canvas.drawRect(screenWidth - controllerSize - barrelSize, controllerPosition + (controllerSize - barrelSize) * .5f, screenWidth - controllerSize, controllerPosition + (controllerSize - barrelSize) * .5f + barrelSize, mPaint); } /** * 绘制三条轨道上的敌方坦克 * @param canvas 默认画布 */ private void drawEnemyTank(Canvas canvas) { mPaint.setColor(lModelColor); offsetETankX += enemySpeed; if (offsetETankX / enemyTankSpace == 1 || once) { offsetETankX = 0; once = false; } boolean isOverstep = false; int option = apperanceOption(); for (int i = 0; i < TANK_ROW_NUM; i++) { Queue<RectF> rectFQueue = eTankSparseArray.get(i); if (offsetETankX == 0 && i == option) { rectFQueue.offer(generateEnemyTank(i)); } for (RectF rectF : rectFQueue) { if (rectF.left >= screenWidth) { isOverstep = true; if (++overstepNum >= DEFAULT_TANK_MAGIC_TOTAL_NUM) { status = STATUS_GAME_OVER; break; } continue; } drawTank(canvas, rectF); } if (status == STATUS_GAME_OVER) break; if (isOverstep) { rectFQueue.poll(); isOverstep = false; } } invalidate(); } /** * 绘制一辆敌方坦克 * @param canvas 默认画布 * @param rectF 坦克矩阵 */ private void drawTank(Canvas canvas, RectF rectF) { rectF.set(rectF.left + enemySpeed, rectF.top, rectF.right + enemySpeed, rectF.bottom); canvas.drawRect(rectF, mPaint); float barrelTop = rectF.top + (controllerSize - barrelSize) * .5f; canvas.drawRect(rectF.right, barrelTop, rectF.right + barrelSize, barrelTop + barrelSize, mPaint); } /** * 随机定位一个轨道下标值 * @return 轨道下标 */ private int apperanceOption() { return random.nextInt(TANK_ROW_NUM); } }
a309f5d4b6fc8b841f2eaeb391192e2547c4b534
595c83c28a1a51e53dd0707f46957294dc3b3c4f
/src/test/java/be/ceau/querymapper/test/model/WhereFilter.java
215fd83eb77959e26d4f9e051d83be34a0981337
[ "Apache-2.0" ]
permissive
mdewilde/querymapper
1bd87ca4c217f6380e8b6a1c53ec10b09ecf2b22
e8670df305421e0c07e51a0bdb12969d9bf203c3
refs/heads/master
2020-04-24T17:46:23.088425
2015-08-08T09:25:55
2015-08-08T09:25:55
40,019,043
0
0
null
null
null
null
UTF-8
Java
false
false
294
java
package be.ceau.querymapper.test.model; import be.ceau.querymapper.annotations.Where; public class WhereFilter { @Where(column = "field1Name") private String field1; public String getField1() { return field1; } public void setField1(String field1) { this.field1 = field1; } }
b09245777889d2a3b40e63d1bea84a4391f0969d
23a79a66872dde2f65e81800418ed2dc0bcc265b
/app/src/test/java/com/tsubu_nagoya/ilike/ilike/ExampleUnitTest.java
7cf91ebed3d152e09d67ae8bb6e56429bb4fb720
[]
no_license
rytmrt/iLike
47f878f739e552ec62e984a94040538b66581f85
091446646373865843d162261fd967f0fcfab7fb
refs/heads/master
2021-01-10T04:31:45.779651
2015-11-08T03:00:44
2015-11-08T03:00:44
45,763,153
0
0
null
null
null
null
UTF-8
Java
false
false
321
java
package com.tsubu_nagoya.ilike.ilike; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
02db2dbd87acd35f853ebbdc94aaf2d360240c46
ac47b79f1c748092ccb733a28579673b4a758c52
/src/comThree/Main.java
ab2613fad51aed345b8a64ca7b5086cdb4ba7c37
[]
no_license
JarikDev/JL66Multithreading
df2c91c9f698d0d8ea1433ea4abc2fcf893d7678
6da64430057e7081b2cf0941fc6f04d16a83b883
refs/heads/master
2020-04-03T21:36:54.626072
2018-10-31T15:31:30
2018-10-31T15:31:30
155,575,780
0
0
null
null
null
null
UTF-8
Java
false
false
423
java
package comThree; public class Main { public static void main(String[] args) { new MyThread().start(); new MyThread().start(); new MyThread().start(); } } class MyThread extends Thread { @Override public void run() { for (int i = 0; i < 400; i++) { System.out.println("Thread name is - " + Thread.currentThread().getName() + " i = " + i); } } }
fb7c8d1329856dfbf90f1ede1eb6dc91b7fdbb56
1cdfeacf3999663d27606b5ee805c4bd02fab05c
/src/telas/menu/MenuProfessor/ControllerMenuProfessor.java
ea88a788ecd9e62042476e051604322e4d30e69e
[]
no_license
AlvanirJr/SimuladoJava
82749bc0a5e6543623c2236e8d9b9ee82603635e
68c8699b1d882a3160113a269f4adcc6d76a65e9
refs/heads/master
2023-03-08T20:53:58.981368
2021-02-26T18:23:27
2021-02-26T18:23:27
342,663,732
0
0
null
null
null
null
UTF-8
Java
false
false
795
java
package telas.menu.MenuProfessor; import javafx.event.ActionEvent; import javafx.fxml.Initializable; import javafx.scene.control.Button; import telas.menu.mainMenu; import java.net.URL; import java.util.ResourceBundle; public class ControllerMenuProfessor implements Initializable { public Button cadQ; public Button voltar; public Button atuProf; @Override public void initialize(URL location, ResourceBundle resources) { } public void cadQ(ActionEvent actionEvent) { mainMenu.mudancaTela("cadQuestao"); } public void voltarAct(ActionEvent actionEvent) { mainMenu.mudancaTela("menuPrincipal"); } public void atuprof(ActionEvent actionEvent) { mainMenu.mudancaTela("atuProf"); } }
9d8cf49b8999f7bcde1ad2486197ce181f44b1c0
e206a3de9cd8e8826b1a2ab1ec82a2dbddea4e85
/self-server/self-activity/src/main/java/cn/kepu/self/activity/mybatis/mapper/ActivityTypeMapper.java
cb13ffd14971057b46172cee40fa40fc24a62066
[]
no_license
overmaker/self
ffdb76acd1eab64dfeb4746de6225a03187c3eac
93094c0589e96ef5a1655ec985e1208e151f1ee9
refs/heads/master
2020-03-28T22:17:26.171156
2018-09-18T03:26:42
2018-09-18T03:26:42
149,221,473
0
0
null
null
null
null
UTF-8
Java
false
false
913
java
package cn.kepu.self.activity.mybatis.mapper; import cn.kepu.self.activity.entity.ActivityType; import java.util.List; import org.apache.ibatis.annotations.Param; /** * * @author 李成志 */ public interface ActivityTypeMapper { /** * 新增活动分类 * * @param name 活动分类名称 */ void insertActivityType(@Param("name") String name); /** * 修改活动分类 * * @param name 活动分类名称 * @param id 活动分类id */ void updateActivityType(@Param("name") String name, @Param("id") Long id); /** * 删除活动分类 * * @param id 活动id */ void deleteActivityType(@Param("id") Long id); /** * 查询所有的活动分类 * * @return */ List<ActivityType> findActivityType(ActivityType activityType); List<ActivityType> selectAll(@Param("name") String name); }
421eea09c65d0f201db111b7f0665c958da528b1
79b933ae2cf12e2e6776231fbc1971f70358cd87
/src/main/java/com/indihx/activiti/entity/ActNodeCfg.java
8202892c9cc22f3df890d97db8fb68cf6123cc64
[]
no_license
svcgv/vote
4e41338495acf89e9791d91e6e8d2ee312a07a8e
c84b5245eef2be369ef6be54e34fe28b2f9bf58a
refs/heads/master
2020-04-01T22:55:44.931246
2018-11-30T10:46:15
2018-11-30T10:46:15
153,733,177
1
1
null
null
null
null
UTF-8
Java
false
false
701
java
/** * */ package com.indihx.activiti.entity; import java.io.Serializable; /** * <p>标 题: 物业管理信息系统(PMS)</p> * <p>描 述: ActNodeCfg.java</p> * <p>版 权: Copyright (c) 2018 </p> * <p>公 司: 上海泓智信息科技有限公司</p> * <p>创建时间: 2018年2月24日下午12:40:27</p> * <p>@author zhengwei</p> * <p>@version 1.0</p> * <p>ActNodeCfg.java</p> * <p></p> */ public class ActNodeCfg implements Serializable{ private Long id; private String nodeId; private Long orgId; private String orgType; private String appType; //流程类型 private Long appId; //流程ID private String actId; //工作流ID }
e4853ebef6489647aaed05da3259450ee0350faa
840692343eeb59c0dba62d93bce0c12866e564ee
/DesignTask5/UnitTests/design05/Triple4Processor.java
66e47bb587e3217cb6ef08b1c03994c9d08332bb
[]
no_license
alexisshaw/cs2911p2
65ac324ab2d32dd707e9a4a346a814e568fdb58d
6ce0099220137796b3985ba234a731b4690131c7
refs/heads/master
2021-01-19T13:25:33.512312
2012-05-06T12:22:40
2012-05-06T12:22:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,414
java
package design05; public class Triple4Processor implements Processor { //Processor state holders ProcessorState myState; boolean isInitialised; private boolean isHalted; //CPU Commands - 4 bit private final uint_4 halt = new uint_4(0x0); private final uint_4 addR0R1 = new uint_4(0x1); private final uint_4 subR0R1 = new uint_4(0x2); private final uint_4 incR0 = new uint_4(0x3); private final uint_4 incR1 = new uint_4(0x4); private final uint_4 decR0 = new uint_4(0x5); private final uint_4 decR1 = new uint_4(0x6); private final uint_4 swap = new uint_4(0x7); //CPU Commands - 8 bit private final uint_4 xoriR0data = new uint_4(0x8); //has side effect of outputing data to output stream private final uint_4 lpmR0data = new uint_4(0x9); private final uint_4 lpmR1data = new uint_4(0xA); private final uint_4 stsdataR0 = new uint_4(0xB); private final uint_4 stsdataR1 = new uint_4(0xC); private final uint_4 jmpdata = new uint_4(0xD); private final uint_4 cpiR0bredata = new uint_4(0xE); private final uint_4 cpiR0brnedata = new uint_4(0xF); //Contructor public Triple4Processor() { super(); myState = new Triple4ProcessorState(); isInitialised = false; myState.instructionPointer = new uint_4(0); myState.currentOutput = null; isHalted = false; } @Override public boolean isHalted() { return isHalted; } //Process Runner @Override public void doNextStep() { if ((isInitialised) && (!isHalted)) { uint_4 currentMemory[] = myState.getAllMemory(); uint_4 currentAction = currentMemory[myState.getIP().toInteger()]; if (currentAction.toInteger() < 8) { doAction(currentAction); myState.getIP().add(1); } else if (currentAction.toInteger() < 16) { doAction(currentAction, currentMemory[myState.getIP().toInteger()]); myState.getIP().add(2); } } } //4 bit CPU calculations private void doAction(uint_4 action) { if (action.toInteger() >= 8) { //pass onto 8 bit action modifier doAction(action, myState.getMemory(myState.getIP().toInteger()+1)); myState.getIP().add(1); } else { if (action.equals(addR0R1)) { //add R0, R1 myState.setRegister(0, myState.getRegister(0).add(myState.getRegister(1))); } else if (action.equals(subR0R1)) { //sub R0, R1 myState.setRegister(0, myState.getRegister(0).sub(myState.getRegister(1))); } else if (action.equals(incR0)) { //inc R0 myState.setRegister(0, myState.getRegister(0).add(1)); } else if (action.equals(incR1)) { //inc R1 myState.setRegister(1, myState.getRegister(1).add(1)); } else if (action.equals(decR0)) { //subi R0, 1 myState.setRegister(0, myState.getRegister(0).sub(1)); } else if (action.equals(decR1)) { //subi R1, 1 myState.setRegister(1, myState.getRegister(1).sub(1)); } else if (action.equals(swap)) { //swap registers? uint_4 temp = myState.getRegister(1); myState.setRegister(1, myState.getRegister(0)); myState.setRegister(1, temp); if (myState.currentOutput == null) myState.currentOutput[1] = "0"; else myState.currentOutput[1] += "0"; } else if (action.equals(halt)) { //halt isHalted = true; if (myState.currentOutput == null) myState.currentOutput[1] = "0"; else myState.currentOutput[1] += "0"; } } } //8 bit CPU calculations (requiring a 4 bit action command and a 4 bit piece of data private void doAction(uint_4 action, uint_4 data) { if ((action.toInteger() < 0) || (action.toInteger() > 16)) { //be confused } else if (action.toInteger() <= 8) { //pass onto 4 bit action modifier doAction(action); myState.getIP().sub(1); } else { assert(myState.getMemorySize() > data.toInteger() && data.toInteger() >= 0); if (action.equals(xoriR0data)) { //xori R0, data + effect: data sent along output line myState.setRegister(0, myState.getRegister(0).XOR(data)); if (myState.currentOutput == null) myState.currentOutput[0] = data.toString(); else myState.currentOutput[0] += data.toString(); } else if (action.equals(lpmR0data)) { //lpm R0, [data] myState.setRegister(0, data); } else if (action.equals(lpmR1data)) { //lpm R1, [data] myState.setRegister(1, data); } else if (action.equals(stsdataR0)) { //sts data, R0 uint_4 memory[] = myState.getAllMemory(); memory[data.toInteger()] = myState.getRegister(0); myState.setMemory(memory); } else if (action.equals(stsdataR1)) { //sts data, R1 uint_4 memory[] = myState.getAllMemory(); memory[data.toInteger()] = myState.getRegister(1); myState.setMemory(memory); } else if (action.equals(jmpdata)) { //jmp data (using -2 as ip is incremented twice after this fnction call) myState.setIP(data.sub(2)); } else if (action.equals(cpiR0bredata)) { //cpi R0, 0, bre data if (myState.getRegister(0).toInteger() == 0) myState.setIP(data.sub(2)); } else if (action.equals(cpiR0brnedata)) { //cpi R0, 0, brne data if (myState.getRegister(0).toInteger() != 0) myState.setIP(data.sub(2)); } } } //Initialise Processor with intructions @Override public void setState(ProcessorState state) { isHalted = false; isInitialised = true; myState = state; } //return a state for storing @Override public ProcessorState getState() { if (!isInitialised) { return null; } else { return myState; } } }