content
stringlengths 7
2.61M
|
---|
Mark Minenko
Mark Minenko (born March 29, 1957) is a former politician in Manitoba, Canada. He was a member of the Legislative Assembly of Manitoba from 1988 to 1990, representing the Winnipeg riding of Seven Oaks for the Manitoba Liberal Party.
Early years and education
He was born in New York City, New York. Minenko's father was the Very Rev. Tymofiy Minenko, a Ukrainian-born priest in the Ukrainian Orthodox Church; his mother was Anastasia Krywonos. He was raised in Winnipeg, and was educated at the University of Winnipeg and the University of Manitoba. He worked as a lawyer, and also joined the Canadian Forces Medical Services in 1976, eventually reaching the rank of Captain. He was awarded the Canada Forces Decoration in 1988.
Political career
In 1981, Minenko worked an assistant to MLA June Westbury, who was at the time the only Liberal representative in the provincial legislature.
Minenko first ran for provincial office in the election of 1988, scoring an upset victory over outgoing New Democratic Finance Minister Eugene Kostyra in Seven Oaks. Minenko won the election by 332 votes, at a time when provincial support for the NDP was at its lowest ebb since the 1960s. He was named as Deputy Speaker on July 21, 1988, but resigned on May 18, 1989.
In the provincial election of 1990, redistribution forced him to run in the riding of St. Johns against another incumbent, New Democrat Judy Wasylycia-Leis. He lost, by almost two thousand votes, amid a general decline in support for the Liberal Party. He has not sought a return to provincial politics since this time.
Minenko later became active in the Ukrainian Canadian Congress, and has sought a formal apology from the federal government for the detainment of Ukrainians in concentration camps during the First World War. He also continued his education at the University of Alberta, working towards a Master of Laws degree. |
import { IElement, IFontFamily, IUpload } from '@/interfaces/editor'
import axios, { AxiosInstance } from 'axios'
type Template = any
class ApiService {
base: AxiosInstance
constructor() {
this.base = axios.create({
baseURL: 'https://api.scenify.io',
headers: {
Authorization: '<KEY>',
},
})
}
// UPLOADS
getSignedURLForUpload(props: { name: string }): Promise<{ url: string }> {
return new Promise((resolve, reject) => {
this.base
.post('/uploads', props)
.then(({ data }) => {
resolve(data)
})
.catch(err => reject(err))
})
}
updateUploadFile(props: { name: string }): Promise<any> {
return new Promise((resolve, reject) => {
this.base
.put('/uploads', props)
.then(({ data }) => {
resolve(data)
})
.catch(err => reject(err))
})
}
getUploads(): Promise<IUpload[]> {
return new Promise(async (resolve, reject) => {
try {
const { data } = await this.base.get('/uploads')
resolve(data.data)
} catch (err) {
reject(err)
}
})
}
deleteUpload(id: string) {
return new Promise(async (resolve, reject) => {
try {
const response = await this.base.delete(`/uploads/${id}`)
resolve(response)
} catch (err) {
reject(err)
}
})
}
// TEMPLATES
createTemplate(props: Partial<Template>): Promise<Template> {
return new Promise((resolve, reject) => {
this.base
.post('/templates', props)
.then(({ data }) => {
resolve(data)
})
.catch(err => reject(err))
})
}
downloadTemplate(props: Partial<Template>): Promise<{ source: string }> {
return new Promise((resolve, reject) => {
this.base
.post('/templates/download', props)
.then(({ data }) => {
resolve(data)
})
.catch(err => reject(err))
})
}
getTemplates(): Promise<any[]> {
return new Promise(async (resolve, reject) => {
try {
const { data } = await this.base.get('/templates')
resolve(data)
} catch (err) {
reject(err)
}
})
}
getTemplateById(id: string): Promise<any> {
return new Promise(async (resolve, reject) => {
try {
const { data } = await this.base.get(`/templates/${id}`)
resolve(data)
} catch (err) {
reject(err)
}
})
}
//CREATIONS
createCreation(props: Partial<Template>): Promise<Template> {
return new Promise((resolve, reject) => {
this.base
.post('/creations', props)
.then(({ data }) => {
resolve(data)
})
.catch(err => reject(err))
})
}
getCreations(): Promise<any[]> {
return new Promise(async (resolve, reject) => {
try {
const { data } = await this.base.get('/creations')
resolve(data)
} catch (err) {
reject(err)
}
})
}
getCreationById(id: string): Promise<any> {
return new Promise(async (resolve, reject) => {
try {
const { data } = await this.base.get(`/creations/${id}`)
resolve(data)
} catch (err) {
reject(err)
}
})
}
updateCreation(id: string, props: Partial<Template>): Promise<Template> {
return new Promise((resolve, reject) => {
this.base
.put(`/creations/${id}`, props)
.then(({ data }) => {
resolve(data)
})
.catch(err => reject(err))
})
}
// ELEMENTS
getElements(): Promise<IElement[]> {
return new Promise(async (resolve, reject) => {
try {
const { data } = await this.base.get('/elements')
resolve(data)
} catch (err) {
reject(err)
}
})
}
updateTemplate(id: number, props: Partial<Template>): Promise<Template> {
return new Promise((resolve, reject) => {
this.base
.put(`/templates/${id}`, props)
.then(({ data }) => {
resolve(data)
})
.catch(err => reject(err))
})
}
// FONTS
getFonts(): Promise<IFontFamily[]> {
return new Promise(async (resolve, reject) => {
try {
const { data } = await this.base.get('/fonts')
resolve(data)
} catch (err) {
reject(err)
}
})
}
}
export default new ApiService()
|
As musicians continue to react to the debut of Caitlyn Jenner, some have been more accepting of the transition than others.
For some reason, Drake Bell decided to share his less-than-enthused take on the day's big news, tweeting "Sorry....still calling you Bruce." He deleted the tweet shortly thereafter, which we have screen-grabbed below.
Shortly after deleting the above tweet, Bell sent a follow-up to assure people he wasn't insulting Caitlyn Jenner. Bell did, however, continue to refer to Caitlyn as "he" while speaking of Jenner in the present tense.
I'm not dissing him! I just don't want to forget his legacy! He is the greatest athlete of all time! Chill out!
Billboard reached out to Drake Bell's rep for further comment. |
Impact of VEGF gene polymorphisms in elderly cancer patients: clinical outcome and toxicity. Vascular endothelial growth factors (VEGFs) are the key regulators in angiogenesis and have been shown to play a significant role in the progression and prognosis of angiogenesis-related diseases, such as cancer. VEGF inhibitors are a current pharmacological tumoral strategy. However, despite the strong association between aging and cancer incidence and progression, recent findings suggest impaired angiogenesis accompanied by a reduced expression of VEGF in cells derived from aging subjects. Specific variations of VEGF genes have been demonstrated to be genetic determinants for susceptibility, outcome and therapy response, especially for the solid tumors. Considering the complications present in frail elderly patients, analysis of VEGF genetic polymorphisms in these subjects may further help in tailoring an angiogenic pharmacological strategy, and in improving our ability to better understand prognosis during therapy-related to cancer. |
Faceted dendrite growth of silicon from undercooled melt of SiNi alloy Abstract Two-dimensional faceted dendrite growth of silicon from undercooled melt of Si6 wt%Ni alloy was experimentally investigated, in which molten alloy film from 10 to 20 mm in thickness was undercooled up to 115 K and growing dendrites were observed in situ. Both the in situ observation of dendrite morphology and the EBSP crystallographic analysis for solidified samples showed that both a 211 twin dendrite and a 100 twin-free dendrite grew in the range of undercooling from50 to 115 K. Dendrite growth velocity was also measured for different undercooling conditions. The growth velocity of 211 dendrites was slightly larger than that of 100 dendrites. It is concluded that the upper envelope of the data provide the correct dendrite growth velocity and it is compared with that obtained by phase-field simulations. Growth velocity in both follows power relationships to undercooling and the linear kinetic coefficient is estimated to be 0.01 m/s K. Introduction Half a century ago, faceted dendrite growth of germanium was first reported by Billig and its crystallographic aspects were investigated aiming the production of semiconductor ribbons. These works revealed that his dendrite had twins along its primary arm and grew in the /2 1 1S direction with (1 1 1) habit faces. Because of the rapid progress of silicon wafer production technology the interest in faceted dendrite growth was subsided for many years until Devaud and Turnbull found a twin-free dendrite in the late 1980s. Thereafter, intensive investigations on faceted dendrite growth of germanium, silicon, and their alloys have been revived for clarifying the transition of growth kinetics. In most experiments germanium or silicon was undercooled using the glass flux technique or electromagnetic levitation technique and the crystallographic morphology of solidified crystals was examined. The growth velocity of faceted dendrites was also measured for germanium, silicon, and their alloys. The results of these works are summarized as follows. The growth of a faceted dendrite changes from that of a twin dendrite with a /2 1 1S or /1 1 0S growth direction to that of a /1 0 0S twin-free dendrite with increasing undercooling. The transition from a twin to a twin-free dendrite is examined by microstructure observation of solidified samples, growth velocity measurement, and in situ observation of growing interface morphology, although the twin/ twin-free transition is sometimes described as the transition from lateral to continuous growth kinetics in a confusing manner. Battersby et al. measured the growth velocity of germanium and iron-doped germanium dendrites and reported that the undercooling dependency of growth velocity was different for twin and twin-free dendrites. However, the dendrite growth velocity for germanium, silicon, and their alloys was mostly reported to follow a power relationship with respect to undercooling in spite of the difference in growth kinetics. Measured growth velocity was usually analyzed using an analytical dendrite model termed as a BCT or LKT model, although the model assumes interface characteristics that were different from those of faceted one. In the meantime phase-field approaches to faceted dendrite growth have been recently proposed so as to include highly anisotropic interface energy or interface kinetics. Phase-field models have been already applied to many solidification phenomena and show wide potential as introduced in review articles. In usual phase-field approaches, the solidification interface energy, s(y), is simply assumed to have fourfold symmetric anisotropy as sy s 0 1 n cos 4y, where n is the intensity of anisotropy and y is the angle between the direction normal to the interface and the x-axis. The equilibrium condition at the interface is given by the Gibbs-Thomson equation. When no1=15, a smooth and convex non-faceted crystal becomes stable. Conversely when n41=15, the interface within the missing orientation becomes thermodynamically unstable, the faceted crystal appears to be composed of only interfaces with stable orientations. Therefore, the presence of an edge between faceted interfaces makes the phase-field approach difficult. In order to overcome this difficulty, Eggleston et al. have proposed modification of the governing equation within the missing orientations is changed using that of the interface at the end of the stable orientations and the model successfully reproduces the equilibrium shape and the transient growth toward the equilibrium state of a faceted interface. Debierre et al. have proposed a different type of anisotropic interface energy in their phase-field approach. They performed phase-field simulations of faceted dendrite growth with vanishing interface kinetics. Kasajima and coworkers have carried out phase-field simulations of free faceted dendrite growth of silicon using the interface energy model by Eggleston et al. and thin interface limit parameters. Their results are similar to those by Debierre et al. and it indicates that both approaches can be applicable to real systems with faceted crystals such as silicon. However, there are difficulties in the phase-field simulation of silicon dendrite growth. The capillarity length of silicon is so small that the mesh size should be less than 1 nm so as to obtain correct values of dendrite growth velocity and the calculation area should be at least 10 mm 2 in the concerned range of undercooling where the twin/ twin-free transition is reported to occur. Therefore, threedimensional simulation of silicon dendrite growth is impracticable and the agreement between two-dimensional phase-field simulations and experimental data is still unsatisfactory. These difficulties would be greatly reduced if data on the two-dimensional faceted dendrite growth of silicon alloys could be provided, because the restrictions on calculation time could be relaxed in simulations of dendrite growth of alloys. Two-dimensional experiments of dendrite growth are generally difficult to perform but the present authors found a way of fabricating a thin film of molten silicon or silicon alloy in a simple manner. Therefore, it becomes possible to compare the results of two-dimensional faceted dendrite growth experiments with phase-field simulations. In the present work two-dimensional faceted silicon dendrites grown from the undercooled melt of silicon-nickel alloy are observed in situ and their morphology and crystallographic features are discussed. Dendrite growth velocity is also measured for different undercooling conditions. Finally, the growth conditions of faceted dendrites are discussed for the comparison of the phase-field simulations. Experimental The mother alloy of Si-6 wt%Ni alloy was prepared from semiconductor grade silicon and 99.99% nickel. These materials were arc-melted under an argon atmosphere and the solidified alloy was crushed into small pieces. The average nickel content of the alloy was examined by the two following measurements for ten small pieces. One was area analysis using a SEM-EDX, in which nickel content was measured in an area of 300 mm square for each sample. The other is the area fraction measurement of the primary silicon phase using a SEM. As the solidified structure is composed of the primary silicon, and Si 2 Ni/SiNi eutectic phases and the solubility of nickel in silicon is sufficiently small, the average nickel content can be evaluated by means of the fraction-weighted sum of nickel content in each phase. The results of both measurements almost perfectly agreed with each other and the nickel content of the alloy was evaluated to be 6 wt% within an error of 1 wt%. This was also confirmed by measuring the liquidus temperature during melting in the experiments. Fig. 1 shows the experimental setup used in the present work. As shown in the upper part of Fig. 1 the specimen with a mass from 2 to 4 mg was placed between two singlecrystal sapphire plates with a (1 0 1 0) surface and 500 mm in thickness. It was melted under a vacuum of about 10 5 Pa using a resistance furnace with a molybdenum heating wire. Because of good wetting of molten silicon alloy to sapphire, the specimen between the two plates spontaneously spread into a thin film with a thickness in the range from 10 to 20 mm. Note that the film thickness was easily controlled by changing the size of the upper sapphire plate and the mass of the specimen. Typical dimensions of the sapphire plates are shown in the lower part of Fig. 1. The specimen was heated up to the superheating temperature of about 30 K and then continuously cooled with a constant cooling rate of 5 or 10 K/min until nucleation started. Before the series of experiments the output of a thermocouple was calibrated by measuring the melting temperature of silicon and the undercooling in each experimental run was determined as the difference between the liquidus temperature of the alloy and the nucleation temperature measured by the thermocouple. The error of measured undercooling was expected to be within 5 K at most, including the variation of nickel content. As the emissivity of silicon is sufficiently different for the solid and liquid phases, growing crystals can be optically identified through the transparent sapphire upper plate. However, the transparency of the upper sapphire plate was lost because of the evaporation of molybdenum oxide and the number of experimental runs was limited to seven at most. For the observation of dendrite growth, a high-speed video camera attached with a 300 mm telescopic lens was used. Recording was manually triggered after the confirmation of nucleation because the camera had a prerecording function and a sufficiently large memory capacity to record for 10 s. A typical frame rate used for the observation was 250 frames per second. The recorded images were processed to increase their contrast and the locations of growing dendrite tips were measured for each frame. As two or three dendrites independently grew from a nucleation point dendrite growth velocity was measured for each dendrite in an experimental run. After solidification, the primary and secondary arms of the dendrites were clearly identified because of the difference in contrast between the primary silicon and eutectic phases. In addition, the crystallographic orientations of dendrite arms were determined by SEM-EBSP analysis for typical specimens. Note that the alloy was brittle and easily cleaved along the film and no treatment was necessary for the analysis. Results and discussions 3.1. Dendrite growth morphology Fig. 2 shows the undercooling histogram of 181 experimental runs. Because of the heterogeneous nucleation of silicon on the sapphire surface, the obtained undercooling was expected to fall within a certain narrow range. However, the results show a wide distribution of undercooling from 20 to 115 K, whose mean value and standard deviation are 69.5 and 19.2 K, respectively. This wide distribution is presumably due to the fact that surface roughening during heating produces macro steps on the sapphire surface and they act as nucleation sites with different potentials. The morphology of growing dendrites is classified into three main types and others on the basis of the angle between the primary arm and secondary arms as shown in Fig. 3. In the figure, the dendrites during growth and their solidified structures are shown in the left and right columns, respectively. The first type is a dendrite with secondary arms inclined at 601 or 1201 to the primary stem (Figs. 3(a) and (b)), the second is a dendrite with secondary arms inclined at 901 (Figs. 3(c) and (d)), and the third is a rod-type primary arm without secondary arms. The crystallographic orientations of these dendrites or rods were analyzed using a SEM-EBSP. Table 1 shows a summary of the results, in which the growth plane, defined as the crystallographic orientation perpendicular to the molten alloy film, and the growth directions of the primary and secondary arms are tabulated. These results are the same as those of silicon dendrites reported by Nagashio and Kuribayashi. However, a /1 1 0S dendrite in Table 1 has fourfold symmetry and is different from their /1 1 0S twin dendrite. For simplicity of description, the three types of dendrites are denoted as a /2 1 1S dendrite, a /1 0 0S dendrite, and a /2 1 1S rod hereafter. The other dendrites are divided into two groups. The first one is dendrites whose secondary arms are inclined at 351, 551, 701, 801 or one of their supplementary angles to the primary arm. For most of these dendrites, twins along the primary arms are observed. The second group is dendrites whose secondary arms were not clearly observed in their images. ARTICLE IN PRESS Differences in growth morphology are usually due to differences in growth kinetics. As reported in the literature, /2 1 1S and /1 1 0S dendrites are twin dendrites whose growth is dominated by lateral growth and a /1 0 0S dendrite is a twin-free dendrite with continuous growth kinetics. In the present work, twins are observed only for /2 1 1S dendrites with a (1 1 0) growth plane, and no twins are observed for /2 1 1S dendrites with a (1 1 1) growth plane, probably because the twin plane is mostly parallel to the (1 1 1) face. Fig. 4 shows a histogram of dendrite types, in which 180 dendrites classified into the main three types are counted. As described above, a few dendrites grew independently from a nucleation point in an experimental run, the total number of observed dendrites is larger than that of runs, and the remaining of 163 dendrites classified into the others group do not appear in Fig. 4. For undercooling smaller than 50 K, crystals grow as a /2 1 1S rod, and their frequency decreases with increasing under- Table 1 Growth plane and growth directions of primary and secondary arms of faceted dendrites Morphology Growth plane Growth direction Primary arm Secondary arm Dendrite cooling. For undercooling larger than 50 K, /2 1 1S and /1 0 0S dendrites become dominant. Nagashio and Kuribayashi have reported that the growth of a silicon dendrite changes from that of a /1 1 0S twin dendrite to that of a /1 0 0S twin-free dendrite with increasing undercooling and the transition undercooling is about 100 K, but no clear twin/twin-free dendrite transition was observed in the present work. This difference is presumably due to the spatial constraint of the growth plane by the two sapphire plates. As seen in Table 1, the growth planes of dendrites are constrained to be (1 1 1), (1 1 0), and (1 0 0). Once the growth plane has been determined by nucleation, dendrites are forced to grow with that growth plane. In contrast, the optimum growth plane can be selected according to the growth kinetics in levitation experiments. In addition, the observation of solidified B-doped silicon samples shows that a /1 1 0S twin dendrite grows along the free surface of molten silicon and a /1 0 0S twin-free dendrite grows toward the inside the specimen. Therefore, the transition of growth morphology corresponding to the change in growth kinetics would be observed only when dendrite growth is fully unconstrained. show the growth velocity of /2 1 1S dendrites, /1 0 0S dendrite, /2 1 1S rods, and the other dendrites, respectively. The experimental data are widely scattered, and the correct growth velocity of a /2 1 1S dendrite is estimated from the upper envelope of the data as reported by Suzuki et al., which is shown as a broken line in Fig. 5. The growth velocity follows a power law relationship to undercooling and its power exponent is about 1.5. The scattering of the data is presumably because dendrites with a growth plane inclined to the specimen film grow in a zigzag manner with a smaller velocity. The growth velocity of /2 1 1S dendrites is slightly higher than that of /1 0 0S dendrites, but the difference is small at low undercooling and becomes large at high undercooling. Unfortunately, since there is not sufficient the data for /1 0 0S dendrites at high undercooling, quantitative comparison of the growth velocities of /2 1 1S and /1 0 0S dendrites is difficult. However, the results show that there is no direct correlation between growth velocity and growth morphology as reported in the literature. Dendrite growth velocity Phase-field simulations for the faceted dendrite growth of silicon from the undercooled melt of Si-6 wt%Ni alloy has been carried out under the corresponding experimental conditions. The two-dimensional thin interface limit model has been used and its details are described elsewhere. In the simulations it is assumed that the system is isothermal and the growth of a dendrite is dominated by solute diffusion. The results calculated with the linear kinetic coefficient of 0.01 m/s K are shown as closed circles and solid line in Fig. 5. The calculated growth velocity follows a similar power relationship to undercooling to experiments but those values are slightly smaller than the upper envelope of the experimental data. In the model the fourfold symmetry of interface energy is assumed and it is the case for a /1 0 0S dendrite. As described above the growth velocity of a /1 0 0S dendrite is smaller than that of a /2 1 1S dendrite and the results are is in agreement with experiments. The values of linear kinetic coefficient for /1 0 0S and /1 1 1S faces of silicon have been obtained by numerical simulations or experiments, and most of the data for a (1 0 0) face of silicon are in the range from 0.2 to 0.05 m/s K. The value of linear kinetic coefficient for silicon alloys is not reported but it is supposed to be smaller than that of silicon because the driving force for solute partition at interface would be additionally necessary. Therefore the value of linear kinetic coefficient used in the simulation is acceptable, and the agreement between simulations and experiment show that the conditions in the simulations have been appropriately assumed. Conclusions A detailed investigation on a two-dimensional faceted dendrite of silicon from the undercooled melt of silicon-6 wt%nickel alloy was conducted. In the experiments a thin film of molten silicon-nickel alloy was obtained by a simple but new method and it was undercooled from 20 to 115 K. Growth morphology of dendrites was in situ observed and dendrite growth velocity was measured at different undercooling. Crystallographic aspects were also examined by EBPS analysis of solidified samples. The conclusions obtained in the present work are followings. Both /2 1 1S twin dendrites and /1 0 0S twin-free dendrites are observed in the same range of the undercooling from 50 to 115 K and that rod-like crystals with /2 1 1S growth direction at small undercooling less than 50 K. Therefore no clear transition from a /2 1 1S twin dendrite to a /1 0 0S twin-free dendrite is confirmed. It is presumably due to the spatial constraint by sapphire plates. Growth velocity of /2 1 1S dendrites is slightly larger than that of /1 0 0S dendrites as expected but the difference is not large. However the measured growth velocity data are widely scattered and the quantitative comparison between both is difficult. Growth velocity of /2 1 1S dendrites is estimated from the upper envelope of the data and it follows a power relationship to undercooling with its exponent of about 1.5. Phase-field simulations have been carried out and the results are compared with experimental data. The agreement between both is satisfactory and the value of linear kinetic coefficient is estimated to be 0.01 m/s K. |
The influence of laterally inhomogeneous corrosion on electrical and optical calcium moisture barrier characterization. The reaction of calcium thin films with water - monitored optically or electrically - is widely used for evaluating ultrahigh barrier foils for the encapsulation of organic electronic devices. We studied the common optical and the electrical method and compared them with in situ atomic force microscope topography scans. All three methods were applied at the same sample in parallel in a typical test design containing a gas volume for water distribution next to the calcium layer of 60 and 1000 nm thickness, respectively. The common assumption for the interpretation of such measurement data is laterally homogeneous calcium consumption of the layer from top to bottom. In contrast, we observed a significant ratio of laterally inhomogeneous corrosion of the calcium on the micro-scale for both thicknesses. Some areas were strongly or completely corroded through the whole layer while others exhibited less or no corrosion. Furthermore, those corroded spots grew in lateral direction. As a consequence of lateral inhomogeneous calcium corrosion the electrical calcium measurement method underestimates the amount of calcium left; according to our results this does not affect the water vapor transmission rate (WVTR). Optical data evaluated by Lambert-Beer law underestimate the amount of calcium left as well and also underestimate the WVTR. If the data are evaluated, using a linear relationship between transmission and amount of calcium left, the both values are more precise. The scope of this study is to call attention to the existence of lateral inhomogeneity in calcium corrosion and its impact on the calcium permeation measurements. While more investigations would be needed to quantify the effect of this inhomogeneity on the electrical and optical method in general, the discussion sheds light on the way, calcium test data are influenced by lateral inhomogeneous calcium corrosion. Our observations highlight the need for careful interpretation of calcium test results, but also demonstrate its capabilities for precise ultrahigh barrier measurements. |
// flattenServiceLevelObjectiveServiceLevelIndicatorWindowsBasedGoodTotalRatioThresholdBasicSliPerformanceOperationLatency flattens an instance of ServiceLevelObjectiveServiceLevelIndicatorWindowsBasedGoodTotalRatioThresholdBasicSliPerformanceOperationLatency from a JSON
// response object.
func flattenServiceLevelObjectiveServiceLevelIndicatorWindowsBasedGoodTotalRatioThresholdBasicSliPerformanceOperationLatency(c *Client, i interface{}, res *ServiceLevelObjective) *ServiceLevelObjectiveServiceLevelIndicatorWindowsBasedGoodTotalRatioThresholdBasicSliPerformanceOperationLatency {
m, ok := i.(map[string]interface{})
if !ok {
return nil
}
r := &ServiceLevelObjectiveServiceLevelIndicatorWindowsBasedGoodTotalRatioThresholdBasicSliPerformanceOperationLatency{}
if dcl.IsEmptyValueIndirect(i) {
return EmptyServiceLevelObjectiveServiceLevelIndicatorWindowsBasedGoodTotalRatioThresholdBasicSliPerformanceOperationLatency
}
r.Threshold = dcl.FlattenString(m["threshold"])
r.Experience = flattenServiceLevelObjectiveServiceLevelIndicatorWindowsBasedGoodTotalRatioThresholdBasicSliPerformanceOperationLatencyExperienceEnum(m["experience"])
return r
} |
Xbox 360™ just keeps getting more entertaining. Microsoft Corp. today announced that TV series and movies from A&E Network, ADV Films, National Geographic and TotalVid.com will add to the more than 1,500 hours of downloadable entertainment content already available on Xbox LIVE® in the U.S.
Downloads on Xbox LIVE have grown in double-digits, month-over-month, with a 400 percent increase since the service began offering TV shows and movies late last year.
Xbox LIVE members have also enjoyed free entertainment content, which has been wildly successful. Comedy Central recently offered the first-ever high definition episode of the No. 1 show on its network, “South Park.” “Good Times With Weapons,” available for a limited time on Xbox LIVE, has been downloaded more than 380,000 times to date. Warner Bros. Home Entertainment offered promotional clips from the blockbuster hit movie “300” that have been downloaded more than 477,000 times.
Xbox LIVE is the first and most comprehensive unified online entertainment network seamlessly integrated throughout the entire console experience, making it easy for people to find the friends, games and entertainment they want from the moment they power on their Xbox 360 system. Xbox LIVE connects millions of members across 25 countries to enjoy hundreds of multiplayer games, downloadable games via Xbox LIVE Arcade, free and premium playable game demos, music videos, TV shows and movies in the United States as well as new game levels, characters and vehicles for all their favorite retail games. More information can be found online at http://www.xbox.com/en-us/live.
Note to editors: If you are interested in viewing additional information on Microsoft, please visit the Microsoft® Web page at http://www.microsoft.com/presspass on Microsoft’s corporate information pages. Web links, telephone numbers and titles were correct at time of publication, but may since have changed. For additional assistance, journalists and analysts may contact Microsoft’s Rapid Response Team or other appropriate contacts listed at http://www.microsoft.com/presspass/contactpr.mspx. |
. The article considers the possibility of the use of current infrastructure of specialized population registers of Ukraine to study leukemia and other systemic blood diseases revealed in Chernobyl accident liquidators. Advantage and limitation of such registers in the use are discussed in the article. Ukrainian state register of people who suffered from Chernobyl accident and Ukrainian national cancer registers are the largest population registers in the country, which cover all the territory of Ukraine and contain information on each individual and may serve as source base for epidemiological studies. To solve issues on leukemia and other oncological diseases is recommended to use in complex data of specialized registers of Ukraine. It should be also taken into account necessity of using late registered cases and verifying registered diagnoses. |
The Optimal Standardized Ileal Digestible Lysine and Total Sulfur Amino Acid Requirement for Finishing Pigs Fed Ractopamine Hydrochloride1 ABSTRACT A total of 1,887 pigs (97 kg initial BW) were used in a 28-d study to simultaneously examine standardized ileal digestible (SID) Lys and SID TSAA requirements of pigs fed diets containing 5 ppm ractopamine HCl. Four SID Lys (0.66, 0.79, 0.92, and 1.05%) and 4 SID TSAA (0.47, 0.52, 0.57, and 0.63%) concentrations were evaluated. Methionine hydroxy analog was used as the Met source. The diet with the greatest concentration of both Lys (1.05%) and TSAA (0.63%) was used in each of the Lys and TSAA titrations; hence, there were 7 diets but 8 treatments. The Lys diets were formulated with a minimum SID TSAA-to-Lys ratio of 69%, and the TSAA diets were formulated with 1.05% SID Lys. From d 0 to 28, increasing SID Lys increased ADG (linear, P P = 0.76). Increasing dietary SID Lys improved G:F (linear, P P = 0.09). Although the response was linear, the greatest improvement in G:F was observed as the SID TSAA increased from 0.47 to 0.52%, resulting in an optimal SID TSAA-to-Lys ratio of 57% (at 0.92% SID Lys). Regression analysis indicated that the maximum G:F was obtained with a SID TSAA-to-Lys ratio of 58%. In summary, a SID TSAA-to-Lys ratio of no more than 58% optimizes growth performance of finishing pigs fed 5 ppm ractopamine HCl. |
# def check(s):
# sum=0
# s = str(s)
# for i in s:
# sum+=int(i)
# if(sum%2==0 and int(s[len(s)-1])%2!=0):
# return True
# else:
# return False
#
# for _ in range(input()):
# n = input()
# s = raw_input()
# s = str(s)
# while(check(s)!=True and len(s)>0):
# even=0
# odd=0
# b = True
# v = True
# for i in s:
# if(int(i)%2==0):
# even+=1
# if(v):
# j=i
# v = False
# else:
# odd+=1
# if(b):
# k=i
# b = False
# if(even>odd):
# s.replace(j,"")
# else:
# s.replace(k,"")
# if(len(s)==0):
# print "-1"
# else:
# print s
# for _ in range(input()):
# n = input()
# s = raw_input()
# print len(s)
# while((int(s[len(s)-1]))%2==0 and len(s)>0):
# print len(s)
# s=s.replace(s[len(s)-1],"")
# print s
# if(len(s)==0):
# print "-1"
# else:
# for i in range(len(s)-1):
# if(int(s[i])%2!=0):
# s.replace(s[i],"")
# print s
for _ in range(int(input())):
n = input()
s = str(input())
ans = ""
count = 0
if(len(s)<2):
print ("-1")
else:
for i in s[::-1]:
if(int(i)%2!=0 and count<2):
ans+=i
count+=1
if(len(ans)>1):
print(ans[::-1])
else:
print("-1") |
Political instability. Drug-related violence. Poverty. Global warming. Although Mexico faces seemingly insurmountable challenges, the current government is taking innovative action to address these issues. One particularly significant step forward can be seen in initiatives to promote sustainable housing development for those most in need.
The Mexican Housing Authority estimates a deficit today of approximately 8.9 million homes — a number that increases annually by 200,000. With a total of 24.3 million homes in Mexico as of the 2005 census, the country needs more than 35% additional homes for the current population. This deficit results from a lack of real estate development and financing options, among other factors. According to the Global Property Guide, housing financing is available to only 10% of the total labor force. As a result, in 2000, as many as 70% of new homes in Mexico were constructed by individuals rather than developers. This number has since dropped to 30% due to government initiatives.
The deficit is expected to increase over the next two decades, while the population is projected to grow from 37.8 million people between the ages of 25 and 45 (the prime home-buying age group) in 2005 to 45.8 million by 2030, resulting in a dramatic upsurge in the number of potential buyers. The Global Property Guide indicates that the mortgage market represents only about 10% of GDP, which is “significantly smaller than other Organisation for Economic Co-operation and Development [OECD]-member countries,” suggesting that the market is underserved based on its potential.
In addition to housing deficit concerns, Mexico is already suffering from the effects of year-round climate change in terms of higher temperatures and lower rainfall. The Fourth Assessment Report of the Intergovernmental Panel on Climate Change predicts that temperatures could increase in Latin America by 0.4 to 1.8°C by 2020 and by 1 to 4°C by 2050, which would significantly increase the number of consecutive dry days and the length of heat waves in Mexico. Combined with reduced rainfall, this would intensify water shortages, which have become a serious national problem, particularly in Mexico’s urban centers.
In response, Mexico must move from a carbon-intensive to a carbon-neutral economy. At present, the country emits 715 million tons of carbon dioxide into the atmosphere each year. Total greenhouse gas emissions exceed the per capita emissions in Brazil and India and on par with those of China. Left unchecked, the consequences of climate change and water scarcity are expected to have adverse effects on social and financial conditions in Mexico.
Sustainable housing can help reduce these problems. In the context of Mexico, sustainable housing refers to the homes and communities developed with the objective of (a) reducing environmental impact through the use of ecological materials, equipment and practices; (b) improving the quality of life for society by creating a social fabric that fosters prosperous societies, as opposed to simply building commuter cities with little to no interaction among inhabitants, and (c) increasing access to financing for those in need while promoting savings through the efficient use of water and energy.
Through public-private-sector partnerships and attractive incentives, the sustainable housing initiative innovatively addresses several of Mexico’s problems, namely, the massive housing deficit, the marginalization of low-income families, a lack of social integration, and growing environmental concerns. To this end, the Mexican government, along with private-sector firms, have instituted sustainable housing-development initiatives as a means to ensure the country’s economic, social and environmental viability.
When President Felipe Calderón took office in late 2006, his administration proactively began to address deficiencies in the housing market. In response to this new mandate, in early 2007, the federal housing commission, CONAVI, initiated the National Housing Program — an aggressive plan to construct six million homes by 2012, roughly one million of which are to be sustainable. The government soon elevated the program to legal stature and developed a multi-pronged execution strategy targeting several issues, such as access to financing, options for low-income residents and the availability of “green” (i.e., environmentally friendly) housing.
To promote economic and social sustainability, the National Housing Program has put forth objectives to expand financing coverage for low-income families and marginalized groups, such as indigenous populations, single mothers and senior citizens. For example, in 2007, CONAVI launched Ésta es tu Casa (“This Is Your Home”),a program to provide subsidies worth 20%-25% of the acquisition costs of homes for families earning up to four times the minimum wage (74,000 pesos or roughly US$6,000 per annum). To help fast-track such initiatives, the government granted contracts, credits and favorable financing terms to private developers constructing green or low-income homes.
In addition, CONAVI also partnered with INFONAVIT (the National Workers Housing Institute) to ensure the provision of approximately 500,000 mortgages per year, including funding for low-income families. To reach the lowest-income populations, organizations such as FONHAPO (the National Peoples Housing Trust) and SEDESOL (the Secretariat for Social Development) provide mortgages to those without credit histories, to seasonal or temporary workers and to those participating in Mexico’s large informal economy.
The Mexican government and CONAVI have made environmental sustainability another clear priority. CONAVI’s National Housing Program includes the regulation and standardization of green-housing modifications and norms to maintain high-quality, environmentally sustainable housing options. It also promotes green mortgages and subsidies, and has led to the launch of pilot training programs to educate the population on the benefits and operation of sustainable homes.
To standardize and promote green housing development, CONAVI developed the Paquete Básico (“Basic Package”), a set of environmentally sustainable criteria that address site and terrain viability, water and waste management, and energy usage and insulation. CONAVI offered families purchasing homes that complied with the Paquete Básico an additional subsidy of 20%, in addition to the potential 20%-25% from the Ésta es tu Casa program. In 2008, CONAVI further expanded its commitment to environmental sustainability by modifying the subsidy program to make the Paquete Básico a requirement of all homes eligible for a single subsidy of 20%.
In addition to subsidy programs for homeowners, INFONAVIT has committed to offering green mortgages to some low-income families. These mortgages contain (a) higher up-front costs to acquire green modifications and (b) a payment plan that takes into account the long-term utility savings, allowing low-income families to purchase green homes that have larger capital requirements.
With this government initiative in place, Mexico needed the participation of the private sector to boost the supply of sustainable housing options. CONAVI, in conjunction with several other organizations, instituted the DUIS (Integrated Sustainable Urban Development) certification program, whereby certified developments are eligible for government financing for infrastructure and housing construction, equipment and land acquisition, bond structuring, promotion of private investment, and technical assistance.
According to CONAVI’s Director of Construction and Technology, Cristina Gonzalez Zertuche, “The DUIS doesn’t only address the concept of the home, but as the name suggests, it addresses the entire community while integrating the home with its environment.” DUIS certification allows private developers to undertake sustainable housing projects under more favorable financing terms. This is particularly significant given the restricted capital markets and otherwise sparse government loans — financial conditions that often leave housing projects at a standstill. The overriding goal of this model is to promote the coordinated participation of federal, state and local governments to develop holistically sustainable projects that address infrastructure, transportation, public-space utility and the green nature of the homes.
The benefits of a multi-tiered approach involving several public-sector organizations and private-sector developers quickly became apparent through a test run of the National Housing Program in 2007-2008. The pilot program built 5,000 homes in the northeastern state of Nuevo Leon and bordering Tamaulipas. These modular, replicable homes were constructed in conjunction with state-level organizations, private developers and top universities as an opportunity to test new technologies, measure economic and environmental benefits, study the broad-scale feasibility of the DUIS program and promote inter-organizational cooperation. Private-sector developers took an active role in determining how the private sector would set the pace for sustainable housing development in the future. According to Gonzalez Zertuche, the pilot program’s success and the extent of cooperative involvement of such a diverse range of entities has created a strong sense of optimism toward achieving the National Housing Program’s goals for 2012.
Following the success of the pilot program, the private sector seized the opportunity to undertake large-scale sustainable housing developments. The five biggest independent developers in Mexico are Urbi, Geo, ARA, Homex and Sare. Urbi, with a 7% share of the market, pioneered the first government-backed sustainable housing project and has since been setting standards for other developers.
Urbi’s DUIS-certified project serves as an instructive example of the private sector’s role in implementing the government’s vision and subsequently promoting social, economic and environmental sustainability. In 2007, the government approved Urbi’s proposed macro sustainable housing project in Valle de Las Palmas (Tijuana, Baja California), calling the “sustainable city” a new development paradigm. The goal over the next five years is to build 100,000 homes there and, over the next 20 years, enough homes to support a population equal to the size of Tijuana today (i.e., more than a million inhabitants). The housing development targets the “social-interest” segment of the population, comprised of workers who earn less than four times the minimum wage.
With the unified support of national government agencies, Urbi was able to bring on board the local government of Baja, California, the municipal government of Tijuana, and other outside organizations, such as the World Bank. The resulting public-private partnership allowed the project to move forward efficiently in all aspects of its development, from legal hurdles — such as building permits — to more technical considerations, such as the system design of the water supply.
Beyond logistical advantages, this public-private partnership was instrumental in making the project financially viable. According to the head of Urbi’s Corporate Communications, Alma Beltran Rosales, and the project leader for Urbi’s Innovation and Sustainable Growth Program, Fernando Mayagoitia, four key factors support profitability. The first, and most significant, is scale. In the first phase of construction, from 2007 to 2010, Urbi built 10,000 houses. The company plans to add continually to this number over the next 20 years, allowing it to take advantage of significant economies of scale. The second factor relates to access to capital and favorable interest rates. The government provides capital at favorable interest rates that, in turn, encourage private-sector banks to offer lower rates because government support often translates into lower risk.
Accordingly, during the first phase of development, Urbi received 100 million pesos (US$7.7 million) from public funds and 350 million pesos (US$27.0 million) from private funds. The third factor relates to the perceived appreciation of Urbi’s land, given the 20-year commitment to the macro project. The final factor is revenue generated from carbon-emissions trading. Urbi earns credits through its developments by reducing carbon emissions, which it can then sell on the open market.
These favorable political and financial conditions have given rise to Valle San Pedro of Valle Las Palmas — the seed community of a modern, sustainable city recognized in August 2010 as one of the 15 most innovative macro projects in Latin America. After phase one is completed this year, 10,000 homebuyers will have the opportunity to buy subsidized, high-quality homes designed to be environmentally, socially and economically sustainable.
Valle Las Palmas’ environmental impact is significant, as the city has extensive infrastructure for water treatment and reuse, renewable energy and waste recycling. The water supply comprises a mix of reservoir water, treated salt water and recycled water, all processed at a hydraulic facility. The city’s energy sources are just as diverse, incorporating solar energy, wind energy and methane gas. These varied resources, in turn, help to fuel the on-site waste-recycling facilities.
In the area of social sustainability, Urbi encourages all community members to share the right and obligation to maintain a clean and organized environment, with the objective of raising the collective standard of living. On a more practical level, the Valle Las Palmas developers have also incorporated employment and educational opportunities into the community design. The site was chosen, in part, for its proximity to the Tacoma automobile factory, where Toyota recently invested 461 million pesos (US$37 million) in plant expansion. In addition, Urbi designated 500 of 1,900 acres to an industrial complex that has the potential to generate 8,000 new jobs. Moreover, the federal government has promoted investment in new industrial plants in sectors already active in the area. With regard to education, in 2007 Urbi donated land to the Universidad Autónoma de Baja California. The new Valle Las Palmas campus opened this year with an initial enrollment of 4,000 students.
With regard to economic sustainability from the consumer standpoint, CONAVI and INFONAVIT offer targeted buyers favorable financing terms. For an average Valle Las Palmas home priced at 212,000 pesos (US$16,500), the typical buyer will make a small down payment of approximately 7,400 pesos (US$600) in savings, which is then complemented with a subsidy of 34,500 pesos (US$2,800) and a credit of 162,000 pesos (US$13,100) through the green-mortgage program. Reduced utility bills over the long term are expected to compensate for sustainable housing price premiums not already covered by the subsidy.
While the Mexican government has made a bold decision to address the ongoing housing deficit and environmental deterioration, many challenges persist. Perhaps the greatest threat to the sustainable housing program is the instability of Mexico’s political system. In the recent state and local elections of July 2010, the opposing political party, the Institutional Revolutionary Party (PRI), won the majority of the neutral states and could potentially regain the presidency in 2012. Many wonder how a political turnover will affect the sustainable housing projects and whether a new government will choose to continue to pursue the goals set by CONAVI and the Calderón administration.
Considering the global financial standstill and the constrained access to liquidity and credit, it is questionable whether the Mexican government has sufficient funds to continue financing these housing initiatives. Approximately 40% of the national revenue is generated by PEMEX, the state-owned petroleum company. Revenues are plummeting as a result of the company’s inefficient management and the rapid depletion of the country’s petroleum reserves. It is unclear how this will affect the budget in the medium term.
Furthermore, one should also consider the social implications of building sustainable housing developments away from city centers. As Gonzalez Zertuche noted, “The demand definitely exists, especially due to new young families and a growing population — this has been studied. In addition, there is an abundance of homes that need to be improved, generating additional demand for renovation. If such homes are sustainable and compliant with the requirements, they, too, will receive credits and subsidies.” Given worldwide urban migration trends, it is quite possible that said demand will be concentrated in Mexico’s most populated cities, leading to decreased occupancy rates in housing developments outside city limits. This could be troublesome for public safety and the maintenance of theoretically “sustainable” communities. Alberto Chaia, a McKinsey Partner based in Mexico City, challenged CONAVI’s decisions, arguing that Mexico should focus on building vertically — rather than horizontally — since commuting is both a financial burden on the worker and an environmental burden on the atmosphere.
This then begs the question of how well CONAVI, INFONAVIT, the private-sector developers and other intermediaries are able to cooperate and provide the necessary education and training to mitigate this. Ramírez continues, “Overall, the integration of solutions for sustainable housing represents serious hurdles for INFONAVIT. Those taking on the mortgages are not sufficiently educated to understand or value the positive impact they are having. There isn’t a legal body tasked with supervising the maintenance and proper use of green modifications.” Ramírez, in association with ITESM, has proposed the implementation of community training centers to conduct programs to educate such communities about the culture of sustainability. In addition, he has also questioned (a) the ability of the government and the homebuilders to perform adequate quality control on the sustainable technologies incorporated in the projects and (b) whether these green technologies are transferrable across Mexico’s distinctive climates, from the northern deserts to the southern tropics. In general, it is unclear whether these large-scale housing projects are, indeed, replicable across Mexico and the rest of Latin America.
Despite these questions and concerns, the initial achievements and anticipated long-term impacts of the program arguably outweigh the challenges. After all, risk is an essential component of any large-scale, innovative initiative. With regard to social sustainability, the sustainable housing projects have already succeeded in offering homes to individuals who were previously unable to obtain mortgages. The concept of integrally sustainable communities has significant potential to generate a positive cycle whereby higher-quality houses, cleaner water, cheaper utilities and improved access to education and employment opportunities will start replacing the cycle of poverty that fuels deep social problems.
From an economic perspective, all the parties involved have access to appropriate financial incentives. For instance, INFONAVIT guarantees homebuyers’ mortgages and covers their down payments on sustainable houses, which in turn generate savings from the efficient use of water and electricity. Likewise, DUIS certification assures developers access to more attractive financing solutions and indirectly introduces these companies to a large pool of potential clients.
As of 2010, five DUIS-certified sustainable housing projects are underway across Mexico. These developments are already having an environmental impact, with reductions in carbon emissions, water contamination, and other pollutants. The wave of sustainable housing projects is expected to gain strength in the near term, Greener communities are expected to serve as models for housing development, subsequently encouraging other communities to adopt best practices for water, energy, and waste efficiency.
Large-scale sustainable housing developments in Mexico are proving to be a creative and inspiring approach to addressing the housing deficit, environmental degradation, and the lack of access to home financing for Mexico’s lower-income families. Projects such as Urbi’s Valle Las Palmas incorporate the social, economic, and environmental elements necessary to achieve long-term sustainability. The Mexican government has successfully managed to align the interests of private-sector developers with those of numerous public-sector entities. Although it is difficult to truly quantify this impact, it is hoped that the material successes to date will inspire public confidence and set an example for collaboration that will propel Mexico’s sustainable housing initiatives into the future.
This paper was written by Filip Maes, Andrés Modak, Mona Safabakhsh and Hannah Tucker, members of the Lauder Class of 2012. |
# -*- coding: utf-8 -*-
"""
:author: <NAME> (李辉)
:url: http://greyli.com
:copyright: © 2018 <NAME> <<EMAIL>>
:license: MIT, see LICENSE for more details.
"""
from flask import render_template, flash, redirect, url_for, Blueprint, request
from flask_login import login_user, logout_user, login_required, current_user
from catchat.extensions import db
from catchat.models import User
auth_bp = Blueprint('auth', __name__)
@auth_bp.route('/login', methods=['GET', 'POST'])
def login():
if current_user.is_authenticated:
return redirect(url_for('chat.home'))
if request.method == 'POST':
email = request.form['email']
password = request.form['password']
remember_me = request.form.get('remember', False)
if remember_me:
remember_me = True
user = User.query.filter_by(email=email).first()
if user is not None:
if user.password_hash is None:
flash('Please use the third party service to log in.')
return redirect(url_for('.login'))
if user.verify_password(password):
login_user(user, remember_me)
return redirect(url_for('chat.home'))
flash('Either the email or password was incorrect.')
return redirect(url_for('.login'))
return render_template('auth/login.html')
@auth_bp.route('/logout')
@login_required
def logout():
logout_user()
return redirect(url_for('chat.home'))
@auth_bp.route('/register', methods=['GET', 'POST'])
def register():
if current_user.is_authenticated:
return redirect(url_for('main.index'))
if request.method == 'POST':
email = request.form['email'].lower()
user = User.query.filter_by(email=email).first()
if user is not None:
flash('The email is already registered, please log in.')
return redirect(url_for('.login'))
nickname = request.form['nickname']
password = request.form['password']
user = User(nickname=nickname, email=email)
user.set_password(password)
db.session.add(user)
db.session.commit()
login_user(user, remember=True)
return redirect(url_for('chat.profile'))
return render_template('auth/register.html')
|
def calc_loss_psnr(gen_images, images, name, hparams=None, use_l1_loss=False):
del hparams
with tf.name_scope(name):
loss, error, psnr_all = 0.0, 0.0, 0.0
for _, x, gx in zip(range(len(gen_images)), images, gen_images):
recon_cost = mean_squared_error(x, gx)
if use_l1_loss:
recon_cost = l1_error(x, gx)
error_i = l1_error(x, gx)
psnr_i = peak_signal_to_noise_ratio(x, gx)
psnr_all += psnr_i
error += error_i
loss += recon_cost
psnr_all /= tf.to_float(len(gen_images))
loss /= tf.to_float(len(gen_images))
error /= tf.to_float(len(gen_images))
tf.summary.scalar('psnr_all', psnr_all)
tf.summary.scalar('loss', loss)
return loss, psnr_all |
<reponame>Biolunar/linux_syscall<gh_stars>1-10
#include <liblinux/linux.h>
extern inline linux_error_t linux_setpgid(linux_pid_t pid, linux_pid_t pgid);
|
BANGKOK (Reuters) - Divers in Thailand found “quite a lot of bodies” inside a tourist boat that capsized and sank off the coast of the southern island of Phuket, a deputy navy commander, Rear Admiral Chareonpol Kumrasee, told Reuters on Friday.
The death toll reached 27, with 29 people missing, but the chances of survival for the missing were low, Chareonpol said.
The boat, called the Phoenix, was carrying 105 passengers, comprising 93 Chinese tourists and 12 Thai crew and tourist guides when it capsized, said officials. As many as 49 were rescued, while a search for the rest continues. |
package com.wooki;
public class WookiRequestConstants
{
public static final String UPLOADED_FOLDER = "uploaded/";
}
|
/**
* Forwards TCP traffic between two sockets.
* Sends everything from socket 1 input stream to socket 2 outputstream.
* In case of any error on either socket, the parent tunnel is closed.
*/
public class Forwarder extends Thread {
/** Socket 1 inputstream. */
private InputStream is;
/** Socket 2 outputstream. */
private OutputStream os;
/** The TCP tunnel this forwarder is part of. */
private TCPTunnel parent;
/** Configuration parameters. */
private final Params params;
/** The observers to pass all data through. Logging the data etc. */
private final List<TCPObserver> observers;
/**
* @param parent The TCP tunnel containing this forwarder.
* @param is Inputstream for socket 1, to connect to the outputstream.
* @param os Outputstream for socket 2, to connect to the inputstream.
* @param params Configuration parameters.
* @param up If true, we pass all data going through to upstream observers.
* @param sourceAddr Source address of the stream (up- or down-stream). For logging purposes...
*/
public Forwarder(TCPTunnel parent, InputStream is, OutputStream os, Params params, boolean up, String sourceAddr) {
this.parent = parent;
this.is = is;
this.os = os;
this.params = params;
if (up) this.observers = params.createUpObservers(sourceAddr);
else this.observers = params.createDownObservers(sourceAddr);
}
/**
* Continously reads the input stream and writes the data to the output stream.
* In between passes all the data to any registered observers.
* In case of error on either socket, notifies the parent TCP tunnel to close.
*/
public void run() {
byte[] buffer = new byte[params.getBufferSize()];
try {
while (true) {
int bytesRead = is.read(buffer);
if (bytesRead == -1) break; // End of stream is reached --> exit
for (TCPObserver observer : observers) {
observer.observe(buffer, 0, bytesRead);
}
os.write(buffer, 0, bytesRead);
os.flush();
}
} catch (IOException e) {
// Read/write failed --> connection is broken
}
// params.getUpObservers().forEach(TCPObserver::connectionBroken);
// params.getDownObservers().forEach(TCPObserver::connectionBroken);
//Notify the parent tunnel that the connection is broken
parent.connectionBroken();
}
} |
<filename>asn1c_defs/X2N_CoMPInformationStartTime.c
/*
* Generated by asn1c-0.9.29 n1 (http://lionet.info/asn1c)
* From ASN.1 module "X2AP-IEs"
* found in "../../asn_defs/asn1/x2ap-15-04.asn"
* `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`
*/
#include "X2N_CoMPInformationStartTime.h"
#include "X2N_ProtocolExtensionContainer.h"
static int
memb_X2N_startSFN_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
if((value >= 0 && value <= 1023)) {
/* Constraint check succeeded */
return 0;
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_X2N_startSubframeNumber_constraint_2(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
long value;
if(!sptr) {
ASN__CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
value = *(const long *)sptr;
if((value >= 0 && value <= 9)) {
/* Constraint check succeeded */
return 0;
} else {
ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static asn_per_constraints_t asn_PER_memb_X2N_startSFN_constr_3 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 10, 10, 0, 1023 } /* (0..1023,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
static asn_per_constraints_t asn_PER_memb_X2N_startSubframeNumber_constr_4 CC_NOTUSED = {
{ APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 0, 9 } /* (0..9,...) */,
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
0, 0 /* No PER value map */
};
asn_per_constraints_t asn_PER_type_X2N_CoMPInformationStartTime_constr_1 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 1, 1, 0, 1 } /* (SIZE(0..1)) */,
0, 0 /* No PER value map */
};
static asn_TYPE_member_t asn_MBR_X2N_Member_2[] = {
{ ATF_NOFLAGS, 0, offsetof(struct X2N_CoMPInformationStartTime__Member, startSFN),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
0,
{ 0, &asn_PER_memb_X2N_startSFN_constr_3, memb_X2N_startSFN_constraint_2 },
0, 0, /* No default value */
"startSFN"
},
{ ATF_NOFLAGS, 0, offsetof(struct X2N_CoMPInformationStartTime__Member, startSubframeNumber),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_NativeInteger,
0,
{ 0, &asn_PER_memb_X2N_startSubframeNumber_constr_4, memb_X2N_startSubframeNumber_constraint_2 },
0, 0, /* No default value */
"startSubframeNumber"
},
{ ATF_POINTER, 1, offsetof(struct X2N_CoMPInformationStartTime__Member, iE_Extensions),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_X2N_ProtocolExtensionContainer_8231P120,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
"iE-Extensions"
},
};
static const int asn_MAP_X2N_Member_oms_2[] = { 2 };
static const ber_tlv_tag_t asn_DEF_X2N_Member_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_X2N_Member_tag2el_2[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* startSFN */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* startSubframeNumber */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
};
static asn_SEQUENCE_specifics_t asn_SPC_X2N_Member_specs_2 = {
sizeof(struct X2N_CoMPInformationStartTime__Member),
offsetof(struct X2N_CoMPInformationStartTime__Member, _asn_ctx),
asn_MAP_X2N_Member_tag2el_2,
3, /* Count of tags in the map */
asn_MAP_X2N_Member_oms_2, /* Optional members */
1, 0, /* Root/Additions */
3, /* First extension addition */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_X2N_Member_2 = {
"SEQUENCE",
"SEQUENCE",
&asn_OP_SEQUENCE,
asn_DEF_X2N_Member_tags_2,
sizeof(asn_DEF_X2N_Member_tags_2)
/sizeof(asn_DEF_X2N_Member_tags_2[0]), /* 1 */
asn_DEF_X2N_Member_tags_2, /* Same as above */
sizeof(asn_DEF_X2N_Member_tags_2)
/sizeof(asn_DEF_X2N_Member_tags_2[0]), /* 1 */
{ 0, 0, SEQUENCE_constraint },
asn_MBR_X2N_Member_2,
3, /* Elements count */
&asn_SPC_X2N_Member_specs_2 /* Additional specs */
};
asn_TYPE_member_t asn_MBR_X2N_CoMPInformationStartTime_1[] = {
{ ATF_POINTER, 0, 0,
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
0,
&asn_DEF_X2N_Member_2,
0,
{ 0, 0, 0 },
0, 0, /* No default value */
""
},
};
static const ber_tlv_tag_t asn_DEF_X2N_CoMPInformationStartTime_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
asn_SET_OF_specifics_t asn_SPC_X2N_CoMPInformationStartTime_specs_1 = {
sizeof(struct X2N_CoMPInformationStartTime),
offsetof(struct X2N_CoMPInformationStartTime, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_X2N_CoMPInformationStartTime = {
"CoMPInformationStartTime",
"CoMPInformationStartTime",
&asn_OP_SEQUENCE_OF,
asn_DEF_X2N_CoMPInformationStartTime_tags_1,
sizeof(asn_DEF_X2N_CoMPInformationStartTime_tags_1)
/sizeof(asn_DEF_X2N_CoMPInformationStartTime_tags_1[0]), /* 1 */
asn_DEF_X2N_CoMPInformationStartTime_tags_1, /* Same as above */
sizeof(asn_DEF_X2N_CoMPInformationStartTime_tags_1)
/sizeof(asn_DEF_X2N_CoMPInformationStartTime_tags_1[0]), /* 1 */
{ 0, &asn_PER_type_X2N_CoMPInformationStartTime_constr_1, SEQUENCE_OF_constraint },
asn_MBR_X2N_CoMPInformationStartTime_1,
1, /* Single element */
&asn_SPC_X2N_CoMPInformationStartTime_specs_1 /* Additional specs */
};
|
Inkjet printers have widely been used as the output device of the computer. Ink as an expendable for the inkjet printer is generally kept in an ink cartridge. One proposed method of measuring the residual quantity of ink kept in the ink cartridge utilizes a piezoelectric element to attain direct measurement, as disclosed in Japanese Patent Laid-Open Gazette No. 2001-147146.
This proposed method first applies a voltage wave to the piezoelectric element attached to the ink cartridge to vibrate a vibrating element of the piezoelectric element. The method then detects a variation in cycle of counter electromotive force, which is caused by remaining vibration in the vibrating element of the piezoelectric element, to measure the residual quantity of the expendable.
This prior art method, however, has a drawback that unintentional vibration noise lower an S/N ratio to interfere with accurate measurement. A great work load has been applied to manually adjust the circuit settings of individual ink cartridges for an increase in S/N ratio. This problem is not restricted to the ink cartridges but is commonly found in any expendable containers having a function of utilizing a piezoelectric element to measure the residual quantity of an expendable kept therein. |
package model.parsers;
import android.util.Log;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import java.io.IOException;
import java.io.StringReader;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
/**
* Created by Fechner on 10/4/15.
*/
public class XMLParser {
public static Document getDomElement(String xml){
if(xml == null || xml.length() < 1){
return null;
}
Document doc = null;
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
try {
DocumentBuilder db = dbf.newDocumentBuilder();
InputSource is = new InputSource();
is.setCharacterStream(new StringReader(xml));
doc = db.parse(is);
} catch (ParserConfigurationException e) {
Log.e("Error: ", e.getMessage());
return null;
} catch (SAXException e) {
Log.e("Error: ", e.getMessage());
return null;
} catch (IOException e) {
Log.e("Error: ", e.getMessage());
return null;
}
// return DOM
return doc;
}
public static Element getElement(NodeList nodes, String key){
for (int i = 0; i < nodes.getLength(); i++) {
if (nodes.item(i) instanceof Element) {
Element element = (Element) nodes.item(i);
String tagName = element.getTagName();
if(tagName.equalsIgnoreCase(key)){
return element;
}
}
}
return null;
}
}
|
Binding of the endogenously expressed EpsteinBarr virus (EBV) envelope glycoprotein gp350 with the viral receptor masks the major EBVneutralizing epitope and affects gp350specific ADCC The major neutralizing epitope (MNE) for the EpsteinBarr virus (EBV) is present on its envelope glycoprotein gp350/220 (hereafter referred to as gp350) in close proximity to the virusreceptor (CR2) binding site and is recognized by the neutralizing murine monoclonal antibody (mAb) 72A1. We studied the reactivities of 72A1 and another antigp350 mAb 2L10 (which does not neutralize EBV) with gp350 expressed on three different lymphoid cell lines (Raji, CEM.NKr and BJAB). Our results indicate that gp350 expressed on the surface of CR2positive cells interacts with the viral receptor and that this interaction masks the major EBVneutralizing epitope. The interaction was reversible and the masked epitope was revealed on incubation with an excess of antiCR2 mAb OKB7. Gp350expressing CEMNKr cells with intact MNE exhibited significantly higher (P ≤ 0.05) lysis in gp350specific antibodydependent cellular cytotoxic assays compared with its Raji counterpart. The present results may have important implications for the use of soluble viral receptors as therapeutic agents in acute and chronic EBV and other viral infections (e.g., HIV1). J. Leukoc. Biol. 64: 192197; 1998. |
Research on the evolution of serrated chips in high-speed cutting based on digital microscope Abstract Serrated chip is a typical characteristic of high-speed cutting. It is an important aspect of high-speed cutting mechanism, and has significant influence on cutting force, cutting temperature and tool wear. For the observation of serrated chip, optical microscope (OM) and scanning electron microscope (SEM) are usually used. The main problem of OM observation is time-consuming and that of SEM observation is high cost. Therefore, a new serrated chip observation method based on digital microscope(DM)was proposed. The advantage of this method is that the experimental chip can be observed directly, so plenty of preparation time of metallographic sample is saved, and the cost of it is also lower. Relevant parameters, including segment spacing, tooth top height and tooth root height, can be measured by depth synthesis function. This will greatly facilitate the quantitative study of serrated chip, and thus promote the in-depth study of high-speed cutting. The validity of the proposed method was verified by comparing the observation results of OM and DM. The advantages and disadvantages of the proposed method were also discussed. Furthermore, the serrated chips in high-speed cutting of Ti6Al4V alloy and AISI 1045 steel were studied. The results show that whether it's Ti6Al4V alloy or AISI 1045 steel, the degree of segmentation increases with the increase of cutting speed and depth of cut, and decreases with the increase of rake angle. The segment spacing decreases with the increase of cutting speed and rake angle, but increases with the increase of depth of cut. The mechanism of serrated chip changing with cutting parameters was analyzed based on adiabatic shear theory. |
// Distributed under the BSD 2-Clause License - Copyright 2012-2021 <NAME>
#pragma once
#include <aeon/common/assert.h>
#include <vector>
#include <string>
#include <limits>
#include <algorithm>
#include <ostream>
namespace aeon::common
{
template <typename T>
class string_table
{
static constexpr auto npos = std::numeric_limits<std::size_t>::max();
public:
explicit string_table() noexcept;
explicit string_table(std::string str) noexcept;
~string_table();
string_table(const string_table &) noexcept = default;
auto operator=(const string_table &) noexcept -> string_table & = default;
string_table(string_table &&) noexcept = default;
auto operator=(string_table &&) noexcept -> string_table & = default;
auto operator=(std::string str) noexcept -> string_table &;
[[nodiscard]] auto str() const noexcept -> const std::string &;
[[nodiscard]] static auto size() noexcept;
[[nodiscard]] static auto str(const std::size_t i) -> const std::string &;
template <typename U>
friend auto operator==(const string_table<U> &lhs, const string_table<U> &rhs) noexcept -> bool;
template <typename U>
friend auto operator!=(const string_table<U> &lhs, const string_table<U> &rhs) noexcept -> bool;
private:
[[nodiscard]] static auto table() noexcept -> std::vector<std::string> &;
void init(std::string str);
std::size_t index_;
};
template <typename T>
inline string_table<T>::string_table() noexcept
: index_{npos}
{
}
template <typename T>
inline string_table<T>::string_table(std::string str) noexcept
: index_{}
{
init(std::move(str));
}
template <typename T>
inline string_table<T>::~string_table() = default;
template <typename T>
inline auto string_table<T>::operator=(std::string str) noexcept -> string_table &
{
init(std::move(str));
return *this;
}
template <typename T>
[[nodiscard]] inline auto string_table<T>::str() const noexcept -> const std::string &
{
if (index_ == npos)
{
static const std::string str;
return str;
}
aeon_assert_index_bounds(index_, std::size(table()));
return table()[index_];
}
template <typename T>
[[nodiscard]] inline auto string_table<T>::size() noexcept
{
return std::size(table());
}
template <typename T>
[[nodiscard]] inline auto string_table<T>::str(const std::size_t i) -> const std::string &
{
aeon_assert_index_bounds(i, std::size(table()));
return table().at(i);
}
template <typename T>
[[nodiscard]] inline auto string_table<T>::table() noexcept -> std::vector<std::string> &
{
static std::vector<std::string> table;
return table;
}
template <typename T>
inline void string_table<T>::init(std::string str)
{
if (str.empty())
{
index_ = npos;
return;
}
const auto result =
std::find_if(std::begin(table()), std::end(table()), [&str](const auto &s) { return s == str; });
if (result != std::end(table()))
{
index_ = std::distance(std::begin(table()), result);
return;
}
table().emplace_back(std::move(str));
index_ = std::size(table()) - 1;
}
template <typename U>
inline auto operator==(const string_table<U> &lhs, const string_table<U> &rhs) noexcept -> bool
{
return lhs.index_ == rhs.index_;
}
template <typename U>
inline auto operator!=(const string_table<U> &lhs, const string_table<U> &rhs) noexcept -> bool
{
return !(lhs == rhs);
}
template <typename T>
inline auto operator==(const string_table<T> &lhs, const std::string &rhs) noexcept -> bool
{
return lhs.str() == rhs;
}
template <typename T>
inline auto operator!=(const string_table<T> &lhs, const std::string &rhs) noexcept -> bool
{
return !(lhs == rhs);
}
template <typename T>
inline auto operator==(const std::string &lhs, const string_table<T> &rhs) noexcept -> bool
{
return lhs == rhs.str();
}
template <typename T>
inline auto operator!=(const std::string &lhs, const string_table<T> &rhs) noexcept -> bool
{
return !(lhs == rhs);
}
template <typename T>
inline auto operator<(const string_table<T> &lhs, const string_table<T> &rhs) noexcept -> bool
{
return lhs.str() < rhs.str();
}
template <typename T>
inline auto operator<=(const string_table<T> &lhs, const string_table<T> &rhs) noexcept -> bool
{
return lhs.str() <= rhs.str();
}
template <typename T>
inline auto operator>(const string_table<T> &lhs, const string_table<T> &rhs) noexcept -> bool
{
return lhs.str() > rhs.str();
}
template <typename T>
inline auto operator>=(const string_table<T> &lhs, const string_table<T> &rhs) noexcept -> bool
{
return lhs.str() >= rhs.str();
}
template <typename T>
inline auto operator<<(std::ostream &os, const string_table<T> &str) -> std::ostream &
{
return os << str.str();
}
} // namespace aeon::common
|
def namespace_prefix(namespace):
EXEMPI.xmp_namespace_prefix.restype = check_error
EXEMPI.xmp_namespace_prefix.argtypes = [ctypes.c_char_p, ctypes.c_void_p]
_prefix = _string_new()
EXEMPI.xmp_namespace_prefix(namespace.encode('utf-8'), _prefix)
prefix = string_cstr(_prefix)
_string_free(_prefix)
return prefix |
<filename>src/main/java/se/bettercode/scrum/team/SmurfTeam.java<gh_stars>0
package se.bettercode.scrum.team;
public class SmurfTeam extends TeamImpl {
public SmurfTeam() {
super("The Smurfs", 15);
}
}
|
<filename>jsoup/3f7d2c71dbbbb289c684f339874eed8ac2747fa0/randoop_5/RegressionTest5.java
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RegressionTest5 {
public static boolean debug = false;
@Test
public void test02501() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02501");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.contentType;
org.jsoup.Connection.Request request13 = response1.req;
java.nio.ByteBuffer byteBuffer14 = response1.byteData;
java.nio.ByteBuffer byteBuffer15 = response1.byteData;
org.jsoup.Connection.Response response17 = response1.removeHeader("hi!");
java.nio.ByteBuffer byteBuffer18 = null;
response1.byteData = byteBuffer18;
java.lang.String str21 = response1.header("hi!");
java.nio.ByteBuffer byteBuffer22 = null;
response1.byteData = byteBuffer22;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertNull(byteBuffer14);
org.junit.Assert.assertNull(byteBuffer15);
org.junit.Assert.assertNotNull(response17);
org.junit.Assert.assertNull(str21);
}
@Test
public void test02502() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02502");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
org.jsoup.Connection.Method method12 = response1.method();
org.jsoup.Connection.Response response14 = response1.removeCookie("");
java.lang.String str15 = response1.charset;
java.util.Map<java.lang.String, java.lang.String> strMap16 = response1.headers();
boolean boolean18 = response1.hasCookie("hi!");
int int19 = response1.statusCode;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(method12);
org.junit.Assert.assertNotNull(response14);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNotNull(strMap16);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 0 + "'", int19 == 0);
}
@Test
public void test02503() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02503");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response7 = response1.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
org.jsoup.Connection.Response response10 = response1.removeCookie("");
int int11 = response1.numRedirects;
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
java.lang.String str14 = response1.contentType;
org.jsoup.Connection.Request request15 = null;
response1.req = request15;
response1.charset = "hi!";
response1.statusCode = 'a';
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertNull(str14);
}
@Test
public void test02504() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02504");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response7 = response1.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
java.util.Map<java.lang.String, java.lang.String> strMap9 = response1.cookies();
int int10 = response1.statusCode;
org.jsoup.Connection.Response response12 = response1.removeCookie("");
java.lang.String str13 = response1.contentType();
org.jsoup.Connection.Method method14 = response1.method();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNotNull(strMap9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertNotNull(response12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(method14);
}
@Test
public void test02505() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02505");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.net.URL uRL12 = response1.url();
response1.statusMessage = "";
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry16 = response1.scanHeaders("");
org.jsoup.Connection.Response response19 = response1.header("hi!", "hi!");
java.lang.String str20 = response1.statusMessage();
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response22 = response1.removeHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(uRL12);
org.junit.Assert.assertNull(strEntry16);
org.junit.Assert.assertNotNull(response19);
org.junit.Assert.assertEquals("'" + str20 + "' != '" + "" + "'", str20, "");
}
@Test
public void test02506() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02506");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
boolean boolean6 = response1.hasCookie("");
int int7 = response1.statusCode;
org.jsoup.Connection.Request request8 = response1.req;
org.jsoup.Connection.Request request9 = response1.req;
java.nio.ByteBuffer byteBuffer10 = response1.byteData;
java.lang.String str11 = response1.charset;
// The following exception was thrown during execution in test generation
try {
boolean boolean13 = response1.hasHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNull(request8);
org.junit.Assert.assertNull(request9);
org.junit.Assert.assertNull(byteBuffer10);
org.junit.Assert.assertNull(str11);
}
@Test
public void test02507() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02507");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
org.jsoup.Connection.Method method12 = response1.method();
response1.statusMessage = "hi!";
java.lang.String str15 = response1.charset;
java.lang.String str17 = response1.getHeaderCaseInsensitive("");
java.lang.String str19 = response1.header("hi!");
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(method12);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertNull(str19);
}
@Test
public void test02508() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02508");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
java.lang.String str13 = response1.statusMessage;
java.net.URL uRL14 = response1.url();
java.lang.String str16 = response1.header("hi!");
// The following exception was thrown during execution in test generation
try {
byte[] byteArray17 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(uRL14);
org.junit.Assert.assertNull(str16);
}
@Test
public void test02509() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02509");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.header("");
int int13 = response1.statusCode;
java.lang.String str15 = response1.cookie("");
java.nio.ByteBuffer byteBuffer16 = response1.byteData;
boolean boolean18 = response1.hasCookie("");
// The following exception was thrown during execution in test generation
try {
java.lang.String str19 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(byteBuffer16);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
}
@Test
public void test02510() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02510");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry4 = response1.scanHeaders("");
java.lang.String str6 = response1.cookie("");
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.HttpURLConnection httpURLConnection9 = null;
org.jsoup.helper.HttpConnection.Response response10 = null;
org.jsoup.helper.HttpConnection.Response response11 = new org.jsoup.helper.HttpConnection.Response(response10);
org.jsoup.Connection.Request request12 = response11.req;
int int13 = response11.statusCode;
response11.executed = false;
response11.statusMessage = "hi!";
org.jsoup.Connection.Response response19 = response11.removeCookie("");
response11.charset = "";
org.jsoup.Connection.Request request22 = null;
response11.req = request22;
java.util.Map<java.lang.String, java.lang.String> strMap24 = response11.cookies();
org.jsoup.Connection.Response response26 = response11.removeCookie("hi!");
response11.charset = "hi!";
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection9, (org.jsoup.Connection.Response) response11);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(strEntry4);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(request12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertNotNull(response19);
org.junit.Assert.assertNotNull(strMap24);
org.junit.Assert.assertNotNull(response26);
}
@Test
public void test02511() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02511");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.getHeaderCaseInsensitive("hi!");
java.lang.String str14 = response1.cookie("");
// The following exception was thrown during execution in test generation
try {
byte[] byteArray15 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str14);
}
@Test
public void test02512() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02512");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.contentType;
org.jsoup.Connection.Request request13 = response1.req;
java.nio.ByteBuffer byteBuffer14 = response1.byteData;
org.jsoup.Connection.Method method15 = response1.method();
java.lang.String str16 = response1.statusMessage;
// The following exception was thrown during execution in test generation
try {
java.lang.String str17 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertNull(byteBuffer14);
org.junit.Assert.assertNull(method15);
org.junit.Assert.assertEquals("'" + str16 + "' != '" + "" + "'", str16, "");
}
@Test
public void test02513() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02513");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
java.lang.String str13 = response1.statusMessage();
java.net.URL uRL14 = response1.url();
java.nio.ByteBuffer byteBuffer15 = null;
response1.byteData = byteBuffer15;
java.lang.String str17 = response1.statusMessage();
response1.statusCode = (byte) 1;
java.lang.String str20 = response1.contentType();
// The following exception was thrown during execution in test generation
try {
java.lang.String str21 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(uRL14);
org.junit.Assert.assertEquals("'" + str17 + "' != '" + "" + "'", str17, "");
org.junit.Assert.assertNull(str20);
}
@Test
public void test02514() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02514");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
org.jsoup.Connection.Method method6 = response1.method();
java.lang.String str8 = response1.getHeaderCaseInsensitive("hi!");
org.jsoup.Connection.Response response11 = response1.cookie("hi!", "");
boolean boolean13 = response1.hasCookie("hi!");
org.jsoup.Connection.Method method14 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response15 = response1.method(method14);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(method6);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
}
@Test
public void test02515() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02515");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
org.jsoup.Connection.Response response10 = response1.removeCookie("");
response1.charset = "hi!";
java.lang.String str13 = response1.statusMessage();
int int14 = response1.statusCode();
org.jsoup.Connection.Response response16 = response1.removeHeader("hi!");
response1.statusCode = '4';
java.util.Map<java.lang.String, java.lang.String> strMap19 = response1.headers();
// The following exception was thrown during execution in test generation
try {
boolean boolean21 = response1.hasHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
org.junit.Assert.assertNotNull(response16);
org.junit.Assert.assertNotNull(strMap19);
}
@Test
public void test02516() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02516");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
java.lang.String str8 = response1.charset();
response1.charset = "hi!";
// The following exception was thrown during execution in test generation
try {
java.lang.String str11 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNull(str8);
}
@Test
public void test02517() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02517");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
response2.statusMessage = "";
org.jsoup.Connection.Method method5 = response2.method();
java.nio.ByteBuffer byteBuffer6 = null;
response2.byteData = byteBuffer6;
int int8 = response2.statusCode();
response2.statusCode = (byte) 0;
org.jsoup.Connection.Request request11 = response2.req;
java.lang.String str13 = response2.cookie("hi!");
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response14 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0);
org.junit.Assert.assertNull(request11);
org.junit.Assert.assertNull(str13);
}
@Test
public void test02518() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02518");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.helper.HttpConnection.Response response8 = new org.jsoup.helper.HttpConnection.Response(response1);
boolean boolean9 = response1.executed;
java.lang.String str11 = response1.getHeaderCaseInsensitive("hi!");
java.lang.String str12 = response1.statusMessage;
org.jsoup.Connection.Request request13 = response1.req;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request13);
}
@Test
public void test02519() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02519");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.contentType;
org.jsoup.Connection.Request request13 = response1.req;
java.nio.ByteBuffer byteBuffer14 = response1.byteData;
java.nio.ByteBuffer byteBuffer15 = response1.byteData;
java.net.URL uRL16 = response1.url();
org.jsoup.Connection.Response response18 = response1.removeHeader("hi!");
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertNull(byteBuffer14);
org.junit.Assert.assertNull(byteBuffer15);
org.junit.Assert.assertNull(uRL16);
org.junit.Assert.assertNotNull(response18);
}
@Test
public void test02520() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02520");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
response1.statusMessage = "";
org.jsoup.Connection.Response response10 = response1.cookie("hi!", "");
int int11 = response1.numRedirects;
response1.executed = false;
org.jsoup.Connection.Method method14 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response15 = response1.method(method14);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
}
@Test
public void test02521() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02521");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str3 = response1.contentType();
boolean boolean5 = response1.hasHeader("hi!");
java.lang.String str7 = response1.getHeaderCaseInsensitive("");
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(str7);
}
@Test
public void test02522() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02522");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.contentType;
org.jsoup.Connection.Request request13 = response1.req;
java.lang.String str15 = response1.header("hi!");
boolean boolean17 = response1.hasHeader("hi!");
java.lang.String str18 = response1.charset();
boolean boolean20 = response1.hasHeader("hi!");
org.jsoup.helper.HttpConnection.Response response21 = new org.jsoup.helper.HttpConnection.Response(response1);
java.net.URL uRL22 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response23 = response1.url(uRL22);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
}
@Test
public void test02523() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02523");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
org.jsoup.Connection.Method method12 = response1.method();
org.jsoup.Connection.Response response14 = response1.removeCookie("");
java.lang.String str15 = response1.charset;
java.util.Map<java.lang.String, java.lang.String> strMap16 = response1.headers();
boolean boolean18 = response1.hasCookie("hi!");
java.util.Map<java.lang.String, java.lang.String> strMap19 = response1.headers();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(method12);
org.junit.Assert.assertNotNull(response14);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNotNull(strMap16);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertNotNull(strMap19);
}
@Test
public void test02524() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02524");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request3 = response2.req;
java.lang.String str5 = response2.cookie("hi!");
java.lang.String str6 = response2.charset();
org.jsoup.Connection.Response response9 = response2.header("hi!", "");
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response10 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request3);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNotNull(response9);
}
@Test
public void test02525() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02525");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.net.URL uRL7 = response1.url();
int int8 = response1.statusCode();
boolean boolean9 = response1.executed;
org.jsoup.Connection.Method method10 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response11 = response1.method(method10);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(uRL7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
}
@Test
public void test02526() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02526");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.contentType;
response1.contentType = "hi!";
java.nio.ByteBuffer byteBuffer15 = response1.byteData;
java.lang.String str16 = response1.contentType;
java.nio.ByteBuffer byteBuffer17 = null;
response1.byteData = byteBuffer17;
java.lang.Class<?> wildcardClass19 = response1.getClass();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(byteBuffer15);
org.junit.Assert.assertEquals("'" + str16 + "' != '" + "hi!" + "'", str16, "hi!");
org.junit.Assert.assertNotNull(wildcardClass19);
}
@Test
public void test02527() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02527");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
boolean boolean6 = response1.hasCookie("");
int int7 = response1.statusCode;
org.jsoup.Connection.Request request8 = response1.req;
java.lang.String str9 = response1.contentType();
java.lang.String str10 = response1.contentType();
java.net.URL uRL11 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response12 = response1.url(uRL11);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNull(request8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(str10);
}
@Test
public void test02528() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02528");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.charset = "";
java.lang.String str4 = response1.charset;
// The following exception was thrown during execution in test generation
try {
java.lang.String str5 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertEquals("'" + str4 + "' != '" + "" + "'", str4, "");
}
@Test
public void test02529() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02529");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
response1.charset = "";
java.lang.String str14 = response1.getHeaderCaseInsensitive("");
org.jsoup.Connection.Method method15 = response1.method();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(method15);
}
@Test
public void test02530() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02530");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
response2.statusMessage = "";
org.jsoup.Connection.Method method5 = response2.method();
java.nio.ByteBuffer byteBuffer6 = null;
response2.byteData = byteBuffer6;
boolean boolean9 = response2.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer10 = response2.byteData;
java.lang.String str12 = response2.cookie("");
int int13 = response2.statusCode;
java.lang.String str14 = response2.contentType();
response2.statusCode = (-1);
java.lang.String str17 = response2.charset;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry19 = response2.scanHeaders("");
int int20 = response2.statusCode;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response21 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(byteBuffer10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertNull(strEntry19);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + (-1) + "'", int20 == (-1));
}
@Test
public void test02531() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02531");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
response1.charset = "";
java.lang.String str13 = response1.statusMessage;
java.lang.String str15 = response1.cookie("");
java.lang.String str17 = response1.cookie("hi!");
boolean boolean19 = response1.hasHeader("hi!");
response1.numRedirects = 10;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
}
@Test
public void test02532() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02532");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.contentType;
org.jsoup.Connection.Request request13 = response1.req;
java.nio.ByteBuffer byteBuffer14 = response1.byteData;
java.nio.ByteBuffer byteBuffer15 = response1.byteData;
java.net.URL uRL16 = response1.url();
java.lang.String str18 = response1.getHeaderCaseInsensitive("");
response1.numRedirects = (short) 100;
java.net.HttpURLConnection httpURLConnection21 = null;
org.jsoup.helper.HttpConnection.Response response22 = null;
org.jsoup.helper.HttpConnection.Response response23 = new org.jsoup.helper.HttpConnection.Response(response22);
org.jsoup.Connection.Request request24 = response23.req;
java.lang.String str26 = response23.cookie("hi!");
org.jsoup.Connection.Response response28 = response23.removeHeader("hi!");
response23.contentType = "hi!";
org.jsoup.Connection.Request request31 = null;
response23.req = request31;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection21, (org.jsoup.Connection.Response) response23);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertNull(byteBuffer14);
org.junit.Assert.assertNull(byteBuffer15);
org.junit.Assert.assertNull(uRL16);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertNull(request24);
org.junit.Assert.assertNull(str26);
org.junit.Assert.assertNotNull(response28);
}
@Test
public void test02533() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02533");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
int int7 = response1.statusCode();
response1.statusCode = (byte) 0;
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.headers();
org.jsoup.Connection.Request request11 = response1.req;
org.jsoup.Connection.Request request12 = response1.req;
int int13 = response1.numRedirects;
java.net.HttpURLConnection httpURLConnection14 = null;
org.jsoup.helper.HttpConnection.Response response15 = null;
org.jsoup.helper.HttpConnection.Response response16 = new org.jsoup.helper.HttpConnection.Response(response15);
org.jsoup.Connection.Request request17 = response16.req;
java.lang.String str19 = response16.cookie("hi!");
java.lang.String str20 = response16.charset();
int int21 = response16.statusCode;
java.nio.ByteBuffer byteBuffer22 = response16.byteData;
org.jsoup.Connection.Method method23 = response16.method();
org.jsoup.Connection.Request request24 = null;
response16.req = request24;
response16.numRedirects = 0;
response16.statusMessage = "";
java.lang.String str30 = response16.charset();
java.lang.String str31 = response16.contentType();
java.lang.String str33 = response16.cookie("hi!");
org.jsoup.Connection.Request request34 = null;
response16.req = request34;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection14, (org.jsoup.Connection.Response) response16);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(request11);
org.junit.Assert.assertNull(request12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertNull(request17);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 0 + "'", int21 == 0);
org.junit.Assert.assertNull(byteBuffer22);
org.junit.Assert.assertNull(method23);
org.junit.Assert.assertNull(str30);
org.junit.Assert.assertNull(str31);
org.junit.Assert.assertNull(str33);
}
@Test
public void test02534() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02534");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.header("");
int int13 = response1.numRedirects;
int int14 = response1.numRedirects;
java.nio.ByteBuffer byteBuffer15 = null;
response1.byteData = byteBuffer15;
response1.contentType = "";
java.net.HttpURLConnection httpURLConnection19 = null;
org.jsoup.helper.HttpConnection.Response response20 = null;
org.jsoup.helper.HttpConnection.Response response21 = new org.jsoup.helper.HttpConnection.Response(response20);
response21.statusMessage = "";
org.jsoup.Connection.Method method24 = response21.method();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry26 = response21.scanHeaders("hi!");
java.lang.String str27 = response21.contentType;
java.lang.String str28 = response21.charset();
java.lang.String str29 = response21.contentType;
java.net.URL uRL30 = response21.url();
int int31 = response21.statusCode();
java.nio.ByteBuffer byteBuffer32 = null;
response21.byteData = byteBuffer32;
java.lang.String str34 = response21.statusMessage();
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection19, (org.jsoup.Connection.Response) response21);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
org.junit.Assert.assertNull(method24);
org.junit.Assert.assertNull(strEntry26);
org.junit.Assert.assertNull(str27);
org.junit.Assert.assertNull(str28);
org.junit.Assert.assertNull(str29);
org.junit.Assert.assertNull(uRL30);
org.junit.Assert.assertTrue("'" + int31 + "' != '" + 0 + "'", int31 == 0);
org.junit.Assert.assertEquals("'" + str34 + "' != '" + "" + "'", str34, "");
}
@Test
public void test02535() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02535");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.lang.String str3 = response1.contentType;
org.jsoup.Connection.Request request4 = null;
response1.req = request4;
org.jsoup.helper.HttpConnection.Response response6 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str7 = response1.charset;
java.lang.String str8 = response1.contentType();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
org.jsoup.Connection.Request request11 = response1.req;
response1.executed = false;
java.lang.String str14 = response1.contentType();
java.lang.String str16 = response1.getHeaderCaseInsensitive("");
org.jsoup.Connection.Request request17 = null;
response1.req = request17;
// The following exception was thrown during execution in test generation
try {
java.lang.String str19 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(request11);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(str16);
}
@Test
public void test02536() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02536");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.lang.String str3 = response1.contentType;
org.jsoup.Connection.Request request4 = null;
response1.req = request4;
org.jsoup.helper.HttpConnection.Response response6 = new org.jsoup.helper.HttpConnection.Response(response1);
boolean boolean7 = response1.executed;
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.cookies();
java.lang.String str9 = response1.statusMessage;
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.cookies();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry12 = response1.scanHeaders("hi!");
java.lang.String str13 = response1.contentType;
org.jsoup.Connection.Request request14 = null;
response1.req = request14;
java.net.HttpURLConnection httpURLConnection16 = null;
org.jsoup.helper.HttpConnection.Response response17 = null;
org.jsoup.helper.HttpConnection.Response response18 = new org.jsoup.helper.HttpConnection.Response(response17);
response18.statusMessage = "";
java.lang.String str22 = response18.getHeaderCaseInsensitive("hi!");
int int23 = response18.numRedirects;
int int24 = response18.statusCode();
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection16, (org.jsoup.Connection.Response) response18);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(strEntry12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertTrue("'" + int23 + "' != '" + 0 + "'", int23 == 0);
org.junit.Assert.assertTrue("'" + int24 + "' != '" + 0 + "'", int24 == 0);
}
@Test
public void test02537() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02537");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str9 = response1.statusMessage();
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.cookies();
response1.charset = "hi!";
java.lang.String str13 = response1.statusMessage();
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response1.header("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
}
@Test
public void test02538() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02538");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.getHeaderCaseInsensitive("hi!");
java.lang.String str14 = response1.header("hi!");
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response17 = response1.cookie("", "");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cookie name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str14);
}
@Test
public void test02539() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02539");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.nio.ByteBuffer byteBuffer3 = response1.byteData;
int int4 = response1.numRedirects;
java.lang.String str6 = response1.header("");
java.util.Map<java.lang.String, java.lang.String> strMap7 = response1.cookies();
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(byteBuffer3);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNotNull(strMap7);
org.junit.Assert.assertNull(byteBuffer8);
}
@Test
public void test02540() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02540");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
response1.charset = "";
org.jsoup.Connection.Response response12 = response1.removeCookie("hi!");
int int13 = response1.statusCode();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry15 = response1.scanHeaders("hi!");
org.jsoup.Connection.Response response17 = response1.removeCookie("");
// The following exception was thrown during execution in test generation
try {
byte[] byteArray18 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNotNull(response12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertNull(strEntry15);
org.junit.Assert.assertNotNull(response17);
}
@Test
public void test02541() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02541");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
int int5 = response1.statusCode();
java.lang.String str7 = response1.header("");
response1.numRedirects = (-1);
int int10 = response1.statusCode;
// The following exception was thrown during execution in test generation
try {
byte[] byteArray11 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
}
@Test
public void test02542() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02542");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
org.jsoup.Connection.Method method5 = response1.method();
java.nio.ByteBuffer byteBuffer6 = null;
response1.byteData = byteBuffer6;
org.jsoup.helper.HttpConnection.Response response8 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Method method9 = response8.method();
org.jsoup.Connection.Request request10 = response8.req;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNull(method9);
org.junit.Assert.assertNull(request10);
}
@Test
public void test02543() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02543");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response6 = response1.removeHeader("hi!");
int int7 = response1.statusCode;
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
org.jsoup.Connection.Response response11 = response1.header("hi!", "hi!");
java.lang.String str12 = response1.contentType();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
}
@Test
public void test02544() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02544");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
int int5 = response1.statusCode();
response1.statusCode = 32;
org.jsoup.Connection.Request request8 = null;
response1.req = request8;
java.nio.ByteBuffer byteBuffer10 = null;
response1.byteData = byteBuffer10;
int int12 = response1.numRedirects;
org.jsoup.Connection.Method method13 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response14 = response1.method(method13);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
}
@Test
public void test02545() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02545");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str9 = response1.statusMessage();
java.lang.String str10 = response1.statusMessage();
java.net.URL uRL11 = response1.url();
boolean boolean13 = response1.hasHeader("hi!");
boolean boolean15 = response1.hasCookie("hi!");
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertEquals("'" + str10 + "' != '" + "" + "'", str10, "");
org.junit.Assert.assertNull(uRL11);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
}
@Test
public void test02546() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02546");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
org.jsoup.Connection.Response response6 = response1.removeCookie("");
response1.statusCode = 100;
int int9 = response1.numRedirects;
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.cookies();
org.jsoup.helper.HttpConnection.Response response11 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str13 = response11.header("hi!");
boolean boolean15 = response11.hasCookie("hi!");
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document16 = response11.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
}
@Test
public void test02547() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02547");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
int int4 = response1.statusCode;
boolean boolean6 = response1.hasCookie("hi!");
boolean boolean8 = response1.hasCookie("hi!");
boolean boolean10 = response1.hasCookie("hi!");
java.net.URL uRL11 = response1.url();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry13 = response1.scanHeaders("");
org.jsoup.helper.HttpConnection.Response response14 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Method method15 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response14.method(method15);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(uRL11);
org.junit.Assert.assertNull(strEntry13);
}
@Test
public void test02548() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02548");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.nio.ByteBuffer byteBuffer3 = response1.byteData;
int int4 = response1.numRedirects;
org.jsoup.Connection.Response response6 = response1.removeCookie("");
int int7 = response1.statusCode();
response1.executed = true;
org.jsoup.Connection.Request request10 = response1.req;
java.nio.ByteBuffer byteBuffer11 = response1.byteData;
java.util.Map<java.lang.String, java.lang.String> strMap12 = response1.headers();
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response14 = response1.removeHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(byteBuffer3);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNull(request10);
org.junit.Assert.assertNull(byteBuffer11);
org.junit.Assert.assertNotNull(strMap12);
}
@Test
public void test02549() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02549");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusCode = (byte) 1;
java.lang.String str9 = response1.cookie("");
org.jsoup.Connection.Method method10 = response1.method();
int int11 = response1.statusCode();
java.lang.String str12 = response1.statusMessage;
int int13 = response1.numRedirects;
java.nio.ByteBuffer byteBuffer14 = response1.byteData;
boolean boolean16 = response1.hasHeader("hi!");
response1.statusMessage = "";
response1.statusCode = 0;
boolean boolean21 = response1.executed;
java.net.URL uRL22 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response23 = response1.url(uRL22);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(method10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertNull(byteBuffer14);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + false + "'", boolean21 == false);
}
@Test
public void test02550() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02550");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
int int7 = response1.statusCode();
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
java.util.Map<java.lang.String, java.lang.String> strMap9 = response1.cookies();
org.jsoup.Connection.Method method10 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response11 = response1.method(method10);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNotNull(strMap9);
}
@Test
public void test02551() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02551");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.lang.String str3 = response1.contentType;
response1.executed = false;
response1.numRedirects = (byte) 10;
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.headers();
response1.statusMessage = "hi!";
java.nio.ByteBuffer byteBuffer11 = null;
response1.byteData = byteBuffer11;
org.jsoup.helper.HttpConnection.Response response13 = new org.jsoup.helper.HttpConnection.Response(response1);
response1.executed = false;
java.net.URL uRL16 = response1.url();
java.lang.String str18 = response1.cookie("hi!");
java.lang.String str19 = response1.charset;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertNull(uRL16);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertNull(str19);
}
@Test
public void test02552() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02552");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
response1.charset = "";
response1.contentType = "hi!";
java.lang.String str14 = response1.getHeaderCaseInsensitive("");
java.lang.String str15 = response1.contentType;
response1.numRedirects = (short) 10;
response1.charset = "hi!";
org.jsoup.Connection.Request request20 = null;
response1.req = request20;
int int22 = response1.statusCode();
// The following exception was thrown during execution in test generation
try {
byte[] byteArray23 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "hi!" + "'", str15, "hi!");
org.junit.Assert.assertTrue("'" + int22 + "' != '" + 0 + "'", int22 == 0);
}
@Test
public void test02553() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02553");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.nio.ByteBuffer byteBuffer7 = null;
response1.byteData = byteBuffer7;
org.jsoup.Connection.Response response11 = response1.header("hi!", "hi!");
boolean boolean13 = response1.hasCookie("");
int int14 = response1.statusCode;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
}
@Test
public void test02554() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02554");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
java.net.URL uRL10 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response11 = response1.url(uRL10);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
}
@Test
public void test02555() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02555");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
org.jsoup.Connection.Method method6 = response1.method();
java.lang.String str8 = response1.getHeaderCaseInsensitive("hi!");
org.jsoup.Connection.Response response10 = response1.removeHeader("hi!");
// The following exception was thrown during execution in test generation
try {
boolean boolean12 = response1.hasHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(method6);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNotNull(response10);
}
@Test
public void test02556() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02556");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.contentType;
org.jsoup.Connection.Request request13 = response1.req;
java.nio.ByteBuffer byteBuffer14 = response1.byteData;
java.nio.ByteBuffer byteBuffer15 = response1.byteData;
java.lang.String str16 = response1.statusMessage();
response1.statusMessage = "";
java.nio.ByteBuffer byteBuffer19 = null;
response1.byteData = byteBuffer19;
org.jsoup.helper.HttpConnection.Response response21 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str23 = response21.cookie("");
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertNull(byteBuffer14);
org.junit.Assert.assertNull(byteBuffer15);
org.junit.Assert.assertEquals("'" + str16 + "' != '" + "" + "'", str16, "");
org.junit.Assert.assertNull(str23);
}
@Test
public void test02557() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02557");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response6 = response1.removeHeader("hi!");
int int7 = response1.statusCode;
java.lang.String str8 = response1.charset;
int int9 = response1.statusCode;
// The following exception was thrown during execution in test generation
try {
java.lang.String str10 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
}
@Test
public void test02558() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02558");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
response1.statusMessage = "";
org.jsoup.Connection.Method method8 = response1.method();
int int9 = response1.numRedirects;
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.cookies();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry12 = response1.scanHeaders("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry14 = response1.scanHeaders("hi!");
java.nio.ByteBuffer byteBuffer15 = null;
response1.byteData = byteBuffer15;
boolean boolean18 = response1.hasCookie("");
org.jsoup.Connection.Response response21 = response1.header("hi!", "hi!");
response1.charset = "hi!";
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response25 = response1.removeHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(strEntry12);
org.junit.Assert.assertNull(strEntry14);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertNotNull(response21);
}
@Test
public void test02559() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02559");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
response1.charset = "";
response1.numRedirects = (-1);
response1.contentType = "hi!";
response1.statusCode = (short) 1;
response1.statusCode = ' ';
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
}
@Test
public void test02560() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02560");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str11 = response1.charset();
java.lang.String str12 = response1.charset;
org.jsoup.Connection.Response response14 = response1.removeCookie("hi!");
int int15 = response1.numRedirects;
java.lang.String str16 = response1.contentType;
response1.contentType = "";
int int19 = response1.statusCode;
java.net.URL uRL20 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response21 = response1.url(uRL20);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNotNull(response14);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 0 + "'", int19 == 0);
}
@Test
public void test02561() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02561");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str9 = response1.statusMessage();
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.cookies();
response1.charset = "hi!";
java.lang.String str13 = response1.statusMessage();
java.lang.String str14 = response1.contentType();
response1.contentType = "hi!";
java.net.URL uRL17 = response1.url();
// The following exception was thrown during execution in test generation
try {
boolean boolean19 = response1.hasHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(uRL17);
}
@Test
public void test02562() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02562");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.nio.ByteBuffer byteBuffer3 = response1.byteData;
java.lang.String str4 = response1.charset;
java.util.Map<java.lang.String, java.lang.String> strMap5 = response1.cookies();
java.lang.String str7 = response1.cookie("");
org.jsoup.helper.HttpConnection.Response response8 = new org.jsoup.helper.HttpConnection.Response(response1);
response1.statusMessage = "";
boolean boolean12 = response1.hasCookie("hi!");
java.lang.String str13 = response1.statusMessage();
java.net.URL uRL14 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response15 = response1.url(uRL14);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(byteBuffer3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(strMap5);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
}
@Test
public void test02563() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02563");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
java.lang.String str13 = response1.statusMessage();
java.lang.String str15 = response1.cookie("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry17 = response1.scanHeaders("");
java.lang.String str18 = response1.charset();
java.lang.String str20 = response1.cookie("hi!");
java.lang.String str21 = response1.charset();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(strEntry17);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertNull(str21);
}
@Test
public void test02564() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02564");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
org.jsoup.Connection.Method method5 = response1.method();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry7 = response1.scanHeaders("");
response1.statusMessage = "hi!";
response1.statusMessage = "hi!";
java.util.Map<java.lang.String, java.lang.String> strMap12 = response1.cookies();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNull(strEntry7);
org.junit.Assert.assertNotNull(strMap12);
}
@Test
public void test02565() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02565");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
java.lang.String str7 = response1.getHeaderCaseInsensitive("");
org.jsoup.Connection.Method method8 = response1.method();
java.util.Map<java.lang.String, java.lang.String> strMap9 = response1.cookies();
org.jsoup.Connection.Request request10 = null;
response1.req = request10;
java.lang.String str12 = response1.charset;
org.jsoup.Connection.Method method13 = response1.method();
int int14 = response1.statusCode();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNotNull(strMap9);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(method13);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
}
@Test
public void test02566() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02566");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
int int8 = response1.statusCode();
int int9 = response1.statusCode();
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response12 = response1.header("", "");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
}
@Test
public void test02567() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02567");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
org.jsoup.Connection.Method method5 = response1.method();
response1.contentType = "";
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry9 = response1.scanHeaders("");
boolean boolean11 = response1.hasCookie("hi!");
// The following exception was thrown during execution in test generation
try {
java.lang.String str12 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNull(strEntry9);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test02568() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02568");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.lang.String str4 = response1.charset;
response1.numRedirects = (byte) -1;
response1.executed = true;
int int9 = response1.statusCode();
java.lang.String str10 = response1.statusMessage();
response1.numRedirects = ' ';
java.net.URL uRL13 = response1.url();
org.jsoup.Connection.Method method14 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response15 = response1.method(method14);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
org.junit.Assert.assertEquals("'" + str10 + "' != '" + "" + "'", str10, "");
org.junit.Assert.assertNull(uRL13);
}
@Test
public void test02569() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02569");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str9 = response1.statusMessage();
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.cookies();
response1.charset = "hi!";
java.lang.String str13 = response1.statusMessage();
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response1.cookie("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cookie name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
}
@Test
public void test02570() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02570");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
java.util.Map<java.lang.String, java.lang.String> strMap5 = response1.cookies();
org.jsoup.Connection.Method method6 = response1.method();
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(strMap5);
org.junit.Assert.assertNull(method6);
org.junit.Assert.assertNull(byteBuffer7);
}
@Test
public void test02571() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02571");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.lang.String str3 = response1.contentType;
org.jsoup.Connection.Request request4 = null;
response1.req = request4;
org.jsoup.helper.HttpConnection.Response response6 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str7 = response1.charset;
response1.contentType = "hi!";
org.jsoup.Connection.Request request10 = null;
response1.req = request10;
java.util.Map<java.lang.String, java.lang.String> strMap12 = response1.headers();
java.net.HttpURLConnection httpURLConnection13 = null;
org.jsoup.helper.HttpConnection.Response response14 = null;
org.jsoup.helper.HttpConnection.Response response15 = new org.jsoup.helper.HttpConnection.Response(response14);
response15.statusMessage = "";
org.jsoup.Connection.Method method18 = response15.method();
java.nio.ByteBuffer byteBuffer19 = null;
response15.byteData = byteBuffer19;
java.lang.String str22 = response15.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry24 = response15.scanHeaders("");
java.lang.String str26 = response15.header("");
int int27 = response15.statusCode;
java.nio.ByteBuffer byteBuffer28 = response15.byteData;
java.lang.String str29 = response15.charset;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection13, (org.jsoup.Connection.Response) response15);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(strMap12);
org.junit.Assert.assertNull(method18);
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertNull(strEntry24);
org.junit.Assert.assertNull(str26);
org.junit.Assert.assertTrue("'" + int27 + "' != '" + 0 + "'", int27 == 0);
org.junit.Assert.assertNull(byteBuffer28);
org.junit.Assert.assertNull(str29);
}
@Test
public void test02572() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02572");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.getHeaderCaseInsensitive("hi!");
java.lang.String str14 = response1.cookie("");
org.jsoup.Connection.Request request15 = null;
response1.req = request15;
int int17 = response1.statusCode();
org.jsoup.Connection.Request request18 = response1.req;
response1.statusCode = (short) 10;
response1.statusMessage = "";
java.nio.ByteBuffer byteBuffer23 = null;
response1.byteData = byteBuffer23;
java.net.HttpURLConnection httpURLConnection25 = null;
org.jsoup.helper.HttpConnection.Response response26 = null;
org.jsoup.helper.HttpConnection.Response response27 = new org.jsoup.helper.HttpConnection.Response(response26);
response27.statusMessage = "";
org.jsoup.Connection.Method method30 = response27.method();
java.nio.ByteBuffer byteBuffer31 = null;
response27.byteData = byteBuffer31;
int int33 = response27.statusCode();
response27.statusCode = (byte) 0;
java.util.Map<java.lang.String, java.lang.String> strMap36 = response27.headers();
java.lang.String str38 = response27.getHeaderCaseInsensitive("hi!");
org.jsoup.Connection.Request request39 = response27.req;
response27.numRedirects = (short) 100;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection25, (org.jsoup.Connection.Response) response27);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
org.junit.Assert.assertNull(request18);
org.junit.Assert.assertNull(method30);
org.junit.Assert.assertTrue("'" + int33 + "' != '" + 0 + "'", int33 == 0);
org.junit.Assert.assertNotNull(strMap36);
org.junit.Assert.assertNull(str38);
org.junit.Assert.assertNull(request39);
}
@Test
public void test02573() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02573");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
response1.executed = false;
response1.contentType = "hi!";
java.lang.String str9 = response1.statusMessage;
java.net.URL uRL10 = response1.url();
java.nio.ByteBuffer byteBuffer11 = null;
response1.byteData = byteBuffer11;
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(uRL10);
}
@Test
public void test02574() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02574");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusCode = (byte) 1;
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.headers();
java.lang.String str10 = response1.cookie("hi!");
response1.statusMessage = "hi!";
java.net.URL uRL13 = response1.url();
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response1.cookie("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cookie name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(uRL13);
}
@Test
public void test02575() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02575");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.nio.ByteBuffer byteBuffer3 = response1.byteData;
int int4 = response1.numRedirects;
org.jsoup.Connection.Response response6 = response1.removeCookie("");
int int7 = response1.statusCode();
response1.executed = true;
org.jsoup.Connection.Request request10 = response1.req;
java.nio.ByteBuffer byteBuffer11 = response1.byteData;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response14 = response1.header("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(byteBuffer3);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNull(request10);
org.junit.Assert.assertNull(byteBuffer11);
}
@Test
public void test02576() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02576");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request3 = response2.req;
java.lang.String str5 = response2.cookie("hi!");
java.lang.String str6 = response2.charset();
int int7 = response2.statusCode;
java.nio.ByteBuffer byteBuffer8 = response2.byteData;
boolean boolean10 = response2.hasHeader("hi!");
response2.executed = true;
boolean boolean14 = response2.hasCookie("");
org.jsoup.Connection.Request request15 = response2.req;
java.lang.String str17 = response2.cookie("hi!");
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response18 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request3);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(request15);
org.junit.Assert.assertNull(str17);
}
@Test
public void test02577() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02577");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
response1.statusMessage = "";
org.jsoup.Connection.Method method8 = response1.method();
int int9 = response1.numRedirects;
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.cookies();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry12 = response1.scanHeaders("hi!");
java.nio.ByteBuffer byteBuffer13 = null;
response1.byteData = byteBuffer13;
java.util.Map<java.lang.String, java.lang.String> strMap15 = response1.headers();
java.lang.String str16 = response1.statusMessage;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry18 = response1.scanHeaders("hi!");
response1.numRedirects = 0;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(strEntry12);
org.junit.Assert.assertNotNull(strMap15);
org.junit.Assert.assertEquals("'" + str16 + "' != '" + "" + "'", str16, "");
org.junit.Assert.assertNull(strEntry18);
}
@Test
public void test02578() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02578");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
org.jsoup.Connection.Method method5 = response1.method();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry7 = response1.scanHeaders("");
java.lang.String str8 = response1.charset;
response1.charset = "hi!";
int int11 = response1.statusCode();
java.nio.ByteBuffer byteBuffer12 = null;
response1.byteData = byteBuffer12;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNull(strEntry7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
}
@Test
public void test02579() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02579");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
int int5 = response1.statusCode();
java.lang.String str7 = response1.header("");
response1.numRedirects = (-1);
int int10 = response1.statusCode;
response1.contentType = "";
java.net.URL uRL13 = response1.url();
// The following exception was thrown during execution in test generation
try {
java.lang.Class<?> wildcardClass14 = uRL13.getClass();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertNull(uRL13);
}
@Test
public void test02580() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02580");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.charset;
org.jsoup.Connection.Request request5 = response1.req;
java.util.Map<java.lang.String, java.lang.String> strMap6 = response1.headers();
response1.numRedirects = (byte) 1;
org.jsoup.Connection.Response response11 = response1.cookie("hi!", "hi!");
org.jsoup.Connection.Request request12 = response1.req;
java.lang.String str13 = response1.charset();
java.lang.String str15 = response1.getHeaderCaseInsensitive("");
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(request5);
org.junit.Assert.assertNotNull(strMap6);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(request12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(str15);
}
@Test
public void test02581() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02581");
org.jsoup.helper.HttpConnection.Response.MAX_REDIRECTS = 52;
}
@Test
public void test02582() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02582");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
response1.charset = "";
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
response1.statusCode = ' ';
int int16 = response1.statusCode();
response1.numRedirects = '#';
response1.numRedirects = 'a';
java.lang.Class<?> wildcardClass21 = response1.getClass();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 32 + "'", int16 == 32);
org.junit.Assert.assertNotNull(wildcardClass21);
}
@Test
public void test02583() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02583");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
java.lang.String str13 = response1.statusMessage();
java.nio.ByteBuffer byteBuffer14 = response1.byteData;
boolean boolean15 = response1.executed;
java.lang.String str16 = response1.contentType();
java.lang.String str17 = response1.charset();
// The following exception was thrown during execution in test generation
try {
boolean boolean19 = response1.hasHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(byteBuffer14);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNull(str17);
}
@Test
public void test02584() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02584");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
boolean boolean6 = response1.hasHeader("hi!");
java.lang.String str7 = response1.contentType;
java.lang.Class<?> wildcardClass8 = response1.getClass();
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(wildcardClass8);
}
@Test
public void test02585() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02585");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.getHeaderCaseInsensitive("hi!");
java.lang.String str14 = response1.cookie("");
java.lang.String str15 = response1.contentType();
org.jsoup.Connection.Response response17 = response1.removeCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap18 = response1.cookies();
response1.statusMessage = "";
// The following exception was thrown during execution in test generation
try {
byte[] byteArray21 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNotNull(response17);
org.junit.Assert.assertNotNull(strMap18);
}
@Test
public void test02586() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02586");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.getHeaderCaseInsensitive("hi!");
java.lang.String str14 = response1.cookie("");
java.nio.ByteBuffer byteBuffer15 = response1.byteData;
java.lang.String str16 = response1.contentType;
int int17 = response1.statusCode();
org.jsoup.Connection.Response response19 = response1.removeHeader("hi!");
java.net.HttpURLConnection httpURLConnection20 = null;
org.jsoup.helper.HttpConnection.Response response21 = null;
org.jsoup.helper.HttpConnection.Response response22 = new org.jsoup.helper.HttpConnection.Response(response21);
response22.statusMessage = "";
org.jsoup.Connection.Method method25 = response22.method();
java.nio.ByteBuffer byteBuffer26 = null;
response22.byteData = byteBuffer26;
java.lang.String str29 = response22.header("hi!");
java.lang.String str30 = response22.charset();
java.lang.String str31 = response22.statusMessage();
response22.statusMessage = "";
org.jsoup.Connection.Method method34 = response22.method();
java.lang.String str35 = response22.charset();
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection20, (org.jsoup.Connection.Response) response22);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(byteBuffer15);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
org.junit.Assert.assertNotNull(response19);
org.junit.Assert.assertNull(method25);
org.junit.Assert.assertNull(str29);
org.junit.Assert.assertNull(str30);
org.junit.Assert.assertEquals("'" + str31 + "' != '" + "" + "'", str31, "");
org.junit.Assert.assertNull(method34);
org.junit.Assert.assertNull(str35);
}
@Test
public void test02587() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02587");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.lang.String str9 = response1.charset();
java.lang.String str10 = response1.statusMessage();
response1.numRedirects = (byte) 1;
org.jsoup.Connection.Request request13 = null;
response1.req = request13;
java.lang.String str15 = response1.charset();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry17 = response1.scanHeaders("hi!");
// The following exception was thrown during execution in test generation
try {
byte[] byteArray18 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertEquals("'" + str10 + "' != '" + "" + "'", str10, "");
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(strEntry17);
}
@Test
public void test02588() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02588");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request3 = response2.req;
java.lang.String str5 = response2.cookie("hi!");
org.jsoup.Connection.Response response8 = response2.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer9 = response2.byteData;
java.util.Map<java.lang.String, java.lang.String> strMap10 = response2.cookies();
int int11 = response2.statusCode;
java.lang.String str13 = response2.header("");
java.net.URL uRL14 = response2.url();
java.lang.String str15 = response2.contentType;
java.util.Map<java.lang.String, java.lang.String> strMap16 = response2.cookies();
boolean boolean18 = response2.hasCookie("");
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response19 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request3);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNotNull(response8);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(uRL14);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNotNull(strMap16);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
}
@Test
public void test02589() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02589");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
boolean boolean11 = response1.hasCookie("");
java.nio.ByteBuffer byteBuffer12 = null;
response1.byteData = byteBuffer12;
java.lang.String str15 = response1.cookie("hi!");
int int16 = response1.statusCode;
// The following exception was thrown during execution in test generation
try {
boolean boolean18 = response1.hasHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0);
}
@Test
public void test02590() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02590");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.lang.String str5 = response1.getHeaderCaseInsensitive("hi!");
org.jsoup.Connection.Method method6 = response1.method();
int int7 = response1.numRedirects;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry9 = response1.scanHeaders("");
boolean boolean10 = response1.executed;
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(method6);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNull(strEntry9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
}
@Test
public void test02591() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02591");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.nio.ByteBuffer byteBuffer3 = response1.byteData;
java.lang.String str4 = response1.statusMessage;
java.lang.String str5 = response1.statusMessage;
java.lang.String str6 = response1.statusMessage;
java.net.URL uRL7 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response8 = response1.url(uRL7);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(byteBuffer3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
}
@Test
public void test02592() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02592");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
org.jsoup.Connection.Response response13 = response1.cookie("hi!", "hi!");
java.lang.String str14 = response1.statusMessage();
java.lang.String str15 = response1.charset();
response1.statusMessage = "hi!";
// The following exception was thrown during execution in test generation
try {
byte[] byteArray18 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNotNull(response13);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "" + "'", str14, "");
org.junit.Assert.assertNull(str15);
}
@Test
public void test02593() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02593");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
boolean boolean9 = response1.hasHeader("hi!");
response1.statusMessage = "";
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
}
@Test
public void test02594() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02594");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
org.jsoup.Connection.Response response13 = response1.cookie("hi!", "hi!");
response1.statusCode = (byte) 100;
response1.contentType = "";
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document18 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNotNull(response13);
}
@Test
public void test02595() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02595");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
java.lang.String str10 = response1.contentType;
java.net.URL uRL11 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response12 = response1.url(uRL11);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertNull(str10);
}
@Test
public void test02596() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02596");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
java.lang.String str9 = response1.statusMessage;
int int10 = response1.statusCode;
int int11 = response1.statusCode();
boolean boolean13 = response1.hasCookie("");
java.lang.String str14 = response1.charset;
java.net.URL uRL15 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response1.url(uRL15);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(str14);
}
@Test
public void test02597() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02597");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.charset;
response1.executed = false;
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
}
@Test
public void test02598() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02598");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.lang.String str3 = response1.contentType;
response1.executed = false;
response1.numRedirects = (byte) 10;
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.headers();
response1.statusMessage = "hi!";
java.nio.ByteBuffer byteBuffer11 = null;
response1.byteData = byteBuffer11;
org.jsoup.helper.HttpConnection.Response response13 = new org.jsoup.helper.HttpConnection.Response(response1);
response1.executed = false;
java.net.URL uRL16 = response1.url();
response1.contentType = "";
java.net.HttpURLConnection httpURLConnection19 = null;
org.jsoup.helper.HttpConnection.Response response20 = null;
org.jsoup.helper.HttpConnection.Response response21 = new org.jsoup.helper.HttpConnection.Response(response20);
org.jsoup.Connection.Request request22 = response21.req;
int int23 = response21.statusCode;
response21.executed = false;
response21.statusMessage = "hi!";
org.jsoup.Connection.Response response29 = response21.removeCookie("");
response21.charset = "";
org.jsoup.Connection.Request request32 = null;
response21.req = request32;
response21.statusCode = ' ';
java.lang.String str36 = response21.contentType;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection19, (org.jsoup.Connection.Response) response21);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertNull(uRL16);
org.junit.Assert.assertNull(request22);
org.junit.Assert.assertTrue("'" + int23 + "' != '" + 0 + "'", int23 == 0);
org.junit.Assert.assertNotNull(response29);
org.junit.Assert.assertNull(str36);
}
@Test
public void test02599() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02599");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
java.lang.String str9 = response1.statusMessage;
int int10 = response1.statusCode;
java.lang.String str11 = response1.contentType();
java.net.URL uRL12 = response1.url();
// The following exception was thrown during execution in test generation
try {
byte[] byteArray13 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(uRL12);
}
@Test
public void test02600() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02600");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
java.lang.String str13 = response1.statusMessage();
java.net.URL uRL14 = response1.url();
java.lang.String str15 = response1.charset;
java.net.URL uRL16 = response1.url();
response1.charset = "";
// The following exception was thrown during execution in test generation
try {
java.lang.String str19 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(uRL14);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(uRL16);
}
@Test
public void test02601() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02601");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusCode = (byte) 1;
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
response1.charset = "hi!";
response1.contentType = "";
org.jsoup.Connection.Request request13 = null;
response1.req = request13;
org.jsoup.Connection.Method method15 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response1.method(method15);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNull(byteBuffer8);
}
@Test
public void test02602() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02602");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("hi!");
boolean boolean12 = response1.hasHeader("hi!");
org.jsoup.Connection.Response response14 = response1.removeCookie("hi!");
org.jsoup.Connection.Response response16 = response1.removeCookie("");
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response19 = response1.header("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNotNull(response14);
org.junit.Assert.assertNotNull(response16);
}
@Test
public void test02603() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02603");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.contentType;
org.jsoup.Connection.Request request13 = response1.req;
java.lang.String str15 = response1.header("hi!");
boolean boolean17 = response1.hasHeader("hi!");
java.lang.String str18 = response1.charset();
boolean boolean20 = response1.hasHeader("hi!");
org.jsoup.helper.HttpConnection.Response response21 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str22 = response1.statusMessage;
java.util.Map<java.lang.String, java.lang.String> strMap23 = response1.cookies();
org.jsoup.Connection.Response response26 = response1.header("hi!", "");
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document27 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
org.junit.Assert.assertEquals("'" + str22 + "' != '" + "" + "'", str22, "");
org.junit.Assert.assertNotNull(strMap23);
org.junit.Assert.assertNotNull(response26);
}
@Test
public void test02604() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02604");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.contentType;
org.jsoup.Connection.Request request13 = response1.req;
java.lang.String str15 = response1.header("hi!");
boolean boolean17 = response1.hasHeader("hi!");
int int18 = response1.statusCode();
response1.statusMessage = "";
org.jsoup.Connection.Request request21 = response1.req;
org.jsoup.Connection.Method method22 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response23 = response1.method(method22);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0);
org.junit.Assert.assertNull(request21);
}
@Test
public void test02605() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02605");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.headers();
org.jsoup.Connection.Response response14 = response1.header("hi!", "");
java.lang.String str16 = response1.header("");
org.jsoup.Connection.Response response18 = response1.removeCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap19 = response1.headers();
org.jsoup.Connection.Method method20 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response21 = response1.method(method20);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertNotNull(response14);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNotNull(response18);
org.junit.Assert.assertNotNull(strMap19);
}
@Test
public void test02606() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02606");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request3 = response2.req;
java.nio.ByteBuffer byteBuffer4 = response2.byteData;
java.lang.String str5 = response2.statusMessage;
org.jsoup.Connection.Response response7 = response2.removeCookie("");
int int8 = response2.statusCode;
java.util.Map<java.lang.String, java.lang.String> strMap9 = response2.cookies();
java.lang.String str10 = response2.statusMessage();
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response11 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request3);
org.junit.Assert.assertNull(byteBuffer4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0);
org.junit.Assert.assertNotNull(strMap9);
org.junit.Assert.assertNull(str10);
}
@Test
public void test02607() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02607");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
int int7 = response1.statusCode();
response1.statusCode = (byte) 0;
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.headers();
java.lang.String str12 = response1.getHeaderCaseInsensitive("hi!");
org.jsoup.Connection.Request request13 = response1.req;
java.nio.ByteBuffer byteBuffer14 = response1.byteData;
org.jsoup.Connection.Response response17 = response1.cookie("hi!", "");
java.lang.String str19 = response1.header("");
java.net.URL uRL20 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response21 = response1.url(uRL20);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertNull(byteBuffer14);
org.junit.Assert.assertNotNull(response17);
org.junit.Assert.assertNull(str19);
}
@Test
public void test02608() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02608");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.getHeaderCaseInsensitive("hi!");
java.lang.String str14 = response1.cookie("");
java.nio.ByteBuffer byteBuffer15 = response1.byteData;
java.lang.String str16 = response1.contentType;
int int17 = response1.statusCode();
java.lang.String str19 = response1.cookie("");
java.net.HttpURLConnection httpURLConnection20 = null;
org.jsoup.helper.HttpConnection.Response response21 = null;
org.jsoup.helper.HttpConnection.Response response22 = new org.jsoup.helper.HttpConnection.Response(response21);
response22.statusMessage = "";
org.jsoup.Connection.Method method25 = response22.method();
response22.numRedirects = (short) 100;
org.jsoup.Connection.Request request28 = response22.req;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection20, (org.jsoup.Connection.Response) response22);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(byteBuffer15);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNull(method25);
org.junit.Assert.assertNull(request28);
}
@Test
public void test02609() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02609");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
java.lang.String str9 = response1.statusMessage();
org.jsoup.Connection.Method method10 = response1.method();
int int11 = response1.statusCode;
java.net.URL uRL12 = response1.url();
java.lang.String str13 = response1.contentType;
int int14 = response1.numRedirects;
response1.numRedirects = (byte) 100;
java.lang.String str17 = response1.charset;
java.lang.Class<?> wildcardClass18 = response1.getClass();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(method10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertNull(uRL12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertNotNull(wildcardClass18);
}
@Test
public void test02610() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02610");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response6 = response1.removeHeader("hi!");
org.jsoup.Connection.Response response8 = response1.removeHeader("hi!");
response1.contentType = "";
int int11 = response1.numRedirects;
java.lang.String str12 = response1.contentType;
boolean boolean14 = response1.hasCookie("hi!");
java.net.URL uRL15 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response1.url(uRL15);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertNotNull(response8);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertEquals("'" + str12 + "' != '" + "" + "'", str12, "");
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
}
@Test
public void test02611() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02611");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
response2.statusMessage = "";
java.net.URL uRL5 = response2.url();
int int6 = response2.statusCode();
java.lang.String str8 = response2.header("");
org.jsoup.Connection.Method method9 = response2.method();
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response10 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(uRL5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(method9);
}
@Test
public void test02612() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02612");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
response1.executed = true;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry16 = response1.scanHeaders("");
response1.statusCode = 0;
boolean boolean20 = response1.hasHeader("hi!");
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response22 = response1.removeHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(strEntry16);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
}
@Test
public void test02613() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02613");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.lang.String str3 = response1.contentType;
org.jsoup.Connection.Request request4 = null;
response1.req = request4;
org.jsoup.helper.HttpConnection.Response response6 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str7 = response1.charset;
java.lang.String str8 = response1.contentType();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
org.jsoup.Connection.Request request11 = response1.req;
response1.executed = false;
java.lang.String str14 = response1.statusMessage;
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document15 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(request11);
org.junit.Assert.assertNull(str14);
}
@Test
public void test02614() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02614");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
response1.numRedirects = 0;
response1.statusMessage = "";
java.lang.String str15 = response1.charset();
response1.statusCode = ' ';
response1.numRedirects = (byte) -1;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str15);
}
@Test
public void test02615() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02615");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
response1.numRedirects = 0;
java.lang.String str13 = response1.statusMessage;
java.lang.String str15 = response1.header("hi!");
java.lang.Class<?> wildcardClass16 = response1.getClass();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNotNull(wildcardClass16);
}
@Test
public void test02616() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02616");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry6 = response1.scanHeaders("hi!");
java.lang.String str7 = response1.contentType;
java.lang.String str8 = response1.charset();
java.net.URL uRL9 = response1.url();
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.headers();
boolean boolean11 = response1.executed;
java.nio.ByteBuffer byteBuffer12 = response1.byteData;
java.nio.ByteBuffer byteBuffer13 = null;
response1.byteData = byteBuffer13;
java.lang.String str15 = response1.contentType();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(strEntry6);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(byteBuffer12);
org.junit.Assert.assertNull(str15);
}
@Test
public void test02617() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02617");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.contentType;
response1.contentType = "hi!";
boolean boolean15 = response1.executed;
response1.executed = true;
int int18 = response1.statusCode;
java.net.URL uRL19 = response1.url();
org.jsoup.helper.HttpConnection.Response response20 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str22 = response1.header("");
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0);
org.junit.Assert.assertNull(uRL19);
org.junit.Assert.assertNull(str22);
}
@Test
public void test02618() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02618");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
response1.numRedirects = 0;
response1.statusMessage = "";
java.lang.String str15 = response1.charset();
boolean boolean16 = response1.executed;
java.net.URL uRL17 = response1.url();
org.jsoup.Connection.Request request18 = null;
response1.req = request18;
java.lang.String str20 = response1.charset();
java.lang.String str21 = response1.charset();
org.jsoup.Connection.Method method22 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response23 = response1.method(method22);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertNull(uRL17);
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertNull(str21);
}
@Test
public void test02619() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02619");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response7 = response1.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
java.util.Map<java.lang.String, java.lang.String> strMap9 = response1.cookies();
int int10 = response1.statusCode;
org.jsoup.Connection.Response response12 = response1.removeCookie("");
org.jsoup.Connection.Request request13 = null;
response1.req = request13;
org.jsoup.Connection.Response response16 = response1.removeCookie("");
response1.statusMessage = "";
java.nio.ByteBuffer byteBuffer19 = response1.byteData;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNotNull(strMap9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertNotNull(response12);
org.junit.Assert.assertNotNull(response16);
org.junit.Assert.assertNull(byteBuffer19);
}
@Test
public void test02620() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02620");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request3 = response2.req;
java.lang.String str5 = response2.cookie("hi!");
java.lang.String str6 = response2.charset();
int int7 = response2.statusCode;
java.nio.ByteBuffer byteBuffer8 = response2.byteData;
org.jsoup.Connection.Method method9 = response2.method();
java.lang.String str10 = response2.statusMessage();
org.jsoup.Connection.Method method11 = response2.method();
int int12 = response2.statusCode;
java.net.URL uRL13 = response2.url();
java.lang.String str15 = response2.header("");
java.lang.String str16 = response2.statusMessage;
int int17 = response2.numRedirects;
org.jsoup.Connection.Request request18 = null;
response2.req = request18;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response20 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request3);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNull(method9);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(method11);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
org.junit.Assert.assertNull(uRL13);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
}
@Test
public void test02621() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02621");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str9 = response1.statusMessage();
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.cookies();
response1.charset = "hi!";
java.nio.ByteBuffer byteBuffer13 = response1.byteData;
int int14 = response1.statusCode();
java.lang.Class<?> wildcardClass15 = response1.getClass();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(byteBuffer13);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
org.junit.Assert.assertNotNull(wildcardClass15);
}
@Test
public void test02622() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02622");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
org.jsoup.Connection.Response response10 = response1.removeCookie("");
org.jsoup.Connection.Request request11 = response1.req;
java.lang.String str13 = response1.cookie("hi!");
java.lang.String str15 = response1.header("");
org.jsoup.Connection.Response response17 = response1.removeCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap18 = response1.cookies();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertNull(request11);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNotNull(response17);
org.junit.Assert.assertNotNull(strMap18);
}
@Test
public void test02623() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02623");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.lang.String str9 = response1.charset();
java.lang.String str10 = response1.statusMessage();
java.net.URL uRL11 = response1.url();
java.lang.String str13 = response1.header("hi!");
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertEquals("'" + str10 + "' != '" + "" + "'", str10, "");
org.junit.Assert.assertNull(uRL11);
org.junit.Assert.assertNull(str13);
}
@Test
public void test02624() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02624");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
response1.executed = true;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry16 = response1.scanHeaders("");
response1.statusCode = 0;
org.jsoup.Connection.Method method19 = response1.method();
java.nio.ByteBuffer byteBuffer20 = null;
response1.byteData = byteBuffer20;
org.jsoup.Connection.Method method22 = response1.method();
// The following exception was thrown during execution in test generation
try {
byte[] byteArray23 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(strEntry16);
org.junit.Assert.assertNull(method19);
org.junit.Assert.assertNull(method22);
}
@Test
public void test02625() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02625");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response7 = response1.header("hi!", "hi!");
java.lang.String str8 = response1.statusMessage;
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document9 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertNull(str8);
}
@Test
public void test02626() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02626");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
java.lang.String str6 = response1.contentType();
java.util.Map<java.lang.String, java.lang.String> strMap7 = response1.cookies();
org.jsoup.Connection.Response response10 = response1.header("hi!", "hi!");
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNotNull(strMap7);
org.junit.Assert.assertNotNull(response10);
}
@Test
public void test02627() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02627");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
java.lang.String str6 = response1.header("hi!");
org.jsoup.Connection.Response response8 = response1.removeHeader("hi!");
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response11 = response1.cookie("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cookie name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNotNull(response8);
}
@Test
public void test02628() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02628");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
response1.charset = "";
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response15 = response1.cookie("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cookie name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
}
@Test
public void test02629() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02629");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
int int5 = response1.statusCode();
org.jsoup.Connection.Response response8 = response1.header("hi!", "");
org.jsoup.Connection.Request request9 = response1.req;
java.lang.String str10 = response1.contentType();
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.cookies();
java.lang.String str12 = response1.statusMessage();
java.lang.String str13 = response1.contentType();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry15 = response1.scanHeaders("");
java.net.URL uRL16 = response1.url();
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0);
org.junit.Assert.assertNotNull(response8);
org.junit.Assert.assertNull(request9);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertEquals("'" + str12 + "' != '" + "" + "'", str12, "");
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(strEntry15);
org.junit.Assert.assertNull(uRL16);
}
@Test
public void test02630() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02630");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request3 = response2.req;
java.lang.String str5 = response2.cookie("hi!");
org.jsoup.Connection.Response response7 = response2.removeHeader("hi!");
java.lang.String str8 = response2.statusMessage;
java.lang.String str10 = response2.getHeaderCaseInsensitive("hi!");
java.lang.String str11 = response2.charset;
org.jsoup.Connection.Request request12 = response2.req;
response2.charset = "hi!";
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response15 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request3);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(request12);
}
@Test
public void test02631() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02631");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
response1.charset = "";
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
java.util.Map<java.lang.String, java.lang.String> strMap14 = response1.cookies();
java.lang.String str15 = response1.contentType;
java.lang.String str17 = response1.cookie("");
java.lang.String str18 = response1.charset();
java.lang.String str20 = response1.cookie("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry22 = response1.scanHeaders("hi!");
java.lang.String str24 = response1.cookie("");
java.lang.Class<?> wildcardClass25 = response1.getClass();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertNotNull(strMap14);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertEquals("'" + str18 + "' != '" + "" + "'", str18, "");
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertNull(strEntry22);
org.junit.Assert.assertNull(str24);
org.junit.Assert.assertNotNull(wildcardClass25);
}
@Test
public void test02632() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02632");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.lang.String str9 = response1.charset();
java.lang.String str10 = response1.statusMessage();
response1.numRedirects = (byte) 1;
org.jsoup.Connection.Request request13 = null;
response1.req = request13;
java.lang.String str15 = response1.charset();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry17 = response1.scanHeaders("hi!");
java.net.URL uRL18 = response1.url();
java.lang.String str19 = response1.statusMessage();
response1.contentType = "";
java.net.URL uRL22 = response1.url();
java.util.Map<java.lang.String, java.lang.String> strMap23 = response1.headers();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertEquals("'" + str10 + "' != '" + "" + "'", str10, "");
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(strEntry17);
org.junit.Assert.assertNull(uRL18);
org.junit.Assert.assertEquals("'" + str19 + "' != '" + "" + "'", str19, "");
org.junit.Assert.assertNull(uRL22);
org.junit.Assert.assertNotNull(strMap23);
}
@Test
public void test02633() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02633");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
response2.statusMessage = "";
java.net.URL uRL5 = response2.url();
org.jsoup.Connection.Response response7 = response2.removeCookie("");
boolean boolean9 = response2.hasHeader("hi!");
java.lang.String str11 = response2.getHeaderCaseInsensitive("");
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response12 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(uRL5);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(str11);
}
@Test
public void test02634() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02634");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
response1.charset = "";
response1.contentType = "hi!";
java.lang.String str14 = response1.getHeaderCaseInsensitive("");
java.lang.String str15 = response1.contentType;
org.jsoup.Connection.Request request16 = null;
response1.req = request16;
java.lang.String str19 = response1.cookie("hi!");
java.lang.String str20 = response1.statusMessage();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "hi!" + "'", str15, "hi!");
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertEquals("'" + str20 + "' != '" + "" + "'", str20, "");
}
@Test
public void test02635() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02635");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
response1.charset = "";
response1.numRedirects = (-1);
response1.contentType = "hi!";
java.net.URL uRL17 = response1.url();
response1.statusCode = (byte) 10;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response22 = response1.header("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(uRL17);
}
@Test
public void test02636() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02636");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusCode = (byte) 1;
java.lang.String str9 = response1.cookie("");
org.jsoup.Connection.Method method10 = response1.method();
org.jsoup.Connection.Response response12 = response1.removeCookie("hi!");
org.jsoup.helper.HttpConnection.Response response13 = new org.jsoup.helper.HttpConnection.Response(response1);
java.net.HttpURLConnection httpURLConnection14 = null;
org.jsoup.helper.HttpConnection.Response response15 = null;
org.jsoup.helper.HttpConnection.Response response16 = new org.jsoup.helper.HttpConnection.Response(response15);
response16.statusMessage = "";
java.net.URL uRL19 = response16.url();
org.jsoup.Connection.Response response21 = response16.removeCookie("");
response16.statusCode = 100;
boolean boolean24 = response16.executed;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry26 = response16.scanHeaders("");
java.util.Map<java.lang.String, java.lang.String> strMap27 = response16.headers();
java.lang.String str28 = response16.contentType;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection14, (org.jsoup.Connection.Response) response16);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(method10);
org.junit.Assert.assertNotNull(response12);
org.junit.Assert.assertNull(uRL19);
org.junit.Assert.assertNotNull(response21);
org.junit.Assert.assertTrue("'" + boolean24 + "' != '" + false + "'", boolean24 == false);
org.junit.Assert.assertNull(strEntry26);
org.junit.Assert.assertNotNull(strMap27);
org.junit.Assert.assertNull(str28);
}
@Test
public void test02637() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02637");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str11 = response1.charset();
org.jsoup.Connection.Request request12 = response1.req;
java.lang.String str13 = response1.charset();
boolean boolean15 = response1.hasCookie("");
java.net.URL uRL16 = response1.url();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(request12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(uRL16);
}
@Test
public void test02638() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02638");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.nio.ByteBuffer byteBuffer7 = null;
response1.byteData = byteBuffer7;
java.lang.String str9 = response1.statusMessage();
org.jsoup.Connection.Response response12 = response1.cookie("hi!", "");
response1.numRedirects = 1;
java.lang.String str15 = response1.contentType();
java.lang.String str16 = response1.charset;
org.jsoup.Connection.Request request17 = response1.req;
org.jsoup.Connection.Method method18 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response19 = response1.method(method18);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNotNull(response12);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNull(request17);
}
@Test
public void test02639() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02639");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.lang.String str9 = response1.statusMessage();
org.jsoup.helper.HttpConnection.Response response10 = new org.jsoup.helper.HttpConnection.Response(response1);
response10.statusMessage = "hi!";
response10.statusCode = (byte) 100;
java.lang.String str15 = response10.statusMessage();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "hi!" + "'", str15, "hi!");
}
@Test
public void test02640() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02640");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
response1.statusCode = 1;
java.lang.String str14 = response1.header("");
java.lang.String str15 = response1.statusMessage;
java.lang.String str17 = response1.header("");
int int18 = response1.statusCode();
response1.statusCode = (short) -1;
response1.charset = "hi!";
response1.charset = "hi!";
// The following exception was thrown during execution in test generation
try {
byte[] byteArray25 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "" + "'", str15, "");
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 1 + "'", int18 == 1);
}
@Test
public void test02641() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02641");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
org.jsoup.Connection.Request request5 = null;
response1.req = request5;
org.jsoup.Connection.Method method7 = response1.method();
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.cookies();
int int9 = response1.statusCode;
response1.numRedirects = (short) 0;
int int12 = response1.numRedirects;
org.jsoup.helper.HttpConnection.Response response13 = new org.jsoup.helper.HttpConnection.Response(response1);
// The following exception was thrown during execution in test generation
try {
java.lang.String str14 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertNull(method7);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
}
@Test
public void test02642() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02642");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.lang.String str4 = response1.charset;
response1.numRedirects = (byte) -1;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry8 = response1.scanHeaders("");
org.jsoup.Connection.Method method9 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response10 = response1.method(method9);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(strEntry8);
}
@Test
public void test02643() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02643");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
response1.numRedirects = 0;
java.lang.String str13 = response1.statusMessage;
java.lang.String str14 = response1.contentType;
// The following exception was thrown during execution in test generation
try {
java.lang.String str15 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(str14);
}
@Test
public void test02644() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02644");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str9 = response1.statusMessage();
org.jsoup.Connection.Method method10 = response1.method();
response1.numRedirects = 10;
int int13 = response1.statusCode();
java.lang.String str15 = response1.getHeaderCaseInsensitive("");
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNull(method10);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertNull(str15);
}
@Test
public void test02645() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02645");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request3 = response2.req;
java.lang.String str5 = response2.cookie("hi!");
java.lang.String str6 = response2.charset();
response2.statusMessage = "";
response2.statusMessage = "";
org.jsoup.Connection.Response response12 = response2.removeCookie("");
org.jsoup.Connection.Request request13 = response2.req;
boolean boolean14 = response2.executed;
java.nio.ByteBuffer byteBuffer15 = null;
response2.byteData = byteBuffer15;
int int17 = response2.numRedirects;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response18 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request3);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNotNull(response12);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
}
@Test
public void test02646() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02646");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.charset = "";
java.lang.String str4 = response1.contentType();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry6 = response1.scanHeaders("");
org.jsoup.Connection.Request request7 = response1.req;
response1.numRedirects = (short) 1;
// The following exception was thrown during execution in test generation
try {
boolean boolean11 = response1.hasHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(strEntry6);
org.junit.Assert.assertNull(request7);
}
@Test
public void test02647() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02647");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.charset();
org.jsoup.helper.HttpConnection.Response response13 = new org.jsoup.helper.HttpConnection.Response(response1);
response1.statusCode = (byte) 1;
boolean boolean16 = response1.executed;
java.lang.String str17 = response1.statusMessage();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertEquals("'" + str17 + "' != '" + "" + "'", str17, "");
}
@Test
public void test02648() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02648");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
response2.statusMessage = "";
org.jsoup.Connection.Method method5 = response2.method();
java.nio.ByteBuffer byteBuffer6 = null;
response2.byteData = byteBuffer6;
org.jsoup.Connection.Request request8 = null;
response2.req = request8;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry11 = response2.scanHeaders("hi!");
java.lang.String str12 = response2.contentType;
response2.contentType = "hi!";
int int15 = response2.statusCode();
java.nio.ByteBuffer byteBuffer16 = response2.byteData;
boolean boolean17 = response2.executed;
org.jsoup.Connection.Request request18 = response2.req;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response19 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNull(strEntry11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0);
org.junit.Assert.assertNull(byteBuffer16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNull(request18);
}
@Test
public void test02649() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02649");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
java.lang.String str9 = response1.statusMessage();
org.jsoup.Connection.Method method10 = response1.method();
int int11 = response1.statusCode;
java.net.URL uRL12 = response1.url();
java.lang.String str14 = response1.header("");
boolean boolean16 = response1.hasHeader("hi!");
java.lang.String str18 = response1.header("");
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document19 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(method10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertNull(uRL12);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertNull(str18);
}
@Test
public void test02650() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02650");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str7 = response1.charset();
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response10 = response1.removeHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(byteBuffer8);
}
@Test
public void test02651() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02651");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
response1.charset = "";
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
java.util.Map<java.lang.String, java.lang.String> strMap14 = response1.cookies();
java.lang.String str15 = response1.statusMessage();
java.nio.ByteBuffer byteBuffer16 = response1.byteData;
boolean boolean18 = response1.hasCookie("hi!");
int int19 = response1.statusCode;
response1.charset = "";
boolean boolean22 = response1.executed;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertNotNull(strMap14);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "hi!" + "'", str15, "hi!");
org.junit.Assert.assertNull(byteBuffer16);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 0 + "'", int19 == 0);
org.junit.Assert.assertTrue("'" + boolean22 + "' != '" + false + "'", boolean22 == false);
}
@Test
public void test02652() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02652");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
response1.charset = "";
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
org.jsoup.Connection.Response response15 = response1.removeHeader("hi!");
org.jsoup.helper.HttpConnection.Response response16 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str17 = response16.contentType;
org.jsoup.helper.HttpConnection.Response response18 = new org.jsoup.helper.HttpConnection.Response(response16);
boolean boolean20 = response18.hasCookie("");
boolean boolean22 = response18.hasHeader("hi!");
java.nio.ByteBuffer byteBuffer23 = response18.byteData;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertNotNull(response15);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
org.junit.Assert.assertTrue("'" + boolean22 + "' != '" + false + "'", boolean22 == false);
org.junit.Assert.assertNull(byteBuffer23);
}
@Test
public void test02653() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02653");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
org.jsoup.Connection.Response response10 = response1.removeCookie("");
java.nio.ByteBuffer byteBuffer11 = null;
response1.byteData = byteBuffer11;
java.lang.String str14 = response1.header("hi!");
response1.statusCode = 10;
java.net.URL uRL17 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response18 = response1.url(uRL17);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertNull(str14);
}
@Test
public void test02654() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02654");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.nio.ByteBuffer byteBuffer3 = response1.byteData;
java.lang.String str4 = response1.charset;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response8 = response1.removeCookie("hi!");
org.jsoup.Connection.Response response10 = response1.removeHeader("hi!");
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.cookies();
int int12 = response1.numRedirects;
java.net.URL uRL13 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response14 = response1.url(uRL13);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(byteBuffer3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response8);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
}
@Test
public void test02655() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02655");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
response1.statusMessage = "";
response1.statusMessage = "";
org.jsoup.Connection.Response response11 = response1.removeCookie("");
org.jsoup.Connection.Request request12 = response1.req;
boolean boolean13 = response1.executed;
java.nio.ByteBuffer byteBuffer14 = null;
response1.byteData = byteBuffer14;
int int16 = response1.numRedirects;
int int17 = response1.statusCode();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(request12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
}
@Test
public void test02656() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02656");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
response1.statusCode = 0;
java.net.HttpURLConnection httpURLConnection7 = null;
org.jsoup.helper.HttpConnection.Response response8 = null;
org.jsoup.helper.HttpConnection.Response response9 = new org.jsoup.helper.HttpConnection.Response(response8);
org.jsoup.Connection.Request request10 = response9.req;
int int11 = response9.statusCode;
response9.executed = false;
response9.statusMessage = "hi!";
org.jsoup.Connection.Response response17 = response9.removeCookie("");
java.lang.String str18 = response9.contentType;
int int19 = response9.statusCode();
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection7, (org.jsoup.Connection.Response) response9);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(request10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertNotNull(response17);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 0 + "'", int19 == 0);
}
@Test
public void test02657() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02657");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
response1.charset = "";
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
org.jsoup.Connection.Response response15 = response1.removeHeader("hi!");
org.jsoup.Connection.Method method16 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response17 = response1.method(method16);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertNotNull(response15);
}
@Test
public void test02658() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02658");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
response1.charset = "";
response1.numRedirects = (-1);
response1.contentType = "hi!";
java.lang.String str17 = response1.contentType();
java.lang.String str19 = response1.cookie("");
java.nio.ByteBuffer byteBuffer20 = response1.byteData;
org.jsoup.helper.HttpConnection.Response response21 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str22 = response21.charset();
org.jsoup.Connection.Response response24 = response21.removeHeader("hi!");
java.net.URL uRL25 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response26 = response21.url(uRL25);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertEquals("'" + str17 + "' != '" + "hi!" + "'", str17, "hi!");
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNull(byteBuffer20);
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertNotNull(response24);
}
@Test
public void test02659() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02659");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
org.jsoup.Connection.Response response6 = response1.removeCookie("");
response1.statusCode = 100;
boolean boolean9 = response1.executed;
int int10 = response1.statusCode;
java.lang.Class<?> wildcardClass11 = response1.getClass();
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100);
org.junit.Assert.assertNotNull(wildcardClass11);
}
@Test
public void test02660() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02660");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
org.jsoup.Connection.Response response11 = response1.removeHeader("hi!");
java.lang.String str12 = response1.contentType;
boolean boolean14 = response1.hasHeader("hi!");
java.lang.Class<?> wildcardClass15 = response1.getClass();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNotNull(wildcardClass15);
}
@Test
public void test02661() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02661");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
response1.executed = false;
response1.contentType = "hi!";
java.lang.String str9 = response1.statusMessage;
org.jsoup.Connection.Response response12 = response1.header("hi!", "");
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNotNull(response12);
}
@Test
public void test02662() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02662");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
response1.contentType = "hi!";
java.util.Map<java.lang.String, java.lang.String> strMap13 = response1.cookies();
java.net.HttpURLConnection httpURLConnection14 = null;
org.jsoup.helper.HttpConnection.Response response15 = null;
org.jsoup.helper.HttpConnection.Response response16 = new org.jsoup.helper.HttpConnection.Response(response15);
org.jsoup.Connection.Request request17 = response16.req;
int int18 = response16.statusCode;
response16.executed = false;
response16.statusMessage = "hi!";
org.jsoup.Connection.Response response24 = response16.removeCookie("");
org.jsoup.Connection.Response response26 = response16.removeHeader("hi!");
boolean boolean28 = response16.hasCookie("");
org.jsoup.helper.HttpConnection.Response response29 = new org.jsoup.helper.HttpConnection.Response(response16);
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection14, (org.jsoup.Connection.Response) response16);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNotNull(strMap13);
org.junit.Assert.assertNull(request17);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0);
org.junit.Assert.assertNotNull(response24);
org.junit.Assert.assertNotNull(response26);
org.junit.Assert.assertTrue("'" + boolean28 + "' != '" + false + "'", boolean28 == false);
}
@Test
public void test02663() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02663");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "";
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
org.jsoup.Connection.Method method9 = response1.method();
response1.charset = "hi!";
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNull(method9);
}
@Test
public void test02664() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02664");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
response1.numRedirects = 0;
java.lang.String str13 = response1.contentType();
response1.contentType = "";
java.lang.String str16 = response1.charset();
java.net.URL uRL17 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response18 = response1.url(uRL17);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(str16);
}
@Test
public void test02665() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02665");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request3 = response2.req;
int int4 = response2.statusCode;
response2.executed = false;
java.lang.String str8 = response2.getHeaderCaseInsensitive("");
org.jsoup.Connection.Method method9 = response2.method();
java.util.Map<java.lang.String, java.lang.String> strMap10 = response2.cookies();
java.nio.ByteBuffer byteBuffer11 = response2.byteData;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response12 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request3);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(method9);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(byteBuffer11);
}
@Test
public void test02666() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02666");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.charset;
org.jsoup.Connection.Request request5 = response1.req;
java.util.Map<java.lang.String, java.lang.String> strMap6 = response1.headers();
response1.numRedirects = (byte) 1;
java.lang.String str10 = response1.header("hi!");
response1.numRedirects = (byte) 10;
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document13 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(request5);
org.junit.Assert.assertNotNull(strMap6);
org.junit.Assert.assertNull(str10);
}
@Test
public void test02667() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02667");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
java.lang.String str6 = response1.charset;
java.lang.String str7 = response1.statusMessage();
java.lang.String str9 = response1.getHeaderCaseInsensitive("");
// The following exception was thrown during execution in test generation
try {
java.lang.String str10 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str9);
}
@Test
public void test02668() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02668");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.lang.String str3 = response1.contentType;
response1.executed = false;
response1.numRedirects = (byte) 10;
java.lang.String str8 = response1.contentType;
int int9 = response1.statusCode;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
}
@Test
public void test02669() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02669");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
response1.statusMessage = "";
org.jsoup.Connection.Method method8 = response1.method();
int int9 = response1.numRedirects;
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.cookies();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry12 = response1.scanHeaders("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry14 = response1.scanHeaders("hi!");
java.nio.ByteBuffer byteBuffer15 = null;
response1.byteData = byteBuffer15;
boolean boolean18 = response1.hasCookie("");
boolean boolean19 = response1.executed;
java.util.Map<java.lang.String, java.lang.String> strMap20 = response1.headers();
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document21 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(strEntry12);
org.junit.Assert.assertNull(strEntry14);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertNotNull(strMap20);
}
@Test
public void test02670() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02670");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response6 = response1.removeHeader("hi!");
java.lang.String str7 = response1.statusMessage;
java.lang.String str9 = response1.getHeaderCaseInsensitive("hi!");
java.lang.String str10 = response1.charset();
java.lang.String str11 = response1.charset();
// The following exception was thrown during execution in test generation
try {
boolean boolean13 = response1.hasHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(str11);
}
@Test
public void test02671() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02671");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str7 = response1.charset();
boolean boolean9 = response1.hasHeader("hi!");
java.lang.String str10 = response1.contentType();
org.jsoup.helper.HttpConnection.Response response11 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Response response14 = response11.cookie("hi!", "");
java.lang.String str15 = response11.statusMessage;
java.util.Map<java.lang.String, java.lang.String> strMap16 = response11.cookies();
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNotNull(response14);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNotNull(strMap16);
}
@Test
public void test02672() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02672");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.header("");
java.nio.ByteBuffer byteBuffer13 = response1.byteData;
java.lang.String str15 = response1.getHeaderCaseInsensitive("hi!");
boolean boolean17 = response1.hasHeader("hi!");
org.jsoup.Connection.Response response20 = response1.header("hi!", "");
org.jsoup.Connection.Method method21 = response1.method();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(byteBuffer13);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNotNull(response20);
org.junit.Assert.assertNull(method21);
}
@Test
public void test02673() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02673");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("hi!");
boolean boolean12 = response1.hasHeader("hi!");
java.nio.ByteBuffer byteBuffer13 = null;
response1.byteData = byteBuffer13;
org.jsoup.Connection.Response response16 = response1.removeHeader("hi!");
int int17 = response1.statusCode();
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response20 = response1.header("", "");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNotNull(response16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
}
@Test
public void test02674() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02674");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request3 = response2.req;
int int4 = response2.statusCode;
response2.executed = false;
java.lang.String str7 = response2.charset;
response2.statusMessage = "";
org.jsoup.Connection.Response response11 = response2.removeHeader("hi!");
boolean boolean12 = response2.executed;
response2.charset = "";
int int15 = response2.statusCode();
org.jsoup.Connection.Response response18 = response2.cookie("hi!", "");
org.jsoup.helper.HttpConnection.Response response19 = new org.jsoup.helper.HttpConnection.Response(response2);
int int20 = response2.numRedirects;
int int21 = response2.statusCode;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response22 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request3);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0);
org.junit.Assert.assertNotNull(response18);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + 0 + "'", int20 == 0);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 0 + "'", int21 == 0);
}
@Test
public void test02675() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02675");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str9 = response1.statusMessage();
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.cookies();
response1.charset = "hi!";
java.lang.String str13 = response1.statusMessage();
java.lang.String str14 = response1.contentType();
org.jsoup.Connection.Response response17 = response1.cookie("hi!", "hi!");
java.lang.Class<?> wildcardClass18 = response17.getClass();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNotNull(response17);
org.junit.Assert.assertNotNull(wildcardClass18);
}
@Test
public void test02676() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02676");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
org.jsoup.Connection.Request request5 = null;
response1.req = request5;
org.jsoup.Connection.Method method7 = response1.method();
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.cookies();
int int9 = response1.statusCode;
response1.numRedirects = (short) 0;
int int12 = response1.numRedirects;
org.jsoup.helper.HttpConnection.Response response13 = new org.jsoup.helper.HttpConnection.Response(response1);
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document14 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertNull(method7);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
}
@Test
public void test02677() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02677");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
response1.numRedirects = 0;
response1.statusMessage = "";
java.lang.String str15 = response1.charset();
response1.statusCode = ' ';
java.lang.String str19 = response1.getHeaderCaseInsensitive("");
org.jsoup.Connection.Request request20 = response1.req;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNull(request20);
}
@Test
public void test02678() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02678");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
response1.statusCode = (short) 0;
int int10 = response1.statusCode();
java.net.URL uRL11 = response1.url();
java.lang.String str12 = response1.charset;
java.util.Map<java.lang.String, java.lang.String> strMap13 = response1.headers();
org.jsoup.Connection.Response response15 = response1.removeCookie("hi!");
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document16 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertNull(uRL11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNotNull(strMap13);
org.junit.Assert.assertNotNull(response15);
}
@Test
public void test02679() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02679");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
response1.statusMessage = "";
org.jsoup.Connection.Response response9 = response1.cookie("hi!", "");
boolean boolean11 = response1.hasCookie("hi!");
response1.statusMessage = "";
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry15 = response1.scanHeaders("");
org.jsoup.Connection.Method method16 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response17 = response1.method(method16);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);
org.junit.Assert.assertNull(strEntry15);
}
@Test
public void test02680() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02680");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
int int5 = response1.statusCode();
response1.statusCode = 32;
org.jsoup.Connection.Method method8 = response1.method();
java.lang.String str9 = response1.charset();
java.lang.String str10 = response1.contentType;
response1.charset = "";
java.net.HttpURLConnection httpURLConnection13 = null;
org.jsoup.helper.HttpConnection.Response response14 = null;
org.jsoup.helper.HttpConnection.Response response15 = new org.jsoup.helper.HttpConnection.Response(response14);
response15.statusMessage = "";
org.jsoup.Connection.Method method18 = response15.method();
java.nio.ByteBuffer byteBuffer19 = null;
response15.byteData = byteBuffer19;
org.jsoup.Connection.Request request21 = null;
response15.req = request21;
java.lang.String str23 = response15.statusMessage();
org.jsoup.Connection.Method method24 = response15.method();
response15.numRedirects = 10;
java.util.Map<java.lang.String, java.lang.String> strMap27 = response15.headers();
org.jsoup.Connection.Response response29 = response15.removeCookie("");
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection13, (org.jsoup.Connection.Response) response15);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(method18);
org.junit.Assert.assertEquals("'" + str23 + "' != '" + "" + "'", str23, "");
org.junit.Assert.assertNull(method24);
org.junit.Assert.assertNotNull(strMap27);
org.junit.Assert.assertNotNull(response29);
}
@Test
public void test02681() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02681");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
java.lang.String str13 = response1.statusMessage();
java.net.URL uRL14 = response1.url();
java.lang.String str15 = response1.charset;
java.net.URL uRL16 = response1.url();
java.util.Map<java.lang.String, java.lang.String> strMap17 = response1.cookies();
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response20 = response1.cookie("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cookie name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(uRL14);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(uRL16);
org.junit.Assert.assertNotNull(strMap17);
}
@Test
public void test02682() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02682");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.lang.String str10 = response1.cookie("hi!");
boolean boolean12 = response1.hasCookie("");
boolean boolean13 = response1.executed;
boolean boolean15 = response1.hasCookie("");
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
}
@Test
public void test02683() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02683");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str9 = response1.statusMessage();
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.cookies();
response1.charset = "hi!";
org.jsoup.Connection.Request request13 = null;
response1.req = request13;
java.lang.String str15 = response1.contentType;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response17 = response1.removeHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(str15);
}
@Test
public void test02684() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02684");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
java.lang.String str13 = response1.statusMessage();
java.net.URL uRL14 = response1.url();
org.jsoup.Connection.Request request15 = response1.req;
response1.statusMessage = "hi!";
org.jsoup.Connection.Method method18 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response19 = response1.method(method18);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(uRL14);
org.junit.Assert.assertNull(request15);
}
@Test
public void test02685() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02685");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
org.jsoup.Connection.Method method5 = response1.method();
response1.contentType = "";
response1.statusMessage = "hi!";
java.lang.Class<?> wildcardClass10 = response1.getClass();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNotNull(wildcardClass10);
}
@Test
public void test02686() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02686");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusCode = (byte) 1;
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.headers();
java.lang.String str10 = response1.cookie("hi!");
response1.statusCode = ' ';
java.lang.Class<?> wildcardClass13 = response1.getClass();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNotNull(wildcardClass13);
}
@Test
public void test02687() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02687");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
response1.executed = true;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry16 = response1.scanHeaders("");
response1.statusCode = 0;
org.jsoup.Connection.Method method19 = response1.method();
boolean boolean20 = response1.executed;
java.net.URL uRL21 = response1.url();
org.jsoup.Connection.Request request22 = null;
response1.req = request22;
// The following exception was thrown during execution in test generation
try {
boolean boolean25 = response1.hasHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(strEntry16);
org.junit.Assert.assertNull(method19);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + true + "'", boolean20 == true);
org.junit.Assert.assertNull(uRL21);
}
@Test
public void test02688() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02688");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
response1.charset = "";
response1.contentType = "hi!";
java.lang.String str14 = response1.getHeaderCaseInsensitive("");
java.lang.String str15 = response1.contentType;
response1.numRedirects = ' ';
org.jsoup.Connection.Method method18 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response19 = response1.method(method18);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "hi!" + "'", str15, "hi!");
}
@Test
public void test02689() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02689");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str9 = response1.statusMessage();
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.cookies();
response1.charset = "hi!";
java.nio.ByteBuffer byteBuffer13 = response1.byteData;
int int14 = response1.statusCode();
org.jsoup.helper.HttpConnection.Response response15 = new org.jsoup.helper.HttpConnection.Response(response1);
// The following exception was thrown during execution in test generation
try {
byte[] byteArray16 = response15.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(byteBuffer13);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
}
@Test
public void test02690() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02690");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
int int7 = response1.statusCode();
response1.statusCode = (byte) 0;
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.headers();
java.lang.String str12 = response1.getHeaderCaseInsensitive("hi!");
org.jsoup.Connection.Request request13 = response1.req;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry15 = response1.scanHeaders("");
java.lang.String str17 = response1.cookie("");
org.jsoup.Connection.Method method18 = response1.method();
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document19 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertNull(strEntry15);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertNull(method18);
}
@Test
public void test02691() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02691");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
int int7 = response1.statusCode();
org.jsoup.Connection.Response response10 = response1.cookie("hi!", "hi!");
java.lang.String str11 = response1.contentType;
response1.numRedirects = 'a';
java.lang.String str14 = response1.charset;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response15 = new org.jsoup.helper.HttpConnection.Response(response1);
org.junit.Assert.fail("Expected exception of type java.io.IOException; message: Too many redirects occurred trying to load URL null");
} catch (java.io.IOException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str14);
}
@Test
public void test02692() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02692");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusCode = (byte) 1;
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.headers();
boolean boolean10 = response1.hasCookie("hi!");
org.jsoup.Connection.Request request11 = null;
response1.req = request11;
boolean boolean14 = response1.hasHeader("hi!");
response1.numRedirects = (short) 100;
java.nio.ByteBuffer byteBuffer17 = response1.byteData;
response1.numRedirects = 100;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(byteBuffer17);
}
@Test
public void test02693() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02693");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
org.jsoup.Connection.Method method11 = response1.method();
java.lang.String str13 = response1.getHeaderCaseInsensitive("");
int int14 = response1.statusCode();
java.lang.String str16 = response1.getHeaderCaseInsensitive("hi!");
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document17 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(method11);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
org.junit.Assert.assertNull(str16);
}
@Test
public void test02694() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02694");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
response1.charset = "";
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
java.util.Map<java.lang.String, java.lang.String> strMap14 = response1.cookies();
java.lang.String str15 = response1.statusMessage();
java.nio.ByteBuffer byteBuffer16 = response1.byteData;
response1.numRedirects = 35;
org.jsoup.Connection.Request request19 = null;
response1.req = request19;
java.util.Map<java.lang.String, java.lang.String> strMap21 = response1.headers();
java.lang.Class<?> wildcardClass22 = strMap21.getClass();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertNotNull(strMap14);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "hi!" + "'", str15, "hi!");
org.junit.Assert.assertNull(byteBuffer16);
org.junit.Assert.assertNotNull(strMap21);
org.junit.Assert.assertNotNull(wildcardClass22);
}
@Test
public void test02695() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02695");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.net.URL uRL7 = response1.url();
boolean boolean9 = response1.hasCookie("");
org.jsoup.helper.HttpConnection.Response response10 = new org.jsoup.helper.HttpConnection.Response(response1);
response1.charset = "hi!";
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document13 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(uRL7);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
}
@Test
public void test02696() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02696");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry6 = response1.scanHeaders("hi!");
java.lang.String str7 = response1.contentType;
java.lang.String str8 = response1.charset();
response1.statusCode = '4';
// The following exception was thrown during execution in test generation
try {
byte[] byteArray11 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(strEntry6);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str8);
}
@Test
public void test02697() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02697");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str11 = response1.charset();
java.lang.String str12 = response1.charset;
org.jsoup.Connection.Response response14 = response1.removeCookie("hi!");
response1.executed = false;
response1.statusCode = 0;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response21 = response1.cookie("", "");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cookie name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNotNull(response14);
}
@Test
public void test02698() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02698");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.lang.String str3 = response1.contentType;
org.jsoup.Connection.Request request4 = null;
response1.req = request4;
org.jsoup.helper.HttpConnection.Response response6 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request7 = response6.req;
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document8 = response6.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(request7);
}
@Test
public void test02699() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02699");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
org.jsoup.helper.HttpConnection.Response response5 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request6 = null;
response1.req = request6;
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document8 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
}
@Test
public void test02700() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02700");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
int int7 = response1.statusCode();
response1.statusCode = (byte) 0;
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.headers();
org.jsoup.Connection.Request request11 = response1.req;
org.jsoup.Connection.Request request12 = response1.req;
java.nio.ByteBuffer byteBuffer13 = response1.byteData;
java.util.Map<java.lang.String, java.lang.String> strMap14 = response1.cookies();
// The following exception was thrown during execution in test generation
try {
byte[] byteArray15 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(request11);
org.junit.Assert.assertNull(request12);
org.junit.Assert.assertNull(byteBuffer13);
org.junit.Assert.assertNotNull(strMap14);
}
@Test
public void test02701() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02701");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
org.jsoup.Connection.Method method5 = response1.method();
int int6 = response1.numRedirects;
org.jsoup.Connection.Response response9 = response1.header("hi!", "");
response1.statusMessage = "";
java.lang.String str13 = response1.getHeaderCaseInsensitive("");
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertNull(str13);
}
@Test
public void test02702() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02702");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response7 = response1.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
org.jsoup.Connection.Response response10 = response1.removeCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.cookies();
response1.statusMessage = "";
java.util.Map<java.lang.String, java.lang.String> strMap14 = response1.headers();
java.lang.String str15 = response1.statusMessage();
org.jsoup.Connection.Method method16 = response1.method();
int int17 = response1.statusCode();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertNotNull(strMap14);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "" + "'", str15, "");
org.junit.Assert.assertNull(method16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
}
@Test
public void test02703() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02703");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response7 = response1.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
java.lang.String str10 = response1.cookie("");
java.nio.ByteBuffer byteBuffer11 = response1.byteData;
response1.executed = true;
org.jsoup.Connection.Response response16 = response1.cookie("hi!", "");
java.net.URL uRL17 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response18 = response1.url(uRL17);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(byteBuffer11);
org.junit.Assert.assertNotNull(response16);
}
@Test
public void test02704() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02704");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
org.jsoup.Connection.Request request5 = null;
response1.req = request5;
org.jsoup.Connection.Method method7 = response1.method();
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.cookies();
java.lang.String str9 = response1.contentType();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry11 = response1.scanHeaders("");
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document12 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertNull(method7);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(strEntry11);
}
@Test
public void test02705() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02705");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
org.jsoup.Connection.Response response13 = response1.cookie("hi!", "hi!");
response1.contentType = "hi!";
java.util.Map<java.lang.String, java.lang.String> strMap16 = response1.cookies();
response1.statusCode = '4';
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNotNull(response13);
org.junit.Assert.assertNotNull(strMap16);
}
@Test
public void test02706() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02706");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
org.jsoup.Connection.Response response11 = response1.removeHeader("hi!");
java.lang.String str12 = response1.contentType;
org.jsoup.Connection.Response response15 = response1.header("hi!", "hi!");
java.util.Map<java.lang.String, java.lang.String> strMap16 = response1.cookies();
java.net.URL uRL17 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response18 = response1.url(uRL17);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNotNull(response15);
org.junit.Assert.assertNotNull(strMap16);
}
@Test
public void test02707() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02707");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response7 = response1.header("hi!", "hi!");
java.lang.String str9 = response1.header("hi!");
java.lang.String str10 = response1.statusMessage();
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.cookies();
org.jsoup.Connection.Method method12 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response13 = response1.method(method12);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "hi!" + "'", str9, "hi!");
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNotNull(strMap11);
}
@Test
public void test02708() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02708");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
int int7 = response1.statusCode();
response1.statusCode = (byte) 0;
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.headers();
java.lang.String str12 = response1.getHeaderCaseInsensitive("hi!");
org.jsoup.Connection.Request request13 = response1.req;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry15 = response1.scanHeaders("");
java.util.Map<java.lang.String, java.lang.String> strMap16 = response1.headers();
int int17 = response1.statusCode;
response1.statusMessage = "";
// The following exception was thrown during execution in test generation
try {
java.lang.String str20 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertNull(strEntry15);
org.junit.Assert.assertNotNull(strMap16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
}
@Test
public void test02709() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02709");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusCode = (byte) 1;
org.jsoup.Connection.Method method8 = response1.method();
java.lang.String str9 = response1.contentType();
boolean boolean11 = response1.hasCookie("hi!");
java.lang.String str12 = response1.statusMessage();
boolean boolean14 = response1.hasHeader("hi!");
org.jsoup.Connection.Response response17 = response1.header("hi!", "");
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document18 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNotNull(response17);
}
@Test
public void test02710() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02710");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.net.URL uRL7 = response1.url();
boolean boolean9 = response1.hasCookie("");
org.jsoup.helper.HttpConnection.Response response10 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str11 = response1.statusMessage;
java.util.Map<java.lang.String, java.lang.String> strMap12 = response1.cookies();
int int13 = response1.numRedirects;
// The following exception was thrown during execution in test generation
try {
byte[] byteArray14 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(uRL7);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNotNull(strMap12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
}
@Test
public void test02711() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02711");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
java.lang.String str7 = response1.getHeaderCaseInsensitive("");
boolean boolean9 = response1.hasCookie("hi!");
int int10 = response1.statusCode;
boolean boolean11 = response1.executed;
org.jsoup.helper.HttpConnection.Response response12 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str14 = response1.getHeaderCaseInsensitive("hi!");
org.jsoup.Connection.Method method15 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response1.method(method15);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(str14);
}
@Test
public void test02712() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02712");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.lang.String str3 = response1.contentType;
java.nio.ByteBuffer byteBuffer4 = response1.byteData;
java.lang.String str6 = response1.header("");
java.lang.String str8 = response1.getHeaderCaseInsensitive("hi!");
org.jsoup.Connection.Response response10 = response1.removeCookie("");
boolean boolean11 = response1.executed;
java.lang.Class<?> wildcardClass12 = response1.getClass();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(byteBuffer4);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNotNull(wildcardClass12);
}
@Test
public void test02713() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02713");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
org.jsoup.Connection.Method method5 = response1.method();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry7 = response1.scanHeaders("");
java.lang.String str8 = response1.charset;
response1.charset = "hi!";
java.lang.String str11 = response1.charset;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response13 = response1.removeHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNull(strEntry7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertEquals("'" + str11 + "' != '" + "hi!" + "'", str11, "hi!");
}
@Test
public void test02714() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02714");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
response1.charset = "";
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
java.util.Map<java.lang.String, java.lang.String> strMap14 = response1.cookies();
org.jsoup.Connection.Response response16 = response1.removeCookie("hi!");
response1.numRedirects = 0;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertNotNull(strMap14);
org.junit.Assert.assertNotNull(response16);
}
@Test
public void test02715() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02715");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request3 = response2.req;
java.lang.String str5 = response2.cookie("hi!");
java.lang.String str6 = response2.charset();
int int7 = response2.statusCode;
java.nio.ByteBuffer byteBuffer8 = response2.byteData;
org.jsoup.Connection.Method method9 = response2.method();
org.jsoup.Connection.Request request10 = null;
response2.req = request10;
response2.numRedirects = 0;
java.lang.String str14 = response2.statusMessage;
java.util.Map<java.lang.String, java.lang.String> strMap15 = response2.headers();
org.jsoup.Connection.Response response17 = response2.removeHeader("hi!");
java.util.Map<java.lang.String, java.lang.String> strMap18 = response2.cookies();
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response19 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request3);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNull(method9);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNotNull(strMap15);
org.junit.Assert.assertNotNull(response17);
org.junit.Assert.assertNotNull(strMap18);
}
@Test
public void test02716() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02716");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.lang.String str9 = response1.statusMessage();
org.jsoup.helper.HttpConnection.Response response10 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str11 = response10.charset();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNull(str11);
}
@Test
public void test02717() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02717");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
int int5 = response1.statusCode();
org.jsoup.Connection.Response response8 = response1.header("hi!", "");
org.jsoup.Connection.Request request9 = response1.req;
java.lang.String str10 = response1.contentType();
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.cookies();
java.util.Map<java.lang.String, java.lang.String> strMap12 = response1.cookies();
java.lang.String str14 = response1.getHeaderCaseInsensitive("hi!");
response1.charset = "hi!";
boolean boolean18 = response1.hasCookie("");
response1.charset = "hi!";
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document21 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0);
org.junit.Assert.assertNotNull(response8);
org.junit.Assert.assertNull(request9);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertNotNull(strMap12);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "" + "'", str14, "");
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
}
@Test
public void test02718() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02718");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
int int7 = response1.statusCode();
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
java.lang.String str9 = response1.contentType();
boolean boolean10 = response1.executed;
response1.statusCode = (short) 1;
response1.charset = "";
java.net.URL uRL15 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response1.url(uRL15);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
}
@Test
public void test02719() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02719");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
response1.numRedirects = 0;
java.lang.String str13 = response1.statusMessage;
response1.numRedirects = (-1);
response1.charset = "hi!";
org.jsoup.Connection.Response response19 = response1.removeCookie("hi!");
java.net.HttpURLConnection httpURLConnection20 = null;
org.jsoup.helper.HttpConnection.Response response21 = null;
org.jsoup.helper.HttpConnection.Response response22 = new org.jsoup.helper.HttpConnection.Response(response21);
response22.statusMessage = "";
org.jsoup.Connection.Method method25 = response22.method();
java.nio.ByteBuffer byteBuffer26 = null;
response22.byteData = byteBuffer26;
java.lang.String str29 = response22.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry31 = response22.scanHeaders("");
java.util.Map<java.lang.String, java.lang.String> strMap32 = response22.headers();
java.lang.String str33 = response22.charset;
java.lang.String str35 = response22.cookie("");
java.nio.ByteBuffer byteBuffer36 = null;
response22.byteData = byteBuffer36;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection20, (org.jsoup.Connection.Response) response22);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNotNull(response19);
org.junit.Assert.assertNull(method25);
org.junit.Assert.assertNull(str29);
org.junit.Assert.assertNull(strEntry31);
org.junit.Assert.assertNotNull(strMap32);
org.junit.Assert.assertNull(str33);
org.junit.Assert.assertNull(str35);
}
@Test
public void test02720() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02720");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.nio.ByteBuffer byteBuffer3 = response1.byteData;
int int4 = response1.numRedirects;
java.lang.String str6 = response1.header("");
java.util.Map<java.lang.String, java.lang.String> strMap7 = response1.cookies();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry9 = response1.scanHeaders("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry11 = response1.scanHeaders("hi!");
boolean boolean13 = response1.hasCookie("");
org.jsoup.Connection.Method method14 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response15 = response1.method(method14);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(byteBuffer3);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNotNull(strMap7);
org.junit.Assert.assertNull(strEntry9);
org.junit.Assert.assertNull(strEntry11);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test02721() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02721");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
int int5 = response1.statusCode();
org.jsoup.Connection.Response response8 = response1.header("hi!", "");
org.jsoup.Connection.Request request9 = response1.req;
java.lang.String str10 = response1.contentType();
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.cookies();
java.util.Map<java.lang.String, java.lang.String> strMap12 = response1.cookies();
java.lang.String str14 = response1.getHeaderCaseInsensitive("hi!");
response1.charset = "hi!";
boolean boolean18 = response1.hasCookie("hi!");
// The following exception was thrown during execution in test generation
try {
java.lang.String str19 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0);
org.junit.Assert.assertNotNull(response8);
org.junit.Assert.assertNull(request9);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertNotNull(strMap12);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "" + "'", str14, "");
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
}
@Test
public void test02722() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02722");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
response1.charset = "";
response1.contentType = "hi!";
java.lang.String str14 = response1.getHeaderCaseInsensitive("");
java.lang.String str15 = response1.contentType;
boolean boolean16 = response1.executed;
java.net.HttpURLConnection httpURLConnection17 = null;
org.jsoup.helper.HttpConnection.Response response18 = null;
org.jsoup.helper.HttpConnection.Response response19 = new org.jsoup.helper.HttpConnection.Response(response18);
org.jsoup.Connection.Request request20 = response19.req;
java.lang.String str22 = response19.cookie("hi!");
java.lang.String str23 = response19.charset();
org.jsoup.Connection.Method method24 = response19.method();
java.nio.ByteBuffer byteBuffer25 = response19.byteData;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection17, (org.jsoup.Connection.Response) response19);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "hi!" + "'", str15, "hi!");
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertNull(request20);
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertNull(str23);
org.junit.Assert.assertNull(method24);
org.junit.Assert.assertNull(byteBuffer25);
}
@Test
public void test02723() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02723");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.charset = "";
java.util.Map<java.lang.String, java.lang.String> strMap4 = response1.cookies();
java.lang.String str6 = response1.getHeaderCaseInsensitive("");
java.nio.ByteBuffer byteBuffer7 = null;
response1.byteData = byteBuffer7;
org.jsoup.helper.HttpConnection.Response response9 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str10 = response1.charset;
java.nio.ByteBuffer byteBuffer11 = null;
response1.byteData = byteBuffer11;
java.util.Map<java.lang.String, java.lang.String> strMap13 = response1.cookies();
response1.statusCode = 10;
org.junit.Assert.assertNotNull(strMap4);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertEquals("'" + str10 + "' != '" + "" + "'", str10, "");
org.junit.Assert.assertNotNull(strMap13);
}
@Test
public void test02724() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02724");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
response1.statusMessage = "";
org.jsoup.Connection.Response response9 = response1.cookie("hi!", "");
boolean boolean11 = response1.hasCookie("hi!");
response1.statusMessage = "";
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry15 = response1.scanHeaders("");
java.lang.String str17 = response1.header("");
org.jsoup.Connection.Method method18 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response19 = response1.method(method18);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);
org.junit.Assert.assertNull(strEntry15);
org.junit.Assert.assertNull(str17);
}
@Test
public void test02725() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02725");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
org.jsoup.Connection.Method method6 = response1.method();
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str9 = response1.charset;
response1.statusCode = (byte) 100;
response1.charset = "";
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(method6);
org.junit.Assert.assertNull(str9);
}
@Test
public void test02726() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02726");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
int int7 = response1.statusCode();
org.jsoup.Connection.Response response10 = response1.header("hi!", "");
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response12 = response1.removeHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNotNull(response10);
}
@Test
public void test02727() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02727");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str11 = response1.charset();
java.lang.String str12 = response1.charset;
java.lang.String str13 = response1.contentType();
boolean boolean14 = response1.executed;
java.net.URL uRL15 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response1.url(uRL15);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
}
@Test
public void test02728() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02728");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.lang.String str3 = response1.contentType;
java.nio.ByteBuffer byteBuffer4 = response1.byteData;
java.lang.String str6 = response1.header("");
java.lang.String str7 = response1.charset;
java.lang.String str9 = response1.header("");
java.lang.Class<?> wildcardClass10 = response1.getClass();
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(byteBuffer4);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNotNull(wildcardClass10);
}
@Test
public void test02729() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02729");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
org.jsoup.Connection.Response response10 = response1.removeCookie("");
org.jsoup.helper.HttpConnection.Response response11 = new org.jsoup.helper.HttpConnection.Response(response1);
int int12 = response1.numRedirects;
java.lang.String str13 = response1.statusMessage;
// The following exception was thrown during execution in test generation
try {
java.lang.String str14 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
}
@Test
public void test02730() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02730");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str7 = response1.charset();
boolean boolean8 = response1.executed;
int int9 = response1.numRedirects;
java.lang.String str10 = response1.statusMessage();
java.lang.String str11 = response1.contentType;
org.jsoup.Connection.Request request12 = response1.req;
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(request12);
}
@Test
public void test02731() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02731");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.header("");
response1.executed = true;
// The following exception was thrown during execution in test generation
try {
byte[] byteArray15 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
}
@Test
public void test02732() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02732");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
response1.contentType = "hi!";
boolean boolean15 = response1.hasHeader("hi!");
java.lang.String str16 = response1.charset();
java.util.Map<java.lang.String, java.lang.String> strMap17 = response1.headers();
java.lang.String str18 = response1.contentType;
org.jsoup.Connection.Method method19 = response1.method();
// The following exception was thrown during execution in test generation
try {
java.lang.String str20 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNotNull(strMap17);
org.junit.Assert.assertEquals("'" + str18 + "' != '" + "hi!" + "'", str18, "hi!");
org.junit.Assert.assertNull(method19);
}
@Test
public void test02733() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02733");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.lang.String str10 = response1.cookie("hi!");
boolean boolean12 = response1.hasCookie("");
java.lang.String str13 = response1.statusMessage;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
}
@Test
public void test02734() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02734");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str11 = response1.charset();
java.lang.String str12 = response1.charset;
org.jsoup.Connection.Response response14 = response1.removeCookie("hi!");
response1.executed = false;
response1.statusMessage = "";
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNotNull(response14);
}
@Test
public void test02735() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02735");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.header("");
java.nio.ByteBuffer byteBuffer13 = response1.byteData;
java.lang.String str15 = response1.getHeaderCaseInsensitive("hi!");
boolean boolean17 = response1.hasHeader("hi!");
response1.executed = true;
java.lang.String str20 = response1.charset;
org.jsoup.Connection.Request request21 = null;
response1.req = request21;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(byteBuffer13);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNull(str20);
}
@Test
public void test02736() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02736");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
response1.numRedirects = 0;
response1.statusMessage = "";
java.lang.String str15 = response1.charset();
response1.contentType = "";
response1.statusCode = 10;
java.net.URL uRL20 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response21 = response1.url(uRL20);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str15);
}
@Test
public void test02737() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02737");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
boolean boolean6 = response1.hasCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap7 = response1.headers();
java.lang.String str8 = response1.statusMessage;
java.util.Map<java.lang.String, java.lang.String> strMap9 = response1.headers();
org.jsoup.Connection.Request request10 = null;
response1.req = request10;
java.lang.String str12 = response1.contentType;
org.jsoup.Connection.Method method13 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response14 = response1.method(method13);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNotNull(strMap7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNotNull(strMap9);
org.junit.Assert.assertNull(str12);
}
@Test
public void test02738() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02738");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
response1.charset = "";
java.lang.String str12 = response1.cookie("");
int int13 = response1.statusCode();
java.lang.String str14 = response1.statusMessage;
java.lang.String str15 = response1.contentType();
java.lang.Class<?> wildcardClass16 = response1.getClass();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "" + "'", str14, "");
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNotNull(wildcardClass16);
}
@Test
public void test02739() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02739");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
org.jsoup.Connection.Response response6 = response1.removeCookie("");
response1.statusCode = 100;
boolean boolean9 = response1.executed;
response1.statusCode = (short) -1;
response1.numRedirects = (byte) 10;
response1.charset = "hi!";
org.jsoup.Connection.Response response17 = response1.removeHeader("hi!");
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNotNull(response17);
}
@Test
public void test02740() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02740");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
boolean boolean6 = response1.hasCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap7 = response1.headers();
response1.executed = false;
java.lang.String str10 = response1.contentType;
java.lang.String str12 = response1.getHeaderCaseInsensitive("");
org.jsoup.Connection.Request request13 = null;
response1.req = request13;
java.net.HttpURLConnection httpURLConnection15 = null;
org.jsoup.helper.HttpConnection.Response response16 = null;
org.jsoup.helper.HttpConnection.Response response17 = new org.jsoup.helper.HttpConnection.Response(response16);
response17.statusMessage = "";
org.jsoup.Connection.Method method20 = response17.method();
java.nio.ByteBuffer byteBuffer21 = null;
response17.byteData = byteBuffer21;
boolean boolean24 = response17.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer25 = null;
response17.byteData = byteBuffer25;
org.jsoup.Connection.Response response29 = response17.cookie("hi!", "hi!");
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection15, response29);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNotNull(strMap7);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(method20);
org.junit.Assert.assertTrue("'" + boolean24 + "' != '" + false + "'", boolean24 == false);
org.junit.Assert.assertNotNull(response29);
}
@Test
public void test02741() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02741");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request3 = response2.req;
int int4 = response2.statusCode;
response2.executed = false;
response2.statusMessage = "hi!";
org.jsoup.Connection.Request request9 = response2.req;
org.jsoup.Connection.Method method10 = response2.method();
java.lang.String str11 = response2.charset;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response12 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request3);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNull(request9);
org.junit.Assert.assertNull(method10);
org.junit.Assert.assertNull(str11);
}
@Test
public void test02742() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02742");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
response1.executed = true;
boolean boolean16 = response1.hasHeader("hi!");
boolean boolean17 = response1.executed;
response1.charset = "";
int int20 = response1.numRedirects;
java.lang.String str22 = response1.cookie("hi!");
java.net.URL uRL23 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response24 = response1.url(uRL23);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + 0 + "'", int20 == 0);
org.junit.Assert.assertNull(str22);
}
@Test
public void test02743() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02743");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
response1.charset = "";
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
response1.statusCode = ' ';
java.lang.String str16 = response1.contentType;
// The following exception was thrown during execution in test generation
try {
java.lang.String str17 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertNull(str16);
}
@Test
public void test02744() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02744");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
response1.charset = "";
java.lang.String str13 = response1.statusMessage;
java.lang.String str15 = response1.cookie("");
java.lang.String str17 = response1.cookie("hi!");
boolean boolean19 = response1.hasHeader("hi!");
java.net.HttpURLConnection httpURLConnection20 = null;
org.jsoup.helper.HttpConnection.Response response21 = null;
org.jsoup.helper.HttpConnection.Response response22 = new org.jsoup.helper.HttpConnection.Response(response21);
org.jsoup.Connection.Response response24 = response22.removeHeader("hi!");
java.lang.String str25 = response22.contentType();
java.nio.ByteBuffer byteBuffer26 = null;
response22.byteData = byteBuffer26;
java.lang.String str28 = response22.charset();
boolean boolean30 = response22.hasHeader("hi!");
org.jsoup.Connection.Method method31 = response22.method();
response22.statusCode = (short) -1;
boolean boolean35 = response22.hasCookie("hi!");
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection20, (org.jsoup.Connection.Response) response22);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertNotNull(response24);
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertNull(str28);
org.junit.Assert.assertTrue("'" + boolean30 + "' != '" + false + "'", boolean30 == false);
org.junit.Assert.assertNull(method31);
org.junit.Assert.assertTrue("'" + boolean35 + "' != '" + false + "'", boolean35 == false);
}
@Test
public void test02745() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02745");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.charset = "";
java.util.Map<java.lang.String, java.lang.String> strMap4 = response1.cookies();
java.lang.String str6 = response1.getHeaderCaseInsensitive("");
java.nio.ByteBuffer byteBuffer7 = null;
response1.byteData = byteBuffer7;
int int9 = response1.statusCode;
org.jsoup.Connection.Request request10 = null;
response1.req = request10;
org.junit.Assert.assertNotNull(strMap4);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
}
@Test
public void test02746() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02746");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
response1.statusCode = 1;
java.lang.String str14 = response1.header("");
java.lang.String str15 = response1.statusMessage;
java.lang.String str17 = response1.header("");
int int18 = response1.statusCode();
response1.statusCode = (short) -1;
response1.charset = "hi!";
int int23 = response1.numRedirects;
java.net.URL uRL24 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response25 = response1.url(uRL24);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "" + "'", str15, "");
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 1 + "'", int18 == 1);
org.junit.Assert.assertTrue("'" + int23 + "' != '" + 0 + "'", int23 == 0);
}
@Test
public void test02747() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02747");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
int int4 = response1.statusCode;
boolean boolean6 = response1.hasCookie("hi!");
boolean boolean8 = response1.hasCookie("hi!");
boolean boolean10 = response1.hasCookie("hi!");
java.net.URL uRL11 = response1.url();
java.lang.String str13 = response1.cookie("");
java.nio.ByteBuffer byteBuffer14 = null;
response1.byteData = byteBuffer14;
response1.executed = false;
java.nio.ByteBuffer byteBuffer18 = response1.byteData;
// The following exception was thrown during execution in test generation
try {
java.lang.Class<?> wildcardClass19 = byteBuffer18.getClass();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(uRL11);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(byteBuffer18);
}
@Test
public void test02748() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02748");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.lang.String str5 = response1.getHeaderCaseInsensitive("hi!");
int int6 = response1.numRedirects;
java.lang.String str8 = response1.header("hi!");
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(str8);
}
@Test
public void test02749() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02749");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
boolean boolean11 = response1.hasCookie("");
java.nio.ByteBuffer byteBuffer12 = null;
response1.byteData = byteBuffer12;
java.lang.String str15 = response1.cookie("hi!");
org.jsoup.Connection.Method method16 = response1.method();
java.lang.String str18 = response1.cookie("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry20 = response1.scanHeaders("");
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(method16);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertNull(strEntry20);
}
@Test
public void test02750() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02750");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
org.jsoup.Connection.Method method11 = response1.method();
int int12 = response1.statusCode();
int int13 = response1.statusCode();
response1.executed = false;
response1.statusCode = (byte) 0;
java.lang.String str19 = response1.header("");
int int20 = response1.statusCode();
int int21 = response1.numRedirects;
java.net.HttpURLConnection httpURLConnection22 = null;
org.jsoup.helper.HttpConnection.Response response23 = null;
org.jsoup.helper.HttpConnection.Response response24 = new org.jsoup.helper.HttpConnection.Response(response23);
response24.statusMessage = "";
org.jsoup.Connection.Method method27 = response24.method();
java.nio.ByteBuffer byteBuffer28 = null;
response24.byteData = byteBuffer28;
org.jsoup.Connection.Request request30 = null;
response24.req = request30;
java.lang.String str32 = response24.statusMessage();
java.util.Map<java.lang.String, java.lang.String> strMap33 = response24.cookies();
response24.charset = "hi!";
org.jsoup.Connection.Response response38 = response24.header("hi!", "");
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection22, response38);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(method11);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + 0 + "'", int20 == 0);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 0 + "'", int21 == 0);
org.junit.Assert.assertNull(method27);
org.junit.Assert.assertEquals("'" + str32 + "' != '" + "" + "'", str32, "");
org.junit.Assert.assertNotNull(strMap33);
org.junit.Assert.assertNotNull(response38);
}
@Test
public void test02751() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02751");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
int int12 = response1.statusCode;
java.lang.String str13 = response1.contentType();
response1.statusCode = (-1);
java.lang.String str16 = response1.charset;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry18 = response1.scanHeaders("");
org.jsoup.Connection.Response response20 = response1.removeCookie("hi!");
org.jsoup.Connection.Method method21 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response22 = response1.method(method21);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNull(strEntry18);
org.junit.Assert.assertNotNull(response20);
}
@Test
public void test02752() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02752");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.header("");
int int13 = response1.numRedirects;
int int14 = response1.numRedirects;
org.jsoup.Connection.Response response16 = response1.removeHeader("hi!");
org.jsoup.Connection.Request request17 = null;
response1.req = request17;
boolean boolean19 = response1.executed;
org.jsoup.Connection.Response response22 = response1.header("hi!", "");
response1.executed = false;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
org.junit.Assert.assertNotNull(response16);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertNotNull(response22);
}
@Test
public void test02753() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02753");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.nio.ByteBuffer byteBuffer3 = response1.byteData;
int int4 = response1.numRedirects;
java.lang.String str6 = response1.header("");
java.util.Map<java.lang.String, java.lang.String> strMap7 = response1.cookies();
org.jsoup.Connection.Method method8 = response1.method();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("hi!");
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.headers();
java.nio.ByteBuffer byteBuffer12 = null;
response1.byteData = byteBuffer12;
java.nio.ByteBuffer byteBuffer14 = null;
response1.byteData = byteBuffer14;
// The following exception was thrown during execution in test generation
try {
byte[] byteArray16 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(byteBuffer3);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNotNull(strMap7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNotNull(strMap11);
}
@Test
public void test02754() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02754");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.charset;
org.jsoup.Connection.Method method5 = response1.method();
org.jsoup.Connection.Request request6 = response1.req;
response1.numRedirects = (byte) 0;
// The following exception was thrown during execution in test generation
try {
byte[] byteArray9 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNull(request6);
}
@Test
public void test02755() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02755");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.header("");
java.lang.String str13 = response1.charset;
int int14 = response1.statusCode();
java.lang.String str15 = response1.statusMessage();
response1.numRedirects = (short) 0;
org.jsoup.Connection.Method method18 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response19 = response1.method(method18);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "" + "'", str15, "");
}
@Test
public void test02756() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02756");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
response2.statusMessage = "";
org.jsoup.Connection.Method method5 = response2.method();
java.nio.ByteBuffer byteBuffer6 = null;
response2.byteData = byteBuffer6;
org.jsoup.Connection.Request request8 = null;
response2.req = request8;
java.lang.String str10 = response2.statusMessage();
org.jsoup.Connection.Request request11 = null;
response2.req = request11;
java.lang.String str13 = response2.statusMessage;
response2.statusMessage = "";
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response16 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertEquals("'" + str10 + "' != '" + "" + "'", str10, "");
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
}
@Test
public void test02757() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02757");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
boolean boolean6 = response1.hasCookie("");
int int7 = response1.statusCode;
java.lang.String str9 = response1.cookie("");
java.net.HttpURLConnection httpURLConnection10 = null;
org.jsoup.helper.HttpConnection.Response response11 = null;
org.jsoup.helper.HttpConnection.Response response12 = new org.jsoup.helper.HttpConnection.Response(response11);
org.jsoup.Connection.Request request13 = response12.req;
java.lang.String str15 = response12.cookie("hi!");
java.lang.String str16 = response12.charset();
int int17 = response12.statusCode;
java.nio.ByteBuffer byteBuffer18 = response12.byteData;
org.jsoup.Connection.Method method19 = response12.method();
java.lang.String str20 = response12.statusMessage();
org.jsoup.Connection.Method method21 = response12.method();
int int22 = response12.statusCode;
java.net.URL uRL23 = response12.url();
java.lang.String str25 = response12.header("");
java.lang.String str26 = response12.statusMessage;
java.lang.String str27 = response12.contentType();
response12.contentType = "hi!";
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection10, (org.jsoup.Connection.Response) response12);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
org.junit.Assert.assertNull(byteBuffer18);
org.junit.Assert.assertNull(method19);
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertNull(method21);
org.junit.Assert.assertTrue("'" + int22 + "' != '" + 0 + "'", int22 == 0);
org.junit.Assert.assertNull(uRL23);
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertNull(str26);
org.junit.Assert.assertNull(str27);
}
@Test
public void test02758() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02758");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
int int3 = response2.numRedirects;
java.lang.String str4 = response2.contentType;
response2.executed = false;
response2.numRedirects = (byte) 10;
java.util.Map<java.lang.String, java.lang.String> strMap9 = response2.headers();
response2.statusMessage = "hi!";
java.nio.ByteBuffer byteBuffer12 = null;
response2.byteData = byteBuffer12;
org.jsoup.helper.HttpConnection.Response response14 = new org.jsoup.helper.HttpConnection.Response(response2);
response2.executed = false;
java.net.URL uRL17 = response2.url();
org.jsoup.Connection.Request request18 = null;
response2.req = request18;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response20 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(strMap9);
org.junit.Assert.assertNull(uRL17);
}
@Test
public void test02759() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02759");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.lang.String str9 = response1.contentType;
org.jsoup.Connection.Method method10 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response11 = response1.method(method10);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str9);
}
@Test
public void test02760() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02760");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
response1.charset = "";
org.jsoup.Connection.Response response14 = response1.removeCookie("");
int int15 = response1.statusCode();
org.jsoup.Connection.Method method16 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response17 = response1.method(method16);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNotNull(response14);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0);
}
@Test
public void test02761() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02761");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
org.jsoup.Connection.Method method5 = response1.method();
java.util.Map<java.lang.String, java.lang.String> strMap6 = response1.cookies();
boolean boolean8 = response1.hasHeader("hi!");
java.util.Map<java.lang.String, java.lang.String> strMap9 = response1.headers();
org.jsoup.Connection.Request request10 = response1.req;
java.net.URL uRL11 = response1.url();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNotNull(strMap6);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNotNull(strMap9);
org.junit.Assert.assertNull(request10);
org.junit.Assert.assertNull(uRL11);
}
@Test
public void test02762() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02762");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str7 = response1.charset();
boolean boolean9 = response1.hasHeader("hi!");
org.jsoup.Connection.Method method10 = response1.method();
org.jsoup.Connection.Response response12 = response1.removeCookie("");
java.lang.String str13 = response1.statusMessage();
java.lang.String str14 = response1.statusMessage();
org.jsoup.Connection.Request request15 = response1.req;
java.lang.String str16 = response1.contentType();
int int17 = response1.numRedirects;
// The following exception was thrown during execution in test generation
try {
java.lang.String str18 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(method10);
org.junit.Assert.assertNotNull(response12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(request15);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
}
@Test
public void test02763() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02763");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
response2.statusMessage = "";
org.jsoup.Connection.Method method5 = response2.method();
java.nio.ByteBuffer byteBuffer6 = null;
response2.byteData = byteBuffer6;
java.nio.ByteBuffer byteBuffer8 = null;
response2.byteData = byteBuffer8;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry11 = response2.scanHeaders("");
java.lang.String str12 = response2.contentType();
org.jsoup.Connection.Response response14 = response2.removeCookie("hi!");
org.jsoup.Connection.Request request15 = null;
response2.req = request15;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response17 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNull(strEntry11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNotNull(response14);
}
@Test
public void test02764() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02764");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.header("");
int int13 = response1.numRedirects;
int int14 = response1.numRedirects;
org.jsoup.Connection.Response response16 = response1.removeHeader("hi!");
java.util.Map<java.lang.String, java.lang.String> strMap17 = response1.cookies();
java.net.HttpURLConnection httpURLConnection18 = null;
org.jsoup.helper.HttpConnection.Response response19 = null;
org.jsoup.helper.HttpConnection.Response response20 = new org.jsoup.helper.HttpConnection.Response(response19);
response20.statusMessage = "";
org.jsoup.Connection.Method method23 = response20.method();
java.nio.ByteBuffer byteBuffer24 = null;
response20.byteData = byteBuffer24;
org.jsoup.Connection.Request request26 = null;
response20.req = request26;
java.net.URL uRL28 = response20.url();
org.jsoup.Connection.Response response30 = response20.removeCookie("");
java.lang.String str31 = response20.contentType;
response20.contentType = "hi!";
response20.numRedirects = (short) 0;
org.jsoup.Connection.Response response37 = response20.removeHeader("hi!");
int int38 = response20.statusCode();
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection18, (org.jsoup.Connection.Response) response20);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
org.junit.Assert.assertNotNull(response16);
org.junit.Assert.assertNotNull(strMap17);
org.junit.Assert.assertNull(method23);
org.junit.Assert.assertNull(uRL28);
org.junit.Assert.assertNotNull(response30);
org.junit.Assert.assertNull(str31);
org.junit.Assert.assertNotNull(response37);
org.junit.Assert.assertTrue("'" + int38 + "' != '" + 0 + "'", int38 == 0);
}
@Test
public void test02765() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02765");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
response1.contentType = "hi!";
boolean boolean15 = response1.hasHeader("hi!");
boolean boolean17 = response1.hasCookie("hi!");
org.jsoup.Connection.Request request18 = response1.req;
java.lang.String str19 = response1.statusMessage();
boolean boolean21 = response1.hasCookie("hi!");
org.jsoup.helper.HttpConnection.Response response22 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str23 = response1.charset();
java.lang.String str25 = response1.cookie("");
java.lang.String str26 = response1.contentType;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNull(request18);
org.junit.Assert.assertEquals("'" + str19 + "' != '" + "" + "'", str19, "");
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + false + "'", boolean21 == false);
org.junit.Assert.assertNull(str23);
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertEquals("'" + str26 + "' != '" + "hi!" + "'", str26, "hi!");
}
@Test
public void test02766() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02766");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
response1.charset = "";
org.jsoup.Connection.Response response12 = response1.removeCookie("hi!");
int int13 = response1.statusCode();
java.lang.String str14 = response1.contentType;
response1.executed = false;
java.lang.String str17 = response1.charset;
org.jsoup.Connection.Response response20 = response1.cookie("hi!", "hi!");
java.net.HttpURLConnection httpURLConnection21 = null;
org.jsoup.helper.HttpConnection.Response response22 = null;
org.jsoup.helper.HttpConnection.Response response23 = new org.jsoup.helper.HttpConnection.Response(response22);
org.jsoup.Connection.Request request24 = response23.req;
java.lang.String str26 = response23.cookie("hi!");
org.jsoup.Connection.Response response29 = response23.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer30 = response23.byteData;
java.util.Map<java.lang.String, java.lang.String> strMap31 = response23.cookies();
int int32 = response23.statusCode;
response23.statusCode = 32;
java.lang.String str36 = response23.header("hi!");
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection21, (org.jsoup.Connection.Response) response23);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNotNull(response12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertEquals("'" + str17 + "' != '" + "" + "'", str17, "");
org.junit.Assert.assertNotNull(response20);
org.junit.Assert.assertNull(request24);
org.junit.Assert.assertNull(str26);
org.junit.Assert.assertNotNull(response29);
org.junit.Assert.assertNull(byteBuffer30);
org.junit.Assert.assertNotNull(strMap31);
org.junit.Assert.assertTrue("'" + int32 + "' != '" + 0 + "'", int32 == 0);
org.junit.Assert.assertEquals("'" + str36 + "' != '" + "hi!" + "'", str36, "hi!");
}
@Test
public void test02767() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02767");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
response1.numRedirects = 0;
java.nio.ByteBuffer byteBuffer13 = response1.byteData;
org.jsoup.Connection.Response response16 = response1.header("hi!", "");
boolean boolean18 = response1.hasHeader("hi!");
response1.statusMessage = "hi!";
org.jsoup.Connection.Method method21 = response1.method();
// The following exception was thrown during execution in test generation
try {
byte[] byteArray22 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(byteBuffer13);
org.junit.Assert.assertNotNull(response16);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + true + "'", boolean18 == true);
org.junit.Assert.assertNull(method21);
}
@Test
public void test02768() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02768");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.lang.String str9 = response1.charset();
java.lang.String str10 = response1.statusMessage();
response1.statusMessage = "";
org.jsoup.Connection.Method method13 = response1.method();
java.lang.String str15 = response1.getHeaderCaseInsensitive("");
java.lang.String str16 = response1.contentType();
java.lang.String str18 = response1.cookie("hi!");
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertEquals("'" + str10 + "' != '" + "" + "'", str10, "");
org.junit.Assert.assertNull(method13);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNull(str18);
}
@Test
public void test02769() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02769");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
org.jsoup.Connection.Response response8 = response1.header("hi!", "");
boolean boolean10 = response1.hasHeader("hi!");
response1.statusCode = (short) -1;
org.jsoup.Connection.Method method13 = response1.method();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry15 = response1.scanHeaders("");
org.jsoup.Connection.Response response17 = response1.removeCookie("hi!");
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document18 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNotNull(response8);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(method13);
org.junit.Assert.assertNull(strEntry15);
org.junit.Assert.assertNotNull(response17);
}
@Test
public void test02770() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02770");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.contentType;
org.jsoup.Connection.Request request13 = response1.req;
java.nio.ByteBuffer byteBuffer14 = response1.byteData;
java.nio.ByteBuffer byteBuffer15 = response1.byteData;
java.lang.String str16 = response1.statusMessage();
response1.charset = "";
java.lang.String str20 = response1.header("");
java.net.URL uRL21 = response1.url();
java.net.URL uRL22 = response1.url();
java.lang.String str24 = response1.header("");
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertNull(byteBuffer14);
org.junit.Assert.assertNull(byteBuffer15);
org.junit.Assert.assertEquals("'" + str16 + "' != '" + "" + "'", str16, "");
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertNull(uRL21);
org.junit.Assert.assertNull(uRL22);
org.junit.Assert.assertNull(str24);
}
@Test
public void test02771() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02771");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
java.lang.String str9 = response1.statusMessage;
int int10 = response1.statusCode;
java.lang.String str11 = response1.contentType();
java.net.URL uRL12 = response1.url();
java.net.HttpURLConnection httpURLConnection13 = null;
org.jsoup.helper.HttpConnection.Response response14 = null;
org.jsoup.helper.HttpConnection.Response response15 = new org.jsoup.helper.HttpConnection.Response(response14);
response15.statusMessage = "";
org.jsoup.Connection.Method method18 = response15.method();
java.nio.ByteBuffer byteBuffer19 = null;
response15.byteData = byteBuffer19;
int int21 = response15.statusCode();
response15.statusCode = (byte) 0;
java.util.Map<java.lang.String, java.lang.String> strMap24 = response15.headers();
java.lang.String str26 = response15.getHeaderCaseInsensitive("hi!");
org.jsoup.Connection.Request request27 = response15.req;
java.nio.ByteBuffer byteBuffer28 = response15.byteData;
org.jsoup.Connection.Response response31 = response15.cookie("hi!", "hi!");
response15.executed = false;
boolean boolean35 = response15.hasCookie("hi!");
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection13, (org.jsoup.Connection.Response) response15);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(uRL12);
org.junit.Assert.assertNull(method18);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 0 + "'", int21 == 0);
org.junit.Assert.assertNotNull(strMap24);
org.junit.Assert.assertNull(str26);
org.junit.Assert.assertNull(request27);
org.junit.Assert.assertNull(byteBuffer28);
org.junit.Assert.assertNotNull(response31);
org.junit.Assert.assertTrue("'" + boolean35 + "' != '" + true + "'", boolean35 == true);
}
@Test
public void test02772() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02772");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry6 = response1.scanHeaders("hi!");
java.lang.String str7 = response1.contentType;
java.lang.String str8 = response1.charset();
java.net.URL uRL9 = response1.url();
response1.statusCode = (short) -1;
int int12 = response1.statusCode();
response1.executed = false;
boolean boolean15 = response1.executed;
java.lang.String str17 = response1.header("");
org.jsoup.Connection.Method method18 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response19 = response1.method(method18);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(strEntry6);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(str17);
}
@Test
public void test02773() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02773");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.nio.ByteBuffer byteBuffer3 = response1.byteData;
int int4 = response1.numRedirects;
org.jsoup.Connection.Response response6 = response1.removeCookie("");
int int7 = response1.statusCode();
response1.executed = true;
org.jsoup.Connection.Request request10 = response1.req;
// The following exception was thrown during execution in test generation
try {
java.lang.Class<?> wildcardClass11 = request10.getClass();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(byteBuffer3);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNull(request10);
}
@Test
public void test02774() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02774");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
response1.numRedirects = (short) 100;
boolean boolean8 = response1.hasCookie("");
org.jsoup.Connection.Method method9 = response1.method();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
int int12 = response1.statusCode();
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response15 = response1.header("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(method9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
}
@Test
public void test02775() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02775");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
org.jsoup.Connection.Method method6 = response1.method();
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
org.jsoup.Connection.Response response13 = response1.header("hi!", "");
java.nio.ByteBuffer byteBuffer14 = null;
response1.byteData = byteBuffer14;
org.jsoup.Connection.Method method16 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response17 = response1.method(method16);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(method6);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNotNull(response13);
}
@Test
public void test02776() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02776");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry6 = response1.scanHeaders("hi!");
java.lang.String str7 = response1.contentType;
java.lang.String str8 = response1.charset();
java.lang.String str9 = response1.contentType;
org.jsoup.Connection.Request request10 = null;
response1.req = request10;
org.jsoup.helper.HttpConnection.Response response12 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str13 = response1.charset();
int int14 = response1.statusCode;
java.lang.String str15 = response1.charset();
org.jsoup.Connection.Method method16 = response1.method();
org.jsoup.Connection.Method method17 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response18 = response1.method(method17);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(strEntry6);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(method16);
}
@Test
public void test02777() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02777");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
int int7 = response1.statusCode();
response1.statusCode = (byte) 0;
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.headers();
java.nio.ByteBuffer byteBuffer11 = null;
response1.byteData = byteBuffer11;
java.lang.String str13 = response1.statusMessage;
org.jsoup.Connection.Method method14 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response15 = response1.method(method14);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
}
@Test
public void test02778() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02778");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.contentType;
org.jsoup.Connection.Request request13 = response1.req;
java.nio.ByteBuffer byteBuffer14 = response1.byteData;
int int15 = response1.numRedirects;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry17 = response1.scanHeaders("");
int int18 = response1.statusCode;
boolean boolean20 = response1.hasCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap21 = response1.cookies();
boolean boolean22 = response1.executed;
java.nio.ByteBuffer byteBuffer23 = null;
response1.byteData = byteBuffer23;
response1.charset = "";
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertNull(byteBuffer14);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0);
org.junit.Assert.assertNull(strEntry17);
org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
org.junit.Assert.assertNotNull(strMap21);
org.junit.Assert.assertTrue("'" + boolean22 + "' != '" + false + "'", boolean22 == false);
}
@Test
public void test02779() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02779");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Response response4 = response2.removeHeader("hi!");
java.lang.String str5 = response2.contentType();
java.util.Map<java.lang.String, java.lang.String> strMap6 = response2.headers();
response2.contentType = "";
java.lang.String str9 = response2.contentType();
java.nio.ByteBuffer byteBuffer10 = response2.byteData;
response2.contentType = "hi!";
response2.numRedirects = (short) 0;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response15 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNotNull(strMap6);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNull(byteBuffer10);
}
@Test
public void test02780() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02780");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusCode = (byte) 1;
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.headers();
org.jsoup.Connection.Response response10 = response1.removeCookie("hi!");
org.jsoup.Connection.Request request11 = null;
response1.req = request11;
java.nio.ByteBuffer byteBuffer13 = null;
response1.byteData = byteBuffer13;
java.net.URL uRL15 = response1.url();
java.net.URL uRL16 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response17 = response1.url(uRL16);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertNull(uRL15);
}
@Test
public void test02781() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02781");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Response response4 = response2.removeHeader("hi!");
java.lang.String str5 = response2.contentType();
java.nio.ByteBuffer byteBuffer6 = null;
response2.byteData = byteBuffer6;
java.lang.String str8 = response2.charset();
java.lang.String str9 = response2.contentType();
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response10 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str9);
}
@Test
public void test02782() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02782");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
java.util.Map<java.lang.String, java.lang.String> strMap5 = response1.headers();
response1.contentType = "";
org.jsoup.Connection.Request request8 = null;
response1.req = request8;
int int10 = response1.statusCode();
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.cookies();
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(strMap5);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertNotNull(strMap11);
}
@Test
public void test02783() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02783");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
boolean boolean6 = response1.hasCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap7 = response1.headers();
java.lang.String str8 = response1.statusMessage;
java.util.Map<java.lang.String, java.lang.String> strMap9 = response1.headers();
int int10 = response1.numRedirects;
java.net.URL uRL11 = response1.url();
java.nio.ByteBuffer byteBuffer12 = null;
response1.byteData = byteBuffer12;
java.nio.ByteBuffer byteBuffer14 = response1.byteData;
java.net.URL uRL15 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response1.url(uRL15);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNotNull(strMap7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNotNull(strMap9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertNull(uRL11);
org.junit.Assert.assertNull(byteBuffer14);
}
@Test
public void test02784() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02784");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = null;
response1.byteData = byteBuffer7;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
}
@Test
public void test02785() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02785");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
response2.statusMessage = "";
org.jsoup.Connection.Method method5 = response2.method();
java.nio.ByteBuffer byteBuffer6 = null;
response2.byteData = byteBuffer6;
boolean boolean9 = response2.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer10 = response2.byteData;
java.lang.String str12 = response2.cookie("");
response2.statusMessage = "hi!";
java.nio.ByteBuffer byteBuffer15 = response2.byteData;
org.jsoup.Connection.Response response18 = response2.header("hi!", "hi!");
org.jsoup.Connection.Response response21 = response2.cookie("hi!", "hi!");
java.lang.String str22 = response2.charset();
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response23 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(byteBuffer10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(byteBuffer15);
org.junit.Assert.assertNotNull(response18);
org.junit.Assert.assertNotNull(response21);
org.junit.Assert.assertNull(str22);
}
@Test
public void test02786() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02786");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
response1.numRedirects = 0;
response1.statusMessage = "";
java.lang.String str15 = response1.charset();
response1.executed = true;
boolean boolean19 = response1.hasCookie("");
java.lang.String str20 = response1.contentType;
org.jsoup.helper.HttpConnection.Response response21 = new org.jsoup.helper.HttpConnection.Response(response1);
java.net.HttpURLConnection httpURLConnection22 = null;
org.jsoup.helper.HttpConnection.Response response23 = null;
org.jsoup.helper.HttpConnection.Response response24 = new org.jsoup.helper.HttpConnection.Response(response23);
org.jsoup.Connection.Request request25 = response24.req;
int int26 = response24.statusCode;
response24.executed = false;
response24.statusCode = (byte) 1;
java.util.Map<java.lang.String, java.lang.String> strMap31 = response24.headers();
org.jsoup.Connection.Response response33 = response24.removeCookie("hi!");
boolean boolean34 = response24.executed;
java.net.URL uRL35 = response24.url();
response24.charset = "";
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection22, (org.jsoup.Connection.Response) response24);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertNull(request25);
org.junit.Assert.assertTrue("'" + int26 + "' != '" + 0 + "'", int26 == 0);
org.junit.Assert.assertNotNull(strMap31);
org.junit.Assert.assertNotNull(response33);
org.junit.Assert.assertTrue("'" + boolean34 + "' != '" + false + "'", boolean34 == false);
org.junit.Assert.assertNull(uRL35);
}
@Test
public void test02787() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02787");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
java.lang.String str13 = response1.statusMessage();
int int14 = response1.statusCode;
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document15 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
}
@Test
public void test02788() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02788");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
int int12 = response1.statusCode;
java.lang.String str13 = response1.contentType();
java.lang.String str14 = response1.contentType();
org.jsoup.Connection.Response response17 = response1.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer18 = null;
response1.byteData = byteBuffer18;
int int20 = response1.statusCode;
int int21 = response1.numRedirects;
// The following exception was thrown during execution in test generation
try {
boolean boolean23 = response1.hasHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNotNull(response17);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + 0 + "'", int20 == 0);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 0 + "'", int21 == 0);
}
@Test
public void test02789() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02789");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
response1.charset = "";
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
java.util.Map<java.lang.String, java.lang.String> strMap14 = response1.cookies();
java.lang.String str15 = response1.statusMessage();
org.jsoup.Connection.Method method16 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response17 = response1.method(method16);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertNotNull(strMap14);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "hi!" + "'", str15, "hi!");
}
@Test
public void test02790() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02790");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
response2.statusMessage = "";
org.jsoup.Connection.Method method5 = response2.method();
java.nio.ByteBuffer byteBuffer6 = null;
response2.byteData = byteBuffer6;
java.lang.String str9 = response2.header("hi!");
response2.charset = "";
java.net.URL uRL12 = response2.url();
java.lang.String str13 = response2.statusMessage();
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response14 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(uRL12);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
}
@Test
public void test02791() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02791");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusCode = (byte) 1;
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.headers();
java.lang.String str10 = response1.cookie("hi!");
response1.statusMessage = "hi!";
java.net.URL uRL13 = response1.url();
java.lang.String str14 = response1.statusMessage();
java.net.HttpURLConnection httpURLConnection15 = null;
org.jsoup.helper.HttpConnection.Response response16 = null;
org.jsoup.helper.HttpConnection.Response response17 = new org.jsoup.helper.HttpConnection.Response(response16);
response17.statusMessage = "";
org.jsoup.Connection.Method method20 = response17.method();
java.nio.ByteBuffer byteBuffer21 = null;
response17.byteData = byteBuffer21;
java.lang.String str24 = response17.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry26 = response17.scanHeaders("");
java.lang.String str28 = response17.header("");
int int29 = response17.statusCode;
java.nio.ByteBuffer byteBuffer30 = response17.byteData;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection15, (org.jsoup.Connection.Response) response17);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(uRL13);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "hi!" + "'", str14, "hi!");
org.junit.Assert.assertNull(method20);
org.junit.Assert.assertNull(str24);
org.junit.Assert.assertNull(strEntry26);
org.junit.Assert.assertNull(str28);
org.junit.Assert.assertTrue("'" + int29 + "' != '" + 0 + "'", int29 == 0);
org.junit.Assert.assertNull(byteBuffer30);
}
@Test
public void test02792() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02792");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.lang.String str3 = response1.contentType();
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response6 = response1.header("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(str3);
}
@Test
public void test02793() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02793");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response6 = response1.removeHeader("hi!");
int int7 = response1.statusCode;
response1.numRedirects = '#';
int int10 = response1.statusCode();
response1.contentType = "hi!";
java.net.URL uRL13 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response14 = response1.url(uRL13);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
}
@Test
public void test02794() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02794");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.lang.String str3 = response1.contentType;
org.jsoup.Connection.Request request4 = null;
response1.req = request4;
org.jsoup.helper.HttpConnection.Response response6 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str7 = response1.charset;
java.lang.String str8 = response1.contentType();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
org.jsoup.Connection.Request request11 = response1.req;
response1.executed = false;
java.lang.String str14 = response1.contentType();
java.lang.String str16 = response1.getHeaderCaseInsensitive("");
org.jsoup.Connection.Request request17 = null;
response1.req = request17;
java.lang.String str20 = response1.cookie("hi!");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(request11);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNull(str20);
}
@Test
public void test02795() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02795");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
int int5 = response1.statusCode();
java.lang.String str7 = response1.header("");
response1.numRedirects = (-1);
java.lang.String str11 = response1.cookie("");
java.lang.String str13 = response1.getHeaderCaseInsensitive("");
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str13);
}
@Test
public void test02796() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02796");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.header("");
int int13 = response1.statusCode;
java.nio.ByteBuffer byteBuffer14 = response1.byteData;
response1.charset = "";
java.lang.String str18 = response1.getHeaderCaseInsensitive("");
java.net.HttpURLConnection httpURLConnection19 = null;
org.jsoup.helper.HttpConnection.Response response20 = null;
org.jsoup.helper.HttpConnection.Response response21 = new org.jsoup.helper.HttpConnection.Response(response20);
response21.statusMessage = "";
org.jsoup.Connection.Method method24 = response21.method();
java.nio.ByteBuffer byteBuffer25 = null;
response21.byteData = byteBuffer25;
java.lang.String str28 = response21.header("hi!");
response21.charset = "";
response21.statusCode = (short) 0;
response21.numRedirects = (short) 100;
int int35 = response21.statusCode();
org.jsoup.Connection.Response response38 = response21.header("hi!", "hi!");
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection19, (org.jsoup.Connection.Response) response21);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertNull(byteBuffer14);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertNull(method24);
org.junit.Assert.assertNull(str28);
org.junit.Assert.assertTrue("'" + int35 + "' != '" + 0 + "'", int35 == 0);
org.junit.Assert.assertNotNull(response38);
}
@Test
public void test02797() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02797");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
boolean boolean9 = response1.executed;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response12 = response1.header("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
}
@Test
public void test02798() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02798");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
response1.charset = "";
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
java.util.Map<java.lang.String, java.lang.String> strMap14 = response1.cookies();
org.jsoup.Connection.Response response16 = response1.removeCookie("hi!");
response1.charset = "hi!";
java.util.Map<java.lang.String, java.lang.String> strMap19 = response1.cookies();
int int20 = response1.numRedirects;
response1.charset = "hi!";
int int23 = response1.statusCode;
org.jsoup.Connection.Response response25 = response1.removeHeader("hi!");
org.jsoup.Connection.Method method26 = response1.method();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertNotNull(strMap14);
org.junit.Assert.assertNotNull(response16);
org.junit.Assert.assertNotNull(strMap19);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + 0 + "'", int20 == 0);
org.junit.Assert.assertTrue("'" + int23 + "' != '" + 0 + "'", int23 == 0);
org.junit.Assert.assertNotNull(response25);
org.junit.Assert.assertNull(method26);
}
@Test
public void test02799() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02799");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusCode = (byte) 1;
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.headers();
org.jsoup.Connection.Response response10 = response1.removeCookie("hi!");
org.jsoup.Connection.Response response12 = response1.removeCookie("");
java.lang.String str14 = response1.getHeaderCaseInsensitive("hi!");
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertNotNull(response12);
org.junit.Assert.assertNull(str14);
}
@Test
public void test02800() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02800");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str7 = response1.charset();
boolean boolean9 = response1.hasHeader("hi!");
org.jsoup.Connection.Method method10 = response1.method();
org.jsoup.Connection.Response response12 = response1.removeCookie("");
java.lang.String str13 = response1.statusMessage();
java.lang.String str14 = response1.statusMessage();
org.jsoup.Connection.Request request15 = response1.req;
java.lang.String str16 = response1.contentType();
java.lang.String str17 = response1.charset;
org.jsoup.Connection.Response response19 = response1.removeCookie("");
org.jsoup.Connection.Response response21 = response1.removeHeader("hi!");
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(method10);
org.junit.Assert.assertNotNull(response12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(request15);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertNotNull(response19);
org.junit.Assert.assertNotNull(response21);
}
@Test
public void test02801() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02801");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str9 = response1.statusMessage();
java.lang.String str10 = response1.statusMessage();
java.net.URL uRL11 = response1.url();
org.jsoup.Connection.Method method12 = response1.method();
boolean boolean14 = response1.hasCookie("hi!");
org.jsoup.Connection.Response response16 = response1.removeCookie("");
org.jsoup.helper.HttpConnection.Response response17 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Method method18 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response19 = response17.method(method18);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertEquals("'" + str10 + "' != '" + "" + "'", str10, "");
org.junit.Assert.assertNull(uRL11);
org.junit.Assert.assertNull(method12);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNotNull(response16);
}
@Test
public void test02802() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02802");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
org.jsoup.Connection.Response response8 = response1.header("hi!", "");
boolean boolean10 = response1.hasHeader("hi!");
response1.statusCode = (short) -1;
java.nio.ByteBuffer byteBuffer13 = null;
response1.byteData = byteBuffer13;
java.nio.ByteBuffer byteBuffer15 = response1.byteData;
int int16 = response1.statusCode;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNotNull(response8);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(byteBuffer15);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + (-1) + "'", int16 == (-1));
}
@Test
public void test02803() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02803");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry6 = response1.scanHeaders("hi!");
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(strEntry6);
org.junit.Assert.assertNull(byteBuffer7);
}
@Test
public void test02804() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02804");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("hi!");
java.lang.String str11 = response1.contentType;
response1.charset = "";
response1.charset = "";
response1.contentType = "";
org.jsoup.Connection.Method method18 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response19 = response1.method(method18);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str11);
}
@Test
public void test02805() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02805");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str7 = response1.charset();
boolean boolean9 = response1.hasHeader("hi!");
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document10 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
}
@Test
public void test02806() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02806");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
response1.statusMessage = "";
org.jsoup.Connection.Response response10 = response1.cookie("hi!", "");
org.jsoup.helper.HttpConnection.Response response11 = new org.jsoup.helper.HttpConnection.Response(response1);
int int12 = response11.numRedirects;
java.lang.String str14 = response11.getHeaderCaseInsensitive("");
response11.executed = true;
// The following exception was thrown during execution in test generation
try {
byte[] byteArray17 = response11.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 1 + "'", int12 == 1);
org.junit.Assert.assertNull(str14);
}
@Test
public void test02807() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02807");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
response1.statusMessage = "";
org.jsoup.Connection.Method method8 = response1.method();
int int9 = response1.numRedirects;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response13 = response1.removeCookie("hi!");
java.lang.String str14 = response1.statusMessage();
response1.charset = "hi!";
org.jsoup.Connection.Method method17 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response18 = response1.method(method17);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
org.junit.Assert.assertNotNull(response13);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "hi!" + "'", str14, "hi!");
}
@Test
public void test02808() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02808");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
java.lang.String str13 = response1.statusMessage();
java.nio.ByteBuffer byteBuffer14 = response1.byteData;
int int15 = response1.numRedirects;
java.net.URL uRL16 = response1.url();
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response19 = response1.cookie("", "");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cookie name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(byteBuffer14);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0);
org.junit.Assert.assertNull(uRL16);
}
@Test
public void test02809() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02809");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str9 = response1.statusMessage();
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.cookies();
response1.charset = "hi!";
java.nio.ByteBuffer byteBuffer13 = response1.byteData;
java.lang.String str14 = response1.charset;
response1.statusMessage = "";
org.jsoup.Connection.Method method17 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response18 = response1.method(method17);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(byteBuffer13);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "hi!" + "'", str14, "hi!");
}
@Test
public void test02810() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02810");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response6 = response1.removeHeader("hi!");
java.lang.String str7 = response1.statusMessage;
java.lang.String str9 = response1.getHeaderCaseInsensitive("hi!");
java.lang.String str11 = response1.header("hi!");
response1.statusMessage = "";
response1.statusCode = 'a';
java.lang.String str16 = response1.contentType;
java.lang.String str17 = response1.contentType();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNull(str17);
}
@Test
public void test02811() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02811");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request3 = response2.req;
int int4 = response2.statusCode;
response2.executed = false;
response2.statusCode = (byte) 1;
java.util.Map<java.lang.String, java.lang.String> strMap9 = response2.headers();
org.jsoup.Connection.Response response11 = response2.removeCookie("hi!");
org.jsoup.Connection.Response response13 = response2.removeCookie("");
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response14 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request3);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNotNull(strMap9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNotNull(response13);
}
@Test
public void test02812() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02812");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str10 = response1.getHeaderCaseInsensitive("hi!");
response1.executed = true;
boolean boolean14 = response1.hasCookie("hi!");
int int15 = response1.statusCode;
boolean boolean16 = response1.executed;
// The following exception was thrown during execution in test generation
try {
byte[] byteArray17 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
}
@Test
public void test02813() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02813");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str11 = response1.charset();
org.jsoup.Connection.Request request12 = response1.req;
java.lang.String str13 = response1.charset();
boolean boolean15 = response1.hasCookie("");
response1.executed = false;
java.nio.ByteBuffer byteBuffer18 = response1.byteData;
int int19 = response1.statusCode;
response1.statusMessage = "hi!";
org.jsoup.helper.HttpConnection.Response response22 = new org.jsoup.helper.HttpConnection.Response(response1);
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response25 = response22.cookie("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cookie name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(request12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(byteBuffer18);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 0 + "'", int19 == 0);
}
@Test
public void test02814() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02814");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.charset;
org.jsoup.Connection.Request request5 = response1.req;
java.util.Map<java.lang.String, java.lang.String> strMap6 = response1.headers();
java.lang.String str7 = response1.statusMessage;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response9 = response1.removeHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(request5);
org.junit.Assert.assertNotNull(strMap6);
org.junit.Assert.assertNull(str7);
}
@Test
public void test02815() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02815");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
java.lang.String str9 = response1.statusMessage();
org.jsoup.Connection.Method method10 = response1.method();
int int11 = response1.statusCode;
java.net.URL uRL12 = response1.url();
java.lang.String str14 = response1.header("");
org.jsoup.Connection.Request request15 = response1.req;
org.jsoup.Connection.Request request16 = null;
response1.req = request16;
java.net.URL uRL18 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response19 = response1.url(uRL18);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(method10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertNull(uRL12);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(request15);
}
@Test
public void test02816() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02816");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
org.jsoup.Connection.Method method6 = response1.method();
response1.numRedirects = (byte) 100;
java.lang.String str9 = response1.charset;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(method6);
org.junit.Assert.assertNull(str9);
}
@Test
public void test02817() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02817");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.charset;
org.jsoup.Connection.Request request5 = response1.req;
java.util.Map<java.lang.String, java.lang.String> strMap6 = response1.headers();
response1.numRedirects = (byte) 1;
java.lang.String str10 = response1.header("hi!");
response1.numRedirects = (byte) 10;
response1.executed = true;
java.nio.ByteBuffer byteBuffer15 = null;
response1.byteData = byteBuffer15;
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(request5);
org.junit.Assert.assertNotNull(strMap6);
org.junit.Assert.assertNull(str10);
}
@Test
public void test02818() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02818");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str10 = response1.getHeaderCaseInsensitive("");
org.jsoup.Connection.Request request11 = response1.req;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response14 = response1.cookie("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cookie name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(request11);
}
@Test
public void test02819() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02819");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.lang.String str9 = response1.contentType;
java.lang.String str11 = response1.getHeaderCaseInsensitive("");
java.lang.String str12 = response1.statusMessage;
java.lang.String str13 = response1.charset;
java.lang.String str14 = response1.charset();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertEquals("'" + str12 + "' != '" + "" + "'", str12, "");
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(str14);
}
@Test
public void test02820() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02820");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
org.jsoup.Connection.Response response8 = response1.header("hi!", "hi!");
org.jsoup.Connection.Method method9 = response1.method();
org.jsoup.Connection.Request request10 = response1.req;
response1.statusMessage = "";
java.lang.String str13 = response1.statusMessage();
response1.statusMessage = "hi!";
response1.charset = "hi!";
org.jsoup.Connection.Request request18 = null;
response1.req = request18;
org.jsoup.Connection.Request request20 = null;
response1.req = request20;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response8);
org.junit.Assert.assertNull(method9);
org.junit.Assert.assertNull(request10);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
}
@Test
public void test02821() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02821");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
int int5 = response1.statusCode();
org.jsoup.Connection.Response response8 = response1.header("hi!", "");
org.jsoup.Connection.Request request9 = response1.req;
java.lang.String str10 = response1.contentType();
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.cookies();
java.lang.String str12 = response1.statusMessage();
java.lang.String str13 = response1.contentType();
response1.numRedirects = 0;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response18 = response1.header("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0);
org.junit.Assert.assertNotNull(response8);
org.junit.Assert.assertNull(request9);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertEquals("'" + str12 + "' != '" + "" + "'", str12, "");
org.junit.Assert.assertNull(str13);
}
@Test
public void test02822() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02822");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
org.jsoup.Connection.Method method6 = response1.method();
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
int int8 = response1.statusCode;
java.lang.String str9 = response1.charset();
java.nio.ByteBuffer byteBuffer10 = response1.byteData;
java.lang.String str11 = response1.charset;
org.jsoup.Connection.Request request12 = response1.req;
java.net.HttpURLConnection httpURLConnection13 = null;
org.jsoup.helper.HttpConnection.Response response14 = null;
org.jsoup.helper.HttpConnection.Response response15 = new org.jsoup.helper.HttpConnection.Response(response14);
int int16 = response15.numRedirects;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry18 = response15.scanHeaders("");
org.jsoup.Connection.Response response20 = response15.removeCookie("hi!");
java.nio.ByteBuffer byteBuffer21 = null;
response15.byteData = byteBuffer21;
java.net.URL uRL23 = response15.url();
response15.executed = false;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection13, (org.jsoup.Connection.Response) response15);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(method6);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(byteBuffer10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(request12);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0);
org.junit.Assert.assertNull(strEntry18);
org.junit.Assert.assertNotNull(response20);
org.junit.Assert.assertNull(uRL23);
}
@Test
public void test02823() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02823");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.statusMessage;
int int5 = response1.statusCode();
org.jsoup.Connection.Method method6 = response1.method();
java.util.Map<java.lang.String, java.lang.String> strMap7 = response1.cookies();
response1.statusCode = 52;
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0);
org.junit.Assert.assertNull(method6);
org.junit.Assert.assertNotNull(strMap7);
}
@Test
public void test02824() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02824");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.charset();
org.jsoup.helper.HttpConnection.Response response13 = new org.jsoup.helper.HttpConnection.Response(response1);
response1.statusMessage = "hi!";
java.net.HttpURLConnection httpURLConnection16 = null;
org.jsoup.helper.HttpConnection.Response response17 = null;
org.jsoup.helper.HttpConnection.Response response18 = new org.jsoup.helper.HttpConnection.Response(response17);
org.jsoup.Connection.Request request19 = response18.req;
java.lang.String str21 = response18.cookie("hi!");
java.lang.String str22 = response18.charset();
org.jsoup.Connection.Method method23 = response18.method();
java.lang.String str25 = response18.getHeaderCaseInsensitive("hi!");
org.jsoup.Connection.Response response28 = response18.cookie("hi!", "");
boolean boolean30 = response18.hasCookie("hi!");
java.lang.String str31 = response18.charset();
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection16, (org.jsoup.Connection.Response) response18);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request19);
org.junit.Assert.assertNull(str21);
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertNull(method23);
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertNotNull(response28);
org.junit.Assert.assertTrue("'" + boolean30 + "' != '" + true + "'", boolean30 == true);
org.junit.Assert.assertNull(str31);
}
@Test
public void test02825() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02825");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
org.jsoup.Connection.Method method6 = response1.method();
java.lang.String str8 = response1.getHeaderCaseInsensitive("hi!");
org.jsoup.Connection.Response response11 = response1.cookie("hi!", "");
response1.contentType = "hi!";
java.lang.String str15 = response1.header("hi!");
java.lang.String str16 = response1.statusMessage;
java.lang.String str17 = response1.charset;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(method6);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNull(str17);
}
@Test
public void test02826() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02826");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str11 = response1.charset();
java.lang.String str12 = response1.charset;
org.jsoup.Connection.Response response14 = response1.removeCookie("hi!");
int int15 = response1.numRedirects;
org.jsoup.Connection.Method method16 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response17 = response1.method(method16);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNotNull(response14);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0);
}
@Test
public void test02827() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02827");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
java.lang.String str9 = response1.statusMessage();
org.jsoup.Connection.Method method10 = response1.method();
int int11 = response1.statusCode;
java.net.URL uRL12 = response1.url();
boolean boolean14 = response1.hasCookie("hi!");
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(method10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertNull(uRL12);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
}
@Test
public void test02828() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02828");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("hi!");
java.lang.String str12 = response1.header("");
int int13 = response1.numRedirects;
int int14 = response1.statusCode;
java.lang.String str15 = response1.statusMessage();
java.net.HttpURLConnection httpURLConnection16 = null;
org.jsoup.helper.HttpConnection.Response response17 = null;
org.jsoup.helper.HttpConnection.Response response18 = new org.jsoup.helper.HttpConnection.Response(response17);
response18.statusMessage = "";
org.jsoup.Connection.Method method21 = response18.method();
java.nio.ByteBuffer byteBuffer22 = null;
response18.byteData = byteBuffer22;
java.lang.String str25 = response18.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry27 = response18.scanHeaders("");
java.lang.String str29 = response18.header("");
response18.executed = true;
org.jsoup.Connection.Response response33 = response18.removeCookie("hi!");
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection16, response33);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "" + "'", str15, "");
org.junit.Assert.assertNull(method21);
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertNull(strEntry27);
org.junit.Assert.assertNull(str29);
org.junit.Assert.assertNotNull(response33);
}
@Test
public void test02829() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02829");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
org.jsoup.Connection.Request request5 = null;
response1.req = request5;
boolean boolean8 = response1.hasCookie("hi!");
org.jsoup.Connection.Request request9 = response1.req;
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.cookies();
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(request9);
org.junit.Assert.assertNotNull(strMap10);
}
@Test
public void test02830() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02830");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("hi!");
boolean boolean12 = response1.hasHeader("hi!");
// The following exception was thrown during execution in test generation
try {
boolean boolean14 = response1.hasHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test02831() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02831");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.headers();
org.jsoup.Connection.Response response14 = response1.header("hi!", "");
java.lang.String str16 = response1.header("");
org.jsoup.Connection.Response response18 = response1.removeCookie("");
java.lang.String str19 = response1.statusMessage;
java.lang.String str20 = response1.contentType;
org.jsoup.Connection.Response response22 = response1.removeCookie("hi!");
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertNotNull(response14);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNotNull(response18);
org.junit.Assert.assertEquals("'" + str19 + "' != '" + "" + "'", str19, "");
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertNotNull(response22);
}
@Test
public void test02832() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02832");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response7 = response1.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
java.util.Map<java.lang.String, java.lang.String> strMap9 = response1.cookies();
int int10 = response1.statusCode;
java.lang.String str12 = response1.header("");
java.net.URL uRL13 = response1.url();
org.jsoup.Connection.Response response16 = response1.cookie("hi!", "hi!");
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response19 = response1.header("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNotNull(strMap9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(uRL13);
org.junit.Assert.assertNotNull(response16);
}
@Test
public void test02833() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02833");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
boolean boolean6 = response1.hasCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap7 = response1.headers();
boolean boolean9 = response1.hasCookie("");
java.lang.String str10 = response1.contentType();
int int11 = response1.numRedirects;
java.lang.String str13 = response1.header("hi!");
int int14 = response1.numRedirects;
java.nio.ByteBuffer byteBuffer15 = response1.byteData;
java.lang.Class<?> wildcardClass16 = response1.getClass();
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNotNull(strMap7);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
org.junit.Assert.assertNull(byteBuffer15);
org.junit.Assert.assertNotNull(wildcardClass16);
}
@Test
public void test02834() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02834");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.nio.ByteBuffer byteBuffer7 = null;
response1.byteData = byteBuffer7;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
org.jsoup.Connection.Response response13 = response1.cookie("hi!", "hi!");
int int14 = response1.statusCode();
java.util.Map<java.lang.String, java.lang.String> strMap15 = response1.cookies();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNotNull(response13);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
org.junit.Assert.assertNotNull(strMap15);
}
@Test
public void test02835() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02835");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.util.Map<java.lang.String, java.lang.String> strMap5 = response1.cookies();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry7 = response1.scanHeaders("");
java.net.URL uRL8 = response1.url();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNotNull(strMap5);
org.junit.Assert.assertNull(strEntry7);
org.junit.Assert.assertNull(uRL8);
}
@Test
public void test02836() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02836");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
java.lang.String str9 = response1.statusMessage();
org.jsoup.Connection.Request request10 = response1.req;
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document11 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(request10);
}
@Test
public void test02837() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02837");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
java.lang.String str6 = response1.contentType();
java.net.URL uRL7 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response8 = response1.url(uRL7);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str6);
}
@Test
public void test02838() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02838");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
java.lang.String str8 = response1.charset();
response1.charset = "hi!";
boolean boolean12 = response1.hasHeader("hi!");
java.lang.Class<?> wildcardClass13 = response1.getClass();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNotNull(wildcardClass13);
}
@Test
public void test02839() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02839");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
response1.statusCode = (byte) 100;
response1.statusCode = 35;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
}
@Test
public void test02840() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02840");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
java.lang.String str7 = response1.getHeaderCaseInsensitive("");
org.jsoup.Connection.Method method8 = response1.method();
boolean boolean9 = response1.executed;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry11 = response1.scanHeaders("hi!");
// The following exception was thrown during execution in test generation
try {
java.lang.Class<?> wildcardClass12 = strEntry11.getClass();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(strEntry11);
}
@Test
public void test02841() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02841");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
int int4 = response1.statusCode;
boolean boolean6 = response1.hasCookie("hi!");
boolean boolean8 = response1.hasCookie("hi!");
boolean boolean10 = response1.hasCookie("hi!");
java.net.URL uRL11 = response1.url();
response1.numRedirects = (short) -1;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(uRL11);
}
@Test
public void test02842() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02842");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response7 = response1.header("hi!", "hi!");
java.lang.String str9 = response1.header("hi!");
java.lang.String str10 = response1.statusMessage();
int int11 = response1.statusCode;
java.util.Map<java.lang.String, java.lang.String> strMap12 = response1.headers();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry14 = response1.scanHeaders("hi!");
// The following exception was thrown during execution in test generation
try {
byte[] byteArray15 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "hi!" + "'", str9, "hi!");
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertNotNull(strMap12);
org.junit.Assert.assertNotNull(strEntry14);
}
@Test
public void test02843() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02843");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
java.lang.String str13 = response1.statusMessage();
java.net.URL uRL14 = response1.url();
java.lang.String str15 = response1.charset;
response1.executed = true;
boolean boolean19 = response1.hasCookie("hi!");
boolean boolean21 = response1.hasCookie("hi!");
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(uRL14);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + false + "'", boolean21 == false);
}
@Test
public void test02844() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02844");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
response1.statusMessage = "";
response1.statusMessage = "";
org.jsoup.Connection.Response response11 = response1.removeCookie("");
org.jsoup.Connection.Request request12 = response1.req;
boolean boolean13 = response1.executed;
int int14 = response1.numRedirects;
java.lang.String str15 = response1.contentType;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(request12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
org.junit.Assert.assertNull(str15);
}
@Test
public void test02845() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02845");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
response1.executed = true;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry16 = response1.scanHeaders("");
response1.statusCode = 0;
org.jsoup.Connection.Method method19 = response1.method();
java.nio.ByteBuffer byteBuffer20 = null;
response1.byteData = byteBuffer20;
org.jsoup.Connection.Method method22 = response1.method();
org.jsoup.Connection.Method method23 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response24 = response1.method(method23);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(strEntry16);
org.junit.Assert.assertNull(method19);
org.junit.Assert.assertNull(method22);
}
@Test
public void test02846() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02846");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
org.jsoup.Connection.Request request5 = null;
response1.req = request5;
org.jsoup.Connection.Method method7 = response1.method();
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.cookies();
org.jsoup.Connection.Response response10 = response1.removeCookie("hi!");
org.jsoup.Connection.Method method11 = response1.method();
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertNull(method7);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertNull(method11);
}
@Test
public void test02847() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02847");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("hi!");
java.lang.String str11 = response1.contentType;
java.util.Map<java.lang.String, java.lang.String> strMap12 = response1.cookies();
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response15 = response1.header("", "");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNotNull(strMap12);
}
@Test
public void test02848() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02848");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.headers();
response1.contentType = "";
java.lang.String str14 = response1.contentType;
org.jsoup.Connection.Method method15 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response1.method(method15);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "" + "'", str14, "");
}
@Test
public void test02849() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02849");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
response2.statusMessage = "";
org.jsoup.Connection.Method method5 = response2.method();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry7 = response2.scanHeaders("hi!");
java.lang.String str8 = response2.contentType;
java.lang.String str9 = response2.charset();
java.lang.String str10 = response2.contentType;
java.nio.ByteBuffer byteBuffer11 = response2.byteData;
int int12 = response2.numRedirects;
org.jsoup.Connection.Request request13 = response2.req;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response14 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNull(strEntry7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(byteBuffer11);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
org.junit.Assert.assertNull(request13);
}
@Test
public void test02850() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02850");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
response1.charset = "";
java.nio.ByteBuffer byteBuffer11 = null;
response1.byteData = byteBuffer11;
java.net.URL uRL13 = response1.url();
java.lang.String str14 = response1.contentType;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(uRL13);
org.junit.Assert.assertNull(str14);
}
@Test
public void test02851() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02851");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
java.util.Map<java.lang.String, java.lang.String> strMap5 = response1.headers();
response1.contentType = "";
java.lang.String str8 = response1.contentType();
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
int int10 = response1.numRedirects;
java.lang.String str12 = response1.getHeaderCaseInsensitive("hi!");
org.jsoup.Connection.Request request13 = null;
response1.req = request13;
boolean boolean15 = response1.executed;
response1.statusCode = 10;
response1.contentType = "";
java.net.URL uRL20 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response21 = response1.url(uRL20);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(strMap5);
org.junit.Assert.assertEquals("'" + str8 + "' != '" + "" + "'", str8, "");
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
}
@Test
public void test02852() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02852");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
int int7 = response1.statusCode();
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
org.jsoup.Connection.Request request9 = response1.req;
java.net.URL uRL10 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response11 = response1.url(uRL10);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNull(request9);
}
@Test
public void test02853() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02853");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
java.lang.String str9 = response1.statusMessage();
org.jsoup.Connection.Method method10 = response1.method();
int int11 = response1.statusCode;
java.net.URL uRL12 = response1.url();
boolean boolean14 = response1.hasCookie("");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry16 = response1.scanHeaders("hi!");
int int17 = response1.statusCode;
// The following exception was thrown during execution in test generation
try {
java.lang.String str18 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(method10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertNull(uRL12);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(strEntry16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
}
@Test
public void test02854() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02854");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response6 = response1.removeHeader("hi!");
response1.contentType = "hi!";
// The following exception was thrown during execution in test generation
try {
java.lang.String str9 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response6);
}
@Test
public void test02855() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02855");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.nio.ByteBuffer byteBuffer3 = response1.byteData;
int int4 = response1.numRedirects;
java.lang.String str6 = response1.header("");
java.util.Map<java.lang.String, java.lang.String> strMap7 = response1.cookies();
org.jsoup.Connection.Method method8 = response1.method();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("hi!");
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.headers();
org.jsoup.Connection.Method method12 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response13 = response1.method(method12);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(byteBuffer3);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNotNull(strMap7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNotNull(strMap11);
}
@Test
public void test02856() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02856");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
int int4 = response1.statusCode;
boolean boolean6 = response1.hasCookie("hi!");
boolean boolean8 = response1.hasCookie("hi!");
boolean boolean10 = response1.hasCookie("hi!");
java.net.URL uRL11 = response1.url();
java.net.URL uRL12 = response1.url();
response1.numRedirects = ' ';
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(uRL11);
org.junit.Assert.assertNull(uRL12);
}
@Test
public void test02857() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02857");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
int int4 = response1.statusCode;
boolean boolean6 = response1.hasCookie("hi!");
boolean boolean8 = response1.hasCookie("hi!");
boolean boolean10 = response1.hasCookie("hi!");
java.net.URL uRL11 = response1.url();
java.lang.String str13 = response1.cookie("");
java.nio.ByteBuffer byteBuffer14 = null;
response1.byteData = byteBuffer14;
response1.executed = false;
java.nio.ByteBuffer byteBuffer18 = response1.byteData;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response20 = response1.removeHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(uRL11);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(byteBuffer18);
}
@Test
public void test02858() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02858");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response7 = response1.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
java.util.Map<java.lang.String, java.lang.String> strMap9 = response1.cookies();
int int10 = response1.statusCode;
java.lang.String str12 = response1.header("");
java.lang.String str14 = response1.getHeaderCaseInsensitive("hi!");
org.jsoup.Connection.Response response16 = response1.removeCookie("");
// The following exception was thrown during execution in test generation
try {
byte[] byteArray17 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNotNull(strMap9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "hi!" + "'", str14, "hi!");
org.junit.Assert.assertNotNull(response16);
}
@Test
public void test02859() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02859");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.util.Map<java.lang.String, java.lang.String> strMap5 = response1.cookies();
int int6 = response1.numRedirects;
org.jsoup.Connection.Response response9 = response1.cookie("hi!", "");
java.net.URL uRL10 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response11 = response1.url(uRL10);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNotNull(strMap5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNotNull(response9);
}
@Test
public void test02860() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02860");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.charset = "";
org.jsoup.Connection.Method method4 = response1.method();
boolean boolean5 = response1.executed;
org.jsoup.Connection.Request request6 = response1.req;
org.jsoup.Connection.Method method7 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response8 = response1.method(method7);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(request6);
}
@Test
public void test02861() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02861");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
response1.charset = "";
response1.numRedirects = (-1);
response1.contentType = "hi!";
java.lang.String str17 = response1.contentType;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertEquals("'" + str17 + "' != '" + "hi!" + "'", str17, "hi!");
}
@Test
public void test02862() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02862");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
response1.statusMessage = "";
org.jsoup.Connection.Response response13 = response1.header("hi!", "hi!");
java.lang.String str15 = response1.getHeaderCaseInsensitive("");
// The following exception was thrown during execution in test generation
try {
byte[] byteArray16 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNotNull(response13);
org.junit.Assert.assertNull(str15);
}
@Test
public void test02863() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02863");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
boolean boolean6 = response1.hasCookie("");
response1.contentType = "";
org.jsoup.Connection.Request request9 = response1.req;
response1.statusMessage = "hi!";
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(request9);
}
@Test
public void test02864() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02864");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Response response4 = response2.removeHeader("hi!");
java.lang.String str5 = response2.contentType();
java.nio.ByteBuffer byteBuffer6 = null;
response2.byteData = byteBuffer6;
java.lang.String str8 = response2.charset();
boolean boolean10 = response2.hasHeader("hi!");
org.jsoup.Connection.Method method11 = response2.method();
org.jsoup.Connection.Response response13 = response2.removeCookie("");
java.lang.String str14 = response2.statusMessage();
java.lang.String str15 = response2.statusMessage();
org.jsoup.Connection.Request request16 = response2.req;
java.lang.String str17 = response2.contentType();
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response18 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(method11);
org.junit.Assert.assertNotNull(response13);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(request16);
org.junit.Assert.assertNull(str17);
}
@Test
public void test02865() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02865");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response7 = response1.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
org.jsoup.Connection.Response response10 = response1.removeCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.cookies();
response1.statusMessage = "";
java.util.Map<java.lang.String, java.lang.String> strMap14 = response1.headers();
java.lang.String str16 = response1.cookie("hi!");
int int17 = response1.statusCode;
org.jsoup.Connection.Response response19 = response1.removeHeader("hi!");
int int20 = response1.statusCode;
org.jsoup.Connection.Method method21 = response1.method();
java.lang.Class<?> wildcardClass22 = response1.getClass();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertNotNull(strMap14);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
org.junit.Assert.assertNotNull(response19);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + 0 + "'", int20 == 0);
org.junit.Assert.assertNull(method21);
org.junit.Assert.assertNotNull(wildcardClass22);
}
@Test
public void test02866() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02866");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.lang.String str4 = response1.charset;
response1.numRedirects = (byte) -1;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry8 = response1.scanHeaders("");
java.lang.String str9 = response1.charset;
java.lang.String str10 = response1.contentType();
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.headers();
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(strEntry8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNotNull(strMap11);
}
@Test
public void test02867() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02867");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
boolean boolean6 = response1.hasCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap7 = response1.headers();
response1.executed = false;
org.jsoup.Connection.Response response11 = response1.removeCookie("hi!");
java.lang.String str12 = response1.contentType();
java.net.URL uRL13 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response14 = response1.url(uRL13);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNotNull(strMap7);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
}
@Test
public void test02868() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02868");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
org.jsoup.Connection.Method method11 = response1.method();
int int12 = response1.statusCode();
response1.statusCode = (-1);
java.lang.String str15 = response1.charset();
// The following exception was thrown during execution in test generation
try {
byte[] byteArray16 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(method11);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
org.junit.Assert.assertNull(str15);
}
@Test
public void test02869() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02869");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
response1.charset = "";
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
java.util.Map<java.lang.String, java.lang.String> strMap14 = response1.cookies();
java.lang.String str15 = response1.statusMessage();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry17 = response1.scanHeaders("hi!");
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertNotNull(strMap14);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "hi!" + "'", str15, "hi!");
org.junit.Assert.assertNull(strEntry17);
}
@Test
public void test02870() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02870");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.nio.ByteBuffer byteBuffer7 = null;
response1.byteData = byteBuffer7;
java.lang.String str9 = response1.statusMessage();
org.jsoup.Connection.Response response12 = response1.cookie("hi!", "");
response1.numRedirects = 1;
int int15 = response1.numRedirects;
org.jsoup.Connection.Request request16 = response1.req;
org.jsoup.Connection.Response response18 = response1.removeHeader("hi!");
java.lang.String str19 = response1.charset;
boolean boolean20 = response1.executed;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNotNull(response12);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 1 + "'", int15 == 1);
org.junit.Assert.assertNull(request16);
org.junit.Assert.assertNotNull(response18);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
}
@Test
public void test02871() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02871");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.headers();
java.lang.String str12 = response1.charset;
java.lang.String str14 = response1.cookie("");
java.net.HttpURLConnection httpURLConnection15 = null;
org.jsoup.helper.HttpConnection.Response response16 = null;
org.jsoup.helper.HttpConnection.Response response17 = new org.jsoup.helper.HttpConnection.Response(response16);
org.jsoup.Connection.Response response19 = response17.removeHeader("hi!");
java.lang.String str20 = response17.contentType();
java.nio.ByteBuffer byteBuffer21 = null;
response17.byteData = byteBuffer21;
java.lang.String str23 = response17.charset();
boolean boolean25 = response17.hasHeader("hi!");
response17.contentType = "";
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection15, (org.jsoup.Connection.Response) response17);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNotNull(response19);
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertNull(str23);
org.junit.Assert.assertTrue("'" + boolean25 + "' != '" + false + "'", boolean25 == false);
}
@Test
public void test02872() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02872");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str3 = response1.contentType();
boolean boolean5 = response1.hasHeader("hi!");
org.jsoup.helper.HttpConnection.Response response6 = new org.jsoup.helper.HttpConnection.Response(response1);
boolean boolean7 = response6.executed;
java.lang.Class<?> wildcardClass8 = response6.getClass();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNotNull(wildcardClass8);
}
@Test
public void test02873() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02873");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.lang.String str3 = response1.contentType;
org.jsoup.Connection.Request request4 = null;
response1.req = request4;
org.jsoup.helper.HttpConnection.Response response6 = new org.jsoup.helper.HttpConnection.Response(response1);
boolean boolean7 = response1.executed;
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.cookies();
java.lang.String str9 = response1.statusMessage;
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.cookies();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry12 = response1.scanHeaders("hi!");
// The following exception was thrown during execution in test generation
try {
java.lang.Class<?> wildcardClass13 = strEntry12.getClass();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(strEntry12);
}
@Test
public void test02874() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02874");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry4 = response1.scanHeaders("");
org.jsoup.Connection.Response response6 = response1.removeCookie("hi!");
java.nio.ByteBuffer byteBuffer7 = null;
response1.byteData = byteBuffer7;
java.net.URL uRL9 = response1.url();
response1.executed = false;
java.lang.String str13 = response1.header("hi!");
java.nio.ByteBuffer byteBuffer14 = response1.byteData;
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(strEntry4);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(byteBuffer14);
}
@Test
public void test02875() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02875");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
org.jsoup.Connection.Method method5 = response1.method();
org.jsoup.Connection.Response response7 = response1.removeCookie("hi!");
response1.statusMessage = "";
boolean boolean11 = response1.hasCookie("hi!");
org.jsoup.Connection.Response response13 = response1.removeHeader("hi!");
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNotNull(response13);
}
@Test
public void test02876() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02876");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.charset();
java.lang.String str14 = response1.header("");
java.util.Map<java.lang.String, java.lang.String> strMap15 = response1.headers();
boolean boolean16 = response1.executed;
java.lang.Class<?> wildcardClass17 = response1.getClass();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNotNull(strMap15);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertNotNull(wildcardClass17);
}
@Test
public void test02877() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02877");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
response1.charset = "";
org.jsoup.Connection.Response response14 = response1.removeCookie("");
org.jsoup.Connection.Request request15 = null;
response1.req = request15;
int int17 = response1.numRedirects;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNotNull(response14);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
}
@Test
public void test02878() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02878");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
org.jsoup.Connection.Response response10 = response1.removeCookie("");
org.jsoup.Connection.Request request11 = response1.req;
// The following exception was thrown during execution in test generation
try {
java.lang.String str12 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertNull(request11);
}
@Test
public void test02879() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02879");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str9 = response1.statusMessage();
org.jsoup.Connection.Request request10 = null;
response1.req = request10;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry13 = response1.scanHeaders("hi!");
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNull(strEntry13);
}
@Test
public void test02880() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02880");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
int int5 = response1.statusCode();
java.net.URL uRL6 = response1.url();
java.lang.String str7 = response1.statusMessage;
java.net.HttpURLConnection httpURLConnection8 = null;
org.jsoup.helper.HttpConnection.Response response9 = null;
org.jsoup.helper.HttpConnection.Response response10 = new org.jsoup.helper.HttpConnection.Response(response9);
org.jsoup.Connection.Request request11 = response10.req;
java.lang.String str13 = response10.cookie("hi!");
org.jsoup.Connection.Response response16 = response10.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer17 = response10.byteData;
org.jsoup.Connection.Response response19 = response10.removeCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap20 = response10.cookies();
response10.statusMessage = "";
java.net.URL uRL23 = response10.url();
java.lang.String str24 = response10.statusMessage();
org.jsoup.Connection.Request request25 = response10.req;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection8, (org.jsoup.Connection.Response) response10);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0);
org.junit.Assert.assertNull(uRL6);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(request11);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNotNull(response16);
org.junit.Assert.assertNull(byteBuffer17);
org.junit.Assert.assertNotNull(response19);
org.junit.Assert.assertNotNull(strMap20);
org.junit.Assert.assertNull(uRL23);
org.junit.Assert.assertEquals("'" + str24 + "' != '" + "" + "'", str24, "");
org.junit.Assert.assertNull(request25);
}
@Test
public void test02881() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02881");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
response1.statusCode = (byte) 100;
org.jsoup.Connection.Request request8 = null;
response1.req = request8;
java.lang.String str11 = response1.header("");
response1.statusMessage = "hi!";
org.jsoup.Connection.Request request14 = response1.req;
response1.numRedirects = 52;
java.lang.Class<?> wildcardClass17 = response1.getClass();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(request14);
org.junit.Assert.assertNotNull(wildcardClass17);
}
@Test
public void test02882() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02882");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
response1.numRedirects = (short) 100;
org.jsoup.Connection.Request request7 = response1.req;
response1.charset = "";
boolean boolean11 = response1.hasCookie("hi!");
java.lang.String str12 = response1.contentType();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(request7);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(str12);
}
@Test
public void test02883() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02883");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
response1.numRedirects = 0;
response1.statusMessage = "";
java.lang.String str15 = response1.charset();
boolean boolean16 = response1.executed;
java.net.URL uRL17 = response1.url();
org.jsoup.helper.HttpConnection.Response response18 = new org.jsoup.helper.HttpConnection.Response(response1);
response1.statusCode = 10;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertNull(uRL17);
}
@Test
public void test02884() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02884");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.contentType;
org.jsoup.Connection.Request request13 = response1.req;
java.lang.String str15 = response1.header("hi!");
boolean boolean17 = response1.hasHeader("hi!");
java.lang.String str18 = response1.charset();
boolean boolean20 = response1.hasHeader("hi!");
org.jsoup.helper.HttpConnection.Response response21 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str22 = response1.statusMessage;
org.jsoup.Connection.Request request23 = null;
response1.req = request23;
org.jsoup.Connection.Response response27 = response1.cookie("hi!", "");
java.util.Map<java.lang.String, java.lang.String> strMap28 = response1.cookies();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
org.junit.Assert.assertEquals("'" + str22 + "' != '" + "" + "'", str22, "");
org.junit.Assert.assertNotNull(response27);
org.junit.Assert.assertNotNull(strMap28);
}
@Test
public void test02885() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02885");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request3 = response2.req;
java.lang.String str4 = response2.contentType();
boolean boolean6 = response2.hasHeader("hi!");
org.jsoup.Connection.Method method7 = response2.method();
java.lang.String str8 = response2.contentType();
java.util.Map<java.lang.String, java.lang.String> strMap9 = response2.headers();
response2.numRedirects = (byte) 100;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response12 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(method7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNotNull(strMap9);
}
@Test
public void test02886() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02886");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
response1.charset = "";
response1.contentType = "";
boolean boolean15 = response1.hasHeader("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry17 = response1.scanHeaders("hi!");
// The following exception was thrown during execution in test generation
try {
java.lang.String str18 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(strEntry17);
}
@Test
public void test02887() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02887");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
response1.contentType = "hi!";
boolean boolean15 = response1.hasHeader("hi!");
int int16 = response1.statusCode();
int int17 = response1.statusCode;
java.lang.String str19 = response1.header("");
java.lang.String str21 = response1.cookie("hi!");
java.lang.String str22 = response1.charset();
java.net.URL uRL23 = response1.url();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNull(str21);
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertNull(uRL23);
}
@Test
public void test02888() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02888");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
response1.statusMessage = "";
org.jsoup.Connection.Response response9 = response1.cookie("hi!", "");
boolean boolean11 = response1.hasCookie("hi!");
response1.statusMessage = "";
response1.statusCode = 97;
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);
}
@Test
public void test02889() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02889");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
int int7 = response1.statusCode();
response1.statusCode = (byte) 0;
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.headers();
java.lang.String str12 = response1.getHeaderCaseInsensitive("hi!");
org.jsoup.Connection.Request request13 = response1.req;
org.jsoup.Connection.Request request14 = response1.req;
java.lang.String str15 = response1.charset();
response1.statusCode = 1;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(request13);
org.junit.Assert.assertNull(request14);
org.junit.Assert.assertNull(str15);
}
@Test
public void test02890() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02890");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusCode = (byte) 1;
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.headers();
org.jsoup.Connection.Response response10 = response1.removeCookie("hi!");
org.jsoup.Connection.Request request11 = null;
response1.req = request11;
response1.executed = false;
java.nio.ByteBuffer byteBuffer15 = null;
response1.byteData = byteBuffer15;
java.util.Map<java.lang.String, java.lang.String> strMap17 = response1.headers();
response1.statusCode = '4';
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertNotNull(strMap17);
}
@Test
public void test02891() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02891");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
int int12 = response1.statusCode;
java.lang.String str13 = response1.contentType();
java.lang.String str14 = response1.contentType();
org.jsoup.Connection.Response response17 = response1.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer18 = response1.byteData;
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document19 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNotNull(response17);
org.junit.Assert.assertNull(byteBuffer18);
}
@Test
public void test02892() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02892");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
org.jsoup.Connection.Response response8 = response1.header("hi!", "hi!");
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Method method10 = response1.method();
org.jsoup.Connection.Method method11 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response12 = response1.method(method11);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response8);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNull(method10);
}
@Test
public void test02893() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02893");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str10 = response1.getHeaderCaseInsensitive("");
int int11 = response1.statusCode;
java.util.Map<java.lang.String, java.lang.String> strMap12 = response1.headers();
java.util.Map<java.lang.String, java.lang.String> strMap13 = response1.headers();
java.lang.Class<?> wildcardClass14 = response1.getClass();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertNotNull(strMap12);
org.junit.Assert.assertNotNull(strMap13);
org.junit.Assert.assertNotNull(wildcardClass14);
}
@Test
public void test02894() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02894");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.headers();
java.lang.String str12 = response1.charset;
java.lang.String str13 = response1.charset;
java.net.HttpURLConnection httpURLConnection14 = null;
org.jsoup.helper.HttpConnection.Response response15 = null;
org.jsoup.helper.HttpConnection.Response response16 = new org.jsoup.helper.HttpConnection.Response(response15);
org.jsoup.Connection.Response response18 = response16.removeHeader("hi!");
java.lang.String str19 = response16.charset;
org.jsoup.Connection.Method method20 = response16.method();
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection14, (org.jsoup.Connection.Response) response16);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNotNull(response18);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNull(method20);
}
@Test
public void test02895() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02895");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
response1.charset = "";
response1.contentType = "hi!";
java.lang.String str14 = response1.getHeaderCaseInsensitive("");
java.lang.String str15 = response1.contentType;
response1.numRedirects = (short) 10;
response1.charset = "hi!";
org.jsoup.Connection.Method method20 = response1.method();
int int21 = response1.statusCode();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "hi!" + "'", str15, "hi!");
org.junit.Assert.assertNull(method20);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 0 + "'", int21 == 0);
}
@Test
public void test02896() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02896");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
response2.statusMessage = "";
org.jsoup.Connection.Method method5 = response2.method();
java.nio.ByteBuffer byteBuffer6 = null;
response2.byteData = byteBuffer6;
java.lang.String str9 = response2.header("hi!");
response2.charset = "";
org.jsoup.Connection.Response response13 = response2.removeCookie("hi!");
int int14 = response2.statusCode();
int int15 = response2.numRedirects;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response16 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNotNull(response13);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0);
}
@Test
public void test02897() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02897");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
response2.statusMessage = "";
org.jsoup.Connection.Method method5 = response2.method();
java.nio.ByteBuffer byteBuffer6 = null;
response2.byteData = byteBuffer6;
java.lang.String str9 = response2.header("hi!");
java.lang.String str10 = response2.charset();
java.lang.String str11 = response2.statusMessage();
response2.statusMessage = "";
org.jsoup.Connection.Method method14 = response2.method();
org.jsoup.Connection.Request request15 = response2.req;
org.jsoup.Connection.Request request16 = response2.req;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response17 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertEquals("'" + str11 + "' != '" + "" + "'", str11, "");
org.junit.Assert.assertNull(method14);
org.junit.Assert.assertNull(request15);
org.junit.Assert.assertNull(request16);
}
@Test
public void test02898() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02898");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.header("");
response1.numRedirects = (short) 0;
java.lang.String str16 = response1.cookie("hi!");
java.nio.ByteBuffer byteBuffer17 = response1.byteData;
// The following exception was thrown during execution in test generation
try {
java.lang.Class<?> wildcardClass18 = byteBuffer17.getClass();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNull(byteBuffer17);
}
@Test
public void test02899() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02899");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
response1.numRedirects = 0;
java.lang.String str13 = response1.statusMessage;
java.util.Map<java.lang.String, java.lang.String> strMap14 = response1.headers();
response1.statusCode = (byte) 0;
java.lang.String str18 = response1.header("");
int int19 = response1.statusCode();
response1.statusMessage = "";
boolean boolean23 = response1.hasCookie("");
boolean boolean24 = response1.executed;
java.net.HttpURLConnection httpURLConnection25 = null;
org.jsoup.Connection.Response response26 = null;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection25, response26);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNotNull(strMap14);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertTrue("'" + int19 + "' != '" + 0 + "'", int19 == 0);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + false + "'", boolean23 == false);
org.junit.Assert.assertTrue("'" + boolean24 + "' != '" + false + "'", boolean24 == false);
}
@Test
public void test02900() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02900");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
org.jsoup.Connection.Request request5 = null;
response1.req = request5;
boolean boolean8 = response1.hasCookie("hi!");
java.lang.String str9 = response1.statusMessage();
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(str9);
}
@Test
public void test02901() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02901");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.header("");
int int13 = response1.statusCode;
java.lang.String str14 = response1.contentType;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry16 = response1.scanHeaders("hi!");
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response18 = response1.removeHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(strEntry16);
}
@Test
public void test02902() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02902");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
int int5 = response1.statusCode();
org.jsoup.Connection.Response response8 = response1.header("hi!", "");
org.jsoup.Connection.Request request9 = response1.req;
java.lang.String str10 = response1.contentType();
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.cookies();
boolean boolean13 = response1.hasCookie("");
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response1.cookie("", "");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cookie name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0);
org.junit.Assert.assertNotNull(response8);
org.junit.Assert.assertNull(request9);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test02903() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02903");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.lang.String str9 = response1.charset();
java.lang.String str10 = response1.statusMessage();
response1.numRedirects = (byte) 1;
org.jsoup.Connection.Request request13 = null;
response1.req = request13;
java.lang.String str15 = response1.statusMessage;
response1.executed = true;
java.nio.ByteBuffer byteBuffer18 = response1.byteData;
org.jsoup.Connection.Method method19 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response20 = response1.method(method19);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertEquals("'" + str10 + "' != '" + "" + "'", str10, "");
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "" + "'", str15, "");
org.junit.Assert.assertNull(byteBuffer18);
}
@Test
public void test02904() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02904");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
java.lang.String str6 = response1.cookie("");
java.lang.String str8 = response1.cookie("");
int int9 = response1.numRedirects;
java.net.HttpURLConnection httpURLConnection10 = null;
org.jsoup.Connection.Response response11 = null;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection10, response11);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
}
@Test
public void test02905() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02905");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.charset;
org.jsoup.Connection.Method method5 = response1.method();
boolean boolean7 = response1.hasHeader("hi!");
java.lang.String str9 = response1.getHeaderCaseInsensitive("");
java.net.HttpURLConnection httpURLConnection10 = null;
org.jsoup.helper.HttpConnection.Response response11 = null;
org.jsoup.helper.HttpConnection.Response response12 = new org.jsoup.helper.HttpConnection.Response(response11);
org.jsoup.Connection.Response response14 = response12.removeHeader("hi!");
java.net.URL uRL15 = response12.url();
org.jsoup.helper.HttpConnection.Response response16 = new org.jsoup.helper.HttpConnection.Response(response12);
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection10, (org.jsoup.Connection.Response) response12);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNotNull(response14);
org.junit.Assert.assertNull(uRL15);
}
@Test
public void test02906() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02906");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.nio.ByteBuffer byteBuffer3 = response1.byteData;
java.lang.String str4 = response1.statusMessage;
org.jsoup.Connection.Response response6 = response1.removeCookie("");
org.jsoup.helper.HttpConnection.Response response7 = new org.jsoup.helper.HttpConnection.Response(response1);
boolean boolean8 = response1.executed;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(byteBuffer3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
}
@Test
public void test02907() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02907");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
int int4 = response1.statusCode;
response1.executed = false;
java.util.Map<java.lang.String, java.lang.String> strMap7 = response1.cookies();
java.lang.String str9 = response1.cookie("");
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.cookies();
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.cookies();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNotNull(strMap7);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNotNull(strMap11);
}
@Test
public void test02908() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02908");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.lang.String str9 = response1.statusMessage();
org.jsoup.Connection.Method method10 = response1.method();
boolean boolean12 = response1.hasHeader("hi!");
java.lang.String str13 = response1.charset;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNull(method10);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(str13);
}
@Test
public void test02909() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02909");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusCode = (byte) 1;
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.headers();
org.jsoup.Connection.Response response10 = response1.removeCookie("hi!");
org.jsoup.Connection.Request request11 = null;
response1.req = request11;
response1.executed = false;
java.nio.ByteBuffer byteBuffer15 = null;
response1.byteData = byteBuffer15;
java.lang.String str18 = response1.cookie("");
java.lang.String str19 = response1.charset();
response1.charset = "";
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertNull(str19);
}
@Test
public void test02910() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02910");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
response1.statusMessage = "";
boolean boolean8 = response1.hasCookie("hi!");
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
java.net.URL uRL11 = response1.url();
response1.statusCode = 32;
int int14 = response1.numRedirects;
// The following exception was thrown during execution in test generation
try {
byte[] byteArray15 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(uRL11);
org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0);
}
@Test
public void test02911() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02911");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.charset = "";
java.util.Map<java.lang.String, java.lang.String> strMap4 = response1.cookies();
java.lang.String str6 = response1.getHeaderCaseInsensitive("");
java.nio.ByteBuffer byteBuffer7 = null;
response1.byteData = byteBuffer7;
org.jsoup.helper.HttpConnection.Response response9 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.helper.HttpConnection.Response response10 = new org.jsoup.helper.HttpConnection.Response(response1);
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.headers();
org.jsoup.Connection.Response response14 = response1.header("hi!", "hi!");
java.lang.Class<?> wildcardClass15 = response14.getClass();
org.junit.Assert.assertNotNull(strMap4);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertNotNull(response14);
org.junit.Assert.assertNotNull(wildcardClass15);
}
@Test
public void test02912() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02912");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str11 = response1.contentType();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str11);
}
@Test
public void test02913() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02913");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.lang.String str3 = response1.contentType;
response1.executed = false;
java.nio.ByteBuffer byteBuffer6 = null;
response1.byteData = byteBuffer6;
java.lang.String str8 = response1.contentType;
// The following exception was thrown during execution in test generation
try {
java.lang.String str9 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(str8);
}
@Test
public void test02914() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02914");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusCode = (byte) 1;
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.headers();
boolean boolean10 = response1.hasCookie("hi!");
org.jsoup.Connection.Request request11 = null;
response1.req = request11;
boolean boolean14 = response1.hasHeader("hi!");
response1.numRedirects = (short) 100;
int int17 = response1.numRedirects;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response18 = new org.jsoup.helper.HttpConnection.Response(response1);
org.junit.Assert.fail("Expected exception of type java.io.IOException; message: Too many redirects occurred trying to load URL null");
} catch (java.io.IOException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 100 + "'", int17 == 100);
}
@Test
public void test02915() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02915");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
java.lang.String str13 = response1.statusMessage();
java.net.URL uRL14 = response1.url();
org.jsoup.Connection.Request request15 = response1.req;
java.lang.String str16 = response1.statusMessage();
boolean boolean18 = response1.hasCookie("hi!");
// The following exception was thrown during execution in test generation
try {
boolean boolean20 = response1.hasHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(uRL14);
org.junit.Assert.assertNull(request15);
org.junit.Assert.assertEquals("'" + str16 + "' != '" + "" + "'", str16, "");
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
}
@Test
public void test02916() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02916");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "";
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
response1.statusMessage = "hi!";
java.net.HttpURLConnection httpURLConnection11 = null;
org.jsoup.helper.HttpConnection.Response response12 = null;
org.jsoup.helper.HttpConnection.Response response13 = new org.jsoup.helper.HttpConnection.Response(response12);
response13.statusMessage = "";
org.jsoup.Connection.Method method16 = response13.method();
java.nio.ByteBuffer byteBuffer17 = null;
response13.byteData = byteBuffer17;
java.lang.String str20 = response13.header("hi!");
response13.charset = "";
java.lang.String str24 = response13.cookie("");
int int25 = response13.statusCode();
java.lang.String str26 = response13.statusMessage;
java.lang.String str27 = response13.statusMessage;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection11, (org.jsoup.Connection.Response) response13);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNull(method16);
org.junit.Assert.assertNull(str20);
org.junit.Assert.assertNull(str24);
org.junit.Assert.assertTrue("'" + int25 + "' != '" + 0 + "'", int25 == 0);
org.junit.Assert.assertEquals("'" + str26 + "' != '" + "" + "'", str26, "");
org.junit.Assert.assertEquals("'" + str27 + "' != '" + "" + "'", str27, "");
}
@Test
public void test02917() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02917");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.lang.String str5 = response1.contentType;
java.util.Map<java.lang.String, java.lang.String> strMap6 = response1.cookies();
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document7 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNotNull(strMap6);
}
@Test
public void test02918() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02918");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str7 = response1.charset();
boolean boolean9 = response1.hasHeader("hi!");
java.lang.String str11 = response1.cookie("");
java.net.HttpURLConnection httpURLConnection12 = null;
org.jsoup.Connection.Response response13 = null;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection12, response13);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(str11);
}
@Test
public void test02919() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02919");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
response1.executed = true;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry16 = response1.scanHeaders("");
response1.statusCode = 0;
boolean boolean20 = response1.hasHeader("hi!");
org.jsoup.Connection.Response response22 = response1.removeCookie("");
// The following exception was thrown during execution in test generation
try {
java.lang.String str23 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(strEntry16);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
org.junit.Assert.assertNotNull(response22);
}
@Test
public void test02920() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02920");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.nio.ByteBuffer byteBuffer7 = null;
response1.byteData = byteBuffer7;
java.lang.String str9 = response1.statusMessage();
org.jsoup.Connection.Response response12 = response1.cookie("hi!", "");
response1.numRedirects = 1;
java.lang.String str15 = response1.contentType();
java.lang.String str16 = response1.contentType();
org.jsoup.Connection.Method method17 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response18 = response1.method(method17);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNotNull(response12);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(str16);
}
@Test
public void test02921() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02921");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
org.jsoup.Connection.Response response6 = response1.removeCookie("");
response1.statusCode = 100;
java.lang.String str10 = response1.cookie("");
org.jsoup.Connection.Request request11 = null;
response1.req = request11;
boolean boolean14 = response1.hasCookie("");
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
}
@Test
public void test02922() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02922");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
org.jsoup.Connection.Response response10 = response1.removeCookie("");
java.nio.ByteBuffer byteBuffer11 = null;
response1.byteData = byteBuffer11;
java.lang.String str13 = response1.statusMessage();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
}
@Test
public void test02923() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02923");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.charset;
org.jsoup.Connection.Request request5 = response1.req;
java.util.Map<java.lang.String, java.lang.String> strMap6 = response1.headers();
org.jsoup.Connection.Method method7 = response1.method();
org.jsoup.Connection.Response response9 = response1.removeCookie("");
java.net.HttpURLConnection httpURLConnection10 = null;
org.jsoup.helper.HttpConnection.Response response11 = null;
org.jsoup.helper.HttpConnection.Response response12 = new org.jsoup.helper.HttpConnection.Response(response11);
response12.statusMessage = "";
org.jsoup.Connection.Method method15 = response12.method();
java.nio.ByteBuffer byteBuffer16 = null;
response12.byteData = byteBuffer16;
org.jsoup.Connection.Request request18 = null;
response12.req = request18;
java.net.URL uRL20 = response12.url();
org.jsoup.Connection.Response response22 = response12.removeCookie("");
java.lang.String str23 = response12.contentType;
org.jsoup.Connection.Request request24 = response12.req;
java.nio.ByteBuffer byteBuffer25 = response12.byteData;
java.nio.ByteBuffer byteBuffer26 = response12.byteData;
java.lang.String str27 = response12.statusMessage();
response12.executed = true;
java.lang.String str30 = response12.statusMessage();
org.jsoup.Connection.Response response32 = response12.removeHeader("hi!");
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection10, response32);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(request5);
org.junit.Assert.assertNotNull(strMap6);
org.junit.Assert.assertNull(method7);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertNull(method15);
org.junit.Assert.assertNull(uRL20);
org.junit.Assert.assertNotNull(response22);
org.junit.Assert.assertNull(str23);
org.junit.Assert.assertNull(request24);
org.junit.Assert.assertNull(byteBuffer25);
org.junit.Assert.assertNull(byteBuffer26);
org.junit.Assert.assertEquals("'" + str27 + "' != '" + "" + "'", str27, "");
org.junit.Assert.assertEquals("'" + str30 + "' != '" + "" + "'", str30, "");
org.junit.Assert.assertNotNull(response32);
}
@Test
public void test02924() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02924");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
response1.numRedirects = 0;
java.nio.ByteBuffer byteBuffer13 = response1.byteData;
org.jsoup.Connection.Response response16 = response1.header("hi!", "");
boolean boolean18 = response1.hasHeader("hi!");
// The following exception was thrown during execution in test generation
try {
java.lang.String str19 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(byteBuffer13);
org.junit.Assert.assertNotNull(response16);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + true + "'", boolean18 == true);
}
@Test
public void test02925() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02925");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry6 = response1.scanHeaders("hi!");
java.lang.String str7 = response1.contentType;
java.lang.String str8 = response1.charset();
java.net.URL uRL9 = response1.url();
response1.statusCode = (short) -1;
int int12 = response1.statusCode();
java.nio.ByteBuffer byteBuffer13 = response1.byteData;
java.util.Map<java.lang.String, java.lang.String> strMap14 = response1.cookies();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(strEntry6);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1));
org.junit.Assert.assertNull(byteBuffer13);
org.junit.Assert.assertNotNull(strMap14);
}
@Test
public void test02926() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02926");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("hi!");
java.lang.String str11 = response1.contentType;
response1.charset = "";
response1.charset = "";
java.lang.String str16 = response1.charset;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertEquals("'" + str16 + "' != '" + "" + "'", str16, "");
}
@Test
public void test02927() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02927");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
java.nio.ByteBuffer byteBuffer5 = response1.byteData;
java.nio.ByteBuffer byteBuffer6 = response1.byteData;
int int7 = response1.numRedirects;
response1.executed = true;
int int10 = response1.statusCode();
// The following exception was thrown during execution in test generation
try {
java.lang.String str11 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertNull(byteBuffer5);
org.junit.Assert.assertNull(byteBuffer6);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
}
@Test
public void test02928() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02928");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
int int5 = response1.statusCode();
response1.statusCode = 32;
org.jsoup.Connection.Method method8 = response1.method();
java.lang.String str9 = response1.charset();
java.lang.String str10 = response1.contentType;
response1.charset = "";
java.net.HttpURLConnection httpURLConnection13 = null;
org.jsoup.helper.HttpConnection.Response response14 = null;
org.jsoup.helper.HttpConnection.Response response15 = new org.jsoup.helper.HttpConnection.Response(response14);
org.jsoup.Connection.Request request16 = response15.req;
java.nio.ByteBuffer byteBuffer17 = response15.byteData;
java.lang.String str18 = response15.charset;
java.util.Map<java.lang.String, java.lang.String> strMap19 = response15.cookies();
java.lang.String str21 = response15.cookie("");
java.lang.String str23 = response15.cookie("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry25 = response15.scanHeaders("");
java.util.Map<java.lang.String, java.lang.String> strMap26 = response15.headers();
java.lang.String str27 = response15.statusMessage;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection13, (org.jsoup.Connection.Response) response15);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(request16);
org.junit.Assert.assertNull(byteBuffer17);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertNotNull(strMap19);
org.junit.Assert.assertNull(str21);
org.junit.Assert.assertNull(str23);
org.junit.Assert.assertNull(strEntry25);
org.junit.Assert.assertNotNull(strMap26);
org.junit.Assert.assertNull(str27);
}
@Test
public void test02929() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02929");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.getHeaderCaseInsensitive("hi!");
java.lang.String str14 = response1.cookie("");
java.lang.String str15 = response1.contentType();
java.net.URL uRL16 = response1.url();
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response19 = response1.cookie("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cookie name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(uRL16);
}
@Test
public void test02930() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02930");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.lang.String str4 = response1.charset;
response1.numRedirects = (byte) -1;
response1.executed = true;
int int9 = response1.statusCode();
java.nio.ByteBuffer byteBuffer10 = null;
response1.byteData = byteBuffer10;
java.lang.Class<?> wildcardClass12 = response1.getClass();
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
org.junit.Assert.assertNotNull(wildcardClass12);
}
@Test
public void test02931() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02931");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry4 = response1.scanHeaders("");
boolean boolean6 = response1.hasCookie("");
response1.numRedirects = '#';
java.lang.String str9 = response1.statusMessage();
// The following exception was thrown during execution in test generation
try {
java.lang.String str10 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(strEntry4);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(str9);
}
@Test
public void test02932() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02932");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
boolean boolean6 = response1.hasCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap7 = response1.headers();
response1.executed = false;
org.jsoup.Connection.Response response11 = response1.removeCookie("hi!");
// The following exception was thrown during execution in test generation
try {
java.lang.String str12 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNotNull(strMap7);
org.junit.Assert.assertNotNull(response11);
}
@Test
public void test02933() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02933");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
java.lang.String str13 = response1.statusMessage();
java.net.URL uRL14 = response1.url();
java.lang.String str15 = response1.charset;
response1.executed = true;
org.jsoup.helper.HttpConnection.Response response18 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Response response21 = response18.cookie("hi!", "hi!");
boolean boolean23 = response18.hasCookie("");
// The following exception was thrown during execution in test generation
try {
byte[] byteArray24 = response18.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(uRL14);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNotNull(response21);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + false + "'", boolean23 == false);
}
@Test
public void test02934() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02934");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
int int7 = response1.statusCode();
org.jsoup.Connection.Response response10 = response1.cookie("hi!", "hi!");
boolean boolean11 = response1.executed;
org.jsoup.Connection.Method method12 = response1.method();
int int13 = response1.statusCode;
java.lang.String str14 = response1.statusMessage;
java.net.URL uRL15 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response1.url(uRL15);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(method12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "" + "'", str14, "");
}
@Test
public void test02935() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02935");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.helper.HttpConnection.Response response8 = new org.jsoup.helper.HttpConnection.Response(response1);
response8.numRedirects = 'a';
java.lang.String str11 = response8.charset;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response14 = response8.cookie("", "");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cookie name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(str11);
}
@Test
public void test02936() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02936");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
java.util.Map<java.lang.String, java.lang.String> strMap5 = response1.headers();
response1.contentType = "";
java.lang.String str8 = response1.contentType();
int int9 = response1.statusCode();
response1.contentType = "hi!";
// The following exception was thrown during execution in test generation
try {
java.lang.String str12 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(strMap5);
org.junit.Assert.assertEquals("'" + str8 + "' != '" + "" + "'", str8, "");
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
}
@Test
public void test02937() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02937");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response6 = response1.removeHeader("hi!");
java.lang.String str7 = response1.statusMessage;
java.lang.String str9 = response1.getHeaderCaseInsensitive("hi!");
java.lang.String str11 = response1.header("hi!");
response1.statusMessage = "";
response1.statusCode = 'a';
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry17 = response1.scanHeaders("hi!");
java.lang.String str18 = response1.statusMessage();
boolean boolean20 = response1.hasCookie("");
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(strEntry17);
org.junit.Assert.assertEquals("'" + str18 + "' != '" + "" + "'", str18, "");
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
}
@Test
public void test02938() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02938");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Request request8 = response1.req;
org.jsoup.Connection.Method method9 = response1.method();
response1.statusMessage = "hi!";
java.lang.String str12 = response1.statusMessage;
org.jsoup.Connection.Request request13 = null;
response1.req = request13;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response17 = response1.cookie("", "");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cookie name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNull(request8);
org.junit.Assert.assertNull(method9);
org.junit.Assert.assertEquals("'" + str12 + "' != '" + "hi!" + "'", str12, "hi!");
}
@Test
public void test02939() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02939");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Response response4 = response2.removeHeader("hi!");
java.net.URL uRL5 = response2.url();
boolean boolean7 = response2.hasCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap8 = response2.headers();
response2.executed = false;
org.jsoup.Connection.Response response12 = response2.removeCookie("hi!");
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response13 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response4);
org.junit.Assert.assertNull(uRL5);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertNotNull(response12);
}
@Test
public void test02940() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02940");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.charset();
java.lang.String str14 = response1.header("");
java.util.Map<java.lang.String, java.lang.String> strMap15 = response1.headers();
org.jsoup.Connection.Request request16 = response1.req;
java.nio.ByteBuffer byteBuffer17 = response1.byteData;
response1.charset = "";
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response21 = response1.removeHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNotNull(strMap15);
org.junit.Assert.assertNull(request16);
org.junit.Assert.assertNull(byteBuffer17);
}
@Test
public void test02941() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02941");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
response1.numRedirects = 0;
java.nio.ByteBuffer byteBuffer13 = response1.byteData;
org.jsoup.Connection.Response response16 = response1.header("hi!", "");
boolean boolean18 = response1.hasHeader("hi!");
response1.statusMessage = "hi!";
java.nio.ByteBuffer byteBuffer21 = null;
response1.byteData = byteBuffer21;
// The following exception was thrown during execution in test generation
try {
byte[] byteArray23 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(byteBuffer13);
org.junit.Assert.assertNotNull(response16);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + true + "'", boolean18 == true);
}
@Test
public void test02942() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02942");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request3 = response2.req;
java.nio.ByteBuffer byteBuffer4 = response2.byteData;
java.lang.String str5 = response2.statusMessage;
org.jsoup.Connection.Response response7 = response2.removeCookie("");
org.jsoup.helper.HttpConnection.Response response8 = new org.jsoup.helper.HttpConnection.Response(response2);
java.util.Map<java.lang.String, java.lang.String> strMap9 = response2.cookies();
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response10 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request3);
org.junit.Assert.assertNull(byteBuffer4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertNotNull(strMap9);
}
@Test
public void test02943() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02943");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
org.jsoup.Connection.Response response6 = response1.removeCookie("");
response1.statusCode = 100;
boolean boolean9 = response1.executed;
response1.statusCode = (short) -1;
response1.numRedirects = (byte) 10;
java.net.URL uRL14 = response1.url();
java.util.Map<java.lang.String, java.lang.String> strMap15 = response1.cookies();
java.lang.String str17 = response1.getHeaderCaseInsensitive("");
response1.charset = "";
java.lang.String str21 = response1.header("");
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(uRL14);
org.junit.Assert.assertNotNull(strMap15);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertNull(str21);
}
@Test
public void test02944() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02944");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
java.lang.String str9 = response1.statusMessage();
org.jsoup.Connection.Method method10 = response1.method();
int int11 = response1.statusCode;
int int12 = response1.statusCode();
java.nio.ByteBuffer byteBuffer13 = response1.byteData;
response1.statusCode = 1;
java.util.Map<java.lang.String, java.lang.String> strMap16 = response1.headers();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(method10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
org.junit.Assert.assertNull(byteBuffer13);
org.junit.Assert.assertNotNull(strMap16);
}
@Test
public void test02945() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02945");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
boolean boolean12 = response1.executed;
response1.numRedirects = 1;
java.util.Map<java.lang.String, java.lang.String> strMap15 = response1.cookies();
org.jsoup.helper.HttpConnection.Response response16 = new org.jsoup.helper.HttpConnection.Response(response1);
response1.contentType = "hi!";
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNotNull(strMap15);
}
@Test
public void test02946() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02946");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
java.util.Map<java.lang.String, java.lang.String> strMap5 = response1.headers();
response1.contentType = "";
java.lang.String str8 = response1.contentType();
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
int int10 = response1.numRedirects;
java.lang.String str12 = response1.getHeaderCaseInsensitive("hi!");
org.jsoup.Connection.Request request13 = null;
response1.req = request13;
java.lang.String str16 = response1.cookie("");
response1.contentType = "";
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(strMap5);
org.junit.Assert.assertEquals("'" + str8 + "' != '" + "" + "'", str8, "");
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str16);
}
@Test
public void test02947() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02947");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.getHeaderCaseInsensitive("hi!");
java.lang.String str14 = response1.cookie("");
java.nio.ByteBuffer byteBuffer15 = response1.byteData;
java.lang.String str16 = response1.contentType;
int int17 = response1.statusCode();
java.lang.String str19 = response1.header("");
java.nio.ByteBuffer byteBuffer20 = null;
response1.byteData = byteBuffer20;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(byteBuffer15);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
org.junit.Assert.assertNull(str19);
}
@Test
public void test02948() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02948");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
boolean boolean6 = response1.hasCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap7 = response1.headers();
java.lang.String str8 = response1.statusMessage;
java.util.Map<java.lang.String, java.lang.String> strMap9 = response1.headers();
int int10 = response1.numRedirects;
java.net.URL uRL11 = response1.url();
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document14 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNotNull(strMap7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNotNull(strMap9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertNull(uRL11);
}
@Test
public void test02949() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02949");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
java.lang.String str6 = response1.charset;
response1.statusMessage = "";
org.jsoup.helper.HttpConnection.Response response9 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.helper.HttpConnection.Response response10 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Method method11 = response1.method();
// The following exception was thrown during execution in test generation
try {
java.lang.String str12 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(method11);
}
@Test
public void test02950() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02950");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
int int2 = response1.numRedirects;
java.lang.String str3 = response1.contentType;
response1.executed = false;
response1.numRedirects = (byte) 10;
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.headers();
response1.statusMessage = "hi!";
java.nio.ByteBuffer byteBuffer11 = null;
response1.byteData = byteBuffer11;
org.jsoup.helper.HttpConnection.Response response13 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str15 = response1.getHeaderCaseInsensitive("hi!");
org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertNull(str15);
}
@Test
public void test02951() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02951");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.net.URL uRL4 = response1.url();
int int5 = response1.statusCode();
response1.statusCode = 32;
response1.executed = false;
java.lang.String str11 = response1.cookie("hi!");
org.jsoup.Connection.Method method12 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response13 = response1.method(method12);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0);
org.junit.Assert.assertNull(str11);
}
@Test
public void test02952() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02952");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response6 = response1.removeHeader("hi!");
java.lang.String str7 = response1.statusMessage;
java.lang.String str9 = response1.getHeaderCaseInsensitive("hi!");
java.lang.String str10 = response1.charset();
boolean boolean11 = response1.executed;
java.lang.String str12 = response1.contentType;
org.jsoup.Connection.Response response15 = response1.cookie("hi!", "hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry17 = response1.scanHeaders("hi!");
// The following exception was thrown during execution in test generation
try {
byte[] byteArray18 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNotNull(response15);
org.junit.Assert.assertNull(strEntry17);
}
@Test
public void test02953() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02953");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
response1.contentType = "hi!";
boolean boolean15 = response1.hasHeader("hi!");
java.lang.String str16 = response1.charset();
java.lang.String str17 = response1.statusMessage;
boolean boolean19 = response1.hasCookie("hi!");
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertEquals("'" + str17 + "' != '" + "" + "'", str17, "");
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
}
@Test
public void test02954() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02954");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
response1.numRedirects = (short) 100;
boolean boolean8 = response1.hasCookie("");
int int9 = response1.statusCode;
java.nio.ByteBuffer byteBuffer10 = response1.byteData;
java.lang.String str11 = response1.statusMessage();
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response14 = new org.jsoup.helper.HttpConnection.Response(response1);
org.junit.Assert.fail("Expected exception of type java.io.IOException; message: Too many redirects occurred trying to load URL null");
} catch (java.io.IOException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
org.junit.Assert.assertNull(byteBuffer10);
org.junit.Assert.assertEquals("'" + str11 + "' != '" + "" + "'", str11, "");
}
@Test
public void test02955() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02955");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
java.lang.String str13 = response1.statusMessage();
java.net.URL uRL14 = response1.url();
java.lang.String str15 = response1.charset;
response1.executed = true;
org.jsoup.helper.HttpConnection.Response response18 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Response response21 = response18.cookie("hi!", "hi!");
response18.numRedirects = ' ';
java.lang.String str24 = response18.statusMessage();
java.net.HttpURLConnection httpURLConnection25 = null;
org.jsoup.helper.HttpConnection.Response response26 = null;
org.jsoup.helper.HttpConnection.Response response27 = new org.jsoup.helper.HttpConnection.Response(response26);
org.jsoup.Connection.Request request28 = response27.req;
int int29 = response27.statusCode;
response27.executed = false;
response27.statusMessage = "hi!";
org.jsoup.Connection.Response response35 = response27.removeCookie("");
response27.charset = "";
org.jsoup.Connection.Request request38 = null;
response27.req = request38;
response27.statusCode = ' ';
java.lang.String str42 = response27.contentType;
response27.contentType = "hi!";
org.jsoup.Connection.Response response46 = response27.removeCookie("");
// The following exception was thrown during execution in test generation
try {
response18.setupFromConnection(httpURLConnection25, response46);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(uRL14);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNotNull(response21);
org.junit.Assert.assertNull(str24);
org.junit.Assert.assertNull(request28);
org.junit.Assert.assertTrue("'" + int29 + "' != '" + 0 + "'", int29 == 0);
org.junit.Assert.assertNotNull(response35);
org.junit.Assert.assertNull(str42);
org.junit.Assert.assertNotNull(response46);
}
@Test
public void test02956() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02956");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.lang.String str4 = response1.charset;
response1.numRedirects = (byte) -1;
response1.executed = true;
java.lang.String str10 = response1.cookie("");
response1.executed = false;
boolean boolean14 = response1.hasCookie("hi!");
// The following exception was thrown during execution in test generation
try {
boolean boolean16 = response1.hasHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
}
@Test
public void test02957() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02957");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
response1.charset = "";
java.lang.String str14 = response1.charset;
java.lang.String str16 = response1.header("hi!");
org.jsoup.Connection.Response response19 = response1.header("hi!", "hi!");
int int20 = response1.statusCode;
// The following exception was thrown during execution in test generation
try {
org.jsoup.nodes.Document document21 = response1.parse();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before parsing response");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "" + "'", str14, "");
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNotNull(response19);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + 0 + "'", int20 == 0);
}
@Test
public void test02958() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02958");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
response1.statusMessage = "";
boolean boolean8 = response1.hasCookie("hi!");
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
org.jsoup.Connection.Request request11 = null;
response1.req = request11;
java.nio.ByteBuffer byteBuffer13 = null;
response1.byteData = byteBuffer13;
java.lang.Class<?> wildcardClass15 = response1.getClass();
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNotNull(wildcardClass15);
}
@Test
public void test02959() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02959");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
org.jsoup.Connection.Method method6 = response1.method();
response1.contentType = "hi!";
java.net.URL uRL9 = response1.url();
int int10 = response1.statusCode();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(method6);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
}
@Test
public void test02960() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02960");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
int int4 = response1.statusCode;
boolean boolean6 = response1.hasCookie("hi!");
boolean boolean8 = response1.hasCookie("hi!");
java.net.URL uRL9 = response1.url();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(uRL9);
}
@Test
public void test02961() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02961");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.lang.String str4 = response1.charset;
response1.numRedirects = (byte) -1;
response1.executed = true;
int int9 = response1.statusCode();
java.lang.String str10 = response1.statusMessage();
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.cookies();
boolean boolean13 = response1.hasCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap14 = response1.cookies();
org.jsoup.Connection.Method method15 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response1.method(method15);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
org.junit.Assert.assertEquals("'" + str10 + "' != '" + "" + "'", str10, "");
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNotNull(strMap14);
}
@Test
public void test02962() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02962");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.nio.ByteBuffer byteBuffer7 = null;
response1.byteData = byteBuffer7;
java.lang.String str9 = response1.statusMessage();
org.jsoup.Connection.Response response12 = response1.cookie("hi!", "");
response1.numRedirects = 1;
java.lang.String str15 = response1.contentType();
java.lang.String str16 = response1.charset;
org.jsoup.Connection.Request request17 = response1.req;
org.jsoup.Connection.Response response19 = response1.removeHeader("hi!");
java.lang.Class<?> wildcardClass20 = response19.getClass();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
org.junit.Assert.assertNotNull(response12);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNull(request17);
org.junit.Assert.assertNotNull(response19);
org.junit.Assert.assertNotNull(wildcardClass20);
}
@Test
public void test02963() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02963");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response7 = response1.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
java.util.Map<java.lang.String, java.lang.String> strMap9 = response1.cookies();
int int10 = response1.statusCode;
response1.statusCode = 32;
java.lang.String str13 = response1.charset;
java.lang.String str14 = response1.contentType;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNotNull(strMap9);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(str14);
}
@Test
public void test02964() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02964");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
boolean boolean6 = response1.hasCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap7 = response1.headers();
java.lang.String str8 = response1.statusMessage;
java.util.Map<java.lang.String, java.lang.String> strMap9 = response1.headers();
org.jsoup.Connection.Response response11 = response1.removeCookie("hi!");
java.util.Map<java.lang.String, java.lang.String> strMap12 = response1.headers();
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNotNull(strMap7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNotNull(strMap9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNotNull(strMap12);
}
@Test
public void test02965() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02965");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
response1.numRedirects = 0;
response1.statusMessage = "";
java.lang.String str15 = response1.charset();
response1.executed = true;
boolean boolean19 = response1.hasCookie("");
java.lang.String str20 = response1.statusMessage;
boolean boolean21 = response1.executed;
org.jsoup.Connection.Response response24 = response1.cookie("hi!", "hi!");
response1.statusMessage = "hi!";
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertEquals("'" + str20 + "' != '" + "" + "'", str20, "");
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + true + "'", boolean21 == true);
org.junit.Assert.assertNotNull(response24);
}
@Test
public void test02966() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02966");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
response1.charset = "";
org.jsoup.Connection.Response response12 = response1.removeCookie("hi!");
int int13 = response1.statusCode();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry15 = response1.scanHeaders("hi!");
java.lang.String str16 = response1.statusMessage();
java.nio.ByteBuffer byteBuffer17 = null;
response1.byteData = byteBuffer17;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNotNull(response12);
org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0);
org.junit.Assert.assertNull(strEntry15);
org.junit.Assert.assertEquals("'" + str16 + "' != '" + "" + "'", str16, "");
}
@Test
public void test02967() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02967");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str12 = response1.getHeaderCaseInsensitive("hi!");
java.lang.String str14 = response1.cookie("");
java.nio.ByteBuffer byteBuffer15 = response1.byteData;
java.lang.String str16 = response1.contentType;
int int17 = response1.statusCode();
java.lang.String str19 = response1.cookie("");
java.util.Map<java.lang.String, java.lang.String> strMap20 = response1.headers();
org.jsoup.Connection.Method method21 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response22 = response1.method(method21);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(byteBuffer15);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0);
org.junit.Assert.assertNull(str19);
org.junit.Assert.assertNotNull(strMap20);
}
@Test
public void test02968() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02968");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.net.URL uRL12 = response1.url();
response1.statusMessage = "";
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry16 = response1.scanHeaders("");
java.lang.String str17 = response1.contentType;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(uRL12);
org.junit.Assert.assertNull(strEntry16);
org.junit.Assert.assertNull(str17);
}
@Test
public void test02969() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02969");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
response1.charset = "";
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
java.util.Map<java.lang.String, java.lang.String> strMap14 = response1.cookies();
java.lang.String str15 = response1.contentType;
java.lang.String str17 = response1.cookie("");
boolean boolean18 = response1.executed;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response20 = response1.removeHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertNotNull(strMap14);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
}
@Test
public void test02970() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02970");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.net.URL uRL4 = response1.url();
boolean boolean6 = response1.hasCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap7 = response1.headers();
response1.executed = false;
java.lang.String str10 = response1.contentType;
java.lang.String str12 = response1.getHeaderCaseInsensitive("");
org.jsoup.Connection.Request request13 = null;
response1.req = request13;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response1.removeHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(uRL4);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNotNull(strMap7);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(str12);
}
@Test
public void test02971() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02971");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusCode = (byte) 1;
java.util.Map<java.lang.String, java.lang.String> strMap8 = response1.headers();
java.lang.String str9 = response1.statusMessage;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(strMap8);
org.junit.Assert.assertNull(str9);
}
@Test
public void test02972() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02972");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
int int12 = response1.statusCode;
java.lang.String str13 = response1.contentType();
java.lang.String str14 = response1.contentType();
org.jsoup.Connection.Response response17 = response1.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer18 = null;
response1.byteData = byteBuffer18;
java.util.Map<java.lang.String, java.lang.String> strMap20 = response1.headers();
org.jsoup.helper.HttpConnection.Response response21 = new org.jsoup.helper.HttpConnection.Response(response1);
java.util.Map<java.lang.String, java.lang.String> strMap22 = response1.cookies();
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response25 = response1.header("", "");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNotNull(response17);
org.junit.Assert.assertNotNull(strMap20);
org.junit.Assert.assertNotNull(strMap22);
}
@Test
public void test02973() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02973");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Request request3 = response2.req;
int int4 = response2.statusCode;
response2.executed = false;
response2.statusMessage = "hi!";
org.jsoup.Connection.Response response10 = response2.removeCookie("");
response2.charset = "";
org.jsoup.Connection.Request request13 = null;
response2.req = request13;
java.util.Map<java.lang.String, java.lang.String> strMap15 = response2.cookies();
java.lang.String str16 = response2.statusMessage();
java.lang.String str17 = response2.contentType();
response2.executed = true;
int int20 = response2.statusCode();
int int21 = response2.statusCode;
java.lang.String str23 = response2.getHeaderCaseInsensitive("hi!");
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response24 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request3);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertNotNull(strMap15);
org.junit.Assert.assertEquals("'" + str16 + "' != '" + "hi!" + "'", str16, "hi!");
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + 0 + "'", int20 == 0);
org.junit.Assert.assertTrue("'" + int21 + "' != '" + 0 + "'", int21 == 0);
org.junit.Assert.assertNull(str23);
}
@Test
public void test02974() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02974");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Response response3 = response1.removeHeader("hi!");
java.lang.String str4 = response1.contentType();
response1.statusMessage = "";
boolean boolean8 = response1.hasCookie("hi!");
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
java.lang.String str12 = response1.header("");
response1.numRedirects = (byte) -1;
response1.executed = true;
org.junit.Assert.assertNotNull(response3);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(str12);
}
@Test
public void test02975() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02975");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
java.lang.String str4 = response1.charset;
response1.numRedirects = (byte) -1;
response1.executed = true;
int int9 = response1.statusCode();
java.lang.String str10 = response1.statusMessage();
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.cookies();
org.jsoup.Connection.Method method12 = response1.method();
boolean boolean14 = response1.hasCookie("");
// The following exception was thrown during execution in test generation
try {
byte[] byteArray15 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
org.junit.Assert.assertEquals("'" + str10 + "' != '" + "" + "'", str10, "");
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertNull(method12);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
}
@Test
public void test02976() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02976");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
org.jsoup.Connection.Method method6 = response1.method();
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
int int9 = response1.statusCode;
response1.statusCode = '#';
org.jsoup.helper.HttpConnection.Response response12 = new org.jsoup.helper.HttpConnection.Response(response1);
org.jsoup.Connection.Method method13 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response14 = response12.method(method13);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(method6);
org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0);
}
@Test
public void test02977() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02977");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response9 = response1.removeCookie("");
boolean boolean11 = response1.hasCookie("");
java.nio.ByteBuffer byteBuffer12 = null;
response1.byteData = byteBuffer12;
java.lang.String str15 = response1.cookie("hi!");
java.nio.ByteBuffer byteBuffer16 = null;
response1.byteData = byteBuffer16;
response1.numRedirects = (byte) -1;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response22 = response1.header("", "hi!");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response9);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(str15);
}
@Test
public void test02978() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02978");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
java.lang.String str13 = response1.statusMessage();
java.net.URL uRL14 = response1.url();
org.jsoup.Connection.Request request15 = response1.req;
response1.charset = "hi!";
java.lang.String str18 = response1.statusMessage();
java.lang.String str19 = response1.charset();
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(uRL14);
org.junit.Assert.assertNull(request15);
org.junit.Assert.assertEquals("'" + str18 + "' != '" + "" + "'", str18, "");
org.junit.Assert.assertEquals("'" + str19 + "' != '" + "hi!" + "'", str19, "hi!");
}
@Test
public void test02979() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02979");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
response2.statusMessage = "";
org.jsoup.Connection.Method method5 = response2.method();
java.nio.ByteBuffer byteBuffer6 = null;
response2.byteData = byteBuffer6;
java.lang.String str9 = response2.header("hi!");
java.nio.ByteBuffer byteBuffer10 = response2.byteData;
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response11 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(byteBuffer10);
}
@Test
public void test02980() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02980");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = response1.byteData;
java.lang.String str11 = response1.cookie("");
java.lang.String str12 = response1.charset;
response1.executed = true;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry16 = response1.scanHeaders("");
response1.statusCode = 0;
boolean boolean20 = response1.hasHeader("hi!");
response1.charset = "";
java.net.HttpURLConnection httpURLConnection23 = null;
org.jsoup.helper.HttpConnection.Response response24 = null;
org.jsoup.helper.HttpConnection.Response response25 = new org.jsoup.helper.HttpConnection.Response(response24);
org.jsoup.Connection.Request request26 = response25.req;
int int27 = response25.statusCode;
response25.executed = false;
response25.statusMessage = "hi!";
org.jsoup.Connection.Response response33 = response25.removeCookie("");
response25.charset = "";
response25.executed = false;
java.lang.String str38 = response25.statusMessage();
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection23, (org.jsoup.Connection.Response) response25);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(byteBuffer9);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(strEntry16);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
org.junit.Assert.assertNull(request26);
org.junit.Assert.assertTrue("'" + int27 + "' != '" + 0 + "'", int27 == 0);
org.junit.Assert.assertNotNull(response33);
org.junit.Assert.assertEquals("'" + str38 + "' != '" + "hi!" + "'", str38, "hi!");
}
@Test
public void test02981() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02981");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
response1.numRedirects = (short) 100;
boolean boolean8 = response1.hasCookie("");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
org.jsoup.Connection.Request request11 = null;
response1.req = request11;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response14 = response1.removeHeader("");
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Header name must not be empty");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
}
@Test
public void test02982() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02982");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.lang.String str5 = response1.charset();
int int6 = response1.statusCode;
java.nio.ByteBuffer byteBuffer7 = response1.byteData;
org.jsoup.Connection.Method method8 = response1.method();
org.jsoup.Connection.Request request9 = null;
response1.req = request9;
response1.numRedirects = 0;
response1.executed = true;
java.lang.String str15 = response1.charset;
java.nio.ByteBuffer byteBuffer16 = response1.byteData;
response1.charset = "hi!";
java.util.Map<java.lang.String, java.lang.String> strMap19 = response1.headers();
java.lang.Class<?> wildcardClass20 = response1.getClass();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0);
org.junit.Assert.assertNull(byteBuffer7);
org.junit.Assert.assertNull(method8);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(byteBuffer16);
org.junit.Assert.assertNotNull(strMap19);
org.junit.Assert.assertNotNull(wildcardClass20);
}
@Test
public void test02983() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02983");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.nio.ByteBuffer byteBuffer7 = null;
response1.byteData = byteBuffer7;
java.net.HttpURLConnection httpURLConnection9 = null;
org.jsoup.helper.HttpConnection.Response response10 = null;
org.jsoup.helper.HttpConnection.Response response11 = new org.jsoup.helper.HttpConnection.Response(response10);
org.jsoup.Connection.Request request12 = response11.req;
java.lang.String str14 = response11.cookie("hi!");
org.jsoup.Connection.Response response17 = response11.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer18 = response11.byteData;
java.util.Map<java.lang.String, java.lang.String> strMap19 = response11.cookies();
int int20 = response11.statusCode;
org.jsoup.Connection.Response response22 = response11.removeCookie("");
org.jsoup.Connection.Request request23 = null;
response11.req = request23;
org.jsoup.Connection.Response response26 = response11.removeCookie("");
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection9, (org.jsoup.Connection.Response) response11);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(request12);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNotNull(response17);
org.junit.Assert.assertNull(byteBuffer18);
org.junit.Assert.assertNotNull(strMap19);
org.junit.Assert.assertTrue("'" + int20 + "' != '" + 0 + "'", int20 == 0);
org.junit.Assert.assertNotNull(response22);
org.junit.Assert.assertNotNull(response26);
}
@Test
public void test02984() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02984");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.contentType;
response1.contentType = "hi!";
response1.numRedirects = (short) 0;
java.lang.String str17 = response1.statusMessage;
org.jsoup.Connection.Response response20 = response1.cookie("hi!", "");
java.nio.ByteBuffer byteBuffer21 = response1.byteData;
response1.numRedirects = 35;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertEquals("'" + str17 + "' != '" + "" + "'", str17, "");
org.junit.Assert.assertNotNull(response20);
org.junit.Assert.assertNull(byteBuffer21);
}
@Test
public void test02985() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02985");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response7 = response1.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
org.jsoup.Connection.Response response10 = response1.removeCookie("");
int int11 = response1.numRedirects;
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
java.lang.String str14 = response1.contentType;
java.net.URL uRL15 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response16 = response1.url(uRL15);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: URL must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertNull(str14);
}
@Test
public void test02986() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02986");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
java.lang.String str8 = response1.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry10 = response1.scanHeaders("");
java.lang.String str11 = response1.charset();
java.lang.String str12 = response1.charset;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry14 = response1.scanHeaders("hi!");
org.jsoup.helper.HttpConnection.Response response15 = new org.jsoup.helper.HttpConnection.Response(response1);
response15.contentType = "hi!";
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(strEntry10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(strEntry14);
}
@Test
public void test02987() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02987");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response7 = response1.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
org.jsoup.Connection.Response response10 = response1.removeCookie("");
int int11 = response1.numRedirects;
org.jsoup.Connection.Request request12 = null;
response1.req = request12;
java.lang.String str14 = response1.contentType;
org.jsoup.helper.HttpConnection.Response response15 = new org.jsoup.helper.HttpConnection.Response(response1);
java.lang.String str16 = response1.charset();
java.lang.String str17 = response1.charset();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNull(str17);
}
@Test
public void test02988() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02988");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
response2.statusMessage = "";
org.jsoup.Connection.Method method5 = response2.method();
java.nio.ByteBuffer byteBuffer6 = null;
response2.byteData = byteBuffer6;
org.jsoup.Connection.Request request8 = null;
response2.req = request8;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry11 = response2.scanHeaders("hi!");
boolean boolean13 = response2.hasHeader("hi!");
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response14 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertNull(strEntry11);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test02989() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02989");
org.jsoup.Connection.Request request0 = null;
org.jsoup.helper.HttpConnection.Response response1 = null;
org.jsoup.helper.HttpConnection.Response response2 = new org.jsoup.helper.HttpConnection.Response(response1);
response2.statusMessage = "";
org.jsoup.Connection.Method method5 = response2.method();
java.nio.ByteBuffer byteBuffer6 = null;
response2.byteData = byteBuffer6;
boolean boolean9 = response2.hasCookie("hi!");
response2.statusMessage = "";
org.jsoup.Connection.Response response14 = response2.header("hi!", "hi!");
java.lang.String str16 = response2.getHeaderCaseInsensitive("");
java.net.URL uRL17 = response2.url();
// The following exception was thrown during execution in test generation
try {
org.jsoup.helper.HttpConnection.Response response18 = org.jsoup.helper.HttpConnection.Response.execute(request0, response2);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method5);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNotNull(response14);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNull(uRL17);
}
@Test
public void test02990() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02990");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
response1.statusCode = 1;
java.lang.String str14 = response1.header("");
java.lang.String str15 = response1.statusMessage;
java.lang.String str17 = response1.header("");
// The following exception was thrown during execution in test generation
try {
byte[] byteArray18 = response1.bodyAsBytes();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "" + "'", str15, "");
org.junit.Assert.assertNull(str17);
}
@Test
public void test02991() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02991");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
java.lang.String str12 = response1.contentType;
response1.contentType = "hi!";
java.nio.ByteBuffer byteBuffer15 = response1.byteData;
java.lang.String str16 = response1.statusMessage();
java.net.HttpURLConnection httpURLConnection17 = null;
org.jsoup.helper.HttpConnection.Response response18 = null;
org.jsoup.helper.HttpConnection.Response response19 = new org.jsoup.helper.HttpConnection.Response(response18);
org.jsoup.Connection.Request request20 = response19.req;
java.lang.String str22 = response19.cookie("hi!");
java.lang.String str23 = response19.charset();
response19.statusMessage = "";
org.jsoup.Connection.Method method26 = response19.method();
int int27 = response19.numRedirects;
java.util.Map<java.lang.String, java.lang.String> strMap28 = response19.cookies();
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry30 = response19.scanHeaders("hi!");
java.nio.ByteBuffer byteBuffer31 = null;
response19.byteData = byteBuffer31;
java.util.Map<java.lang.String, java.lang.String> strMap33 = response19.headers();
java.lang.String str34 = response19.statusMessage;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry36 = response19.scanHeaders("hi!");
int int37 = response19.statusCode;
// The following exception was thrown during execution in test generation
try {
response1.setupFromConnection(httpURLConnection17, (org.jsoup.Connection.Response) response19);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(byteBuffer15);
org.junit.Assert.assertEquals("'" + str16 + "' != '" + "" + "'", str16, "");
org.junit.Assert.assertNull(request20);
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertNull(str23);
org.junit.Assert.assertNull(method26);
org.junit.Assert.assertTrue("'" + int27 + "' != '" + 0 + "'", int27 == 0);
org.junit.Assert.assertNotNull(strMap28);
org.junit.Assert.assertNull(strEntry30);
org.junit.Assert.assertNotNull(strMap33);
org.junit.Assert.assertEquals("'" + str34 + "' != '" + "" + "'", str34, "");
org.junit.Assert.assertNull(strEntry36);
org.junit.Assert.assertTrue("'" + int37 + "' != '" + 0 + "'", int37 == 0);
}
@Test
public void test02992() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02992");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
boolean boolean8 = response1.hasCookie("hi!");
java.nio.ByteBuffer byteBuffer9 = null;
response1.byteData = byteBuffer9;
org.jsoup.Connection.Response response13 = response1.cookie("hi!", "hi!");
java.lang.String str14 = response1.statusMessage();
java.lang.String str15 = response1.charset();
response1.statusMessage = "hi!";
org.jsoup.Connection.Response response20 = response1.header("hi!", "hi!");
// The following exception was thrown during execution in test generation
try {
java.lang.String str21 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNotNull(response13);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "" + "'", str14, "");
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNotNull(response20);
}
@Test
public void test02993() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02993");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.nio.ByteBuffer byteBuffer3 = response1.byteData;
int int4 = response1.numRedirects;
org.jsoup.Connection.Response response6 = response1.removeCookie("");
int int7 = response1.statusCode();
// The following exception was thrown during execution in test generation
try {
java.lang.String str8 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(byteBuffer3);
org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0);
org.junit.Assert.assertNotNull(response6);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
}
@Test
public void test02994() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02994");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
java.lang.String str7 = response1.getHeaderCaseInsensitive("");
boolean boolean9 = response1.hasCookie("hi!");
int int10 = response1.statusCode;
java.nio.ByteBuffer byteBuffer11 = response1.byteData;
org.jsoup.Connection.Response response13 = response1.removeCookie("");
// The following exception was thrown during execution in test generation
try {
java.lang.String str14 = response1.body();
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Request must be executed (with .execute(), .get(), or .post() before getting response body");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0);
org.junit.Assert.assertNull(byteBuffer11);
org.junit.Assert.assertNotNull(response13);
}
@Test
public void test02995() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02995");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
int int7 = response1.statusCode();
response1.statusCode = (byte) 0;
java.util.Map<java.lang.String, java.lang.String> strMap10 = response1.headers();
org.jsoup.Connection.Request request11 = response1.req;
org.jsoup.Connection.Request request12 = response1.req;
java.lang.String str13 = response1.statusMessage();
org.jsoup.helper.HttpConnection.Response response14 = new org.jsoup.helper.HttpConnection.Response(response1);
java.nio.ByteBuffer byteBuffer15 = response14.byteData;
java.net.HttpURLConnection httpURLConnection16 = null;
org.jsoup.helper.HttpConnection.Response response17 = null;
org.jsoup.helper.HttpConnection.Response response18 = new org.jsoup.helper.HttpConnection.Response(response17);
response18.statusMessage = "";
org.jsoup.Connection.Method method21 = response18.method();
java.nio.ByteBuffer byteBuffer22 = null;
response18.byteData = byteBuffer22;
java.lang.String str25 = response18.header("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry27 = response18.scanHeaders("");
java.lang.String str29 = response18.header("");
int int30 = response18.statusCode;
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry32 = response18.scanHeaders("");
java.nio.ByteBuffer byteBuffer33 = null;
response18.byteData = byteBuffer33;
response18.numRedirects = '4';
// The following exception was thrown during execution in test generation
try {
response14.setupFromConnection(httpURLConnection16, (org.jsoup.Connection.Response) response18);
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0);
org.junit.Assert.assertNotNull(strMap10);
org.junit.Assert.assertNull(request11);
org.junit.Assert.assertNull(request12);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNull(byteBuffer15);
org.junit.Assert.assertNull(method21);
org.junit.Assert.assertNull(str25);
org.junit.Assert.assertNull(strEntry27);
org.junit.Assert.assertNull(str29);
org.junit.Assert.assertTrue("'" + int30 + "' != '" + 0 + "'", int30 == 0);
org.junit.Assert.assertNull(strEntry32);
}
@Test
public void test02996() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02996");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
org.jsoup.Connection.Response response8 = response1.header("hi!", "hi!");
org.jsoup.Connection.Method method9 = response1.method();
org.jsoup.Connection.Request request10 = response1.req;
response1.statusMessage = "";
java.lang.String str13 = response1.statusMessage();
response1.statusMessage = "hi!";
response1.executed = true;
java.lang.Class<?> wildcardClass18 = response1.getClass();
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
org.junit.Assert.assertNotNull(response8);
org.junit.Assert.assertNull(method9);
org.junit.Assert.assertNull(request10);
org.junit.Assert.assertEquals("'" + str13 + "' != '" + "" + "'", str13, "");
org.junit.Assert.assertNotNull(wildcardClass18);
}
@Test
public void test02997() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02997");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
java.util.Map.Entry<java.lang.String, java.lang.String> strEntry6 = response1.scanHeaders("hi!");
boolean boolean8 = response1.hasCookie("hi!");
org.jsoup.Connection.Method method9 = null;
// The following exception was thrown during execution in test generation
try {
org.jsoup.Connection.Response response10 = response1.method(method9);
org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Method must not be null");
} catch (java.lang.IllegalArgumentException e) {
// Expected exception.
}
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNull(strEntry6);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
}
@Test
public void test02998() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02998");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
response1.statusMessage = "";
org.jsoup.Connection.Method method4 = response1.method();
java.nio.ByteBuffer byteBuffer5 = null;
response1.byteData = byteBuffer5;
org.jsoup.Connection.Request request7 = null;
response1.req = request7;
java.net.URL uRL9 = response1.url();
org.jsoup.Connection.Response response11 = response1.removeCookie("");
response1.contentType = "hi!";
boolean boolean15 = response1.hasHeader("hi!");
boolean boolean17 = response1.hasCookie("hi!");
org.jsoup.Connection.Response response20 = response1.header("hi!", "hi!");
org.jsoup.Connection.Request request21 = null;
response1.req = request21;
java.nio.ByteBuffer byteBuffer23 = null;
response1.byteData = byteBuffer23;
org.jsoup.Connection.Response response27 = response1.cookie("hi!", "");
org.jsoup.Connection.Request request28 = response1.req;
org.junit.Assert.assertNull(method4);
org.junit.Assert.assertNull(uRL9);
org.junit.Assert.assertNotNull(response11);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNotNull(response20);
org.junit.Assert.assertNotNull(response27);
org.junit.Assert.assertNull(request28);
}
@Test
public void test02999() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test02999");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
int int3 = response1.statusCode;
response1.executed = false;
response1.statusMessage = "";
response1.executed = true;
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0);
}
@Test
public void test03000() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest5.test03000");
org.jsoup.helper.HttpConnection.Response response0 = null;
org.jsoup.helper.HttpConnection.Response response1 = new org.jsoup.helper.HttpConnection.Response(response0);
org.jsoup.Connection.Request request2 = response1.req;
java.lang.String str4 = response1.cookie("hi!");
org.jsoup.Connection.Response response7 = response1.header("hi!", "hi!");
java.nio.ByteBuffer byteBuffer8 = response1.byteData;
org.jsoup.Connection.Response response10 = response1.removeCookie("");
java.util.Map<java.lang.String, java.lang.String> strMap11 = response1.cookies();
response1.statusMessage = "";
java.net.URL uRL14 = response1.url();
java.lang.String str15 = response1.statusMessage();
java.lang.String str16 = response1.contentType;
org.jsoup.Connection.Response response18 = response1.removeCookie("hi!");
org.junit.Assert.assertNull(request2);
org.junit.Assert.assertNull(str4);
org.junit.Assert.assertNotNull(response7);
org.junit.Assert.assertNull(byteBuffer8);
org.junit.Assert.assertNotNull(response10);
org.junit.Assert.assertNotNull(strMap11);
org.junit.Assert.assertNull(uRL14);
org.junit.Assert.assertEquals("'" + str15 + "' != '" + "" + "'", str15, "");
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNotNull(response18);
}
}
|
ExxonMobil is one of the big oil companies the liberal news media love to hate, even though the company now says climate change is a threat and promotes carbon taxation. Even that’s not enough.
That negative view of ExxonMobil explains why recent news coverage of an investigation against the company was so thoroughly one-sided.
Articles published by the left-wing climate activists at InsideClimateNews and the Los Angeles Times, helped prod New York Attorney General Eric Schneiderman to subpoena ExxonMobil and investigate the company’s statements and research into climate change. Media treatment of the case automatically assumed that climate change is truly a global threat and is a settled fact, even though it isn’t.
Both InsideClimateNews and Schneiderman have direct ties to hundreds of thousands of dollars from liberal donors including left-wing billionaire George Soros.
A New York State law called the Martin Act gives the attorney general wide latitude to “prosecute financial fraud,” according to the Los Angeles Times. Thanks to those “broad” powers Schneiderman can investigate oil companies without there having been a crime committed. Why bother with actual corruption when you can get attention and please climate activists by going after the biggest oil company of them all?
Since news of the investigation broke on Nov. 5, USA Today, The Washington Post, The New York Times and the Los Angeles Times printed 11 news stories mentioning the NY investigation. None of those news stories included criticism that the investigation was even taking place. The sweeping investigation wasn’t questioned at all. Only one story pointed out the fact that there doesn’t seem to be a crime or illegality being scrutinized by the New York official.
Instead story after story echoed the NYAG office’s version of the facts and found liberal eco-activists jumping for joy. Both USA Today and The New York Times also published op-eds celebrating the treatment of the oil company. The Washington Post was the only one of the four papers to publish opinion pieces critical of the investigation with its Nov. 13, editorial and a Nov. 9, op-ed by Robert Samuelson.
Writing for The New York Times, Justin Gillis and Clifford Krause, complained “lawsuits trying to hold fuel companies accountable for damage they are causing to the climate have failed in the courts.” Their view of the threat of climate change was obvious with phrases like “mainstream climatology” to describe global warming alarmist science and “climate denial” to describe dissenting opinions.
They also added that the NYAG scrutiny “may well open a new legal front in the climate change battle.” Gillis and Krause didn’t quote anyone saying that sort of harassment of companies would be a bad idea, create a chilling effect or infringe on free speech. That allegedly is a First Amendment concern journalists might prize.
USA Today also mentioned the Exxon investigation on Nov. 10, in a story about a “settlement” between Peabody and energy and the same attorney general’s office.
New York spent two years investigating Peabody before the settlement agreeing to file revisions to financial disclosures. But there were no financial penalties and “no admission or denial of wrongdoing.” In other words, they couldn’t prove the company had done anything wrong. Yet, USA Today emphasized Schneiderman’s perspective over and over, while including zero criticism that the same bullying tactic is going to be used on ExxonMobil.
Other than statements from an ExxonMobil spokesman saying that media reports are “inaccurate distortions of ExxonMobil’s nearly 40-year history of climate research that was conducted publically,” there was no opposition view of the situation.
Clearly, that wasn’t what these four publications went looking for. But there are serious reasons for concern, which in those papers only appeared in The Washington Post’s opinion section.
The Post’s own editorial board denounced ExxonMobil and blamed it for “corporate irresponsibility,” but was honest enough to admit on Nov. 15, that the matter is not a “criminal” one.
In fact, it’s far from being demonstrably false since 73 of the climate models relied on by climate scientists and the U.N. projected far higher temperatures than have actually happened in recent years.
Both NYAG Schneiderman and InsideClimate News, which initiated the witch hunt into ExxonMobil’s climate research, have strong connections to liberal billionaire George Soros.
Between the 2006 and 2014 election years, Schneiderman received $185,500 in direct political donations from the Soros family. $54,500 came directly from Soros.
Richard Rofel, who currently serves on the advisory board for InsideClimate, has been the president of liberal Soros-funded ProPublica for nearly three years years.
Soros also has a tie to InsideClimate News. David Sassoon, the founder of InsideClimate News, received his masters from the Columbia Journalism School, which has received $9.7 million from Soros.
Two other InsideClimate individuals graduated from the Columbia Journalism School, including reporter Katherine Bagley and board of directors member, Simon K.C. Li. Li is currently on the Board of Visitors of the Columbia Journalism School.
InsideClimate’s donors also include liberal organizations like the Ford Foundation and the Knight Foundation. |
Cook was pulled over and arrested at 5:42 a.m. on U.S. 1 by a Monroe County, Florida, deputy. Sills had placed Cook on a be-on-the-lookout bulletin through the National Crime Information Center. Cook was arrested not far below Marathon in the Florida Keys after the deputy’s tag reader alerted that Cook’s pickup was a wanted vehicle.
Cook was jailed Saturday at the Monroe County, Florida, Detention Center in Key West and faces extradition back to Putnam County.
Additionally, the publicity around Cook’s flight generated a call from a man who says Cook sold him a ticket to a Georgia-LSU came, but never delivered, Sills said. The sheriff’s office will investigate that complaint, Sills said.
On Oct. 30, Cook pleaded guilty to nine counts of misdemeanor theft by taking in connection with the scam for coveted tickets for the September 2017 game between the University of Georgia and Notre Dame in South Bend, Indiana. Cook was sentenced to jail time, nine years on probation upon release and ordered to pay $8,250 in restitution, Sills said.
“We had originally received complaints from over 60 victims and he made restitution to a great many of those, but not to all of them,” Sills said.
The Manatee County Sheriff's Office explains the use of license plate readers along with the arrests and recoveries they've led to at Supper with the Sheriff Thursday night.
Georgia running back Nick Chubb spoke about the fans who made the trip to South Bend, Indiana, for Saturday's win over Notre Dame. |
A Preliminary Study on Cathodic Prevention in Reinforced Mortar This work presents the preliminary tests on the performance of cathodic prevention (CPre) in reinforced mortar, subjected to aggressive (10% NaCl environment). Cathodic prevention is an electrochemical technique for minimizing, actually "preventing" any eventual corrosion of the steel bars in reinforced concrete. Therefore, the main objective of this investigation is to monitor the performance of cathodic prevention (CPre) as an alternative of cathodic protection (CP) i.e. application before corrosion initiation, using low cathodic current densities (1 to 2.5 mA/m2 steel surface). The novelty here is the application of "pulse" cathodic prevention (pulse DC current), rather than the conventional steady DC technique. The paper reports on conventional monitoring (potential mapping and depolarization decay), coupled with visualization of the steel/cement paste interface, using SEM and EDX. |
In-person and virtual multidisciplinary intensive lifestyle interventions are equally effective in patients with type 2 diabetes and obesity Background: Intensive lifestyle intervention (ILI) is essential for diabetes management. The Weight Achievement and Intensive Treatment (Why WAIT) program is a 12-week multidisciplinary weight management program that has been implemented in real-world clinical practice since 2005 and has shown long-term maintenance of weight reduction for 5 and 10years. During the COVID-19 pandemic, the program went virtual using telemedicine and mobile health applications. Aims: This retrospective pilot study aims to evaluate the effectiveness of a virtual model of an already established and successful in-person program for diabetes and weight management since 2005. Methods: We evaluated 38 patients with diabetes and obesity enrolled in the Why WAIT program between February 2019 and December 2020. Sixteen participants were enrolled in virtual program (VP) and were compared with 22 participants who completed the latest two physical programs (PPs) before COVID-19. We evaluated changes in body weight, A1C, blood pressure (BP), and lipid profile after 12weeks of ILI. Results: Body weight decreased by −7.4±3.6 kg from baseline in VP compared with −6.8±3.5 kg in PP (p=0.6 between groups). A1C decreased by −1.03%±1.1% from baseline in VP, and by −1.0%±1.2% in PP (p=0.9 between groups). BP, lipid profile, and all other parameters improved in both groups with no significant difference between them. Conclusion: Virtual multidisciplinary ILI is as effective as the in-person intervention program in improving body weight, A1C, BP, and lipid profile, and in reducing the number of anti-hyperglycemic medications. Results from our study suggest that scaling the Why WAIT program in a virtual format to a larger population of patients with diabetes and obesity is feasible and is potentially as successful as the in-person program. Introduction Diabetes mellitus is estimated to impact more than 463 million people worldwide, becoming one of the greatest risks to public health. Scientists predict that this number will grow exponentially to 578 million by 2030 and to 700 million by 2045. 1 Specifically in the United States, the Centers for Disease Control and Prevention (CDC) estimates that 34.2 million people or 10.5% of the US population has diabetes and In-person and virtual multidisciplinary intensive lifestyle interventions are equally effective in patients with type 2 diabetes and obesity 90-95% of those are affected have type 2 diabetes (T2D). 2 It is projected that 40 million US individuals will have T2D by 2030 and 61 million will have it by 2060. 3 Meanwhile, around 88 million adults or 34.5% of the US population are estimated to have prediabetes. 2,3 It was estimated that the cost of diabetes in 2017 was $327 billion with $237 billion in direct medical costs and $90 billion in reduced productivity. 4 Most of the diabetes costs are carried out by non-endocrinologists. It is estimated that 85% of diabetes care is primarily delivered by primary care physicians, of whom a shortage of 14,800-49,300 is expected by 2030. 5,6 Furthermore, in 2018, the United States had only 7918 endocrinologists, which is translated into a ratio of one endocrinologist per 3800 patients with diabetes. 6 In an effort to tackle this public health crisis, lifestyle modification in the form of dietary intervention and increased physical activity are recommended, especially in the early stages of T2D. Lifestyle intervention programs have demonstrated significant reduction in incidence of T2D among individuals with prediabetes and also resulted in significant improvement in cardiovascular risk factors among overweight and obese patients with T2D. The landmark Action for Health in Diabetes (Look AHEAD) study, which emphasizes intensive lifestyle intervention, demonstrated that weight reduction improved all cardiovascular risk factors except low-density lipoprotein (LDL)-cholesterol; however, there was a no significant reduction in the incidence of cardiovascular events or mortality in comparison with standard diabetes support and education. 9 The lack of difference between the two groups was probably related to an increased use of lipid-lowering medications and antihypertensive medications in the control group. We previously showed that intensive multidisciplinary weight management (IMWM) in real-world clinical practice can lead to sustained improvement in both A1C and lipid profile among patients who achieved ⩾7% weight loss at 1 year. 11 Traditionally, effective lifestyle intervention programs have been conducted in-person. However, recent technological advances in digital health made it possible to conduct these programs virtually during the current COVID-19 pandemic. These technologies enhance patients' involvement in their diabetes self-management and lifestyle modifications while maintaining reasonable communications between patients and their healthcare providers using telemedicine platforms. 12,13 In addition, telemedicine eliminates the need for patients' commute to receive multidisciplinary care. In hospitals and clinics, use of telemedicine and mobile health (m-Health) was shown to reduce overhead costs and few other healthcare expenses. 13 The value of applying these technologies was obvious during COVID-19 pandemic. Fortunately, it provided an exceptional opportunity for healthcare providers and patients alike to experience them. 14 Findings from several studies showed that telemedicine and virtual software platforms are convenient, safe, and effective methods in providing optimal medical care to patients while ensuring their safety. They also provided insights to medical practitioners on how to successfully implement telemedicine for future health crisis. 15 Thus, it should be adopted as a proactive measure to improve medical care and should be applied during the pandemic outbreak and beyond. This pilot study aims to compare the clinical outcomes of a virtual approach to IMWM with a classic inperson physical approach using the same intervention tools and by the same multidisciplinary team and whether it is as effective as the in-person intervention program in reducing body weight and A1C. The primary endpoints are the change in body weight and A1C after 12 weeks of intervention. The secondary endpoints include changes in percentage of glucose time in range (TIR) using continuous glucose monitoring devices (CGMs) and changes in blood pressure (BP), lipid profile, number of diabetes medications, and barriers to exercise. In-person physical program Weight Achievement and Intensive Treatment (Why WAIT -WW) is a 12-week Intensive Multidisciplinary Weight Management (IMWM) Program designed and implemented at Joslin Diabetes Center in Boston, MA, since 2005. A full description of the program was previously published. 18 The WW program primarily focuses on weight reduction as an effective tool for diabetes management. Participants are eligible for WW program if they have a body mass index (BMI) between 30 and 45 kg/m 2 and have either type 1 diabetes or T2D. WW program usually enrolls 10-15 participants in a group at a time. Throughout the program, participants undergo evaluations by an intervention team consisting of a diabetologist, a registered dietitian (RD), a journals.sagepub.com/home/tae 3 registered clinical exercise physiologist (RCEP), and a psychologist or behavioral therapist. This interdisciplinary team works toward individualizing patient care in order to achieve an optimal weight reduction and improvement in overall health. Intervention sessions are conducted weekly over 12 consecutive weeks. Each session is 2 h in length. The five major components of the WW program include the following: Medication adjustments. At the start of the program, diabetologists reviews participants' medications and work toward reducing or eliminating medications known to contribute to weight gain or potentially cause hypoglycemia during weight reduction. In addition, anti-hyperglycemic medications known to be weight neutral are maintained. 19 Finally, diabetes medications that promote weight loss may be initiated if covered by patients' insurance plans. Participants are encouraged to diligently monitor their glucose levels using CGMs. Participants' glucose logs are reviewed weekly by a diabetes nurse practitioner or a certified diabetes educator, and anti-hyperglycemic medications are adjusted accordingly. Dietary intervention. Dietary evaluations are conducted by a registered dietitian who evaluates participants' dietary histories, past weight management efforts, and adherence barriers to previous dietary interventions. After evaluations, participants receive meal plans based on their sex and current caloric intake from their 24-h dietary recall. These meal plans are based on 1200, 1500, or 1800 calorie levels and are assigned to participants accordingly. All meal plans are developed based on Joslin Nutrition Guidelines for obese patients with T2D. Meal plans are structured such that 40-45% of daily calories are from carbohydrates, <35% are from fat with saturated fat <10%, protein intake of 1-1.5 g/kg of adjusted body weight, and fiber intake of 14 g/1000 calories. 20 Two snacks per day are advised between meals, and these could be chosen from lists of 100-calorie and 200-calorie snacks. Participants are provided with 17 different menus for dinners. These dinner choices adhere to the daily 1200-, 1500-, and 1800-calorie meal plans and list the meals' ingredients, nutrition facts, and cooking instructions. Every meal plan is low in glycemic index and low in sodium (<2300 mg/day). Participants are urged to keep logs of their daily meals and snacks. If participants are unable to achieve 3% weight loss by the fourth week or 5% by the eighth week, total daily caloric intake is advanced to the next lower caloric level. After 6 weeks, menus for breakfast and lunch equivalent in caloric content and composition to DSMRs are introduced. Participants are given the option to continue using the DSMRs or use alternative breakfast and lunch menus. Exercise intervention. An individualized exercise plan is designed by the program RCEP after evaluation of exercise capacity and barriers to exercise. In addition, the RCEP provides specific corrective exercises to help with muscle imbalance. Exercise intervention includes a balanced mix of aerobic exercise (cross-and interval training) to promote development and maintenance of cardiovascular health; resistance exercise (circuit, pyramid, superset training) to enhance muscular strength and endurance and to improve performance of daily living. The exercise plan also includes core stability training to improve trunk mobility and stabilization, as well as dynamic and static stretching to enhance functional capabilities and reduce risk of injury. The exercise intensity is set above the minimum required to improve participant's current exercise capacity, but below a level that might evoke abnormal clinical symptoms. The exercise plan includes a weekly 60-min exercise session under the supervision of the RCEP. In addition, each participant is given an individualized exercise plan, addressing specific skeletal muscle issues and diabetes complications to perform independently at home. Participants are instructed to progress gradually over 12 weeks from 20 min of the training plan 4 days/week to 60 min 5-6 days/week. On completion of the initial 12 weeks, participants are encouraged to continue to exercise independently for 60 min/day, 5-6 days/week and maintain ⩾ 300 min/week with focus on preserving or increasing muscle mass. Cognitive-behavioral intervention. Intervention sessions focus primarily on self-monitoring of eating and exercise, behavioral goal setting, stimulus control techniques, cognitive restructuring, assertive communication skills, stress management, and relapse prevention. These components had been previously validated for weight management in other clinical trials. 25,26 Sessions are conducted by a clinical psychologist or a behavioral therapist. Sessions are held throughout the 12 weeks of WW program. Group education. Throughout the WW program, group didactic sessions are held. The topics vary each week but are relevant to weight and diabetes management. The program's RCEPs and RDs lead these sessions and provide educational handouts to participants at the end of each session. Virtual program Group education, intervention, and logging of diet and exercise were conducted through a combination of a telemedicine, using the GoToMeeting program (LogMeIn Inc., Boston, MA) and m-health application of WW program (Healthimation Inc®, Boston, MA) with an option of using Good Measure m-health application for nutrition information, especially for type 1 patients (Good Measure Inc®, Boston, MA). Virtual visits were conducted every Wednesday from 3-5 p.m., where participants received a link to log-in 15 min before each session. Nutrition intervention included review of food logs using m-health applications, instruction to participants during telemedicine sessions, communication with participants in between sessions using the chat functionality of WW m-health applications, and portal messaging through electronic health records. Exercise sessions were conducted virtually and include demonstration of exercise through telemedicine and instructions to follow an exercise plan through WW m-health applications. Through WW m-health applications, participants were able to see each type of exercise and its duration. Logging of exercise was reviewed from the coaching module of the WW m-health application. RCEP communicated with participants in between sessions using the chat functionality of the WW m-health applications and portal messaging through Joslin electronic health records. Participants were instructed to upload their CGM data each week using the corresponding web programs (Abbott freestyle Libre® or Dexcom®). Glucose data were reviewed weekly by the program's nurse practitioner who adjusted anti-hyperglycemic medications accordingly. Cognitive-behavioral support was conducted through telemedicine and through behavioral tips and videos from the WW m-health applications. Study participants and design This retrospective study was approved by the Committee on Human Studies (CHS) at the Joslin Diabetes Center. Sixteen participants were included in the virtual version of the program (13 with T2D and 3 with type 1 diabetes). These participants were enrolled as a consecutive series to the in-person program. The virtual program (VP) was conducted between April 2020 and December 2020. Twenty-two participants were included in the in-person physical program (PP), which comprised participants in the last 2 programs before the COVID-19 pandemic during the period from February 2019 to December 2019. Study endpoints The primary endpoints of this study were the changes in body weight and A1C after 12 weeks of intervention. The secondary endpoints included changes in percentage of glucose TIR from CGMs, changes in BP, lipid profile, and number of anti-hyperglycemic medications. In VP only, we compared barriers to exercise after versus before the VP. This survey was not part of the in-person PP in the past and was only introduced in the VP. Statistical analysis Demographic and baseline characteristics were evaluated using descriptive statistics. Continuous variables are expressed as mean ± standard deviation (SD) or as mean . Categorical variables are expressed as percentages. Chi-square test and paired t-test were used to compare baseline characteristics and within-group differences in endpoints at 12 weeks. Unpaired t-test was used to compare quantitative differences between the two groups at 12 weeks. A p value of < 0.05 was considered statistically significant. All analyses were performed using STATA Special Edition 15.0 for Windows® (StataCorp ®, College Station, Texas, USA 2017). program participants in this study). At baseline, participants in the PP were non-significantly heavier than those in VP with an initial average weight of 104.7 ± 17.7 kg versus 99 ± 20.8 kg, respectively (p = 0.4), and had non-significantly higher mean A1C of 7.9% ± 1.09% versus 7.7% ± 1.3% in VP (p = 0.5) ( Table 1). In addition, participants in the PP had non-significantly higher baseline high sensitivity C-reactive protein (hs-CRP) of 7.2 ± 6.2 compared with 3 ± 3.8 in the VP (p = 0.09). There were no differences between the two groups in other cardiovascular risk factors (BP, lipid profile), urinary microalbumin/creatinine ratio, or glucose TIR (Table 1). Glycemic control improved in both groups compared with baseline with an average reduction in A1C of −1.03% ± 1.1% (95% CI, −1.6 to −0.4; p < 0.05 from baseline) in VP and an average reduction of −1% ± 1.2% (95% CI, −1.5 to −0.45; p = 0.001 from baseline) in PP. There was no significant difference in A1C reduction between the two groups (p = 0.9) (Figure 2). Glucose TIR was 87% ± 14% at the end of VP and 72% ± 23% at the end of PP, with no significant difference between the two groups (p = 0.3). Patients in VP reported reduced barriers to being active from a score of 17.2 ± 12.2 at week 1 to a score of 4.6 ± 3.9 at week 12 of the program (p < 0.001). Among insulin-treated patients with T2D, five patients (50%) in VP and five patients (33.3%) in PP stopped insulin at 12 weeks; however, these changes were not statistically significant (p = 0.4). Total daily dose (TDD) of insulin decreased significantly in VP from 64.5 ± 66 units at baseline to 10.6 ± 13 units at 12 weeks (p < 0.05) and in PP from 56.5 ± 28.4 units at baseline to 27.1 ± 26 units at 12 weeks (p < 0.001). The number of anti-hyperglycemic medications reduced by 36% ± 28.6% in VP and by 28% ± 29.6% in PP (p = 0.4 between them). There were no significant changes in BP, renal function, lipid profile, hs-CRP, percentage of time in low interstitial glucose (<70 mg/dl), percentage of time in high interstitial glucose (>180 mg/dl), and utilization of antihypertensive medications between the two groups at 12 weeks (Table 2). Discussion Multidisciplinary intensive lifestyle intervention is costly and labor-intensive. The WW program, a 12-week intensive weight management program, costs health insurance between $5000 and $7000 per participant. Although it is the only weight management program for patients with diabetes that showed sustained weight loss of 6.4% after 5 years and 6.9% after 10 years, 11,27 it is very difficult to scale it to other patients with diabetes who are in dire need for long-term weight management. Currently, the WW program is only conducted at the Joslin Diabetes Center in Boston since 2005. This study showed that a virtual version of the WW program, using a combination of telemedicine and m-health application, resulted in similar weight reduction and comparable improvement in A1C and other cardiovascular risk factors to the in-person PP. It also showed that barriers to exercise significantly decreased after the virtual WW program. In the virtual version of the WW program, participants lost an average of 7.4 ± 3.6 kg or 7.4% ± 3% of their initial body weight, while participants in the in-person physical version of the program lost an average of 6.8 ± 3.5 kg or of 6.4% ± 3% of their initial body weight. A1C decreased by −1.03% ± 1.1% in VP and by −1% ± 1.2% in PP. The differences in weight loss and A1C reduction were not significant between the two groups. Glucose TIR was 87% at the end of VP and 72% at the end of PP with no significant difference between the two groups. These results may point to the possibility of scaling this successful multidisciplinary program to other patients with diabetes who seek weight management, irrespective of their location. Despite achieving modest weight loss, previous online versions for lifestyle intervention programs showed that adults were more likely to enroll but less likely to remain engaged when compared with the in-person programs, thus leading to a lack of comparable effectiveness of the online and in-person lifestyle change programs. 28 The superior effectiveness of the virtual WW program is most likely related to the multidisciplinary approach and the unique components of the WW program. Recent advances in digital health made it possible that group intervention can be conducted using web or mobile platforms. 29 Although physical interaction remains an important component of any multidisciplinary weight management program, digital platforms allow participants to interact within the cyberspace and from the convenience of their homes. In this study, logs of diet and exercise were captured electronically. The m-health applications provided an advantage of helping participants to maintain accurate records of dietary, exercise, and behavioral interventions, so participants can review them whenever needed. Visual demonstration of each exercise and its timing were additional valuable tools that might increase patients' adherence to the recommended exercise program to achieve similar results. These options were not available Data are given as mean (SD) or %. hs-CRP, high sensitivity C-reactive protein; HDL: high-density lipoprotein; LDL: low-density lipoprotein; p value: PP versus VP; TDD, total daily dose of insulin; UACR, urine albumin-to-creatinine ratio. *Two-sample t-test or chi-square test. journals.sagepub.com/home/tae 7 Table 2. in the in-person PP, as participants depended on their memory for recalling every exercise, especially those used for strength training. With the current advances in technology, participants were provided with cellular-connected scales and BP kits that captured vital signs remotely, without the need for wired connections or manual recordings. CGM software were also valuable tools, as remote upload of glucose data was easily conducted. These software come as standard features of all CGM devices currently on the market. This valuable information allowed the WW intervention team to adjust anti-hyperglycemic medications with ease on a weekly basis, as done in PP. Although CGMs were used in both journals.sagepub.com/home/tae 9 versions of the program, we noticed that the percentage of glucose TIR is trending higher in VP in comparison with PP. We think that the ability of the WW coaches to electronically chat with participants on a continuous basis might help in keeping glucose in range. However, the differences between the two groups in TIR, time in low (glucose < 70 mg/dL) and time in high (glucose > 180 mg/dL), were not statistically significant. It is known that proper coaching enhances weight management, increases adherence to intervention programs, and improves patients' satisfaction. 26 Providing coaches with virtual and digital tools to easily connect or chat with participants during intensive lifestyle modification were extremely valuable in VP over PP as well as showing superior effectiveness when compared with other online lifestyle intervention programs. 28,30 Meanwhile, m-health applications provide coaching modules where coaches can easily see participants' progress and monitor their level of adherence and compliance. Although using technology is still a constant challenge for some patients, especially elderly participants, proper selection of participants, training them on using virtual tools, and frequent troubleshooting may overcome this barrier. We started to see more participants above the age of 60, who are comfortable with using mobile applications and telemedicine, especially during the COVID-19 pandemic. Although it has been a challenge to conduct such a comprehensive and intensive program in a virtual manner, patients' safety was preserved during the COVID-19 pandemic through this remote method. The study has many limitations as the sample size was relatively small. However, this pilot feasibility study may encourage us to expand this method and test it in a randomized-controlled study among a larger sample size of patients with diabetes in a real-world clinical practice. Some limitations in interpreting results between patients with type 1 diabetes and patients with T2D is related to the frequency of insulin use, which is definitely much less in T2D patients, and despite the higher percentage of type 1 diabetes in PP, there was no significant difference between the two groups (p = 0.23). Definitely, the absence of personal face-to-face interaction in the clinic will remain a drawback of any virtual interventions. However, elimination of the complexity of attending in person at a specific time each week with its associated cost, while providing easy communication tools from the convenience of participants' home may be an equitable trade-off. Evaluation of cost-effectiveness of VP and its impact on participants' quality of life should be thoroughly investigated in a larger clinical study. Another limitation is the inability of participants in VP to come to the Joslin gymnasium and use professional exercise equipment, especially for interval training. However, we mailed participants resistance stretching rubber bands to use for strength exercises. Meanwhile, RCEP was able to remotely demonstrate all the possible exercises using these bands and other available home equipment, such as free weights and kettlebells. It was not possible to remotely evaluate body composition or measure amount of visceral fat as we used to do in PP. Missing these data was a drawback. In VP, despite the elimination of the exercise-capacity testing (6-min walk test) as it requires physical presence at Joslin, the RCEP was able to capture a lot of information regarding skeletal muscle issues and worked closely with each participant to address specific skeletal muscle injuries such as plantar fasciitis, sciatica, and weakness in core stabilization. Once the COVID-19 pandemic is over, we think a hybrid model may be evaluated for some patients, where participants may come for initial evaluations and measurements and conduct the rest of the program virtually, from the convenience of their home or work. Conclusion Virtual multidisciplinary intensive lifestyle intervention program using telemedicine and m-health seems to be as effective as the costly in-person PP in improving body weight, A1C, BP, and lipid profile, and in reducing number of anti-hyperglycemic medications for patients with diabetes and obesity. This study may have a significant implication on how we may conduct multidisciplinary intensive lifestyle intervention in the future, as technology potentially reduces cost and allows for scalability of the program to reach patients who are equally motivated but otherwise cannot join the in-person for the barriers of distance or other personal reason. However, the VP has many limitations; first, it is not suitable for patients who are technologically challenged; second, it eliminates the essential personal connection; and third, it risks that some of the measurements at home may not be accurate such as BP values. The virtual WW program can be scalable to overweight and obese patients with diabetes, irrespective of their location, and is potentially as successful as the inperson WW program. |
This is an opportunity to join one of the first specialist industrial door companies, with over 42 years of trading history, offering a 24 hour emergency callout service. East Midlands based, working out of 4 depot locations.
Due to their continual growth and expansion, they have an exciting opportunity available for an experienced industrial door engineer at the Kettering depot.
To service, repair and install industrial doors, loading bay and access equipment, personnel doors, car park barrier systems and security equipment. You would normally work as part of a team of 2 out of one of their fully equipped service vans.
The role will involve travelling to different sites within their operational areas, normally within 40 miles of each of their depot locations carrying out works as required. You will be expected to join the standby rota, at present 1 week in 10. Working hours are 8.00am to 5.00pm, Monday to Friday with reasonable overtime if required. They are however, unusual, in the industry in that they do intentionally not cover a large geographical area and place an emphasis on a good work/life balance.
- Industrial door experience or a proven background in a hands-on maintenance position which can demonstrate the ability to master the skills required.
- Basic electrical knowledge or welding skills would be an advantage.
- Competitive salary - basic wage of £24K to £30K dependant on experience, knowledge and qualifications, expect an OTE however as a minimum of £27K to £35K, more if you wish to do more overtime/weekend work.
- Overtime, good attendance payments, standby and callout payments are in addition to the basic wage listed above.
- Performance related payment for attendance and depot profitability, these can be quite substantial and are paid prior to Christmas each year. |
THIS IS A WEEKLY COLUMN WHERE WE GIVE OUT AWARDS TO THE BEST (AND WORST) PERFORMANCES OF THE WEEK IN THE BIG 12.
Eric Taylor Coach of the Week – Dana Holgorsen (West Virginia)
West Virginia is good, you guys. After starting the year as an afterthought in the Big 12, West Virginia has quietly climbed their way into the AP top 10. The Mountaineers outplayed TCU in every aspect of Saturday’s 34-10 win in Morgantown. Holgorsen took advantage of TCU’s porous front seven dialing up the run 48 times for 158 yards. West Virginia will not have much time to celebrate the win as they travel to Stillwater to face an Oklahoma State team that is riding a three-game winning streak.
Mike Leach Offensive Player of the Week – Patrick Mahomes (QB- Texas Tech)
The nation’s leading passer was nothing less than spectacular this weekend. Mahomes set NCAA single-game records for passing yards (734) and total offensive yards (819) in the Red Raiders 66-59 loss to Oklahoma. He completed 52 of his 88 passes. To put this workload into perspective, Mahomes threw four more passes than Clayton Kershaw threw pitches in a seven-inning outing in game 2 of the NLCS. Mahomes did everything he could to put his team in a position to win, but unfortunately, his defense had other ideas.
Brian Bosworth Defensive Player of the Week – Fish Smithson (S-Kansas)
Smithson seemed to be in the right place at the right time every time his team needed him against Oklahoma State. He tallied 16 tackles (14 solo), a sack and a fumble recovery, and was a major reason why his team hung around as long as they did. It’s hard to stand out when you play on one of the worst teams in the country, but Smithson did just that on Saturday.
J.D. McCoy Freshman of the Week – Justice Hill (RB-Oklahoma State)
This is Hill’s second freshman of the week award this season. He carried the ball 22 times for 162 yards and a touchdown in the Pokes 44-20 win over Kansas. A consistent running gain is the one thing that has been missing from the Cowboys’ offensive arsenal the last few years, and it appears they have finally found their feature back.
Kentucky Deluxe Bottom Shelf Performance of the Week – Texas Tech Defense
Tech’s defense narrowly beat out Oklahoma’s defense for this award. The Red Raiders allowed 854 yards and 66 points while failing to force a single turnover. Oklahoma scored a touchdown on each of their last six possessions, including every single drive in the second half. Tech took a 24-23 lead with 37 seconds left in the first half. The Red Raiders defense responded by allowing Oklahoma to go 75 yards in 20 seconds for a touchdown. Joe Mixon caught 4 passes out of the backfield and scored touchdowns on 3 of them. They couldn’t bother to tackle him 50% of the time. I could keep going, but you get the point.
The Big 12 has been known for lackluster defense the last few years, but this Tech team has taken it to a whole new level. I was texting my cousin who graduated from Tech throughout the game and he summed up their defense pretty well, “This is a whole new level of terrible defense. Might as well just add 7 points for the other team and take 60 seconds off the clock every time they take the field.” Yup.
That wraps up this week’s awards. Tune in next week to see who brought home the hardware that weekend. |
# coding=utf-8
from __future__ import absolute_import
import requests
import json
import base64
import hmac
import hashlib
import time
PROTOCOL = "https"
HOST = "api.bitfinex.com"
VERSION = "v1"
PATH_SYMBOLS = "symbols"
PATH_TICKER = "ticker/%s"
PATH_TODAY = "today/%s"
PATH_STATS = "stats/%s"
PATH_LENDBOOK = "lendbook/%s"
PATH_ORDERBOOK = "book/%s"
# HTTP request timeout in seconds
TIMEOUT = 5.0
class TradeClient:
"""
Authenticated client for trading through Bitfinex API
"""
def __init__(self, key, secret):
self.URL = "{0:s}://{1:s}/{2:s}".format(PROTOCOL, HOST, VERSION)
self.KEY = key
self.SECRET = secret
pass
@property
def _nonce(self):
"""
Returns a nonce
Used in authentication
"""
# return str(time.time() * 1000000)
return str(int(round(time.time() * 1000000)))
def _sign_payload(self, payload):
j = json.dumps(payload)
data = base64.standard_b64encode(j.encode('utf8'))
h = hmac.new(self.SECRET.encode('utf8'), data, hashlib.sha384)
signature = h.hexdigest()
return {
"X-BFX-APIKEY": self.KEY,
"X-BFX-SIGNATURE": signature,
"X-BFX-PAYLOAD": data
}
def place_order(self, amount, price, side, ord_type, symbol='btcusd', exchange='bitfinex'):
"""
Submit a new order.
:param amount:
:param price:
:param side:
:param ord_type:
:param symbol:
:param exchange:
:return:
"""
payload = {
"request": "/v1/order/new",
"nonce": self._nonce,
"symbol": symbol,
"amount": amount,
"price": price,
"exchange": exchange,
"side": side,
"type": ord_type
}
signed_payload = self._sign_payload(payload)
r = requests.post(self.URL + "/order/new", headers=signed_payload, verify=True)
json_resp = r.json()
try:
json_resp['order_id']
except:
return json_resp['message']
return json_resp
def delete_order(self, order_id):
"""
Cancel an order.
:param order_id:
:return:
"""
payload = {
"request": "/v1/order/cancel",
"nonce": self._nonce,
"order_id": order_id
}
signed_payload = self._sign_payload(payload)
r = requests.post(self.URL + "/order/cancel", headers=signed_payload, verify=True)
json_resp = r.json()
try:
json_resp['avg_execution_price']
except:
return json_resp['message']
return json_resp
def delete_all_orders(self):
"""
Cancel all orders.
:return:
"""
payload = {
"request": "/v1/order/cancel/all",
"nonce": self._nonce,
}
signed_payload = self._sign_payload(payload)
r = requests.post(self.URL + "/order/cancel/all", headers=signed_payload, verify=True)
json_resp = r.json()
return json_resp
def status_order(self, order_id):
"""
Get the status of an order. Is it active? Was it cancelled? To what extent has it been executed? etc.
:param order_id:
:return:
"""
payload = {
"request": "/v1/order/status",
"nonce": self._nonce,
"order_id": order_id
}
signed_payload = self._sign_payload(payload)
r = requests.post(self.URL + "/order/status", headers=signed_payload, verify=True)
json_resp = r.json()
try:
json_resp['avg_execution_price']
except:
return json_resp['message']
return json_resp
def active_orders(self):
"""
Fetch active orders
"""
payload = {
"request": "/v1/orders",
"nonce": self._nonce
}
signed_payload = self._sign_payload(payload)
r = requests.post(self.URL + "/orders", headers=signed_payload, verify=True)
json_resp = r.json()
return json_resp
def active_positions(self):
"""
Fetch active Positions
"""
payload = {
"request": "/v1/positions",
"nonce": self._nonce
}
signed_payload = self._sign_payload(payload)
r = requests.post(self.URL + "/positions", headers=signed_payload, verify=True)
json_resp = r.json()
return json_resp
def claim_position(self, position_id):
"""
Claim a position.
:param position_id:
:return:
"""
payload = {
"request": "/v1/position/claim",
"nonce": self._nonce,
"position_id": position_id
}
signed_payload = self._sign_payload(payload)
r = requests.post(self.URL + "/position/claim", headers=signed_payload, verify=True)
json_resp = r.json()
return json_resp
def past_trades(self, timestamp=0, symbol='btcusd'):
"""
Fetch past trades
:param timestamp:
:param symbol:
:return:
"""
payload = {
"request": "/v1/mytrades",
"nonce": self._nonce,
"symbol": symbol,
"timestamp": timestamp
}
signed_payload = self._sign_payload(payload)
r = requests.post(self.URL + "/mytrades", headers=signed_payload, verify=True)
json_resp = r.json()
return json_resp
def place_offer(self, currency, amount, rate, period, direction):
"""
:param currency:
:param amount:
:param rate:
:param period:
:param direction:
:return:
"""
payload = {
"request": "/v1/offer/new",
"nonce": self._nonce,
"currency": currency,
"amount": amount,
"rate": rate,
"period": period,
"direction": direction
}
signed_payload = self._sign_payload(payload)
r = requests.post(self.URL + "/offer/new", headers=signed_payload, verify=True)
json_resp = r.json()
return json_resp
def cancel_offer(self, offer_id):
"""
:param offer_id:
:return:
"""
payload = {
"request": "/v1/offer/cancel",
"nonce": self._nonce,
"offer_id": offer_id
}
signed_payload = self._sign_payload(payload)
r = requests.post(self.URL + "/offer/cancel", headers=signed_payload, verify=True)
json_resp = r.json()
return json_resp
def status_offer(self, offer_id):
"""
:param offer_id:
:return:
"""
payload = {
"request": "/v1/offer/status",
"nonce": self._nonce,
"offer_id": offer_id
}
signed_payload = self._sign_payload(payload)
r = requests.post(self.URL + "/offer/status", headers=signed_payload, verify=True)
json_resp = r.json()
return json_resp
def active_offers(self):
"""
Fetch active_offers
:return:
"""
payload = {
"request": "/v1/offers",
"nonce": self._nonce
}
signed_payload = self._sign_payload(payload)
r = requests.post(self.URL + "/offers", headers=signed_payload, verify=True)
json_resp = r.json()
return json_resp
def balances(self):
"""
Fetch balances
:return:
"""
payload = {
"request": "/v1/balances",
"nonce": self._nonce
}
signed_payload = self._sign_payload(payload)
r = requests.post(self.URL + "/balances", headers=signed_payload, verify=True)
json_resp = r.json()
return json_resp
def history(self, currency, since=0, until=9999999999, limit=500, wallet='exchange'):
"""
View you balance ledger entries
:param currency: currency to look for
:param since: Optional. Return only the history after this timestamp.
:param until: Optional. Return only the history before this timestamp.
:param limit: Optional. Limit the number of entries to return. Default is 500.
:param wallet: Optional. Return only entries that took place in this wallet. Accepted inputs are: “trading”,
“exchange”, “deposit”.
"""
payload = {
"request": "/v1/history",
"nonce": self._nonce,
"currency": currency,
"since": since,
"until": until,
"limit": limit,
"wallet": wallet
}
signed_payload = self._sign_payload(payload)
r = requests.post(self.URL + "/history", headers=signed_payload, verify=True)
json_resp = r.json()
return json_resp
class Client:
"""
Client for the bitfinex.com API.
See https://www.bitfinex.com/pages/api for API documentation.
"""
def server(self):
return u"{0:s}://{1:s}/{2:s}".format(PROTOCOL, HOST, VERSION)
def url_for(self, path, path_arg=None, parameters=None):
# build the basic url
url = "%s/%s" % (self.server(), path)
# If there is a path_arh, interpolate it into the URL.
# In this case the path that was provided will need to have string
# interpolation characters in it, such as PATH_TICKER
if path_arg:
url = url % (path_arg)
# Append any parameters to the URL.
if parameters:
url = "%s?%s" % (url, self._build_parameters(parameters))
return url
def symbols(self):
"""
GET /symbols
curl https://api.bitfinex.com/v1/symbols
['btcusd','ltcusd','ltcbtc']
"""
return self._get(self.url_for(PATH_SYMBOLS))
def ticker(self, symbol):
"""
GET /ticker/:symbol
curl https://api.bitfinex.com/v1/ticker/btcusd
{
'ask': '562.9999',
'timestamp': '1395552290.70933607',
'bid': '562.25',
'last_price': u'562.25',
'mid': u'562.62495'}
"""
data = self._get(self.url_for(PATH_TICKER, (symbol)))
# convert all values to floats
return self._convert_to_floats(data)
def today(self, symbol):
"""
GET /today/:symbol
curl "https://api.bitfinex.com/v1/today/btcusd"
{"low":"550.09","high":"572.2398","volume":"7305.33119836"}
"""
data = self._get(self.url_for(PATH_TODAY, (symbol)))
# convert all values to floats
return self._convert_to_floats(data)
def stats(self, symbol):
"""
curl https://api.bitfinex.com/v1/stats/btcusd
[
{"period":1,"volume":"7410.27250155"},
{"period":7,"volume":"52251.37118006"},
{"period":30,"volume":"464505.07753251"}
]
"""
data = self._get(self.url_for(PATH_STATS, (symbol)))
for period in data:
for key, value in period.items():
if key == 'period':
new_value = int(value)
elif key == 'volume':
new_value = float(value)
period[key] = new_value
return data
def lendbook(self, currency, parameters=None):
"""
curl "https://api.bitfinex.com/v1/lendbook/btc"
{"bids":[{"rate":"5.475","amount":"15.03894663","period":30,"timestamp":"1395112149.0","frr":"No"},{"rate":"2.409","amount":"14.5121868","period":7,"timestamp":"1395497599.0","frr":"No"}],"asks":[{"rate":"6.351","amount":"15.5180735","period":5,"timestamp":"1395549996.0","frr":"No"},{"rate":"6.3588","amount":"626.94808249","period":30,"timestamp":"1395400654.0","frr":"Yes"}]}
Optional parameters
limit_bids (int): Optional. Limit the number of bids (loan demands) returned. May be 0 in which case the array of bids is empty. Default is 50.
limit_asks (int): Optional. Limit the number of asks (loan offers) returned. May be 0 in which case the array of asks is empty. Default is 50.
"""
data = self._get(self.url_for(PATH_LENDBOOK, path_arg=currency, parameters=parameters))
for lend_type in data.keys():
for lend in data[lend_type]:
for key, value in lend.items():
if key in ['rate', 'amount', 'timestamp']:
new_value = float(value)
elif key == 'period':
new_value = int(value)
elif key == 'frr':
new_value = value == 'Yes'
lend[key] = new_value
return data
def order_book(self, symbol, parameters=None):
"""
curl "https://api.bitfinex.com/v1/book/btcusd"
{"bids":[{"price":"561.1101","amount":"0.985","timestamp":"1395557729.0"}],"asks":[{"price":"562.9999","amount":"0.985","timestamp":"1395557711.0"}]}
The 'bids' and 'asks' arrays will have multiple bid and ask dicts.
Optional parameters
limit_bids (int): Optional. Limit the number of bids returned. May be 0 in which case the array of bids is empty. Default is 50.
limit_asks (int): Optional. Limit the number of asks returned. May be 0 in which case the array of asks is empty. Default is 50.
eg.
curl "https://api.bitfinex.com/v1/book/btcusd?limit_bids=1&limit_asks=0"
{"bids":[{"price":"561.1101","amount":"0.985","timestamp":"1395557729.0"}],"asks":[]}
"""
data = self._get(self.url_for(PATH_ORDERBOOK, path_arg=symbol, parameters=parameters))
for type_ in data.keys():
for list_ in data[type_]:
for key, value in list_.items():
list_[key] = float(value)
return data
def _convert_to_floats(self, data):
"""
Convert all values in a dict to floats
"""
for key, value in data.items():
data[key] = float(value)
return data
def _get(self, url):
return requests.get(url, timeout=TIMEOUT).json()
def _build_parameters(self, parameters):
# sort the keys so we can test easily in Python 3.3 (dicts are not
# ordered)
keys = list(parameters.keys())
keys.sort()
return '&'.join(["%s=%s" % (k, parameters[k]) for k in keys]) |
L-shell ionization by antiprotons. Semiclassical coupled-state model calculations have been performed for {ital L}-shell ionization of gold induced by protons and antiprotons in the energy range 0.15--3 MeV. The results of the calculations have been compared with the predictions of a simple approach suggested by Brandt and Basbas for description of antiparticle excitation of atomic inner shells. Apart from the range of very low collision velocities, a reasonable agreement has been found between the two models. In addition to the binding and Coulomb-distortion effects discussed by Brandt and Basbas (Phys. Rev. A 27, 578 ; 28, 3142(E) ), for the {ital L} shell a further effect due to dynamical couplings between the {ital L}-substate ionization amplitudes also contributes to the particle-antiparticle differences. While the latter processes have only a negligible effect on the energy dependence of the cross sections, their inclusion has been shown to be unavoidable when ratios of the subshell ionization cross sections are analyzed for the two kinds of excitation. |
Black Friday violence claimed the lives of two people, while two others were hospitalized after being shot.
Each shooting happened outside stores where early Black Friday shoppers were lining up.
A fight over a parking space ended with murder in Reno, Nevada.
A 33-year-old man was shot and killed outside a Walmart store.
Police ended up finding and arresting those involved in that case.
In New Jersey, a 20-year-old man was killed and his 26-year-old brother was shot in the leg outside a Macy’s store.
https://t.co/vbV6P68Ns7 Black Friday kicks off with fatal shooting in New Jersey mall parking lot #news — Scoop Squid (@ScoopSquid) November 25, 2016
The bullet-riddled vehicle sat surrounded by police tape and shell casings at the Hamilton Mall in South Jersey.
Black Friday kicks off with deadly shooting at mall https://t.co/tLMA69fDXb via @nypmetro — Maureen Oleary (@MaureenOleary10) November 25, 2016
Shoppers told CBS Philly, “It’s sad. We’ve been doing this, me and my girls, for probably about ten years now, just for the fun of going out–a girls night and trying to get some special sales, and it’s getting scary now.”
And in Memphis, Tennessee, police arrested three people after a man was shot outside Wolfchase Galleria Mall around 11:15 Thanksgiving night.
Police are still searching for that gunman, who fired several shots then took off in a red Ford Mustang.
According to WREG, police first thought no one was injured, but one man later checked himself into Memphis’ Baptist Memorial Hospital with a gunshot wound. |
import tl = require("azure-pipelines-task-lib/task");
import { AppInsights } from "../Common/AppInsights";
import { isNullOrUndefined } from "util";
import CreateDeltaPackageImpl from "./CreateDeltaPackageImpl";
const path = require("path");
const fs = require("fs");
async function run() {
try {
const sfdx_package = tl.getInput("package", true);
const projectDirectory = tl.getInput("project_directory", false);
const versionName: string = tl.getInput("version_name", false);
const setBuildName: boolean = tl.getBoolInput("set_build_name",true);
let revisionFrom: string = tl.getInput("revision_from", true);
let revision_to: string = tl.getInput("revision_to", false);
let options:any = {};
options['bypass_directories']=tl.getInput("bypass_directories", false);
options['only_diff_for']=tl.getInput("only_diff_for", false);
if (isNullOrUndefined(revision_to)) {
revision_to = tl.getVariable("build.sourceVersion");
}
const generate_destructivemanifest = tl.getBoolInput(
"generate_destructivemanifest",
false
);
const build_artifact_enabled = tl.getBoolInput(
"build_artifact_enabled",
true
);
if (setBuildName) {
console.log(`Updating build number to ${versionName}`);
tl.updateBuildNumber(versionName);
}
AppInsights.setupAppInsights(tl.getBoolInput("isTelemetryEnabled", true));
let createDeltaPackageImp = new CreateDeltaPackageImpl(
projectDirectory,
sfdx_package,
revisionFrom,
revision_to,
generate_destructivemanifest,
options
);
let command = await createDeltaPackageImp.buildExecCommand();
tl.debug(`Command Generated ${command}`);
await createDeltaPackageImp.exec(command);
let artifactFilePath = path.join(
tl.getVariable("build.repository.localpath"),
`${sfdx_package}_src_delta`
);
tl.setVariable("sfpowerscripts_delta_package_path", artifactFilePath);
if (build_artifact_enabled) {
//Write Artifact Delta
tl.command(
"artifact.upload",
{ artifactname: `${sfdx_package}_sfpowerscripts_delta_package` },
artifactFilePath
);
//Write artifact Metadata
let repository_url = tl.getVariable("build.repository.uri");
let commit_id = tl.getVariable("build.sourceVersion");
let metadata = {
package_name: sfdx_package,
sourceVersion: commit_id,
repository_url: repository_url,
package_type: "delta",
package_version_number: versionName
};
let artifactFileName:string = `/${sfdx_package}_artifact_metadata`;
fs.writeFileSync(
__dirname + artifactFileName,
JSON.stringify(metadata)
);
let data = {
artifacttype: "container",
artifactname: "sfpowerkit_artifact"
};
// upload or copy
data["containerfolder"] = "sfpowerkit_artifact";
// add localpath to ##vso command's properties for back compat of old Xplat agent
data["localpath"] = __dirname + artifactFileName;
tl.command("artifact.upload", data, __dirname + artifactFileName);
}
} catch (err) {
tl.setResult(tl.TaskResult.Failed, err.message);
}
}
run();
|
# Generated by Django 3.1.13 on 2021-09-24 11:16
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('wagtaildocs', '0012_uploadeddocument'),
('app', '0023_auto_20210924_1408'),
]
operations = [
migrations.RemoveField(
model_name='istoricpage',
name='studiu_dendocronologic',
),
migrations.AlterField(
model_name='istoricpage',
name='studiu_dendocronologic_an',
field=models.IntegerField(blank=True, null=True, verbose_name='An'),
),
migrations.AlterField(
model_name='istoricpage',
name='studiu_dendocronologic_autor',
field=models.CharField(blank=True, max_length=150, null=True, verbose_name='Autor'),
),
migrations.AlterField(
model_name='istoricpage',
name='studiu_dendocronologic_fisier',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtaildocs.document', verbose_name='Fișier'),
),
migrations.CreateModel(
name='Zugravi',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
('nume', models.CharField(max_length=250)),
('detalii', wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații')),
('sursa', wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații')),
('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='zugravi', to='app.istoricpage')),
],
options={
'ordering': ['sort_order'],
'abstract': False,
},
),
migrations.CreateModel(
name='PovestiBiserica',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
('detalii', wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații')),
('sursa', wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații')),
('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='povesti', to='app.istoricpage')),
],
options={
'ordering': ['sort_order'],
'abstract': False,
},
),
migrations.CreateModel(
name='Personalitati',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
('nume', models.CharField(max_length=250)),
('detalii', wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații')),
('sursa', wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații')),
('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='personalitati', to='app.istoricpage')),
],
options={
'ordering': ['sort_order'],
'abstract': False,
},
),
migrations.CreateModel(
name='MutariBiserica',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
('nume', models.CharField(max_length=250)),
('detalii', wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații')),
('sursa', wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații')),
('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='mutari', to='app.istoricpage')),
],
options={
'ordering': ['sort_order'],
'abstract': False,
},
),
migrations.CreateModel(
name='Mesteri',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
('nume', models.CharField(max_length=250)),
('detalii', wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații')),
('sursa', wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații')),
('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='mesteri', to='app.istoricpage')),
],
options={
'ordering': ['sort_order'],
'abstract': False,
},
),
migrations.CreateModel(
name='Evenimente',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
('nume', models.CharField(max_length=250)),
('detalii', wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații')),
('sursa', wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații')),
('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='evenimente', to='app.istoricpage')),
],
options={
'ordering': ['sort_order'],
'abstract': False,
},
),
]
|
Federation Square was their first project to make it off the drawing board, and what a debut it was.
Don Bates and Peter Davidson's blueprint for Melbourne's civic heart was visionary, ambitious, and realised amid a backdrop of changing governments, mutating plans, design on the run, unrealistic budgets and unsympathetic politicians.
"Everything was against them from the start," says architecture critic Joe Rollo. "They have done a truly terrific job at Federation Square under extremely trying circumstances."
But will any more of the architects' schemes make the leap from concept to construction? Six months after the opening of Federation Square, the innovative duo remain out of work, and it's not for want of trying.
The architects have been after work for more than a year, but since Federation Square opened last October they have received only three or four inquiries, and one of those was for a house.
The two, who declined to be interviewed for this report, are counting on another competition win. They have entered contests for projects, including a BMW factory in Germany, the Queensland Gallery of Modern Art, the Museum of Modern Art at Heide, the Wagga Wagga Civic Centre and a private university in NSW.
They have even chased work in Finland, Romania and Scotland. Although they have been finalists in many contests, they have won none. They are now surviving on their savings.
The scale of Federation Square might suggest that the two drew a fortune on their first job, but a source close to the project reveals that Bates and Davidson, who obsessively supervised building and put in many unpaid hours, including a campaign to save the controversial western shard, did not make money.
The architects are believed to have received a package of between $30 million and $40 million over four years, but that was shared among the staff of two offices - Lab architecture studio and Bates Smart - as well as many consultants.
Bates, who is from Texas, and Sydney-born Davidson, set up Lab architecture studio in 1994 and won their first job through an international competition, after their design for Federation Square was chosen unanimously from 177 entries.
Some Melbourne architects are wondering what the future holds for Lab.
An ABC documentary on the making of Federation Square, screening on Thursday, casts doubt on their prospects, and ends with architecture critic Dimity Reed suggesting that Lab may be a "one-trick pony".
Others suspect that the controversy surrounding Federation Square and the Bracks Government's decision to amputate the western shard, as well as budget blowouts, continuing tension between Lab and the building firm Multiplex and, in particular, Mr Davidson's outspoken and uncompromising approach, may have tarnished the architects' image and hampered their efforts to gain further work.
The ABC documentary, which follows the project from start to finish, features some telling spats between Mr Davidson and builders. Mr Davidson is shown challenging workmen on the quality of their craft: "Whose f----- idea was this?" he says on camera.
But Damian Bonnice, Federation Square's original project manager, insists the Bracks Government is to blame for the architects' problems.
"There was a lot of damage done to their commercial reputation at the time the Government took their action against the shard," says Mr Bonnice, who quit after the decision to shorten the shard.
"They were being forced to defend themselves all the time, and when you are in that position you're really not engendering yourself for further engagements.
"I did say to them at the time . . . that if I was in their shoes I would be taking the Government to court to sue for damages, and I really pushed them on it because I thought it was most unfair.
"Bracksy would not even meet with the architects. I was instructed not to bring them to meetings."
The Premier eventually relented, meeting Lab the day before he announced that the western shard would be slashed, Mr Bonnice says.
The Government's line these days is pro-Federation Square. A Government spokeswoman yesterday reiterated that the Premier thought Federation Square was fantastic, the architects' work wonderful, and that he wished them the best.
Others are positive about Lab's prospects: "Those two boys, to their credit, were terribly focused on Federation Square," says one of Melbourne's foremost architects, Karl Fender.
Even Peter Seamer, chief executive of Federation Square Management, with whom the architects had well-publicised differences, is confident that Lab will succeed. "They are exceptionally gifted designers, and I have no doubt that they will get future work here or elsewhere in the world," he says. |
use std::fmt::Debug;
use crate::linalg::Matrix;
use crate::math::distance::euclidian::*;
use crate::math::num::RealNumber;
#[derive(Debug)]
pub struct BBDTree<T: RealNumber> {
nodes: Vec<BBDTreeNode<T>>,
index: Vec<usize>,
root: usize,
}
#[derive(Debug)]
struct BBDTreeNode<T: RealNumber> {
count: usize,
index: usize,
center: Vec<T>,
radius: Vec<T>,
sum: Vec<T>,
cost: T,
lower: Option<usize>,
upper: Option<usize>,
}
impl<T: RealNumber> BBDTreeNode<T> {
fn new(d: usize) -> BBDTreeNode<T> {
BBDTreeNode {
count: 0,
index: 0,
center: vec![T::zero(); d],
radius: vec![T::zero(); d],
sum: vec![T::zero(); d],
cost: T::zero(),
lower: Option::None,
upper: Option::None,
}
}
}
impl<T: RealNumber> BBDTree<T> {
pub fn new<M: Matrix<T>>(data: &M) -> BBDTree<T> {
let nodes = Vec::new();
let (n, _) = data.shape();
let index = (0..n).collect::<Vec<_>>();
let mut tree = BBDTree {
nodes,
index,
root: 0,
};
let root = tree.build_node(data, 0, n);
tree.root = root;
tree
}
pub(in crate) fn clustering(
&self,
centroids: &[Vec<T>],
sums: &mut Vec<Vec<T>>,
counts: &mut Vec<usize>,
membership: &mut Vec<usize>,
) -> T {
let k = centroids.len();
counts.iter_mut().for_each(|v| *v = 0);
let mut candidates = vec![0; k];
for i in 0..k {
candidates[i] = i;
sums[i].iter_mut().for_each(|v| *v = T::zero());
}
self.filter(
self.root,
centroids,
&candidates,
k,
sums,
counts,
membership,
)
}
fn filter(
&self,
node: usize,
centroids: &[Vec<T>],
candidates: &[usize],
k: usize,
sums: &mut Vec<Vec<T>>,
counts: &mut Vec<usize>,
membership: &mut Vec<usize>,
) -> T {
let d = centroids[0].len();
let mut min_dist =
Euclidian::squared_distance(&self.nodes[node].center, ¢roids[candidates[0]]);
let mut closest = candidates[0];
for i in 1..k {
let dist =
Euclidian::squared_distance(&self.nodes[node].center, ¢roids[candidates[i]]);
if dist < min_dist {
min_dist = dist;
closest = candidates[i];
}
}
if self.nodes[node].lower.is_some() {
let mut new_candidates = vec![0; k];
let mut newk = 0;
for candidate in candidates.iter().take(k) {
if !BBDTree::prune(
&self.nodes[node].center,
&self.nodes[node].radius,
centroids,
closest,
*candidate,
) {
new_candidates[newk] = *candidate;
newk += 1;
}
}
if newk > 1 {
return self.filter(
self.nodes[node].lower.unwrap(),
centroids,
&new_candidates,
newk,
sums,
counts,
membership,
) + self.filter(
self.nodes[node].upper.unwrap(),
centroids,
&new_candidates,
newk,
sums,
counts,
membership,
);
}
}
for i in 0..d {
sums[closest][i] += self.nodes[node].sum[i];
}
counts[closest] += self.nodes[node].count;
let last = self.nodes[node].index + self.nodes[node].count;
for i in self.nodes[node].index..last {
membership[self.index[i]] = closest;
}
BBDTree::node_cost(&self.nodes[node], ¢roids[closest])
}
fn prune(
center: &[T],
radius: &[T],
centroids: &[Vec<T>],
best_index: usize,
test_index: usize,
) -> bool {
if best_index == test_index {
return false;
}
let d = centroids[0].len();
let best = ¢roids[best_index];
let test = ¢roids[test_index];
let mut lhs = T::zero();
let mut rhs = T::zero();
for i in 0..d {
let diff = test[i] - best[i];
lhs += diff * diff;
if diff > T::zero() {
rhs += (center[i] + radius[i] - best[i]) * diff;
} else {
rhs += (center[i] - radius[i] - best[i]) * diff;
}
}
lhs >= T::two() * rhs
}
fn build_node<M: Matrix<T>>(&mut self, data: &M, begin: usize, end: usize) -> usize {
let (_, d) = data.shape();
let mut node = BBDTreeNode::new(d);
node.count = end - begin;
node.index = begin;
let mut lower_bound = vec![T::zero(); d];
let mut upper_bound = vec![T::zero(); d];
for i in 0..d {
lower_bound[i] = data.get(self.index[begin], i);
upper_bound[i] = data.get(self.index[begin], i);
}
for i in begin..end {
for j in 0..d {
let c = data.get(self.index[i], j);
if lower_bound[j] > c {
lower_bound[j] = c;
}
if upper_bound[j] < c {
upper_bound[j] = c;
}
}
}
let mut max_radius = T::from(-1.).unwrap();
let mut split_index = 0;
for i in 0..d {
node.center[i] = (lower_bound[i] + upper_bound[i]) / T::two();
node.radius[i] = (upper_bound[i] - lower_bound[i]) / T::two();
if node.radius[i] > max_radius {
max_radius = node.radius[i];
split_index = i;
}
}
if max_radius < T::from(1E-10).unwrap() {
node.lower = Option::None;
node.upper = Option::None;
for i in 0..d {
node.sum[i] = data.get(self.index[begin], i);
}
if end > begin + 1 {
let len = end - begin;
for i in 0..d {
node.sum[i] *= T::from(len).unwrap();
}
}
node.cost = T::zero();
return self.add_node(node);
}
let split_cutoff = node.center[split_index];
let mut i1 = begin;
let mut i2 = end - 1;
let mut size = 0;
while i1 <= i2 {
let mut i1_good = data.get(self.index[i1], split_index) < split_cutoff;
let mut i2_good = data.get(self.index[i2], split_index) >= split_cutoff;
if !i1_good && !i2_good {
self.index.swap(i1, i2);
i1_good = true;
i2_good = true;
}
if i1_good {
i1 += 1;
size += 1;
}
if i2_good {
i2 -= 1;
}
}
node.lower = Option::Some(self.build_node(data, begin, begin + size));
node.upper = Option::Some(self.build_node(data, begin + size, end));
for i in 0..d {
node.sum[i] =
self.nodes[node.lower.unwrap()].sum[i] + self.nodes[node.upper.unwrap()].sum[i];
}
let mut mean = vec![T::zero(); d];
for (i, mean_i) in mean.iter_mut().enumerate().take(d) {
*mean_i = node.sum[i] / T::from(node.count).unwrap();
}
node.cost = BBDTree::node_cost(&self.nodes[node.lower.unwrap()], &mean)
+ BBDTree::node_cost(&self.nodes[node.upper.unwrap()], &mean);
self.add_node(node)
}
fn node_cost(node: &BBDTreeNode<T>, center: &[T]) -> T {
let d = center.len();
let mut scatter = T::zero();
for (i, center_i) in center.iter().enumerate().take(d) {
let x = (node.sum[i] / T::from(node.count).unwrap()) - *center_i;
scatter += x * x;
}
node.cost + T::from(node.count).unwrap() * scatter
}
fn add_node(&mut self, new_node: BBDTreeNode<T>) -> usize {
let idx = self.nodes.len();
self.nodes.push(new_node);
idx
}
}
#[cfg(test)]
mod tests {
use super::*;
use crate::linalg::naive::dense_matrix::DenseMatrix;
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)]
#[test]
fn bbdtree_iris() {
let data = DenseMatrix::from_2d_array(&[
&[5.1, 3.5, 1.4, 0.2],
&[4.9, 3.0, 1.4, 0.2],
&[4.7, 3.2, 1.3, 0.2],
&[4.6, 3.1, 1.5, 0.2],
&[5.0, 3.6, 1.4, 0.2],
&[5.4, 3.9, 1.7, 0.4],
&[4.6, 3.4, 1.4, 0.3],
&[5.0, 3.4, 1.5, 0.2],
&[4.4, 2.9, 1.4, 0.2],
&[4.9, 3.1, 1.5, 0.1],
&[7.0, 3.2, 4.7, 1.4],
&[6.4, 3.2, 4.5, 1.5],
&[6.9, 3.1, 4.9, 1.5],
&[5.5, 2.3, 4.0, 1.3],
&[6.5, 2.8, 4.6, 1.5],
&[5.7, 2.8, 4.5, 1.3],
&[6.3, 3.3, 4.7, 1.6],
&[4.9, 2.4, 3.3, 1.0],
&[6.6, 2.9, 4.6, 1.3],
&[5.2, 2.7, 3.9, 1.4],
]);
let tree = BBDTree::new(&data);
let centroids = vec![vec![4.86, 3.22, 1.61, 0.29], vec![6.23, 2.92, 4.48, 1.42]];
let mut sums = vec![vec![0f64; 4], vec![0f64; 4]];
let mut counts = vec![11, 9];
let mut membership = vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1];
let dist = tree.clustering(¢roids, &mut sums, &mut counts, &mut membership);
assert!((dist - 10.68).abs() < 1e-2);
assert!((sums[0][0] - 48.6).abs() < 1e-2);
assert!((sums[1][3] - 13.8).abs() < 1e-2);
assert_eq!(membership[17], 1);
}
}
|
Tumor Necrosis Factor Inhibits Contractions to Sympathetic Nerve Stimulation by a Nitric Oxide-Dependent Mechanism Summary Abstract. Gram-negative sepsis and administration of tumor necrosis factor (TNF) are associated with hypotension and peripheral neuropathies suggestive of impaired sympathetic neurotransmission. We examined the effect of TNF on the responses of the bovine pulmonary artery (BPA) to transmural sympathetic nerve stimulation (SNS). BPA contracted to SNS (0.5-32 Hz, 5-10 V, 2-msec duration, 2-msec delay) in a frequency-dependent manner. The contractions of the BPA to SNS were mediated by norepinephrine and activation of postsynaptic 1-adrenoceptors, since they were attenuated by prazosin. Maximum contraction of the BPA to SNS was significantly enhanced (148 ± 37% increase, n = 6) after inhibition of nitric oxide synthase with L-NG-monomethylarginine (LNMMA, 500 M), an effect abrogated by L-arginine (1 mM). TNF (0.0042, 0.042, and 0.42 g/ml) selectively inhibited contractions of the BPA to SNS without affecting the contraction of the BPA to exogenous norepinephrine. In BPA incubated with LNMMA (5-500 M), TNF facilitated rather than inhibited SNS. TNF increased the formation of amperiometrically measured free nitric oxide in bovine adrenal chromaffin cells in primary culture. The data show that in the absence of LNMMA, TNF releases free nitric oxide from a sympathetic neuron and selectively inhibits the contractions of the BPA to SNS. In BPA in which nitric oxide synthase I is inhibited by LNMMA, TNF amplifies the contractions to SNS, even in the absence of endothelium. Thus, TNF can modify vascular smooth muscle tone by affecting SNS. TNF inhibits SNS at the level of the neuron by a mechanism involving the L-arginine-nitric oxide pathway. TNF-induced suppression of SNS and neurotransmission may contribute to the hypotension and peripheral neuropathy of sepsis. |
Frankly, we're a little weary of Bigfoot and Nessie. What about those mysterious critters that don't have dedicated reality shows ... but are still integral, beloved, and/or feared parts of the communities in which they're said to dwell? Here are 9 wonderfully weird, staunchly local cryptozoological creatures.
1. Bear Lake Monster, Idaho-Utah border
This big guy got some shine on the Bigfoot network, aka Animal Planet, with a segment on an episode of Lost Tapes (spoiler: same as above). According to biologist Bryce Nielson, a talking head on the program, initial sightings of the beast described it as looking "like a walrus without tusks, or an alligator that had a lot of teeth" ... teeth that just might enjoy chomping on human flesh. It's said to dwell in the fresh, brilliantly blue waters of Bear Lake, which enjoys a reputation as "the Caribbean of the Rockies," and its history is tied to both the American Indians and the early Mormon settlers who populated the area in the mid-19th century.
Advertisement
According to an 1868 Deseret News article quoted on the Bear Lake Chamber of Commerce's website,
The Indians have a tradition concerning a strange, serpent-like creature inhabiting the waters of Bear Lake, which they say carried off some of their braves many moons ago. Since then, they will not sleep close to the lake. Neither will they swim in it, nor let their squaws and papooses bathe in it.
The article goes on to recount contemporaneous sightings, which classed the creature as "not less than 40 feet in length" and traveling "a mile a minute." Years later, the man who wrote the article admitted he'd made the whole thing up ... but the tall tale had already taken root. A boat-rental business owner claimed to have seen the Bear Lake Monster in 2002, although whether that was a genuine close encounter or a clever bid for business is somewhat less of a mystery than the creature itself. Image via Animal Planet.
Advertisement
2. The Beast of Bladenboro, North Carolina
Was it a vampire killer from hell, roaming the early nights of 1954 with an insatiable thirst for blood (in the form of pet dogs)? Was it "part bear and part panther, three to four feet long, 20 inches high, weighing 150 pounds, [with] bushy fur [and] runty ears with a long tail and a cat-like face"? Or was it, um, a random bobcat whose fearsomeness was just a wee bit inflated by the town mayor, who also happened to own the local movie theater and was apparently quite the William Castle-esque showman?
Advertisement
Whatever the real story, the Beast lives on in at the annual Beast of Bladenboro Festival, which this year featured live music, camel rides, collard sandwiches, a classic car show, and more. Image via Cryptid Wikia.
3. Dogman, Michigan
All you need to know is contained in the following spoken-word-over-flute-music ditty, which breaks down the best-known sightings of the werewolf-like creature known as the Michigan Dogman. It became an unexpected local hit in 1987 for radio DJ Steve Cook, who recorded it as an April Fool's prank.
In 2010, the creature gained more notoriety as a subject on the History Channel's MonsterQuest, a show that dramatically doles out lie-detector tests to folks who've allegedly seen the beast in question ("Are you lying about seeing those hairy creatures?" [Pause.] "No.") Someone also went to the trouble of making a film documenting a sighting of the creature, dubbed "The Gable Film," which was, alas, later revealed to be a hoax.
Advertisement
4. Wampus Cat, American Southeast
This is the only cryptozoological creature on this list that also serves as a mascot for multiple sports teams (pictured at left, a version used at a high school in Conway, Arkansas ... we wouldn't want to tangle with that thing on a football field, or anywhere for that matter). The cougar-esque Wampus Cat has a wider geographical range than most, but is closely tied to Tennessee folklore, with stories dating back to Native American legends.
Advertisement
It's been described as "half-woman, half-cat, and all-terrorizing — the cat kills animals, steals children and smells like a mixture of skunk and wet dog." Um, yuck. Naturally, the Wampus Cat has had its own moment in the excessively popular monster-hunting-TV realm, on an episode of Destination America's Mountain Monsters.
5. Thetis Lake Monster, British Columbia, Canada
Advertisement
This creature's classification is sorta a more sinister spin on the Creature from the Black Lagoon, described by American Monsters as "a grisly aberration of natural selection with an epidermis consisting solely of silver, fish-like scales. This animal's horrifying visage is made complete by the six, razor-sharp spikes said to protrude from its amphibious skull."
His (?) alternate name is "Canadian Lizard Man," and sightings began and ended in 1972, thanks to a party pooper who admitted his pet Tegu lizard (four feet long and chock full o' bad attidude) had slipped out and was probably the strange critter that was freaking everybody out around the lake. That was enough explanation for local law enforcement to close the case, though as the Crypted Wikia hopefully points out, "many locals still believe that the Thetis Lake Lizard Man is still alive in the lake." Image via American Monsters; credited to Chris Wisnia with Daniel Loxton for Skeptic magazine.
6. Jersey Devil, New Jersey
No less an authority than seminal travel journal Weird NJ will have you know that "without a doubt, New Jersey's oldest, most enduring, and important pieces of folklore is the tale of the infamous Jersey Devil." The Devil has been slinking around the state's Pine Barrens for nearly 300 years, making it one of America's most enduring cryptozoological phenomenons.
Advertisement
The origin story involves an unwittingly wished-into-being devil baby, circa 1735, that raged straight out of infancy into woods-haunting creature; it was spotted here and there in the 18th and 19th centuries, with a key incident occuring in January 1909. Weird NJ describes the panic that broke out when residents found peculiar footprints in the Delaware Valley snow:
Panic immediately began to spread, and posses formed in more than one town. Fear and intrigue grew even greater when it was reported that bloodhounds refused to follow the unidentified creature's trail in Hammonton. Schools closed or suffered low attendance throughout lower NJ and in Philadelphia. Mills in the Pine Barrens were forced to close when workers refused to leave their homes and travel through the woods to get to their jobs. Eyewitnesses spotted the beast in Camden and in Bristol, Pennsylvania, and in both cities police fired on it but did not manage to bring it down. Firemen turned their hose upon it, but it attacked them and then flew away. The entire week people reported that their livestock, particularly their chickens, were being slaughtered. The marauding misanthrope reappeared later in the week in Camden, where a local woman found the beast attempting to eat her dog. She hit it with a broomstick and it flew away.
Advertisement
The pesky monster was never brought to justice, but it has continued to infiltrate weird and popular culture, as well as the world of sports, thanks to NHL team the New Jersey Devils.
7. Champ, Lake Champlain, New York
Champ (or "Champy," if you're feeling casual), is said to inhabit the waters of the largest lake in Upstate New York's Adirondacks. The official Lake Champlain Region website offers a brief history lesson, noting that both the local Abenaki and Iroquois tribes had lake-creature legends, and giving a shout out to the lake's namesake, 17th century explorer Samuel de Champlain, who reported seeing unusually large fish in his journals (albeit nothing terribly monstrous).
Advertisement
Champ's reputation grew with sightings in the 1800s; in 1819, a sea captain with astonishingly vivid recall, or more likely imagination, spotted "a black monster, about 187 feet long, and with a head that reared over 15 feet out of the water ... [with] three teeth, eyes the color of an onion, a white star on its forehead, and a belt of red around the neck."
The creature put in multiple appearances in 1873, inspiring P. T. Barnum to promise $50,000 to anyone able to capture the beast. (Alas, nobody stepped forward to collect the reward.) Over 100 years later, a family on holiday produced a much-analyzed photo said to capture "America's Loch Ness Monster" in action. Thanks to that image, and because it's simply more fun to suspect that one's vacation spot just might be home to an unknown creature, Champ fever continues in the area; as recently as November 2014, a team of cryptozoologists claimed to have made recordings of the underwater beast.
Advertisement
But the Lake Champlain region's website notes, the creature enjoys tongue-in-cheek legal protection from the bordering states of Vermont and New York ... so any 21st century wannabe Barnums are out of luck. Image via Lakechamplainregion.com.
8. Mothman, West Virginia
The Mothman went Hollywood in 2002's The Mothman Prophecies, bringing the foreboding winged creature to the attention of Richard Gere fans the world over. That the Mothman tales are tied to a real-life tragedy makes the story even more poignant, and eerie.
The first sighting was November 15, 1966, and inspired the following immortal headline in local rag the Point Pleasant Register: "Couples See Man-Sized Bird...Creature...Something."
Advertisement
According to Prairie Ghosts, the sightings continued into 1967; author Joel Keel, who wrote the book that served as the basis for the Gere film, estimated that "at least 100 people personally witnessed the creature between November 1966 and November 1967." The Mothman was said to be "between five and seven feet tall, wider than a man, and shuffled on human-like legs. Its eyes were set near the top of the shoulders and had bat-like wings that glided, rather than flapped, when it flew. Witnesses also described its murky skin as being either gray or brown and it emitted a humming sound when it flew."
True believers say the Mothman's raison d'être became clear December 15, 1967, when the Silver Bridge, a suspension span over the Ohio River that connected West Virginia and Ohio, collapsed during rush hour; 46 people perished. Though the official story was that the bridge was simply old and overloaded, the timing of the Mothman's appearance and the disaster is too tempting of a coincidence for many to ignore.
The jury's out on whether the creature was warning the people of Point Pleasant about the impending collapse, or whether he was the cause of it. At any rate, it doesn't seem like the town holds a grudge, considering it's home to a Mothman museum, statue, and annual festival. Who says paranormal activity is bad for business?
Advertisement
9. Lizard Man of Scape Ore Swamp, South Carolina
Destination America's Monsters and Mysteries offered this chillingly cheesyre-enactment of The Night Chris Davis Met the Lizard Man of Scape Ore Swamp.
A teenager at the time of his encounter, Davis became a cryptozoological celebrity of sorts; coverage of his tragic 2009 death made great mention of his involvement in Scape Ore Swamp's greatest mystery.
Advertisement
Top image of Jersey Devil by Ryan Doan via Weird New Jersey. |
import { createIcon } from '../core';
/**
* remixicon bank-fill
*/
export default createIcon('bank-fill', {
"viewBox": "0 0 24 24",
"paths": [
{
"d": "M0 0h24v24H0z",
"fill": "none"
},
{
"d": "M2 20h20v2H2v-2zm2-8h2v7H4v-7zm5 0h2v7H9v-7zm4 0h2v7h-2v-7zm5 0h2v7h-2v-7zM2 7l10-5 10 5v4H2V7zm10 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"
}
]
});
|
Judicial Examination of Complainants in Sexual Offense Cases Abstract This article concerns the ideal legal arrangement with respect to cross-examining complainants in sexual assault cases regarding their sexual history. The article examines the question of under what circumstances the complainants sexual history could be seen as as logically relevant. It also deals with finding the balance between, on the one hand, the interests of protecting the defendant and pursuing truth, which require cross-examination regarding the complainants sexual history, and on the other hand, the interest of protecting the complainants dignity and welfare. |
<reponame>network-dev/MinecraftAntiCheat
package me.sendpacket.anticheat.anticheat.Analyzer;
import org.bukkit.entity.Player;
import java.util.ArrayList;
public class AnalyzePlayer {
public AnalyzePlayer(Player p)
{
this.player = p;
}
public ArrayList<AnalyzeData> Data = new ArrayList<>();
public Player player;
}
|
Effect of Intravenous Hydrocortisone on Preventing Postoperative Sore Throat Followed by Laryngeal Mask Airway Use in patients Undergoing Urogenital Surgeries. INTRODUCTION Postoperative sore throat is a common complication which can lead to discomfort after operation and delay in patients' returning to normal daily activities. The present study was carried out to evaluate the influence of intravenous hydrocortisone on preventing postoperative sore throat followed by laryngeal mask airway use. METHODS Sixty patients who were scheduled to undergo urogenital surgery were divided into two groups. Five minutes before anesthesia induction, 100 mg of intravenous hydrocortisone or placebo with the same volume were given to the patients randomly. At the end of the operation and after LMAs were removed, patients were asked about having sore throat at hours 2, 4 and 24 after operation. RESULTS There were three and six cases of sore throat after operation in hydrocortisone and in placebo groups respectively which showed no significant statistical difference (P=0.472). No cases of moderate or severe pain were reported in any of the patients in both groups and no statistically significant difference was observed regarding pain severity in recovery, hours 2, 4 or 24 after operation. CONCLUSION Based on the statistical data obtained from this research, administrating intravenous hydrocortisone five minutes before anesthesia induction has no effect on postoperative sore throat severity and degree in urogenital surgeries. |
Modern network interface controller devices feature multiple direct memory access (DMA) channels. In emerging virtualized systems with multi-core, multi-operating system (OS), and/or multi-application architectures, this type of network interface controller allows multiple DMA drivers and/or applications to manage their own DMA resources.
However, the DMA channels in these devices usually share some common resources and, due to such sharing, cannot be independently reset and/or restarted. In the event that for a particular DMA channel, the DMA channel hardware, driver, or attached application needs to be reconfigured or if the software being supported by that DMA channel crashes, there is no graceful way to recover without impacting all users and software associated with all the DMA channels of the network interface controller's DMA services. In the worst case, the entire system can be reset and rebooted from scratch. These devices do not support or provide the desired performance of resetting or restarting a single DMA channel without impacting operations of other DMA channels. |
Cranial ultrasound prediction of disabling and nondisabling cerebral palsy at age two in a low birth weight population. OBJECTIVE To employ multivariate analytic techniques to assess the association between neonatal cranial ultrasound (US) abnormalities and subsequent cerebral palsy (CP), defined as disabling CP (DCP) or nondisabling CP (NDCP) depending on the level of motor dysfunction. DESIGN Prospective cohort study. SUBJECTS AND METHODS The Neonatal Brain Hemorrhage Study enrolled a geographically representative sample of 1105 newborns 501 to 2000 g and obtained follow-up data on 777 (86%) of the 901 survivors at age two. One hundred thirteen children (14.6%) had motor findings severe enough to classify them as having CP. The 61 (7.9%) of these children who were disabled by their motor impairment we classified as having DCP. The remaining 52 (6.7%) who had definite neurologic findings (usually mild spastic diplegia) but without evidence of interference with daily living, we classified as having NDCP. RESULTS In a multivariate logistic regression model of perinatal and postnatal variables, the following factors were found to be significant risk factors for DCP: parenchymal echodensities/lucencies or ventricular enlargement (PEL/VE) on cranial US (OR = 15.4; 7.6, 31.1), germinal matrix/intraventricular hemorrhage (GM/IVH) (OR = 3.5; 1.7, 6.9) and mechanical ventilation (OR = 2.9; 1.2, 7.1). Fully 93.4% of infants were correctly classified as to presence or absence of DCP on the basis of this model. Birth weight, gestational age, length of hospital stay, gender, race, plurality, presence of labor and Apgar score were not significant independent predictors of DCP. For NDCP, the only risk factor significant in the multivariate model was PEL/VE (OR = 5.3; 2.2, 12.6). CONCLUSIONS Among perinatal and postnatal factors, cranial US abnormalities are by far the most powerful predictors of disabling CP in low birth weight infants. Although PEL/VE was the strongest predictor, GM/IVH also appeared to independently contribute to the risk of DCP. NDCP in low birth weight infants appears to have a different risk profile than DCP. In particular, it is less closely related to US evidence of perinatal brain injury. |
package main
import (
"log"
"github.com/mike955/zrpc/cmd/zrpc/new"
"github.com/spf13/cobra"
)
var (
version string = "v0.0.1-alpha1"
rootCmd = &cobra.Command{
Use: "zrpc",
Short: "zrpc: An cli tookkit for zrpc framework (a mini go framework)",
Long: "zrpc: An cli tookkit for zrpc framework (a mini go framework)",
Version: version,
}
)
func init() {
rootCmd.AddCommand(new.CmdNew)
}
func main() {
if err := rootCmd.Execute(); err != nil {
log.Fatal(err)
}
}
|
SAN FRANCISCO (AFP) - Apple said on Tuesday (Oct 27) that surging iPhone sales helped propel a sharp rise in quarterly profits, as the tech giant delivered a record 48 million of the smartphones.
Profits rose 31 per cent to US$11.1 billion, while revenues jumped 22 per cent from a year ago to US$51.5 billion, Apple said.
The US tech giant, which in September unveiled revamped versions of the iPhone, said the number of units sold jumped 22 per cent from last year while revenues lifted 36 per cent.
Apple, the world's biggest company by market value, gave back early after-hours gains and dipped 0.2 per cent to US$114.30 on the results.
Chief executive Tim Cook said Apple closed the books on its fiscal year, calling it "Apple's most successful year ever," following strong iPhone sales and a range of new or upgraded devices.
"We are heading into the holidays with our strongest product lineup yet, including iPhone 6s and iPhone 6s Plus, Apple Watch with an expanded lineup of cases and bands, the new iPad Pro and the all-new Apple TV, which begins shipping this week," Mr Cook said in a statement.
For the full fiscal year ending in September, Apple booked a whopping US$53.4 billion profit, up 35 per cent, while revenues rose 28 per cent to US$233.7 billion.
Some US$12.5 billion in revenue came from China - down five per cent from the past quarter but double the level of a year ago.
Mr Cook said the fiscal year showed "our largest absolute revenue growth ever" and was helped by "huge inroads into emerging markets generating over US$79 billion of revenue and growing 63 per cent despite very strong headwinds from foreign exchange."
The iPhone was the key driver for Apple, bringing in more than 60 per cent of its revenues for the past quarter. But iPad unit sales fell 20 per cent in the quarter to 9.9 million units.
For its traditional computers, Apple sold an all-time record 5.7 million Macs in the quarter.
No specific sales figures were given for the Apple Watch, but the results showed revenue from "other" products was US$3 billion over the same period.
Mr Cook said of the Apple Watch that "we're in the very early innings of this promising new part of our business."
Apple Watch "has already had a tremendous effect on customer health and fitness and the stories we're hearing about its impact are truly inspirational," he added.
Apple is making efforts to diversify with services such as its streaming music service and Apple Pay, and its new streaming television devices.
"The reach of our ecosystem continues to grow, and iOS is changing more and more aspects of our customers lives in very meaningful ways from their health to their homes to their cars," Mr Cook said on the earnings call.
He added that Apple Pay is expected to expand to Hong Kong, Singapore and Spain in 2016.
Mr Cook visited China last week and said Apple will continue to invest in the country despite slowing growth in the world's second-largest economy.
The launch of the company's large-screen iPhone 6 and iPhone 6 Plus last year boosted its sales in China, though it faces sharp competition from domestic competitors such as Xiaomi and Huawei.
On his Chinese Sina Weibo - or microblog - account, Mr Cook posted a photo of himself climbing the Great Wall and said he was "Happy to be back" in China.
The US company was due to open its 21st mainland China store in the northeastern city of Dalian.
Apple aims to have 40 stores in China by next year. |
/// Given the first byte, parse an integer encoded after the 3-bit tag,
/// read more bytes from stream if needed.
fn read_word(&mut self, reader: &mut BinaryReader, b: u8) -> RtResult<Term> {
if 0 == (b & 0b1000) {
// Bit 3 is 0 marks that 4 following bits contain the value
return Ok(Term::make_small_signed((b as isize) >> 4));
}
// Bit 3 is 1, but...
if 0 == (b & 0b1_0000) {
// Bit 4 is 0, marks that the following 3 bits (most significant) and
// the following byte (least significant) will contain the 11-bit value
let r = ((b as usize) & 0b1110_0000) << 3 | (reader.read_u8() as usize);
Ok(Term::make_small_signed(r as isize))
} else {
// Bit 4 is 1 means that bits 5-6-7 contain amount of bytes+2 to store
// the value
let mut n_bytes = (b >> 5) as Word + 2;
if n_bytes == 9 {
// bytes=9 means upper 5 bits were set to 1, special case 0b11111xxx
// which means that following nested tagged value encodes size,
// followed by the bytes (Size+9)
let bnext = reader.read_u8();
let tmp = self.read_word(reader, bnext)?;
if tmp.is_small() {
n_bytes = tmp.get_small_unsigned() + 9;
} else {
panic!("{}read word encountered a wrong byte length", module())
}
}
// Read the remaining big endian bytes and convert to int
let long_bytes = reader.read_bytes(n_bytes)?;
let sign = if long_bytes[0] & 0x80 == 0x80 {
Sign::Negative
} else {
Sign::Positive
};
// Check if bytes are few enough to fit into a small integer
// TODO: Can also do this when the length is equal to WORD_BYTES but then must check last byte bits to fit
if long_bytes.len() < defs::WORD_BYTES {
return Self::bytes_to_small(sign, &long_bytes);
}
let limbs = big::make_limbs_from_bytes(Endianness::Little, long_bytes);
debug_assert!(
!limbs.is_empty(),
"Limbs vec can't be empty for creating a bigint"
);
let r = unsafe { boxed::Bignum::create_into(&mut (*self.heap), sign, &limbs)? };
println!("Creating bigint with {:?}", limbs);
Ok(Term::make_boxed(r))
} // if larger than 11 bits
} |
<filename>examples/tracker/src/utils.py<gh_stars>0
import numpy as np
import re
import matplotlib.pyplot as plt
from scipy.stats import multivariate_normal
import sklearn
from sklearn.decomposition import PCA,KernelPCA
eps=1e-10
def get_boxes_all(gt_path):
try:
gt_str=np.loadtxt(gt_path,dtype=str,delimiter='\n')
gt_boxes=map(lambda x:map(float,re.split('[, \t]',x)),gt_str)
gt_boxes=np.array(gt_boxes,dtype=float)
gt_boxes[:,2:]=gt_boxes[:,:2]+gt_boxes[:,2:] #(x1,y1,w,h)->(x1,y1,x2,y2)
except IOError:
print 'Fail to open ',gt_path
return gt_boxes
# bbox: (x1,y1,x2,y2)
def bbox_to_states_m(bbox, area, ratio):
'''(x1,y1,x2,y2)->(cx,cy,s,r,dcx,dcy)'''
bbox = bbox.reshape((-1, 4))
# np.save('bbox.npy',bbox)
box_w = bbox[:, 2] - bbox[:, 0]
box_h = bbox[:, 3] - bbox[:, 1]
cx = bbox[:, 0] + box_w / 2
cy = bbox[:, 1] + box_h / 2
s = box_w * box_h / area
#print box_w / (box_h + eps)
#print ratio
r = np.log(box_w / (box_h + eps) + eps) / np.log(ratio)
states = np.zeros((bbox.shape[0], 6))
states[:, 0:4] = np.vstack((cx, cy, s, r)).transpose()
return states
# bbox: (x1,y1,x2,y2)
def bbox_to_states(bbox, area, ratio):
'''(x1,y1,x2,y2)->(cx,cy,s,r,dcx,dcy)'''
bbox = bbox.reshape((-1, 4))
# np.save('bbox.npy',bbox)
box_w = bbox[:, 2] - bbox[:, 0]
box_h = bbox[:, 3] - bbox[:, 1]
cx = bbox[:, 0] + box_w / 2
cy = bbox[:, 1] + box_h / 2
s = box_w * box_h / area
#print box_w / (box_h + eps)
#print ratio
r = box_w/(box_h+eps)/ratio
states = np.zeros((bbox.shape[0], 6))
states[:, 0:4] = np.vstack((cx, cy, s, r)).transpose()
return states
def state_to_bbox_m(state, area, ratio):
'''(cx,cy,s,r,dcx,dcy)->(x1,y1,x2,y2)'''
state=state.reshape((-1,6))
s = state[:, 2] * area
# print s
r = np.power(ratio, state[:, 3])
# print r
box_w = np.sqrt(r * s)
# print box_w
box_h = np.sqrt(s / (r + eps))
# print box_h
x1 = state[:, 0] - box_w / 2
y1 = state[:, 1] - box_h / 2
x2 = state[:, 0] + box_w / 2
y2 = state[:, 1] + box_h / 2
bbox = np.vstack((x1, y1, x2, y2)).transpose()
# print bbox
return bbox
def state_to_bbox(state, area, ratio):
'''(cx,cy,s,r,dcx,dcy)->(x1,y1,x2,y2)'''
state=state.reshape((-1,6))
s = np.maximum(eps,state[:,2])* area
# print s
r = np.maximum(eps,state[:,3])*ratio
# print r
box_w = np.sqrt(r * s)
# print box_w
box_h = np.sqrt(s / (r + eps))
# print box_h
x1 = state[:, 0] - box_w / 2
y1 = state[:, 1] - box_h / 2
x2 = state[:, 0] + box_w / 2
y2 = state[:, 1] + box_h / 2
bbox = np.vstack((x1, y1, x2, y2)).transpose()
# print bbox
return bbox
def calc_iou(gt_box, pred_box):
'''gt_box: (1,4) pred_box: (N,4)'''
gt_box = gt_box.reshape((1, 4))
iou = np.zeros((pred_box.shape[0], 1))
x1 = np.maximum(gt_box[:, 0], pred_box[:, 0])
x2 = np.minimum(gt_box[:, 2], pred_box[:, 2])
y1 = np.maximum(gt_box[:, 1], pred_box[:, 1])
y2 = np.minimum(gt_box[:, 3], pred_box[:, 3])
intersection = np.maximum(0, x2 - x1) * np.maximum(0, y2 - y1)
union = (gt_box[:, 2] - gt_box[:, 0]) * (gt_box[:, 3] - gt_box[:, 1]) + (pred_box[:, 2] - pred_box[:, 0]) * (
pred_box[:, 3] - pred_box[:, 1])
intersection = intersection.astype(np.float)
iou = intersection / (union - intersection + eps)
return iou
def calc_iou_all(gt_box, pred_box):
'''gt_box: (1,4) pred_box: (N,4)'''
iou = np.zeros((pred_box.shape[0], 1))
x1 = np.maximum(gt_box[:, 0], pred_box[:, 0])
x2 = np.minimum(gt_box[:, 2], pred_box[:, 2])
y1 = np.maximum(gt_box[:, 1], pred_box[:, 1])
y2 = np.minimum(gt_box[:, 3], pred_box[:, 3])
intersection = np.maximum(0, x2 - x1) * np.maximum(0, y2 - y1)
union = (gt_box[:, 2] - gt_box[:, 0]) * (gt_box[:, 3] - gt_box[:, 1]) + (pred_box[:, 2] - pred_box[:, 0]) * (
pred_box[:, 3] - pred_box[:, 1])
intersection = intersection.astype(np.float)
iou = intersection / (union - intersection + eps)
return iou
def restrict_box(boxes,w,h):
'''box: (x1,y1,x2,y2)'''
if len(boxes.shape)==1:
boxes[0]=np.minimum(np.maximum(0,boxes[0]),w)
boxes[2]=np.minimum(np.maximum(0,boxes[2]),w)
boxes[1]=np.minimum(np.maximum(0,boxes[1]),h)
boxes[3]=np.minimum(np.maximum(0,boxes[3]),h)
else:
boxes[:,0]=np.minimum(np.maximum(0,boxes[:,0]),w)
boxes[:,2]=np.minimum(np.maximum(0,boxes[:,2]),w)
boxes[:,1]=np.minimum(np.maximum(0,boxes[:,1]),h)
boxes[:,3]=np.minimum(np.maximum(0,boxes[:,3]),h)
return boxes
def vis_as_image(features):
'''features: [nsamples,nfeature]'''
N=features.shape[0]
#fig=plt.figure(0,figsize=(10,10))
'''
plt.subplot(121)
plt.imshow(features[:N/2])
plt.subplot(122)
plt.imshow(features[N/2:])
'''
plt.imshow(features)
plt.title("PCA features")
plt.show()
plt.close()
def vis_features(features,id):
'''features: {'f3': ,'f4': ,'f5': },value shape: (nbox,channel,height,width'''
def callback(event):
if event.key=='c':
plt.close(fig)
nbox=features['f3'].shape[0]
for i in range(nbox):
if i%50==0:
data_box=features['f3'][i] #box0:(channel,height,width)
data_box=data_box.reshape((256,7,7))
#normalize data for display
data_box=(data_box-data_box.min())/(data_box.max()-data_box.min())
n=int(np.ceil(np.sqrt(data_box.shape[0])))
padding=(((0,n**2-data_box.shape[0]),(0,1),(0,1))+((0,0),)*(data_box.ndim-3))
data_box=np.pad(data_box,padding,mode='constant',constant_values=1)
data_box=data_box.reshape((n,n)+data_box.shape[1:]).transpose((0,2,1,3)+tuple(range(4,data_box.ndim+1)))
data_box=data_box.reshape((n*data_box.shape[1],n*data_box.shape[3])+data_box.shape[4:])
fig=plt.figure(1)
fig.canvas.mpl_connect('key_press_event',callback)
plt.imshow(data_box)
plt.title("particles %d, conv3"%i)
plt.axis('off')
plt.show()
#plt.pause(3)#wait for 3 seconds
data_box=features['f4'][i] #box0:(channel,height,width)
data_box=data_box.reshape((512,7,7))
#normalize data for display
data_box=(data_box-data_box.min())/(data_box.max()-data_box.min())
n=int(np.ceil(np.sqrt(data_box.shape[0])))
padding=(((0,n**2-data_box.shape[0]),(0,1),(0,1))+((0,0),)*(data_box.ndim-3))
data_box=np.pad(data_box,padding,mode='constant',constant_values=1)
data_box=data_box.reshape((n,n)+data_box.shape[1:]).transpose((0,2,1,3)+tuple(range(4,data_box.ndim+1)))
data_box=data_box.reshape((n*data_box.shape[1],n*data_box.shape[3])+data_box.shape[4:])
fig=plt.figure(1)
fig.canvas.mpl_connect('key_press_event',callback)
plt.imshow(data_box)
plt.title("particles %d, conv4"%i)
plt.axis('off')
plt.show()
data_box=features['f5'][i] #box0:(channel,height,width)
data_box=data_box.reshape((512,7,7))
#normalize data for display
data_box=(data_box-data_box.min())/(data_box.max()-data_box.min())
n=int(np.ceil(np.sqrt(data_box.shape[0])))
padding=(((0,n**2-data_box.shape[0]),(0,1),(0,1))+((0,0),)*(data_box.ndim-3))
data_box=np.pad(data_box,padding,mode='constant',constant_values=1)
data_box=data_box.reshape((n,n)+data_box.shape[1:]).transpose((0,2,1,3)+tuple(range(4,data_box.ndim+1)))
data_box=data_box.reshape((n*data_box.shape[1],n*data_box.shape[3])+data_box.shape[4:])
fig=plt.figure(1)
fig.canvas.mpl_connect('key_press_event',callback)
plt.imshow(data_box)
plt.title("particles %d, conv5"%i)
plt.axis('off')
plt.show()
def calc_pdf(gt_box, pred_boxes, s):
w = gt_box[2] - gt_box[0]
h = gt_box[3] - gt_box[1]
d = np.array([[w * w, 0, 0, 0], [0, h * h, 0, 0], [0, 0, w * w, 0], [0, 0, 0, h * h]], dtype=np.float32)
s = 0.01
cov = d * s
pdf = multivariate_normal.pdf(pred_boxes, mean=gt_box, cov=cov)
return pdf
def save_box(gt_box,pred_boxes,pdf,name):
'''(x1,y1,x2,y2,pdf,x1_g,y1_g,x2_g,y2_g)'''
N=pred_boxes.shape[0]
pdf=pdf.reshape((N,1))
#scale pdf to (0,100)
p_min=np.min(pdf)
p_max=np.max(pdf)
pdf_n=(pdf-p_min)/(p_max-p_min)*100
g_rep=np.tile(gt_box,N).reshape((N,4))
box_all=np.hstack([pred_boxes,pdf_n,g_rep])
#print box_all[:5]
np.save(name,box_all)
def calc_pca(features):
'''features: [nsamples,feature_dim]'''
mean_val=np.mean(features,axis=0)
features=features-mean_val
cov=np.cov(features,rowvar=False)
eigvalue,eigvector=np.linalg.eig(cov)
ind=np.argsort(-eigvalue)
#print type(ind)
eigvalue=eigvalue[ind[0]]
eigvector=eigvector[:,ind[0]]
def skl_pca(features):
'''do PCA using sklearn.PCA'''
need_norm=1 #whether should normalize first
if need_norm==1:
#mean=0,unit covariance
features=sklearn.preprocessing.scale(features,axis=0,with_mean=True,with_std=True)
if need_norm==2:
#normalize to [0,1]
min_perfeat=np.min(features,axis=0)
max_perfeat=np.max(features,axis=0)
features=(features-min_perfeat)/(max_perfeat-min_perfeat+eps)
pca=PCA(n_components=0.95,svd_solver='full',whiten=False)#whiten=True,perform whiten,0.95
pca.fit(features)
print 'PCA components: %d'%pca.n_components_
#print pca.explained_variance_
#print pca.explained_variance_ratio_
return pca
def skl_pca2(features):
'''do PCA using sklearn.PCA'''
need_norm=1 #whether should normalize first
if need_norm==1:
#mean=0,unit covariance
scaler=sklearn.preprocessing.StandardScaler(with_mean=True,with_std=True)
scaler.fit(features)
features=scaler.transform(features)
#features=sklearn.preprocessing.scale(features,axis=0,with_mean=True,with_std=True)
if need_norm==2:
#normalize to [0,1]
min_perfeat=np.min(features,axis=0)
max_perfeat=np.max(features,axis=0)
features=(features-min_perfeat)/(max_perfeat-min_perfeat+eps)
pca=PCA(n_components=0.9,svd_solver='full',whiten=False)#whiten=True,perform whiten,0.9 , 'full'
pca.fit(features)
print 'PCA components: %d'%pca.n_components_
#print pca.explained_variance_
#print pca.explained_variance_ratio_
return pca,scaler,pca.n_components_
def skl_pca_noscale(features):
'''do PCA using sklearn.PCA'''
pca=PCA(n_components=0.9,svd_solver='full',whiten=False)#whiten=True,perform whiten,0.9 , 'full',128
pca.fit(features)
print 'PCA components: %d'%pca.n_components_
#print pca.explained_variance_
#print pca.explained_variance_ratio_
return pca,pca.n_components_
def skl_Kpca_noscale(features):
'''do PCA using sklearn.PCA'''
pca=KernelPCA(n_components=128,kernel='rbf')#whiten=True,perform whiten,0.9 , 'full',128
pca.fit(features)
#print 'PCA components: %d'%pca.n_components_
#print pca.explained_variance_
#print pca.explained_variance_ratio_
return pca
def skl_modelselect(features,labels):
lsvc=sklearn.svm.LinearSVC(C=0.01,penalty='l1',dual=True).fit(features,labels)#nsamples<nfeatures
model=sklearn.feature_selection.SelectFromModel(lsvc,prefit=True)
features_new=model.transform(features)
print features_new.shape
def calc_prec(gt_box,pred_box):
'''Calculate precision for a series of distances thresholds(percentage of frames where
the distance to the gt_box is within the threshold. gt_box and pred_box are all Nx2
'''
max_threshold=50
#gt_box=gt_box[1:,...]
precisions=np.zeros((max_threshold,1),dtype=np.float32)
N=np.minimum(gt_box.shape[0],pred_box.shape[0])
c_box=np.zeros((N,2),dtype=np.float32)
c_box[:N,0]=pred_box[:N,0]+(pred_box[:N,2]-pred_box[:N,0])/2.0
c_box[:N,1]=pred_box[:N,1]+(pred_box[:N,3]-pred_box[:N,1])/2.0
g_box = np.zeros((N, 2), dtype=np.float32)
g_box[:N, 0] = gt_box[:N, 0] + (gt_box[:N, 2] - gt_box[:N, 0]) / 2.0
g_box[:N, 1] = gt_box[:N, 1] + (gt_box[:N, 3] - gt_box[:N, 1]) / 2.0
distances=np.zeros((N,),dtype=np.float32)
distances[:]=np.sqrt(np.square(c_box[:N,0]-g_box[:N,0])+np.square(c_box[:N,1]-g_box[:N,1]))
for i in range(max_threshold):
precisions[i]=np.where(distances<=(i+1))[0].shape[0]/float(N)
auc=np.sum(precisions)/float(max_threshold)
return precisions,auc
def calc_success(iou):
N=101
n_iou=iou.shape[0]
suc=np.zeros((N,),dtype=np.float32)
x=np.linspace(0,1.0,N)
for i in range(N):
suc[i]=np.where(iou>=x[i])[0].shape[0]/float(n_iou)
auc=np.sum(suc)/float(N)
return suc,auc |
Ultrasound Perfusion Imaging of the BrainRoutine and Novel Applications: Uncommon Cases and Review of the Literature We present 3 cases of uncommon neurovascular constraints in which ultrasound perfusion imaging (UPI) and pwMRI displayed according pathological findings. The results are discussed in the light of a recapitulatory review of the literature and underline the diagnostic potential of the method and the necessity of an expanded multicentre evaluation. It would be desirable to consolidate the different approaches of UPI to achieve one commonly applicable method with the aim of gaining a novel tool for prehospital stroke diagnosis. |
<gh_stars>10-100
#include "tests/gtest/gtest.h"
#include <cmath>
#include <functional>
#include "pbrt.h"
#include "rng.h"
#include "shape.h"
#include "lowdiscrepancy.h"
#include "sampling.h"
#include "shapes/cone.h"
#include "shapes/cylinder.h"
#include "shapes/disk.h"
#include "shapes/paraboloid.h"
#include "shapes/sphere.h"
#include "shapes/triangle.h"
using namespace pbrt;
static Float pExp(RNG &rng, Float exp = 8.) {
Float logu = Lerp(rng.UniformFloat(), -exp, exp);
return std::pow(10, logu);
}
static Float pUnif(RNG &rng, Float range = 10.) {
return Lerp(rng.UniformFloat(), -range, range);
}
TEST(Triangle, Watertight) {
RNG rng(12111);
int nTheta = 16, nPhi = 16;
ASSERT_GE(nTheta, 3);
ASSERT_GE(nPhi, 4);
// Make a triangle mesh representing a triangulated sphere (with
// vertices randomly offset along their normal), centered at the
// origin.
int nVertices = nTheta * nPhi;
std::vector<Point3f> vertices;
for (int t = 0; t < nTheta; ++t) {
Float theta = Pi * (Float)t / (Float)(nTheta - 1);
Float cosTheta = std::cos(theta);
Float sinTheta = std::sin(theta);
for (int p = 0; p < nPhi; ++p) {
Float phi = 2 * Pi * (Float)p / (Float)(nPhi - 1);
Float radius = 1;
// Make sure all of the top and bottom vertices are coincident.
if (t == 0)
vertices.push_back(Point3f(0, 0, radius));
else if (t == nTheta - 1)
vertices.push_back(Point3f(0, 0, -radius));
else if (p == nPhi - 1)
// Close it up exactly at the end
vertices.push_back(vertices[vertices.size() - (nPhi - 1)]);
else {
radius += 5 * rng.UniformFloat();
vertices.push_back(
Point3f(0, 0, 0) +
radius * SphericalDirection(sinTheta, cosTheta, phi));
}
}
}
EXPECT_EQ(nVertices, vertices.size());
std::vector<int> indices;
// fan at top
auto offset = [nPhi](int t, int p) { return t * nPhi + p; };
for (int p = 0; p < nPhi - 1; ++p) {
indices.push_back(offset(0, 0));
indices.push_back(offset(1, p));
indices.push_back(offset(1, p + 1));
}
// quads in the middle rows
for (int t = 1; t < nTheta - 2; ++t) {
for (int p = 0; p < nPhi - 1; ++p) {
indices.push_back(offset(t, p));
indices.push_back(offset(t + 1, p));
indices.push_back(offset(t + 1, p + 1));
indices.push_back(offset(t, p));
indices.push_back(offset(t + 1, p + 1));
indices.push_back(offset(t, p + 1));
}
}
// fan at bottom
for (int p = 0; p < nPhi - 1; ++p) {
indices.push_back(offset(nTheta - 1, 0));
indices.push_back(offset(nTheta - 2, p));
indices.push_back(offset(nTheta - 2, p + 1));
}
Transform identity;
std::vector<std::shared_ptr<Shape>> tris = CreateTriangleMesh(
&identity, &identity, false, indices.size() / 3, &indices[0], nVertices,
&vertices[0], nullptr, nullptr, nullptr, nullptr, nullptr);
for (int i = 0; i < 100000; ++i) {
RNG rng(i);
// Choose a random point in sphere of radius 0.5 around the origin.
Point2f u;
u[0] = rng.UniformFloat();
u[1] = rng.UniformFloat();
Point3f p = Point3f(0, 0, 0) + Float(0.5) * UniformSampleSphere(u);
// Choose a random direction.
u[0] = rng.UniformFloat();
u[1] = rng.UniformFloat();
Ray r(p, UniformSampleSphere(u));
int nHits = 0;
for (const auto &tri : tris) {
Float tHit;
SurfaceInteraction isect;
if (tri->Intersect(r, &tHit, &isect, false)) ++nHits;
}
EXPECT_GE(nHits, 1);
// Now tougher: shoot directly at a vertex.
Point3f pVertex = vertices[rng.UniformUInt32(vertices.size())];
r.d = pVertex - r.o;
nHits = 0;
for (const auto &tri : tris) {
Float tHit;
SurfaceInteraction isect;
if (tri->Intersect(r, &tHit, &isect, false)) ++nHits;
}
EXPECT_GE(nHits, 1) << pVertex;
}
}
std::shared_ptr<Triangle> GetRandomTriangle(std::function<Float()> value) {
// Triangle vertices
Point3f v[3];
for (int j = 0; j < 3; ++j)
for (int k = 0; k < 3; ++k) v[j][k] = value();
if ((Cross(v[1] - v[0], v[2] - v[0]).LengthSquared()) < 1e-20)
// Don't into trouble with ~degenerate triangles.
return nullptr;
// Create the corresponding Triangle.
static Transform identity;
int indices[3] = {0, 1, 2};
std::vector<std::shared_ptr<Shape>> triVec =
CreateTriangleMesh(&identity, &identity, false, 1, indices, 3, v,
nullptr, nullptr, nullptr, nullptr, nullptr);
EXPECT_EQ(1, triVec.size());
std::shared_ptr<Triangle> tri =
std::dynamic_pointer_cast<Triangle>(triVec[0]);
EXPECT_NE(tri.get(), nullptr);
return tri;
}
TEST(Triangle, Reintersect) {
for (int i = 0; i < 1000; ++i) {
RNG rng(i);
std::shared_ptr<Triangle> tri =
GetRandomTriangle([&]() { return pExp(rng); });
if (!tri) continue;
// Sample a point on the triangle surface to shoot the ray toward.
Point2f u;
u[0] = rng.UniformFloat();
u[1] = rng.UniformFloat();
Float pdf;
Interaction pTri = tri->Sample(u, &pdf);
// Choose a ray origin.
Point3f o;
for (int j = 0; j < 3; ++j) o[j] = pExp(rng);
// Intersect the ray with the triangle.
Ray r(o, pTri.p - o);
Float tHit;
SurfaceInteraction isect;
if (!tri->Intersect(r, &tHit, &isect, false))
// We should almost always find an intersection, but rarely
// miss, due to round-off error. Just do another go-around in
// this case.
continue;
// Now trace a bunch of rays leaving the intersection point.
for (int j = 0; j < 10000; ++j) {
// Random direction leaving the intersection point.
Point2f u;
u[0] = rng.UniformFloat();
u[1] = rng.UniformFloat();
Vector3f w = UniformSampleSphere(u);
Ray rOut = isect.SpawnRay(w);
EXPECT_FALSE(tri->IntersectP(rOut));
SurfaceInteraction spawnIsect;
Float tHit;
EXPECT_FALSE(tri->Intersect(rOut, &tHit, &isect, false));
// Choose a random point to trace rays to.
Point3f p2;
for (int k = 0; k < 3; ++k) p2[k] = pExp(rng);
rOut = isect.SpawnRayTo(p2);
EXPECT_FALSE(tri->IntersectP(rOut));
EXPECT_FALSE(tri->Intersect(rOut, &tHit, &isect, false));
}
}
}
// Computes the projected solid angle subtended by a series of random
// triangles both using uniform spherical sampling as well as
// Triangle::Sample(), in order to verify Triangle::Sample().
TEST(Triangle, Sampling) {
for (int i = 0; i < 30; ++i) {
const Float range = 10;
RNG rng(i);
std::shared_ptr<Triangle> tri =
GetRandomTriangle([&]() { return pUnif(rng, range); });
if (!tri) continue;
// Ensure that the reference point isn't too close to the
// triangle's surface (which makes the Monte Carlo stuff have more
// variance, thus requiring more samples).
Point3f pc{pUnif(rng, range), pUnif(rng, range), pUnif(rng, range)};
pc[rng.UniformUInt32() % 3] =
rng.UniformFloat() > .5 ? (-range - 3) : (range + 3);
// Compute reference value using Monte Carlo with uniform spherical
// sampling.
const int count = 512 * 1024;
int hits = 0;
for (int j = 0; j < count; ++j) {
Point2f u{RadicalInverse(0, j), RadicalInverse(1, j)};
Vector3f w = UniformSampleSphere(u);
if (tri->IntersectP(Ray(pc, w))) ++hits;
}
double unifEstimate = hits / double(count * UniformSpherePdf());
// Now use Triangle::Sample()...
Interaction ref(pc, Normal3f(), Vector3f(), Vector3f(0, 0, 1), 0,
MediumInterface{});
double triSampleEstimate = 0;
for (int j = 0; j < count; ++j) {
Point2f u{RadicalInverse(0, j), RadicalInverse(1, j)};
Float pdf;
Interaction pTri = tri->Sample(ref, u, &pdf);
EXPECT_GT(pdf, 0);
triSampleEstimate += 1. / (count * pdf);
}
// Now make sure that the two computed solid angle values are
// fairly close.
// Absolute error for small solid angles, relative for large.
auto error = [](Float a, Float b) {
if (std::abs(a) < 1e-4 || std::abs(b) < 1e-4)
return std::abs(a - b);
return std::abs((a - b) / b);
};
// Don't compare really small triangles, since uniform sampling
// doesn't get a good estimate for them.
if (triSampleEstimate > 1e-3)
// The error tolerance is fairly large so that we can use a
// reasonable number of samples. It has been verified that for
// larger numbers of Monte Carlo samples, the error continues to
// tighten.
EXPECT_LT(error(triSampleEstimate, unifEstimate), .1)
<< "Unif sampling: " << unifEstimate
<< ", triangle sampling: " << triSampleEstimate
<< ", tri index " << i;
}
}
// Checks the closed-form solid angle computation for triangles against a
// Monte Carlo estimate of it.
TEST(Triangle, SolidAngle) {
for (int i = 0; i < 50; ++i) {
const Float range = 10;
RNG rng(100 +
i); // Use different triangles than the Triangle/Sample test.
std::shared_ptr<Triangle> tri =
GetRandomTriangle([&]() { return pUnif(rng, range); });
if (!tri) continue;
// Ensure that the reference point isn't too close to the
// triangle's surface (which makes the Monte Carlo stuff have more
// variance, thus requiring more samples).
Point3f pc{pUnif(rng, range), pUnif(rng, range), pUnif(rng, range)};
pc[rng.UniformUInt32() % 3] =
rng.UniformFloat() > .5 ? (-range - 3) : (range + 3);
// Compute a reference value using Triangle::Sample()
const int count = 64 * 1024;
Interaction ref(pc, Normal3f(), Vector3f(), Vector3f(0, 0, 1), 0,
MediumInterface{});
double triSampleEstimate = 0;
for (int j = 0; j < count; ++j) {
Point2f u{RadicalInverse(0, j), RadicalInverse(1, j)};
Float pdf;
(void)tri->Sample(ref, u, &pdf);
EXPECT_GT(pdf, 0);
triSampleEstimate += 1. / (count * pdf);
}
auto error = [](Float a, Float b) {
if (std::abs(a) < 1e-4 || std::abs(b) < 1e-4)
return std::abs(a - b);
return std::abs((a - b) / b);
};
// Now compute the subtended solid angle of the triangle in closed
// form.
Float sphericalArea = tri->SolidAngle(pc);
EXPECT_LT(error(sphericalArea, triSampleEstimate), .015)
<< "spherical area: " << sphericalArea
<< ", tri sampling: " << triSampleEstimate << ", pc = " << pc
<< ", tri index " << i;
}
}
// Use Quasi Monte Carlo with uniform sphere sampling to esimate the solid
// angle subtended by the given shape from the given point.
static Float mcSolidAngle(const Point3f &p, const Shape &shape, int nSamples) {
int nHits = 0;
for (int i = 0; i < nSamples; ++i) {
Point2f u{RadicalInverse(0, i), RadicalInverse(1, i)};
Vector3f w = UniformSampleSphere(u);
if (shape.IntersectP(Ray(p, w), false)) ++nHits;
}
return nHits / (UniformSpherePdf() * nSamples);
}
TEST(Sphere, SolidAngle) {
Transform tr = Translate(Vector3f(1, .5, -.8)) * RotateX(30);
Transform trInv = Inverse(tr);
Sphere sphere(&tr, &trInv, false, 1, -1, 1, 360);
// Make sure we get a subtended solid angle of 4pi for a point
// inside the sphere.
Point3f pInside(1, .9, -.8);
const int nSamples = 128 * 1024;
EXPECT_LT(std::abs(mcSolidAngle(pInside, sphere, nSamples) - 4 * Pi), .01);
EXPECT_LT(std::abs(sphere.SolidAngle(pInside, nSamples) - 4 * Pi), .01);
// Now try a point outside the sphere
Point3f p(-.25, -1, .8);
Float mcSA = mcSolidAngle(p, sphere, nSamples);
Float sphereSA = sphere.SolidAngle(p, nSamples);
EXPECT_LT(std::abs(mcSA - sphereSA), .001);
}
TEST(Cylinder, SolidAngle) {
Transform tr = Translate(Vector3f(1, .5, -.8)) * RotateX(30);
Transform trInv = Inverse(tr);
Cylinder cyl(&tr, &trInv, false, .25, -1, 1, 360.);
Point3f p(.5, .25, .5);
const int nSamples = 128 * 1024;
Float solidAngle = mcSolidAngle(p, cyl, nSamples);
EXPECT_LT(std::abs(solidAngle - cyl.SolidAngle(p, nSamples)), .001);
}
TEST(Disk, SolidAngle) {
Transform tr = Translate(Vector3f(1, .5, -.8)) * RotateX(30);
Transform trInv = Inverse(tr);
Disk disk(&tr, &trInv, false, 0, 1.25, 0, 360);
Point3f p(.5, -.8, .5);
const int nSamples = 128 * 1024;
Float solidAngle = mcSolidAngle(p, disk, nSamples);
EXPECT_LT(std::abs(solidAngle - disk.SolidAngle(p, nSamples)), .001);
}
// Check for incorrect self-intersection: assumes that the shape is convex,
// such that if the dot product of an outgoing ray and the surface normal
// at a point is positive, then a ray leaving that point in that direction
// should never intersect the shape.
static void TestReintersectConvex(Shape &shape, RNG &rng) {
// Ray origin
Point3f o;
for (int c = 0; c < 3; ++c) o[c] = pExp(rng);
// Destination: a random point in the shape's bounding box.
Bounds3f bbox = shape.WorldBound();
Point3f t;
for (int c = 0; c < 3; ++c) t[c] = rng.UniformFloat();
Point3f p2 = bbox.Lerp(t);
// Ray to intersect with the shape.
Ray r(o, p2 - o);
if (rng.UniformFloat() < .5) r.d = Normalize(r.d);
// We should usually (but not always) find an intersection.
SurfaceInteraction isect;
Float tHit;
if (!shape.Intersect(r, &tHit, &isect, false)) return;
// Now trace a bunch of rays leaving the intersection point.
for (int j = 0; j < 10000; ++j) {
// Random direction leaving the intersection point.
Point2f u;
u[0] = rng.UniformFloat();
u[1] = rng.UniformFloat();
Vector3f w = UniformSampleSphere(u);
// Make sure it's in the same hemisphere as the surface normal.
w = Faceforward(w, isect.n);
Ray rOut = isect.SpawnRay(w);
EXPECT_FALSE(shape.IntersectP(rOut, false));
SurfaceInteraction spawnIsect;
Float spawnTHit;
EXPECT_FALSE(shape.Intersect(rOut, &spawnTHit, &spawnIsect, false));
// Choose a random point to trace rays to.
Point3f p2;
for (int c = 0; c < 3; ++c) p2[c] = pExp(rng);
// Make sure that the point we're tracing rays toward is in the
// hemisphere about the intersection point's surface normal.
w = p2 - isect.p;
w = Faceforward(w, isect.n);
p2 = isect.p + w;
rOut = isect.SpawnRayTo(p2);
EXPECT_FALSE(shape.IntersectP(rOut, false));
EXPECT_FALSE(shape.Intersect(rOut, &tHit, &isect, false));
}
}
TEST(FullSphere, Reintersect) {
for (int i = 0; i < 100; ++i) {
RNG rng(i);
Transform identity;
Float radius = pExp(rng, 4);
Float zMin = -radius;
Float zMax = radius;
Float phiMax = 360;
Sphere sphere(&identity, &identity, false, radius, zMin, zMax, phiMax);
TestReintersectConvex(sphere, rng);
}
}
TEST(ParialSphere, Normal) {
for (int i = 0; i < 100; ++i) {
RNG rng(i);
Transform identity;
Float radius = pExp(rng, 4);
Float zMin = rng.UniformFloat() < 0.5
? -radius
: Lerp(rng.UniformFloat(), -radius, radius);
Float zMax = rng.UniformFloat() < 0.5
? radius
: Lerp(rng.UniformFloat(), -radius, radius);
Float phiMax =
rng.UniformFloat() < 0.5 ? 360. : rng.UniformFloat() * 360.;
Sphere sphere(&identity, &identity, false, radius, zMin, zMax, phiMax);
// Ray origin
Point3f o;
for (int c = 0; c < 3; ++c) o[c] = pExp(rng);
// Destination: a random point in the shape's bounding box.
Bounds3f bbox = sphere.WorldBound();
Point3f t;
for (int c = 0; c < 3; ++c) t[c] = rng.UniformFloat();
Point3f p2 = bbox.Lerp(t);
// Ray to intersect with the shape.
Ray r(o, p2 - o);
if (rng.UniformFloat() < .5) r.d = Normalize(r.d);
// We should usually (but not always) find an intersection.
SurfaceInteraction isect;
Float tHit;
if (!sphere.Intersect(r, &tHit, &isect, false)) continue;
Float dot = Dot(Normalize(isect.n), Normalize(Vector3f(isect.p)));
EXPECT_FLOAT_EQ(1., dot);
}
}
TEST(PartialSphere, Reintersect) {
for (int i = 0; i < 100; ++i) {
RNG rng(i);
Transform identity;
Float radius = pExp(rng, 4);
Float zMin = rng.UniformFloat() < 0.5
? -radius
: Lerp(rng.UniformFloat(), -radius, radius);
Float zMax = rng.UniformFloat() < 0.5
? radius
: Lerp(rng.UniformFloat(), -radius, radius);
Float phiMax =
rng.UniformFloat() < 0.5 ? 360. : rng.UniformFloat() * 360.;
Sphere sphere(&identity, &identity, false, radius, zMin, zMax, phiMax);
TestReintersectConvex(sphere, rng);
}
}
TEST(Cylinder, Reintersect) {
for (int i = 0; i < 100; ++i) {
RNG rng(i);
Transform identity;
Float radius = pExp(rng, 4);
Float zMin = pExp(rng, 4) * (rng.UniformFloat() < 0.5 ? -1 : 1);
Float zMax = pExp(rng, 4) * (rng.UniformFloat() < 0.5 ? -1 : 1);
Float phiMax =
rng.UniformFloat() < 0.5 ? 360. : rng.UniformFloat() * 360.;
Cylinder cyl(&identity, &identity, false, radius, zMin, zMax, phiMax);
TestReintersectConvex(cyl, rng);
}
}
#if 0
TEST(Cone, Reintersect) {
for (int i = 0; i < 1000; ++i) {
RNG rng(i);
Transform identity;
Float height = p(rng, 4);
Float radius = p(rng, 4);
Float phiMax = 360;
Cone cone(&identity, &identity, false, height, radius, phiMax);
TestReintersectConvex(cone, rng);
}
}
TEST(Paraboloid, Reintersect) {
for (int i = 0; i < 1000; ++i) {
RNG rng(i);
Transform identity;
Float radius = p(rng, 4);
Float z0 = p(rng, 4);
Float z1 = p(rng, 4);
Float phiMax = 360;
Paraboloid paraboloid(&identity, &identity, false, radius,
z0, z1, phiMax);
TestReintersectConvex(paraboloid, rng);
}
}
#endif
|
export type PromiseResolveCb<T> = (value: T | PromiseLike<T>) => void;
export type PromiseRejectCb = (reason?: any) => void;
export interface IDeferredPromise<T> {
promise: Promise<T>;
resolve: PromiseResolveCb<T>;
reject: PromiseRejectCb;
}
/**
* Creates a deferred Promise, where resolve/reject
* are exposed to the place that holds the promise.
*
* Generally bad practice, but there are use-cases where one mixes
* callback-based API with Promise API and this is helpful.
*/
export function deferred<T = void>(): IDeferredPromise<T> {
let resolve!: PromiseResolveCb<T>;
let reject!: PromiseRejectCb;
const promise = new Promise<T>((res, rej) => {
resolve = res;
reject = rej;
});
return { promise, resolve, reject };
}
|
SIERRA MADRE – Sierra Madre’s Village Church (Ascension) is hosting an all ages Halloween Party and potluck on Sunday from 5 p.m. to 8:00 p.m.
The public is invited for food, fun and fellowship.
There will be a little-kid friendly Haunted House, games, an adult and kid costume contest and a pumpkin carving contest for those who bring their own pumpkins.
The event is sponsored by by the Ascension Senior Youth group.
The church is located at 25 East Laurel Ave. on the corner of Baldwin and Laurel avenues in Sierra Madre.
For more information, call 626-355-1133 or visit www.ascension-sierramadre.com. |
Prior art Christmas lights include a bottom base as illustrated in FIGS. 1 and 2, a light stand 20, and a light bulb 30. Two vertical poles 11 and 12 are projected on the opposite sides of the bottom base 10, and two fasteners 13 and 14 are bent at the inner sides of both vertical poles. Holders 15 and 16 are used to hold a pair of cable wires 18, are formed oppositely between both vertical poles, and facilitate two copper puncture conductors 19 and 19' to connect. A hang hook 17 is placed at a position below the bottom base 10. A light stand 20 is disposed on the bottom base 10. A cable slot 21 is placed under the light stand 20 opposite to the holders 15 and 16 and sockets for the copper conductors 19 and 19' are formed in the light stand 20 (not illustrated). The copper conductors 19 and 19' each has a protruberance 191 and 191' formed on the upper section and a point 192 and 192' at the bottom. One of them is vertically disposed and the other is bent to a flat portion, so as to form a ring contact and a tip contact for an incandescent bulb 30 as it engages within the socket of the light stand 20 (as shown in FIG. 3). The points 192 and 192' of both copper conductors 19 and 19' are installed using a puncturing connection with the pair of electric wires respectively in order to light the bulb 30. As shown in FIGS. 1, 2, and 3, some shortcomings of prior art Christmas lights are outlined as follows: (1) In production, the nicety of the abovementioned Christmas lights habitually used disappears because of manipulation negligence, resulting because the copper conductors may be deformed, the ring contact may become flat or the tip contact may become vertical. Thus, two conditions like that will equally bring about a short circuit. (2) It is impossible to alter lamp holder to another shape for cosmetic purposes. |
<reponame>mgonzaledk/event-frame
#ifndef THREAD_BASETHREAD_H
#define THREAD_BASETHREAD_H
#include <atomic>
#include <thread>
class BaseThread {
protected:
std::thread thread;
public:
BaseThread();
void Start(int detach = 0);
void Wait();
virtual void Run() = 0;
void operator()(int detach = 0);
};
#endif
|
def switch(a):
return 0 if a>0 else 1
arr = []
for i in range(3):
k = list(map(int, input().split()))
k = [i%2 for i in k]
arr.append(k)
lis = [[1,1,1] for _ in range(3)]
for i in range(3):
for j in range(3):
if arr[i][j]==0:
pass
else:
check = [(i,j),(i+1,j),(i-1,j),(i,j+1),(i,j-1)]
for x,y in check:
if x<0 or x>2 or y<0 or y>2:
pass
else:
lis[x][y] = switch(lis[x][y])
for i in lis:
print(''.join(map(str,i))) |
#pragma once
#include "Deck.h"
class Player
{
std::string Name {};
std::vector<playing_cards::Card> Hand {};
public:
Player () = default;
explicit Player (const std::string& NameUse);
std::vector<std::vector<playing_cards::Card>> permute_all_combinations (
std::vector<playing_cards::Card> PossibleMatchingRanks) const;
void find_possible_matching_rank_moves (playing_cards::Rank PromptedRank,
std::vector<std::vector<playing_cards::Card>>& Combinations,
std::vector<playing_cards::Card> PossibleMoves) const;
void find_possible_matching_suit_moves (playing_cards::Rank PromptedRank,
std::vector<std::vector<playing_cards::Card>>& Combinations,
std::vector<playing_cards::Card> PossibleMoves);
void find_possible_prompted_rank_moves (playing_cards::Rank PromptedRank,
std::vector<std::vector<playing_cards::Card>>& Combinations,
playing_cards::Rank CrazyRank = playing_cards::Rank::EIGHT);
void find_possible_prompted_suit_moves (playing_cards::Suit PromptedSuit, playing_cards::Rank PromptedRank,
std::vector<std::vector<playing_cards::Card>>& Combinations);
void display_combinations (std::vector<std::vector<playing_cards::Card>> const& Combinations);
void prompt_action (playing_cards::Rank PromptedRank, playing_cards::Suit PromptedSuit);
const std::string& get_name () const;
std::string display_hand () const;
void place_in_hand (playing_cards::Card CardForHand);
void place_in_hand (std::vector<playing_cards::Card> const& CardsForHand);
};
|
<filename>utils-apl-derived-core/src/main/java/org/omnaest/utils/xml/XMLIteratorFactory.java
/*******************************************************************************
* Copyright 2012 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
package org.omnaest.utils.xml;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.NoSuchElementException;
import java.util.concurrent.locks.Lock;
import javax.sql.rowset.spi.XmlReader;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLEventFactory;
import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLEventWriter;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
import javax.xml.stream.events.Attribute;
import javax.xml.stream.events.EndElement;
import javax.xml.stream.events.Namespace;
import javax.xml.stream.events.StartElement;
import javax.xml.stream.events.XMLEvent;
import javax.xml.stream.util.XMLEventConsumer;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
import org.omnaest.utils.assertion.Assert;
import org.omnaest.utils.events.exception.ExceptionHandler;
import org.omnaest.utils.events.exception.basic.ExceptionHandlerIgnoring;
import org.omnaest.utils.structure.collection.list.ListUtils;
import org.omnaest.utils.structure.container.ByteArrayContainer;
import org.omnaest.utils.structure.element.ElementHolder;
import org.omnaest.utils.structure.element.accessor.Accessor;
import org.omnaest.utils.structure.element.accessor.adapter.ThreadLocalToAccessorAdapter;
import org.omnaest.utils.structure.element.cached.CachedElement;
import org.omnaest.utils.structure.element.cached.CachedElement.ValueResolver;
import org.omnaest.utils.structure.element.cached.ThreadLocalCachedElement;
import org.omnaest.utils.structure.element.converter.ElementConverter;
import org.omnaest.utils.structure.element.converter.ElementConverterIdentitiyCast;
import org.omnaest.utils.structure.element.factory.Factory;
import org.omnaest.utils.structure.iterator.IterableUtils;
import org.omnaest.utils.structure.iterator.IteratorUtils;
import org.omnaest.utils.structure.map.MapUtils;
import org.omnaest.utils.xml.JAXBXMLHelper.JAXBContextBasedUnmarshaller;
import org.omnaest.utils.xml.JAXBXMLHelper.UnmarshallingConfiguration;
import org.omnaest.utils.xml.XMLIteratorFactory.XMLElementSelector.SelectionContext;
import org.omnaest.utils.xml.XMLIteratorFactory.XMLEventTransformerForTagAndAttributeName.XMLTagAndAttributeNameTransformer;
import org.omnaest.utils.xml.XMLIteratorFactory.XMLEventTransformerForTagAndAttributeName.XMLTagAndAttributeNameTransformerLowerCase;
import org.omnaest.utils.xml.XMLIteratorFactory.XMLEventTransformerForTagAndAttributeName.XMLTagAndAttributeNameTransformerRemoveNamespace;
import org.omnaest.utils.xml.XMLIteratorFactory.XMLEventTransformerForTagAndAttributeName.XMLTagAndAttributeNameTransformerUpperCase;
import org.omnaest.utils.xml.context.XMLInstanceContextFactory;
import org.omnaest.utils.xml.context.XMLInstanceContextFactoryJavaStaxDefaultImpl;
import org.omnaest.utils.xml.exception.MissingXMLRootElementAnnotationException;
/**
* The {@link XMLIteratorFactory} is a wrapper around StAX and JAXB which allows to split a given xml {@link InputStream} content
* into {@link Object}, {@link Map} or {@link String} content chunks. <br>
* <br>
* <h2>Example:</h2><br>
* Code using the {@link XMLIteratorFactory} to create an {@link Iterator} instance for all book elements:
*
* <pre>
* Iterator<Book> iterator = new XMLIteratorFactory( inputStream ).doLowerCaseXMLTagAndAttributeNames().newIterator( Book.class );
* </pre>
*
* <br>
* XML snippet:
*
* <pre>
* <Books>
* <Book>
* <Title>Simple title</Title>
* <author>an author</author>
* </Book>
* <Book>
* <Title>Second simple title</Title>
* <Author>Second author</Author>
* </Book>
* </Books>
* </pre>
*
* <br>
* JAXB annotated class:
*
* <pre>
* @XmlRootElement(name = "book")
* @XmlType(name = "book")
* @XmlAccessorType(XmlAccessType.FIELD)
* protected static class Book
* {
* @XmlElement(name = "title")
* private String title;
*
* @XmlElement(name = "author")
* private String author;
* }
* </pre>
*
* <br>
* There are several {@link Iterator} types offered:<br>
* <ul>
* <li> {@link String} based: {@link #newIterator(QName)}</li>
* <li> {@link Map} based: {@link #newIteratorMapBased(QName)}</li>
* <li> {@link Class} type based: {@link #newIterator(Class)}</li>
* </ul>
* Those types are faster in traversal of the original stream from top to bottom, whereby the slower ones can get some performance
* improvement by using parallel processing. The {@link Iterator} instances are thread safe by default and the
* {@link Iterator#next()} function can be called until an {@link NoSuchElementException} is thrown. <br>
* In normal circumstances an {@link Iterator} is not usable in multithreaded environments, since {@link Iterator#hasNext()} and
* {@link Iterator#next()} produce imminent gaps within the {@link Lock} of an element. This gap can be circumvented by calling
* <ul>
* <li>{@link #doCreateThreadsafeIterators(boolean)}</li>
* </ul>
* which will force {@link Iterator} instances to use {@link ThreadLocal}s internally. Otherwise do not use the
* {@link Iterator#hasNext()} method, since any other {@link Thread} can clear the {@link Iterator} before the call to
* {@link Iterator#next()} occurs. <br>
* <br>
* The {@link XMLIteratorFactory} allows to modify the underlying event stream using e.g.:<br>
* <ul>
* <li> {@link #doLowerCaseXMLTagAndAttributeNames()}</li>
* <li> {@link #doUpperCaseXMLTagAndAttributeNames()}</li>
* <li> {@link #doRemoveNamespacesForXMLTagAndAttributeNames()}</li>
* <li> {@link #doAddXMLEventTransformer(XMLEventTransformer)}</li>
* </ul>
* <br>
* <br>
* If the {@link XMLIteratorFactory} should only operate on a subset of xml tags within a larger stream the concept of sopes is
* available, which can be instrumented by calling {@link #doAddXMLTagScope(QName)}.<br>
* If no scope's start tag is passed no reading of events will occur and the reading into a single {@link Iterator} will stop
* immediately when an end tag of a scope is matched.
*
* @author Omnaest
*/
public class XMLIteratorFactory
{
/* ************************************************** Constants *************************************************** */
public static final String DEFAULT_ENCODING = "UTF-8";
private final Factory<Accessor<String>> SIMPLE_ACCESSOR_FACTORY = new Factory<Accessor<String>>()
{
@Override
public Accessor<String> newInstance()
{
return new ElementHolder<String>();
}
};
private final Factory<Accessor<String>> THREADLOCAL_BASED_ACCESSOR_FACTORY = new Factory<Accessor<String>>()
{
@Override
public Accessor<String> newInstance()
{
return new ThreadLocalToAccessorAdapter<String>();
}
};
public static final XMLInstanceContextFactory XML_INSTANCE_CONTEXT_FACTORY_JAVA_STAX_DEFAULT = new XMLInstanceContextFactoryJavaStaxDefaultImpl();
public static final JAXBTypeContentConverterFactory DEFAULT_JAXB_TYPE_CONTENT_CONVERTER_FACTORY = new JAXBTypeContentConverterFactory()
{
@Override
public <E> ElementConverter<String, E> newElementConverter( Class<? extends E> type,
ExceptionHandler exceptionHandler )
{
return new JAXBTypeContentConverter<E>(
type,
exceptionHandler );
}
};
/* ************************************** Variables / State (internal/hiding) ************************************* */
private final CachedElement<XMLEventReader> xmlEventReaderCache;
private final TraversalContextControl traversalContextControl;
private final List<XMLEventTransformer> xmlEventTransformerList;
private final List<Scope> scopeList;
private final List<TouchBarrier> touchBarrierList;
private XMLInstanceContextFactory xmlInstanceContextFactory;
private Factory<Accessor<String>> accessorFactory = null;
private String encoding = XMLIteratorFactory.DEFAULT_ENCODING;
private JAXBTypeContentConverterFactory jaxbTypeContentConverterFactory = DEFAULT_JAXB_TYPE_CONTENT_CONVERTER_FACTORY;
/* ***************************** Beans / Services / References / Delegates (external) ***************************** */
private final ExceptionHandler exceptionHandler;
/* ********************************************** Classes/Interfaces ********************************************** */
/**
* @see #newElementConverter(Class, ExceptionHandler)
* @author Omnaest
*/
public static interface JAXBTypeContentConverterFactory
{
/**
* Returns an {@link ElementConverter} which converts from a given xml content {@link String} to an {@link Object} of the
* given type
*
* @param type
* {@link Class}
* @param exceptionHandler
* {@link ExceptionHandler}
* @return new {@link ElementConverter}
*/
public <E> ElementConverter<String, E> newElementConverter( Class<? extends E> type, ExceptionHandler exceptionHandler );
}
/**
* @author Omnaest
* @param <E>
*/
public static class JAXBTypeContentConverter<E> implements ElementConverter<String, E>
{
/* ************************************** Variables / State (internal/hiding) ************************************* */
protected final ThreadLocalCachedElement<JAXBContextBasedUnmarshaller<E>> cachedElement;
/* *************************************************** Methods **************************************************** */
/**
* @see JAXBTypeContentConverter
* @param type
* @param exceptionHandler
*/
public JAXBTypeContentConverter( final Class<? extends E> type, final ExceptionHandler exceptionHandler )
{
this.cachedElement = new ThreadLocalCachedElement<JAXBXMLHelper.JAXBContextBasedUnmarshaller<E>>(
new ValueResolver<JAXBContextBasedUnmarshaller<E>>()
{
@SuppressWarnings("unchecked")
@Override
public JAXBContextBasedUnmarshaller<E> resolveValue()
{
return JAXBXMLHelper.<E> newJAXBContextBasedUnmarshaller( (Class<E>) type,
new UnmarshallingConfiguration().setExceptionHandler( exceptionHandler ) );
}
} );
}
@Override
public E convert( String element )
{
return this.cachedElement.getValue().unmarshal( new ByteArrayContainer( element ).getInputStream() );
}
}
/**
* @see XMLIteratorFactory
* @author Omnaest
*/
protected static final class XMLIterator implements Iterator<String>
{
/* ********************************************** Variables ********************************************** */
private final Accessor<String> nextElementAccessor;
private final NamespaceStack namespaceStack = new NamespaceStack();
/* ********************************************** Beans / Services / References / Delegation ********************************************** */
private final Accessor<String> accessor;
private final ScopeControl scopeControl;
private final ExceptionHandler exceptionHandler;
private final XMLEventReader xmlEventReader;
private final XMLEventFactory xmlEventFactory;
private final String encoding;
private final TraversalContextControl traversalContextControl;
private final XMLElementSelector xmlElementSelector;
private final XMLOutputFactory xmlOutputFactory;
private final TouchBarrierControl touchBarrierControl;
private final List<XMLEventTransformer> xmlEventTransformerList;
/* ********************************************** Methods ********************************************** */
/**
* @see XMLIterator
* @param accessor
* @param scopeControl
* @param exceptionHandler
* @param xmlEventReader
* @param xmlEventFactory
* @param encoding
* @param traversalContextControl
* @param xmlElementSelector
* @param xmlOutputFactory
* @param touchBarrierControl
* @param xmlEventTransformerList
*/
protected XMLIterator( Accessor<String> accessor, ScopeControl scopeControl, ExceptionHandler exceptionHandler,
XMLEventReader xmlEventReader, XMLEventFactory xmlEventFactory, String encoding,
TraversalContextControl traversalContextControl, XMLElementSelector xmlElementSelector,
XMLOutputFactory xmlOutputFactory, TouchBarrierControl touchBarrierControl,
List<XMLEventTransformer> xmlEventTransformerList )
{
this.accessor = accessor;
this.scopeControl = scopeControl;
this.exceptionHandler = exceptionHandler;
this.xmlEventReader = xmlEventReader;
this.xmlEventFactory = xmlEventFactory;
this.encoding = encoding;
this.traversalContextControl = traversalContextControl;
this.xmlElementSelector = xmlElementSelector;
this.xmlOutputFactory = xmlOutputFactory;
this.touchBarrierControl = touchBarrierControl;
this.xmlEventTransformerList = xmlEventTransformerList;
this.nextElementAccessor = this.accessor;
}
/* ********************************************** Methods ********************************************** */
@Override
public synchronized boolean hasNext()
{
//
this.resolveNextElementIfUnresolved();
//
return this.nextElementAccessor.getElement() != null;
}
@Override
public synchronized String next()
{
//
String retval = null;
//
this.resolveNextElementIfUnresolved();
//
retval = this.nextElementAccessor.getElement();
this.nextElementAccessor.setElement( null );
//
if ( retval == null )
{
throw new NoSuchElementException();
}
//
return retval;
}
@Override
public void remove()
{
throw new UnsupportedOperationException();
}
public void resolveNextElementIfUnresolved()
{
//
if ( this.nextElementAccessor.getElement() == null )
{
this.nextElementAccessor.setElement( this.resolveNextElement() );
}
}
@SuppressWarnings("unchecked")
public String resolveNextElement()
{
//
String retval = null;
//
try
{
//
final ByteArrayContainer byteArrayContainerOut = new ByteArrayContainer();
final OutputStream outputStream = byteArrayContainerOut.getOutputStream();
final XMLEventWriter xmlEventWriter = this.xmlOutputFactory.createXMLEventWriter( outputStream, this.encoding );
final XMLEventConsumer xmlEventConsumer = xmlEventWriter;
//
boolean read = false;
boolean done = false;
boolean touchedBarrier = false;
boolean hasWrittenAtLeastOneElement = false;
while ( !done
&& !this.scopeControl.hasTraversedAnyScope()
&& this.xmlEventReader.hasNext()
&& ( read || ( !touchedBarrier && !( touchedBarrier = this.touchBarrierControl.isAnyBarrierTouched( this.transformXMLElement( this.xmlEventReader.peek() ),
this.traversalContextControl.getCurrentSelectionContext()
.getQNameHierarchy() ) ) ) ) )
{
//
final XMLEvent currentEvent = this.transformXMLElement( this.xmlEventReader.nextEvent() );
XMLEvent writableEvent = currentEvent;
//
if ( currentEvent.isStartElement() )
{
//
final StartElement startElement = currentEvent.asStartElement();
final QName name = startElement.getName();
this.traversalContextControl.addQName( name );
//
final SelectionContext selectionContext = this.traversalContextControl.getCurrentSelectionContext();
this.scopeControl.visitStartElement( selectionContext );
//
if ( this.xmlElementSelector.selectElement( selectionContext )
&& ( !this.scopeControl.hasScopes() || this.scopeControl.hasEnteredAnyScope() ) )
{
//
read = true;
}
//
if ( read )
{
//
if ( !hasWrittenAtLeastOneElement )
{
xmlEventWriter.add( this.xmlEventFactory.createStartDocument() );
}
//
this.namespaceStack.addStack( startElement.getNamespaces() );
writableEvent = transformEventIncludingCurrentNamespaceIfNonDefault( this.xmlEventFactory, startElement, name );
}
}
//
if ( read )
{
//
xmlEventConsumer.add( writableEvent );
hasWrittenAtLeastOneElement = true;
}
if ( currentEvent.isEndElement() )
{
//
if ( read )
{
this.namespaceStack.removeStack();
}
//
final SelectionContext selectionContext = this.traversalContextControl.getCurrentSelectionContext();
if ( this.xmlElementSelector.selectElement( selectionContext ) )
{
//
read = false;
done = true;
//
xmlEventWriter.add( this.xmlEventFactory.createEndDocument() );
}
//
this.traversalContextControl.reduceLastQName();
//
this.scopeControl.visitEndElement( selectionContext );
}
}
//
if ( hasWrittenAtLeastOneElement )
{
//
xmlEventWriter.close();
outputStream.close();
//
if ( byteArrayContainerOut.isNotEmpty() )
{
retval = byteArrayContainerOut.toString( ByteArrayContainer.ENCODING_UTF8 );
}
}
//
if ( !this.xmlEventReader.hasNext() )
{
this.xmlEventReader.close();
}
}
catch ( Exception e )
{
this.exceptionHandler.handleException( e );
}
//
return retval;
}
@SuppressWarnings("unchecked")
private StartElement transformEventIncludingCurrentNamespaceIfNonDefault( final XMLEventFactory xmlEventFactory,
final StartElement startElement,
final QName name )
{
//
StartElement retval = startElement;
//
final String prefix = name.getPrefix();
final String namespaceUri = name.getNamespaceURI();
final String localName = name.getLocalPart();
if ( StringUtils.isNotBlank( namespaceUri ) && !StringUtils.equalsIgnoreCase( namespaceUri, "##default" )
&& !this.namespaceStack.hasDeclaredNamespace( prefix, namespaceUri ) )
{
//
final Namespace namespace = xmlEventFactory.createNamespace( prefix, namespaceUri );
final Iterator<?> namespaces = IteratorUtils.addToNewIterator( startElement.getNamespaces(), namespace );
final Iterator<?> attributes = startElement.getAttributes();
retval = xmlEventFactory.createStartElement( prefix, namespaceUri, localName, attributes, namespaces );
this.namespaceStack.addNamespaceToCurrentNamespaceStack( namespace );
}
//
return retval;
}
/**
* @param xmlEvent
* @return
*/
private XMLEvent transformXMLElement( final XMLEvent xmlEvent )
{
//
XMLEvent retval = xmlEvent;
//
for ( XMLEventTransformer xmlEventTransformer : this.xmlEventTransformerList )
{
retval = xmlEventTransformer.transform( retval, this.xmlEventFactory );
}
//
return retval;
}
}
/**
* @author Omnaest
*/
public static interface XMLElementSelector
{
/* ********************************************** Classes/Interfaces ********************************************** */
/**
* @author Omnaest
*/
public static interface SelectionContext
{
/**
* @see QName
* @return
*/
public QName getQName();
/**
* Returns all {@link QName}s of the currents element location. The current element is the last entry of the returned
* {@link List}
*
* @return
*/
public List<QName> getQNameHierarchy();
}
/* ********************************************** Methods ********************************************** */
/**
* @param selectionContext
* {@link SelectionContext}
* @return
*/
public boolean selectElement( SelectionContext selectionContext );
}
/**
* {@link XMLElementSelector} which matches a given {@link QName}
*
* @see XMLElementSelector
* @author Omnaest
*/
public static class XMLElementSelectorQNameBased implements XMLElementSelector
{
/* ********************************************** Variables ********************************************** */
private final String selectingNamespace;
private final String selectingTagName;
/* ********************************************** Methods ********************************************** */
/**
* @see XMLElementSelectorQNameBased
* @param qName
*/
public XMLElementSelectorQNameBased( QName qName )
{
super();
this.selectingNamespace = qName != null ? qName.getNamespaceURI() : null;
this.selectingTagName = qName != null ? qName.getLocalPart() : null;
}
@Override
public boolean selectElement( SelectionContext selectionContext )
{
//
boolean retval = false;
//
final QName currentQName = selectionContext.getQName();
//
final boolean matchesNamespace = StringUtils.isBlank( this.selectingNamespace )
|| ( currentQName != null && StringUtils.equals( this.selectingNamespace,
currentQName.getNamespaceURI() ) );
final boolean matchesTagName = currentQName != null
&& StringUtils.equals( this.selectingTagName, currentQName.getLocalPart() );
retval = matchesNamespace && matchesTagName;
//
return retval;
}
}
/**
* @see XMLIteratorFactory
* @see #transform(XMLEvent, XMLEventFactory)
* @author Omnaest
*/
public static interface XMLEventTransformer
{
/**
* This methods returns a transformed {@link XMLEvent} based on the given {@link XMLEvent}. This can be e.g. lower casing the
* local name. The {@link XMLEventFactory} supports the creation of new {@link XMLEvent}s.
*
* @param xmlEvent
* @param xmlEventFactory
* @return transformed {@link XMLEvent}
*/
public XMLEvent transform( XMLEvent xmlEvent, XMLEventFactory xmlEventFactory );
}
/**
* {@link XMLEventTransformer} which allows to transform the tag and attribute names.<br>
* <br>
*
* @author Omnaest
*/
public static class XMLEventTransformerForTagAndAttributeName implements XMLEventTransformer
{
/* ********************************************** Variables ********************************************** */
private final XMLTagAndAttributeNameTransformer xmlTagAndAttributeNameTransformer;
/* ********************************************** Classes/Interfaces ********************************************** */
/**
* @author Omnaest
*/
public static interface XMLTagAndAttributeNameTransformer
{
/**
* @param tagName
* {@link QName}
* @return {@link QName}
*/
public QName transformTagName( QName tagName );
/**
* @param attributeName
* {@link QName}
* @return {@link QName}
*/
public QName transformAttributeName( QName attributeName );
}
/**
* @author Omnaest
*/
public static class XMLTagAndAttributeNameTransformerUpperCase implements XMLTagAndAttributeNameTransformer
{
@Override
public QName transformTagName( QName tagName )
{
return new QName( tagName.getNamespaceURI(), StringUtils.upperCase( tagName.getLocalPart() ) );
}
@Override
public QName transformAttributeName( QName attributeName )
{
return new QName( attributeName.getNamespaceURI(), StringUtils.upperCase( attributeName.getLocalPart() ) );
}
}
/**
* @author Omnaest
*/
public static class XMLTagAndAttributeNameTransformerLowerCase implements XMLTagAndAttributeNameTransformer
{
@Override
public QName transformTagName( QName tagName )
{
return new QName( tagName.getNamespaceURI(), StringUtils.lowerCase( tagName.getLocalPart() ) );
}
@Override
public QName transformAttributeName( QName attributeName )
{
return new QName( attributeName.getNamespaceURI(), StringUtils.lowerCase( attributeName.getLocalPart() ) );
}
}
/**
* {@link XMLTagAndAttributeNameTransformer} which removes any {@link Namespace} from xml tag and attributes
*
* @author Omnaest
*/
public static class XMLTagAndAttributeNameTransformerRemoveNamespace implements XMLTagAndAttributeNameTransformer
{
@Override
public QName transformTagName( QName tagName )
{
//
return new QName( null, tagName.getLocalPart() );
}
@Override
public QName transformAttributeName( QName attributeName )
{
return new QName( null, attributeName.getLocalPart() );
}
}
/* ********************************************** Methods ********************************************** */
/**
* @see XMLEventTransformerForTagAndAttributeName
* @param xmlTagAndAttributeNameTransformer
*/
public XMLEventTransformerForTagAndAttributeName( XMLTagAndAttributeNameTransformer xmlTagAndAttributeNameTransformer )
{
super();
this.xmlTagAndAttributeNameTransformer = xmlTagAndAttributeNameTransformer;
}
@Override
public XMLEvent transform( XMLEvent xmlEvent, XMLEventFactory xmlEventFactory )
{
//
XMLEvent retval = xmlEvent;
//
if ( xmlEvent.isStartElement() )
{
//
final StartElement startElement = xmlEvent.asStartElement();
final QName name = startElement.getName();
//
final QName qname = this.xmlTagAndAttributeNameTransformer.transformTagName( name );
final Iterator<?> attributes = startElement.getAttributes();
final Iterator<?> namespaces = startElement.getNamespaces();
//
retval = xmlEventFactory.createStartElement( qname, attributes, namespaces );
}
else if ( xmlEvent.isEndElement() )
{
//
final EndElement endElement = xmlEvent.asEndElement();
final QName name = endElement.getName();
//
final QName qname = this.xmlTagAndAttributeNameTransformer.transformTagName( name );
final Iterator<?> namespaces = endElement.getNamespaces();
//
retval = xmlEventFactory.createEndElement( qname, namespaces );
}
else if ( xmlEvent.isAttribute() )
{
//
final Attribute attribute = (Attribute) xmlEvent;
final QName name = attribute.getName();
//
final QName qname = this.xmlTagAndAttributeNameTransformer.transformAttributeName( name );
final String value = attribute.getValue();
//
retval = xmlEventFactory.createAttribute( qname, value );
}
//
return retval;
}
}
/**
* Implementation of a {@link Namespace} stack which can be used to distinguish if a single element should explicitly declare a
* {@link Namespace} or if a parental element did this already.
*
* @author Omnaest
*/
private static class NamespaceStack
{
/* ********************************************** Variables ********************************************** */
private final List<Map<String, String>> prefixToNamespaceUriMapList = new ArrayList<Map<String, String>>();
/* ********************************************** Methods ********************************************** */
/**
* Adds a new stack layer. This should be called for each StartElement with all the explicitly declared {@link Namespace}s by
* this element.
*
* @see #removeStack()
* @see Namespace
* @param namespaceIterator
*/
public void addStack( Iterator<Namespace> namespaceIterator )
{
//
final Map<String, String> prefixToNamespaceUriMap = new HashMap<String, String>();
{
//
if ( namespaceIterator != null )
{
for ( Namespace namespace : IterableUtils.valueOf( namespaceIterator ) )
{
if ( namespace != null )
{
//
final String prefix = namespace.getPrefix();
final String namespaceURI = namespace.getNamespaceURI();
prefixToNamespaceUriMap.put( prefix, namespaceURI );
}
}
}
}
this.prefixToNamespaceUriMapList.add( 0, prefixToNamespaceUriMap );
}
/**
* @param namespace
*/
public void addNamespaceToCurrentNamespaceStack( Namespace namespace )
{
//
final Map<String, String> prefixToNamespaceUriMap = ListUtils.firstElement( this.prefixToNamespaceUriMapList );
if ( prefixToNamespaceUriMap != null )
{
//
final String prefix = namespace.getPrefix();
final String namespaceUri = namespace.getNamespaceURI();
prefixToNamespaceUriMap.put( prefix, namespaceUri );
}
}
/**
* This should be called for each {@link EndElement}
*
* @see #addStack(Iterator)
*/
public void removeStack()
{
ListUtils.removeFirst( this.prefixToNamespaceUriMapList );
}
/**
* Returns true if the given {@link Namespace} is already declared
*
* @param prefix
* @param namespaceUri
* @return
*/
public boolean hasDeclaredNamespace( String prefix, String namespaceUri )
{
//
boolean retval = false;
//
for ( Map<String, String> prefixToNamespaceUriMap : this.prefixToNamespaceUriMapList )
{
//
if ( StringUtils.equalsIgnoreCase( namespaceUri, prefixToNamespaceUriMap.get( prefix ) ) )
{
retval = true;
break;
}
}
//
return retval;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString()
{
StringBuilder builder = new StringBuilder();
builder.append( "NamespaceStack [prefixToNamespaceUriMapList=" );
builder.append( this.prefixToNamespaceUriMapList );
builder.append( "]" );
return builder.toString();
}
}
/**
* Controls the traversal context over the {@link XMLStreamReader}
*
* @author Omnaest
*/
private static class TraversalContextControl
{
/* ********************************************** Variables ********************************************** */
private final List<QName> qNameList = new ArrayList<QName>();
/* ********************************************** Classes/Interfaces ********************************************** */
/**
* @see SelectionContext
* @author Omnaest
*/
private static class SelectionContextImpl implements SelectionContext
{
/* ********************************************** Variables ********************************************** */
private final List<QName> qNameList;
/* ********************************************** Methods ********************************************** */
/**
* @see SelectionContextImpl
* @param qNameList
*/
public SelectionContextImpl( List<QName> qNameList )
{
super();
this.qNameList = new ArrayList<QName>( qNameList );
}
@Override
public List<QName> getQNameHierarchy()
{
return this.qNameList;
}
@Override
public QName getQName()
{
return ListUtils.lastElement( this.qNameList );
}
}
/* ********************************************** Methods ********************************************** */
/**
* Returns the current {@link SelectionContext}
*
* @return
*/
public SelectionContext getCurrentSelectionContext()
{
return new SelectionContextImpl( this.qNameList );
}
/**
* Adds a new {@link QName} to the internal {@link List}
*
* @param qName
*/
public void addQName( QName qName )
{
this.qNameList.add( qName );
}
/**
* Deletes the last given {@link QName}
*/
public void reduceLastQName()
{
ListUtils.removeLast( this.qNameList );
}
}
/**
* Internal representation of an {@link Scope} based on a given {@link QName}
*
* @author Omnaest
*/
private static class Scope
{
/* ********************************************** Variables ********************************************** */
private final XMLElementSelector elementSelector;
private boolean isTraversed = false;
private int enclosureCount = 0;
/* ********************************************** Methods ********************************************** */
/**
* @param selectionContext
*/
public void visitStartElement( SelectionContext selectionContext )
{
if ( this.elementSelector.selectElement( selectionContext ) )
{
this.enclosureCount++;
}
}
/**
* @see Scope
* @param qName
*/
public Scope( QName qName )
{
super();
this.elementSelector = new XMLIteratorFactory.XMLElementSelectorQNameBased( qName );
}
/**
* @param selectionContext
*/
public void visitEndElement( SelectionContext selectionContext )
{
if ( this.elementSelector.selectElement( selectionContext ) )
{
this.enclosureCount--;
if ( this.enclosureCount == 0 )
{
this.isTraversed = true;
}
}
}
/**
* @return the isTraversed
*/
public boolean isTraversed()
{
return this.isTraversed;
}
/**
* Resets the traversed state to false
*/
public void resetTraversedState()
{
this.isTraversed = false;
}
/**
* Returns true if the current {@link Scope} has actually been entered
*
* @return
*/
public boolean hasBeenEntered()
{
return this.enclosureCount > 0;
}
}
/**
* Control structure for a given {@link List} of {@link Scope}s.
*
* @author Omnaest
*/
private static class ScopeControl
{
/* ********************************************** Variables ********************************************** */
private final List<Scope> scopeList;
/* ********************************************** Methods ********************************************** */
/**
* Resets any given {@link Scope} initially and begins to manage it
*
* @see ScopeControl
* @param scopeList
*/
public ScopeControl( List<Scope> scopeList )
{
super();
this.scopeList = scopeList;
//
if ( scopeList != null )
{
for ( Scope scope : scopeList )
{
scope.resetTraversedState();
}
}
}
/**
* Returns true if the {@link ScopeControl} manages at least {@link Scope} instance
*
* @return
*/
public boolean hasScopes()
{
return this.scopeList != null && !this.scopeList.isEmpty();
}
/**
* Returns true if any internal available {@link Scope} has been traversed
*
* @return
*/
public boolean hasTraversedAnyScope()
{
//
boolean retval = false;
//
if ( this.scopeList != null )
{
for ( Scope scope : this.scopeList )
{
if ( scope.isTraversed() )
{
retval = true;
break;
}
}
}
//
return retval;
}
/**
* @param selectionContext
* {@link SelectionContext}
*/
public void visitStartElement( SelectionContext selectionContext )
{
if ( this.scopeList != null )
{
for ( Scope scope : this.scopeList )
{
scope.visitStartElement( selectionContext );
}
}
}
/**
* @param selectionContext
* {@link SelectionContext}
*/
public void visitEndElement( SelectionContext selectionContext )
{
if ( this.scopeList != null )
{
for ( Scope scope : this.scopeList )
{
scope.visitEndElement( selectionContext );
}
}
}
/**
* Returns true if at least one {@link Scope} has been entered currently
*
* @return
*/
public boolean hasEnteredAnyScope()
{
//
boolean retval = false;
//
if ( this.scopeList != null )
{
for ( Scope scope : this.scopeList )
{
if ( scope.hasBeenEntered() )
{
//
retval = true;
break;
}
}
}
//
return retval;
}
}
/**
* Barrier which
*
* @author Omnaest
*/
private static class TouchBarrier
{
/* ********************************************** Variables / State ********************************************** */
private final XMLElementSelector xmlElementSelector;
/* ********************************************** Methods ********************************************** */
@SuppressWarnings("unused")
public TouchBarrier( XMLElementSelector xmlElementSelector )
{
super();
this.xmlElementSelector = xmlElementSelector;
}
public TouchBarrier( QName qName )
{
super();
this.xmlElementSelector = new XMLElementSelectorQNameBased( qName );
}
/**
* Returns true if the current {@link TouchBarrier} matches a given {@link SelectionContext}
*
* @param selectionContext
* @return
*/
protected boolean matches( SelectionContext selectionContext )
{
return this.xmlElementSelector.selectElement( selectionContext );
}
}
/**
* Controls structure for any given touch barrier {@link QName}
*
* @author Omnaest
*/
private static class TouchBarrierControl
{
/* ********************************************** Variables / State ********************************************** */
private final List<TouchBarrier> touchBarrierList;
private final ExceptionHandler exceptionHandler;
/* ********************************************** Methods ********************************************** */
/**
* @see TouchBarrierControl
* @param touchBarrierList
* {@link List} of {@link TouchBarrier}s
* @param exceptionHandler
* {@link ExceptionHandler}
*/
public TouchBarrierControl( List<TouchBarrier> touchBarrierList, ExceptionHandler exceptionHandler )
{
super();
this.touchBarrierList = touchBarrierList;
this.exceptionHandler = exceptionHandler;
}
/**
* Checks if any of the internal {@link TouchBarrier}s are matching the next {@link XMLEvent} of any {@link XMLEventReader}.
* To retrieve the next element use {@link XMLEventReader#peek()}, which does not remove the {@link XMLEvent} from the
* {@link XmlReader}s stream.
*
* @param xmlEventPeek
* {@link XMLEvent}
* @param qNameHierarchy
* @return true if the next element will touch any barrier
*/
public boolean isAnyBarrierTouched( XMLEvent xmlEventPeek, final List<QName> qNameHierarchy )
{
//
boolean retval = false;
//
if ( xmlEventPeek != null && xmlEventPeek.isStartElement() && this.touchBarrierList != null
&& !this.touchBarrierList.isEmpty() )
{
try
{
//
final QName qName = xmlEventPeek.asStartElement().getName();
final SelectionContext selectionContext = new SelectionContext()
{
@Override
public List<QName> getQNameHierarchy()
{
return qNameHierarchy;
}
@Override
public QName getQName()
{
return qName;
}
};
for ( TouchBarrier touchBarrier : this.touchBarrierList )
{
if ( touchBarrier != null )
{
//
final boolean matches = touchBarrier.matches( selectionContext );
if ( matches )
{
retval = true;
break;
}
}
}
}
catch ( Exception e )
{
this.exceptionHandler.handleException( e );
}
}
//
return retval;
}
}
/* ********************************************** Methods ********************************************** */
/**
* Note: the {@link XMLIteratorFactory} does not close the underlying {@link InputStream}
*
* @see XMLIteratorFactory
* @param inputStream
* {@link InputStream}
* @param exceptionHandler
* {@link ExceptionHandler}
*/
public XMLIteratorFactory( final InputStream inputStream, final ExceptionHandler exceptionHandler )
{
//
super();
//
this.xmlEventTransformerList = new ArrayList<XMLEventTransformer>();
this.exceptionHandler = ObjectUtils.defaultIfNull( exceptionHandler, new ExceptionHandlerIgnoring() );
this.xmlInstanceContextFactory = XMLIteratorFactory.XML_INSTANCE_CONTEXT_FACTORY_JAVA_STAX_DEFAULT;
this.xmlEventReaderCache = this.newXmlEventReaderCache( inputStream, exceptionHandler );
this.scopeList = new ArrayList<Scope>();
this.touchBarrierList = new ArrayList<TouchBarrier>();
this.traversalContextControl = new TraversalContextControl();
}
private CachedElement<XMLEventReader> newXmlEventReaderCache( final InputStream inputStream,
final ExceptionHandler exceptionHandler )
{
return new CachedElement<XMLEventReader>( new ValueResolver<XMLEventReader>()
{
@Override
public XMLEventReader resolveValue()
{
//
XMLEventReader retval = null;
//
try
{
//
final XMLInputFactory xmlInputFactory = XMLIteratorFactory.this.xmlInstanceContextFactory.newXmlInputFactory();
Assert.isNotNull( xmlInputFactory, "xmlInputFactory must not be null" );
//
retval = xmlInputFactory.createXMLEventReader( inputStream );
}
catch ( Exception e )
{
exceptionHandler.handleException( e );
}
//
return retval;
}
} );
}
/**
* Similar to {@link #XMLIteratorFactory(InputStream, ExceptionHandler)} using an {@link ExceptionHandlerIgnoring}
*
* @see XMLIteratorFactory
* @param inputStream
* {@link InputStream}
*/
public XMLIteratorFactory( InputStream inputStream )
{
//
this( inputStream, new ExceptionHandlerIgnoring() );
}
/**
* @see XMLIteratorFactory
* @param xmlEventReaderCache
* @param xmlInstanceContextFactory
* @param xmlTransformerList
* @param exceptionHandler
* @param scopeList
* @param touchBarrierList
* @param jaxbTypeContentConverterFactory
* @param traversalControl
*/
private XMLIteratorFactory( CachedElement<XMLEventReader> xmlEventReaderCache,
XMLInstanceContextFactory xmlInstanceContextFactory, List<XMLEventTransformer> xmlTransformerList,
ExceptionHandler exceptionHandler, List<Scope> scopeList, List<TouchBarrier> touchBarrierList,
TraversalContextControl traversalContextControl,
JAXBTypeContentConverterFactory jaxbTypeContentConverterFactory )
{
super();
this.xmlEventReaderCache = xmlEventReaderCache;
this.xmlEventTransformerList = xmlTransformerList;
this.exceptionHandler = exceptionHandler;
this.scopeList = scopeList;
this.touchBarrierList = touchBarrierList;
this.traversalContextControl = traversalContextControl;
this.xmlInstanceContextFactory = xmlInstanceContextFactory;
this.jaxbTypeContentConverterFactory = jaxbTypeContentConverterFactory;
}
/**
* This adds an {@link XMLEventTransformer} which does lower case the xml tag and attribute names
*
* @return new {@link XMLIteratorFactory} instance
*/
public XMLIteratorFactory doLowerCaseXMLTagAndAttributeNames()
{
//
final XMLTagAndAttributeNameTransformer xmlTagAndAttributeNameTransformer = new XMLTagAndAttributeNameTransformerLowerCase();
final XMLEventTransformer xmlEventTransformer = new XMLEventTransformerForTagAndAttributeName(
xmlTagAndAttributeNameTransformer );
return this.doAddXMLEventTransformer( xmlEventTransformer );
}
/**
* This adds an {@link XMLEventTransformer} which does remove all {@link Namespace} declarations on any xml tag and attribute
*
* @return new {@link XMLIteratorFactory} instance
*/
public XMLIteratorFactory doRemoveNamespacesForXMLTagAndAttributeNames()
{
//
final XMLTagAndAttributeNameTransformer xmlTagAndAttributeNameTransformer = new XMLTagAndAttributeNameTransformerRemoveNamespace();
final XMLEventTransformer xmlEventTransformer = new XMLEventTransformerForTagAndAttributeName(
xmlTagAndAttributeNameTransformer );
return this.doAddXMLEventTransformer( xmlEventTransformer );
}
/**
* This adds an {@link XMLEventTransformer} which does upper case the xml tag and attribute names
*
* @return new {@link XMLIteratorFactory} instance
*/
public XMLIteratorFactory doUpperCaseXMLTagAndAttributeNames()
{
//
final XMLTagAndAttributeNameTransformer xmlTagAndAttributeNameTransformer = new XMLTagAndAttributeNameTransformerUpperCase();
final XMLEventTransformer xmlEventTransformer = new XMLEventTransformerForTagAndAttributeName(
xmlTagAndAttributeNameTransformer );
return this.doAddXMLEventTransformer( xmlEventTransformer );
}
/**
* @param xmlEventTransformer
* @return new {@link XMLIteratorFactory} instance if the given {@link XMLEventTransformer} is not null otherwise this instance
*/
public XMLIteratorFactory doAddXMLEventTransformer( XMLEventTransformer xmlEventTransformer )
{
//
XMLIteratorFactory retval = this;
//
if ( xmlEventTransformer != null )
{
retval = new XMLIteratorFactory( this.xmlEventReaderCache, this.xmlInstanceContextFactory,
ListUtils.addToNewList( this.xmlEventTransformerList, xmlEventTransformer ),
this.exceptionHandler, this.scopeList, this.touchBarrierList,
this.traversalContextControl, this.jaxbTypeContentConverterFactory );
}
//
return retval;
}
/**
* Returns a new {@link XMLIteratorFactory} instance with the configuration of this one but holding an additional xml tag scope
* restriction. A scope restriction means that the internal stream is forwarded until it finds the beginning of a xml tag and
* which is stopped when the end of the same xml tag is reached. <br>
* <br>
* Be aware of the fact that scopes can be nested. To begin reading elements only one of all the scopes have to be entered. To
* stop an {@link Iterator} only one of the scopes has to be left. <br>
* So it is quite possible that even if one scope is left an enclosing scope is still valid, which means the selection matching
* is immediately active again until the enclosing scope is now left. <br>
* <br>
* After a scope has been passed it is possible to iterate further by creating a new {@link Iterator}.
*
* @param tagName
* {@link QName}
* @return
*/
public XMLIteratorFactory doAddXMLTagScope( QName tagName )
{
//
XMLIteratorFactory retval = this;
//
if ( tagName != null )
{
//
final Scope scope = new Scope( tagName );
retval = new XMLIteratorFactory( this.xmlEventReaderCache, this.xmlInstanceContextFactory, this.xmlEventTransformerList,
this.exceptionHandler, ListUtils.addToNewList( this.scopeList, scope ),
this.touchBarrierList, this.traversalContextControl, this.jaxbTypeContentConverterFactory );
}
//
return retval;
}
/**
* Returns a new {@link XMLIteratorFactory} instance with the configuration of this one but holding an additional xml tag touch
* barrier restriction. A touch barrier restriction means that the internal stream is validated in advance if the next start
* element will match the given xml tag. If this is the case, the traversal is stopped and the next element keeps unread, so
* that any further attempt to create a new {@link Iterator} of any kind will use the still remaining element of the touch
* barrier. <br>
* <br>
*
* @param tagName
* {@link QName}
* @return new {@link XMLIteratorFactory} instance
*/
public XMLIteratorFactory doAddXMLTagTouchBarrier( QName tagName )
{
//
XMLIteratorFactory retval = this;
//
if ( tagName != null )
{
//
final TouchBarrier touchBarrier = new TouchBarrier( tagName );
retval = new XMLIteratorFactory( this.xmlEventReaderCache, this.xmlInstanceContextFactory, this.xmlEventTransformerList,
this.exceptionHandler, this.scopeList, ListUtils.addToNewList( this.touchBarrierList,
touchBarrier ),
this.traversalContextControl, this.jaxbTypeContentConverterFactory );
}
//
return retval;
}
/**
* If given true as parameter the returned {@link Iterator} instances will use {@link ThreadLocal} states. This results in the
* case that if one {@link Thread} resolves true for the {@link Iterator#hasNext()} function, the respective value will be
* locked to this {@link Thread}. Another {@link Thread} would e.g. then get false for the {@link Iterator#hasNext()} function
* even if the first {@link Thread} did not yet pulled the explicit value by invoking the {@link Iterator#next()} method.<br>
* <br>
* Even if this circumstance allows to share any created {@link Iterator} instance between threads without loosing the contract
* of the {@link Iterator}, it must be ensured that any {@link Thread} which requests {@link Iterator#hasNext()} do actually
* pull the value. Otherwise the internally backed value gets lost with the dereferencing of the {@link ThreadLocal}.
*
* @param threadsafe
* @return this
*/
public XMLIteratorFactory doCreateThreadsafeIterators( boolean threadsafe )
{
//
if ( threadsafe )
{
this.accessorFactory = this.THREADLOCAL_BASED_ACCESSOR_FACTORY;
}
else
{
this.accessorFactory = this.SIMPLE_ACCESSOR_FACTORY;
}
//
return this;
}
/**
* New {@link Iterator} which returns xml content chunks for all xml tags matching the given {@link QName} <br>
* <br>
* Performance is fast with about <b>10000 elements per second</b> beeing processed
*
* @see #newIterator(QName, ElementConverter)
* @param qName
* {@link QName}
* @return
*/
public Iterator<String> newIterator( final QName qName )
{
//
return newIterator( qName, new ElementConverterIdentitiyCast<String, String>() );
}
/**
* New {@link Iterator} which returns {@link Map} entities each based on a single content chunk which are produced for all xml
* tags matching the given {@link QName} <br>
* <br>
* Performance is medium to slow with about <b>1000 elements per second</b> beeing processed. <br>
* <br>
* For details how xml content is transformed to a {@link Map} instance see {@link XMLNestedMapConverter}
*
* @see XMLNestedMapConverter
* @see #newIterator(QName, ElementConverter)
* @param qName
* {@link QName}
* @return
*/
public Iterator<Map<String, Object>> newIteratorMapBased( final QName qName )
{
//
final ElementConverter<String, Map<String, Object>> elementConverter = new ElementConverter<String, Map<String, Object>>()
{
@SuppressWarnings("unchecked")
@Override
public Map<String, Object> convert( String element )
{
//
final Map<String, Object> mapFromXML = new XMLNestedMapConverter().setExceptionHandler( XMLIteratorFactory.this.exceptionHandler )
.setXmlInstanceContextFactory( XMLIteratorFactory.this.xmlInstanceContextFactory )
.newMapFromXML( element );
final Entry<String, Object> firstEntry = MapUtils.firstEntry( mapFromXML );
final Object value = firstEntry != null ? firstEntry.getValue() : null;
return (Map<String, Object>) ( value instanceof Map ? value : null );
}
};
return newIterator( qName, elementConverter );
}
/**
* Similar to {@link #newIterator(QName)} but allows to specify an additional {@link ElementConverter} which post processes the
* extracted xml chunks
*
* @param qName
* {@link QName}
* @param elementConverter
* {@link ElementConverter}
* @return
*/
public <E> Iterator<E> newIterator( final QName qName, ElementConverter<String, E> elementConverter )
{
//
final XMLElementSelector xmlElementSelector = new XMLElementSelectorQNameBased( qName );
return newIterator( xmlElementSelector, elementConverter );
}
/**
* Selects xml parts based on {@link Class}es annotated with JAXB compliant annotations and uses JAXB to create instances of the
* given type based on the data of the extracted xml chunks. <br>
* <br>
* Performance is slow with about <b>500 elements per second</b> beeing processed
*
* @param type
* @return
* @throws MissingXMLRootElementAnnotationException
*/
public <E> Iterator<E> newIterator( final Class<? extends E> type )
{
//
final QName qName = JAXBXMLHelper.determineRootName( type );
XMLElementSelector xmlElementSelector = new XMLElementSelectorQNameBased( qName );
//
return this.newIterator( xmlElementSelector, type );
}
/**
* Similar to {@link #newIterator(Class)} but allows to specify a {@link XMLElementSelector} to select tags from the xml stream.
*
* @param xmlElementSelector
* {@link XMLElementSelector}
* @param type
* @return
*/
public <E> Iterator<E> newIterator( final XMLElementSelector xmlElementSelector, final Class<? extends E> type )
{
//
final ElementConverter<String, E> elementConverter = this.jaxbTypeContentConverterFactory.newElementConverter( type,
this.exceptionHandler );
return newIterator( xmlElementSelector, elementConverter );
}
/**
* Similar to {@link #newIterator(QName, ElementConverter)} but allows to specify a more general {@link XMLElementSelector}
* instead of a {@link QName}
*
* @param xmlElementSelector
* {@link XMLElementSelector}
* @param elementConverter
* {@link ElementConverter}
* @return
*/
public <E> Iterator<E> newIterator( final XMLElementSelector xmlElementSelector,
final ElementConverter<String, E> elementConverter )
{
//
final Iterator<String> iterator = newIterator( xmlElementSelector );
return IteratorUtils.adapter( iterator, elementConverter );
}
/**
* Similar to {@link #newIterator(QName)} but allows to specify a more general {@link XMLElementSelector} instead of a
* {@link QName}
*
* @param xmlElementSelector
* @return
*/
public Iterator<String> newIterator( final XMLElementSelector xmlElementSelector )
{
//
Iterator<String> retval = null;
//
final XMLEventReader xmlEventReader = this.getXmlEventReader();
if ( xmlEventReader != null && xmlElementSelector != null )
{
try
{
//
final XMLOutputFactory xmlOutputFactory = this.xmlInstanceContextFactory.newXmlOutputFactory();
final XMLEventFactory xmlEventFactory = this.xmlInstanceContextFactory.newXmlEventFactory();
Assert.isNotNull( xmlOutputFactory, "xmlOutputFactory must not be null" );
Assert.isNotNull( xmlEventFactory, "xmlEventFactory must not be null" );
//
final ScopeControl scopeControl = new ScopeControl( this.scopeList );
final TouchBarrierControl touchBarrierControl = new TouchBarrierControl( this.touchBarrierList, this.exceptionHandler );
final Accessor<String> accessor = this.newAccessor();
//
retval = new XMLIterator( accessor, scopeControl, this.exceptionHandler, xmlEventReader, xmlEventFactory, this.encoding,
this.traversalContextControl, xmlElementSelector, xmlOutputFactory, touchBarrierControl,
this.xmlEventTransformerList );
}
catch ( Exception e )
{
this.exceptionHandler.handleException( e );
}
}
//
return retval;
}
/**
* Returns a new instance of an {@link Accessor} using the internal {@link #accessorFactory}. If the {@link #accessorFactory} is
* null it will be set to the {@link #SIMPLE_ACCESSOR_FACTORY}.
*
* @return
*/
private Accessor<String> newAccessor()
{
//
if ( this.accessorFactory == null )
{
this.accessorFactory = this.SIMPLE_ACCESSOR_FACTORY;
}
//
return this.accessorFactory.newInstance();
}
/**
* Sets the encoding. Default is {@value #DEFAULT_ENCODING}
*
* @param encoding
* the encoding to set
* @return this
*/
public XMLIteratorFactory setEncoding( String encoding )
{
this.encoding = encoding;
return this;
}
/**
* Closes the internal {@link XMLEventReader} which closes all iterators immediately
*/
public XMLIteratorFactory close()
{
//
try
{
this.getXmlEventReader().close();
}
catch ( XMLStreamException e )
{
if ( this.exceptionHandler != null )
{
this.exceptionHandler.handleException( e );
}
}
//
return this;
}
/**
* Returns the {@link XMLEventReader} from the {@link #xmlEventReaderCache}
*
* @return
*/
private XMLEventReader getXmlEventReader()
{
return this.xmlEventReaderCache.getValue();
}
/**
* Allows to set an alternative {@link XMLInstanceContextFactory}, e.g. to replace the current java default stax implementation
* by another one like Staxon or Jettison for JSON
*
* @see #XML_INSTANCE_CONTEXT_FACTORY_JAVA_STAX_DEFAULT
* @param xmlInstanceContextFactory
* {@link XMLInstanceContextFactory}
* @return this
*/
public XMLIteratorFactory setXmlInstanceContextFactory( XMLInstanceContextFactory xmlInstanceContextFactory )
{
this.xmlInstanceContextFactory = xmlInstanceContextFactory;
return this;
}
/**
* Allows to set another {@link JAXBTypeContentConverterFactory} which is used to convert xml content to instances of JAXB based
* types. See {@link #newIterator(Class)}.
*
* @see #DEFAULT_JAXB_TYPE_CONTENT_CONVERTER_FACTORY
* @param jaxbTypeContentConverterFactory
* {@link JAXBTypeContentConverterFactory}
* @return this
*/
public XMLIteratorFactory setJAXBTypeContentConverterFactory( JAXBTypeContentConverterFactory jaxbTypeContentConverterFactory )
{
this.jaxbTypeContentConverterFactory = jaxbTypeContentConverterFactory;
return this;
}
}
|
// list returns a slice with all required keys of the given table.
func (m *Data) list(keys [][]byte, table []byte) (res []Keyer, err error) {
err = m.db.View(func(tx *bolt.Tx) error {
b := tx.Bucket(table)
for _, key := range keys {
v := b.Get(key)
d, err := newFor(table)
if err != nil {
return errors.WithMessage(err, string(table))
}
if err := json.Unmarshal(v, d); err != nil {
return err
}
res = append(res, d)
}
return nil
})
return
} |
<gh_stars>100-1000
from .silenttrinity_c2 import *
|
LIVERPOOL fear Lucas could be out of action for around a month.
The Reds midfielder lasted only 15 minutes of Saturday's Merseyside derby before hobbling off with a groin problem.
Lucas, 28, will undergo a scan later today to determine the exact damage suffered in the clash with Everton.
The Brazil international came into the game having just recovered from another injury.
He missed the FA Cup win over Bolton last week with a thigh problem linked to the abductor muscle and failed to train properly ahead of the 0-0 draw with Everton.
Lucas has played a big role in the Reds' recent resurgence but Kop boss Brendan Rodgers will have to do without him for Tuesday's clash against Tottenham.
Liverpool are four points behind Spurs heading into the pivotal clash in the top-four race as both sides chase Champions League football.
But they are also waiting to see if Raheem Sterling and Philippe Coutinho are fit having picked up knows in the Everton draw. |
Finite Element Analysis on the Stress and Fracture in the Second Metatarsal Footwear has direct impact on the stress level in the metatarsal bones of human feet. In particular, stress fractures at the neck of the second metatarsal are the most common injuries. A finite element analysis was carried out to study the load and stress level in the second metatarsal of a 50-kg female wearing flat and high-heel shoes. It found that the bending of metatarsal due to the flat-footed posture increases the chance of fracture, and the stiletto (high-heeled) posture leads to large compressive stress. |
import { Component, OnInit } from '@angular/core';
import { Service } from '../service/service';
import { Router } from "@angular/router"
import { ToastrService } from 'ngx-toastr';
@Component({
selector: 'app-user-form',
templateUrl: './user-form.component.html',
styleUrls: ['./user-form.component.css']
})
export class UserFormComponent implements OnInit {
rating: any;
message: any;
response: any = [];
email: any;
loading_spinner: Boolean = false;
constructor(public Service: Service, private _router: Router, private toastr: ToastrService) { }
ngOnInit(): void {
}
feedback() {
this.loading_spinner = true;
const userData = {
email:this.email,
rating: this.rating,
message: this.message,
}
console.log("feedback detailsssssss ", userData);
this.Service.postfeedback(userData).subscribe(userData => {
var dataInfo: any = userData;
this.toastr.success(dataInfo.message)
this.loading_spinner = false;
this.rating = '';
this.message = '';
this.email=""
}, err => {
let error = err
console.log("error message ", error);
this.toastr.error(error.error.message);
})
}
}
|
Anaphylactoid reaction to oral premedication with temazepam and promethazine injection of contrast medium. Satisfactory placement was achieved on each occasion simply by withdrawal of the needle by 1 or 2 mm, and the infiltration was performed uneventfully. The anterior facet joint capsule is formed by the ligamentum flavum, so it is very probable that overpenetration of the joint will result in intrathecal injection. We strongly support the recommendations of Goldstone and Pennant about the availability of resuscitation equipment. In addition, we suggest that bony contact with the most posterior part of one of the articular facets should be deliberately sought during needle placement, to act as a depth gauge for subsequent needle advancement which should be no more than 2 or 3 mm beyond this level. It is interesting that the authors use of low-volume facet arthrography did not prevent this complication. We have found the images obtained by facet arthrography to be sometimes difficult or impossible to interpret with confidence, even when volumes of 0.5-1 ml contrast medium are employed. Frequent aspiration is prudent even after unequivocal arthrography, since most patients tend to shift position during this uncomfortable procedure and might perhaps disturb the needle tip by so doing. |
FEMININE FLUIDITY : MIND VERSUS BODY IN PILGRIMAGE Although it was Pilgrimage that provoked it, Dorothy Richardson rejected the literary description stream of consciousness. Stream of consciousness is a muddle-headed phrase. It is not a stream, its a pool, a sea, an ocean she is reported to have said to Vincent Brome. Always unsatisfied with Sinclairs categorisation, Richardson had sought a new outlet for her feminine prose; while initially appearing to follow along standard lines, Pilgrimage ultimately challenged the traditional view that there are correlations between men, mind, and intellect on the one hand, and women, the body, and fluidity on the other. So, if consciousness was not a stream, what was the relationship between the concept of feminine fluidity and Richardsons work? To answer that question this article will trace discussions of feminine fluidity through feminist discourses that connect fluidity with ideas of pollution, materiality, contamination and a viscous uncontrollability. |
Taking Full Advantage of the Statistical Properties of Commodity Investments It is well documented that the statistical properties of commodities yield important risk-reduction benefits for a portfolio invested mainly in financial assets. It is perhaps less well known that individual commodity strategies can be so uncorrelated that they can significantly dampen the risk of a commodity-only portfolio. In this article, we suggest that investors take full advantage of the unique statistical properties of commodity investments in their portfolios by adding commodity assets to a financial-only portfolio as well as taking full advantage of the correlation properties of commodity strategies within a commodity-only portfolio. |
<filename>app/src/main/java/org/gortz/greeniot/smartcityiot2/fragments/settings/SettingsConnectionsFragment.java
package org.gortz.greeniot.smartcityiot2.fragments.settings;
import android.content.Context;
import android.os.Bundle;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.CompoundButton;
import android.widget.Switch;
import android.widget.TextView;
import java.util.ArrayList;
import org.gortz.greeniot.smartcityiot2.R;
import org.gortz.greeniot.smartcityiot2.activity.SettingsActivity;
import org.gortz.greeniot.smartcityiot2.view.NonScrollListView;
import org.gortz.greeniot.smartcityiot2.database.entity.Connection;
/**
* Displays all connections and handles creation of new connections.
*/
public class SettingsConnectionsFragment extends Fragment {
private NonScrollListView mqttList;
private NonScrollListView apiList;
private SettingsActivity activity;
private View v;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
v = inflater.inflate(R.layout.settings_connections_view, container, false);
this.activity = (SettingsActivity) getActivity();
activity.hideDrawer();
mqttList = (NonScrollListView)v.findViewById(R.id.mqtt_list);
mqttList.setAdapter(new MqttListviewContactAdapter(getActivity(), activity.getAllConnectionsByType("mqtt")));
mqttList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
MQTTFragment mqttFragment = new MQTTFragment();
Bundle args = new Bundle();
args.putInt("id",(int) id);
mqttFragment.setArguments(args);
activity.goToFragment(mqttFragment);
}
});
apiList = (NonScrollListView)v.findViewById(R.id.api_list);
apiList.setAdapter(new APIListviewContactAdapter(getActivity(), activity.getAllConnectionsByType("restapi")));
apiList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
RestAPIFragment restAPIFragment = new RestAPIFragment();
Bundle args = new Bundle();
args.putInt("id",(int) id);
restAPIFragment.setArguments(args);
activity.goToFragment(restAPIFragment);
}
});
return v;
}
private final class MqttListviewContactAdapter extends BaseAdapter {
private ArrayList<Connection> connections;
private final String CONNECTION_TYPE = "mqtt";
private LayoutInflater mInflater;
public MqttListviewContactAdapter(Context photosFragment, ArrayList<Connection> results){
connections = results;
mInflater = LayoutInflater.from(photosFragment);
}
@Override
public int getCount() {
return connections.size();
}
@Override
public Object getItem(int arg0) {
return connections.get(arg0);
}
@Override
public long getItemId(int arg0) {
return connections.get(arg0).getId();
}
@Override
public boolean areAllItemsEnabled() {
return true;
}
@Override
public boolean isEnabled(int position) {
return true;
}
public View getView(final int position, View convertView, ViewGroup parent) {
MqttListviewContactAdapter.ViewHolder holder;
if(convertView == null){
convertView = mInflater.inflate(R.layout.connection_item_broker, null);
holder = new MqttListviewContactAdapter.ViewHolder();
holder.connectionURL = (TextView) convertView.findViewById(R.id.connection_url);
holder.connectionDescription = (TextView) convertView.findViewById(R.id.connection_description);
convertView.setTag(holder);
} else {
holder = (MqttListviewContactAdapter.ViewHolder) convertView.getTag();
}
Switch activeConnection = (Switch) convertView.findViewById(R.id.active_connection);
activeConnection.setOnCheckedChangeListener(null);
activeConnection.setChecked(connections.get(position).isActive());
holder.connectionDescription.setText(connections.get(position).getArg0());
holder.connectionURL.setText(connections.get(position).getUrl()+":"+String.valueOf(connections.get(position).getPort()));
activeConnection.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
activity.setConnectionsActive(CONNECTION_TYPE, connections.get(position).getId(),isChecked);
}
});
return convertView;
}
private class ViewHolder{
TextView connectionURL,connectionDescription;
}
}
private final class APIListviewContactAdapter extends BaseAdapter {
private ArrayList<Connection> connections;
private final String CONNECTION_TYPE = "restapi";
private LayoutInflater mInflater;
public APIListviewContactAdapter(Context photosFragment, ArrayList<Connection> results){
connections = results;
mInflater = LayoutInflater.from(photosFragment);
}
@Override
public int getCount() {
return connections.size();
}
@Override
public Object getItem(int arg0) {
return connections.get(arg0);
}
@Override
public long getItemId(int arg0) {
return connections.get(arg0).getId();
}
@Override
public boolean areAllItemsEnabled() {
return true;
}
@Override
public boolean isEnabled(int position) {
return true;
}
public View getView(final int position, View convertView, ViewGroup parent) {
APIListviewContactAdapter.ViewHolder holder;
if(convertView == null){
convertView = mInflater.inflate(R.layout.connection_item_api, null);
holder = new APIListviewContactAdapter.ViewHolder();
holder.connectionURL = (TextView) convertView.findViewById(R.id.connection_url);
convertView.setTag(holder);
} else {
holder = (APIListviewContactAdapter.ViewHolder) convertView.getTag();
}
Switch activeConnection = (Switch) convertView.findViewById(R.id.active_api);
activeConnection.setOnCheckedChangeListener(null);
activeConnection.setChecked(connections.get(position).isActive());
holder.connectionURL.setText(connections.get(position).getUrl()+":"+String.valueOf(connections.get(position).getPort()));
activeConnection.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
activity.setConnectionsActive(CONNECTION_TYPE, connections.get(position).getId(),isChecked);
}
});
return convertView;
}
private class ViewHolder{
TextView connectionURL;
}
}
}
|
Matt McClure (footballer)
Club career
McClure started his career in the Wycombe Wanderers youth team and had spells at Burnham and Wealdstone on work experience deals during the 2009–10 season. He made his Wycombe first team debut as a late substitute against Shrewsbury Town on 25 September 2010. On 12 August 2011 McClure joined Hayes & Yeading on a month's loan. He scored nine minutes into his debut against Alfreton Town, but later suffered a dislocated ankle, leaving him out of action for several months. After returning from injury, McClure scored his first professional goal for Wycombe in a 4–1 defeat to Scunthorpe United on 3 March 2012.
On 20 November 2012, McClure scored two goals as Wycombe beat Rotherham United 3–2 at the New York Stadium. The following week he scored 2 more goals in a 3–0 home win against Burton Albion.
On 15 December 2012, McClure scored Wycombe's second goal in a 2–0 win over Accrington Stanley. Later in the match he was sent off for a second bookable offence.
On 3 March 2015, McClure came on as a substitute in the 68th minute in place of Sam Saunders in an eventual 2–1 away win at Tranmere Rovers, but was given a straight red card 70 seconds after coming on for elbowing Adam Dugdale. Later that year he was released by Wycombe.
On July 16, 2015 McClure signed for fellow League 2 side Dagenham & Redbridge.
In April 2019, he was released by Aldershot Town.
International career
McClure made his debut for the Northern Ireland under-19 team against Switzerland in April 2009. He received his first call-up to the Northern Ireland under-21 squad on 3 May 2012, for the European U21 Championship qualifier against Macedonia, and made his debut on 10 May 2012 as an 86th-minute substitute. |
<gh_stars>0
/*****************************************************************************************
* *
* OpenSpace *
* *
* Copyright (c) 2014-2020 *
* *
* 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. *
****************************************************************************************/
#ifndef __OPENSPACE_CORE___SYNCHRONIZATIONWATCHER___H__
#define __OPENSPACE_CORE___SYNCHRONIZATIONWATCHER___H__
#include <openspace/util/resourcesynchronization.h>
#include <memory>
#include <mutex>
#include <vector>
#include <unordered_map>
namespace openspace {
/**
* Delays callbacks of synchronization state changes to
* when notify is called.
*/
class SynchronizationWatcher {
public:
using WatchHandle = size_t;
struct WatchData {
std::weak_ptr<ResourceSynchronization> synchronization;
ResourceSynchronization::CallbackHandle callbackHandle;
};
struct NotificationData {
std::weak_ptr<ResourceSynchronization> synchronization;
ResourceSynchronization::State state;
WatchHandle handle;
ResourceSynchronization::StateChangeCallback callback;
};
WatchHandle watchSynchronization(
std::shared_ptr<ResourceSynchronization> synchronization,
ResourceSynchronization::StateChangeCallback callback
);
void unwatchSynchronization(WatchHandle watchHandle);
void notify();
private:
std::mutex _mutex;
std::unordered_map<WatchHandle, WatchData> _watchedSyncs;
std::vector<NotificationData> _pendingNotifications;
WatchHandle nextWatchHandle = 0;
};
} // namespace openspace
#endif // __OPENSPACE_CORE___SYNCHRONIZATIONWATCHER___H__
|
Hedge fund managers appear unconcerned about the sharp price drops of Fannie Mae and Freddie Mac stock this week and remain committed to what could be one of the most lucrative buy-cheap, sell-high investments since the financial crisis.
Common shares of the two companies declined as much as 30 percent this week after the Senate Banking Committee announced an agreement Tuesday on legislation to wind down and eliminate the government-sponsored mortgage backers in favor of a reorganized Federal Mortgage Insurance Corp.
The proposal would see private investors taking the first 10 percent of losses. Preferred shares, which theoretically would be paid first in a liquidation, also fell—albeit not as sharply.
A slew of commentary followed from politicians, analysts, consumer advocates and others on the plan and its value. But a small group of hedge and mutual funds is ignoring the chatter and paper losses in hopes of a much bigger payday.
Those that remain invested in the preferred shares of Fannie and Freddie include Richard Perry's Perry Capital, John Paulson's Paulson & Co., Bruce Berkowitz's Fairholme and David Ford's Latigo Partners. Bill Ackman's Pershing Square Capital Management has a position in the firms' common stock. Representatives for those firms declined to comment or did not respond to requests.
Also reported to have positions in Fannie and Freddie are Jeffrey Altman's Owl Creek Asset Management, Kenneth Goodreau's TIG Advisors and consumer advocate Ralph Nader.
"All of the stuff that has gone on this week is absolute noise," said the manager a hedge fund invested in preferred and regular shares of Fannie and Freddie.
"We've known for a long time that Congress is shooting against Fannie and Freddie and that there could be no value for shareholders if they are successful," added the manager, who asked not to be identified. "None of that has changed and therefore our thesis has not changed."
The value of the funds' holdings have already appreciated significantly since many bought Fannie and Freddie stock for literally pennies after the government bailed out the agencies during the financial crisis. Both have gone up more than 1,100 percent over the last 12 months.
But there could be even more profit.
Two of the most prominent shareholders, Perry and Fairholme, are in the middle of litigation to receive payment on the preferred shares they hold.
"We remain focused on the rule of law and working through the courts to make sure the law is respected," said Matt McGill, a partner at Gibson, Dunn & Crutcher, which is representing Perry in its lawsuit. "The legislative process in the House and Senate is going to move at its own pace, but if the goal is for private capital to take the lead in a reformed system, the rights of private investors must be respected."
The government decided in 2012 it would keep any future profits on the stocks because of the risk taxpayers took in rescuing the agencies for $187.5 billion, a sum that is just now in the final stages of being repaid.
That decision to "sweep" profits to the U.S. Treasury essentially wiped out all shareholders, including those with the "preferred" status they theoretically have. Perry, Fairholme and others argue that the "sweep" decision is unconstitutional.
To earn the big payout the funds are targeting, two things likely need to happen: First, the courts need to overturn the sweep decision, which would allow Fannie and Freddie to begin accumulating profits instead of passing it on to the Treasury. Second, Congress needs to reform Fannie and Freddie without liquidating them, thereby allowing shareholders to start collecting the profits on their business.
If both things happen, that would mean big money for the investors—preferred shares of Fannie and Freddie are worth a face value of $33 billion today. But the same shares will likely be worthless if the funds lose in court and the new Senate liquidation legislation proposed this week passes.
The recent congressional proposal does not address the investor issue and GOP Sens. Bob Corker of Tennessee and Mike Crapo of Idaho have said the courts should decide if the hedge and mutual funds are paid.
Separately, hedge funds that trade so-called "agency" mortgage-backed securities—packages of home loans made by the government-affiliated agencies like Fannie and Freddie—aren't concerned about their market going away.
"Even though the plan relies on private capital to take the first 10 percent of risk, I believe that the government will always step in as the mortgage lender of last resort, as it has been for the past six years," said Reza Ali, founder of $1.5 billion bond-focused hedge fund Prosiris Capital Management. "I do not believe politicians will permanently abandon the housing market when the next crisis hits and drives private capital away."
Another longtime government-backed mortgage investor said the Senate plan to attract private capital to the market would provide fresh trading opportunities.
"It actually creates a ton of volatility and uncertainty around the market, which for me as an investor is something that I think is enticing and I'm excited about," said Troy Dixon, a former senior mortgage trader at Deutsche Bank who is preparing the launch of a potentially $200 million hedge fund this summer, Hollis Park Partners.
"From my perspective I know you cannot shrink that market to zero so it's not like the market's going away, i.e. a non-agency market," Dixon added. "It's just too big a portion of our economy and the American dream to go away."
—By CNBC's Lawrence Delevingne. Follow him on Twitter @ldelevingne . |
/**
* Adds the object to the pool if an identical copy doesn't already exist.
* @param obj The object to be added
* @return The unique object contained in the HashPool
*/
public E add(E obj){
int hash = obj == null ? 0 : obj.hashCode();
ArrayList<E> hashMatches = get(hash);
if(hashMatches == null){
hashMatches = new ArrayList<E>();
hashMatches.add(obj);
put(hash, hashMatches);
addToEnumerationMap(obj,enumerations.size());
enumerations.add(obj);
return obj;
}
else{
for(E e :hashMatches){
if(e.equals(obj)){
return e;
}
}
hashMatches.add(obj);
put(hash, hashMatches);
addToEnumerationMap(obj,enumerations.size());
enumerations.add(obj);
return obj;
}
} |
<gh_stars>1-10
package main
// Slack outgoing and incoming webhooks are handled here. Requests come in and
// are examined to see if we need to respond. If we do, we set a timer to check
// if a response was already posted by calling the history api. Responses are
// sent back using an incoming webhook.
//
// Create an outgoing webhook in your Slack here:
// https://my.slack.com/services/new/outgoing-webhook
//
// Create an incoming webhook in your Slack here:
// https://my.slack.com/services/new/incoming-webhook
import (
"encoding/json"
"errors"
"io/ioutil"
"log"
"net/http"
"net/url"
"strconv"
"strings"
"time"
)
type WebhookResponse struct {
Username string `json:"username"`
Text string `json:"text"`
Channel string `json:"channel"`
}
type ChannelMessage struct {
Type string
Subtype string
Username string
TS string
User string
Text string
}
type HistoryResponse struct {
Ok bool
Error string
Messages []ChannelMessage
Latest string
Oldest string
HasMore bool
}
func init() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
incomingText := r.PostFormValue("text")
log.Printf("Handling incoming request: %s", incomingText)
if incomingText == ":point_right:" {
// Wait 1 minute and then see if anyone replied
log.Print("Waiting to bump")
go func() {
time.Sleep(30 * time.Second)
log.Print("Checking history")
messages, err := MakeHistoryCall(r.PostFormValue("channel_id"), r.PostFormValue("timestamp"))
if err == nil {
log.Printf("History returned %d new messages", len(messages))
needsResponse := true
for _, m := range messages {
if strings.Contains(m.Text, ":point_left") {
needsResponse = false
break
}
}
if needsResponse {
log.Print("Completing bump")
err := MakeIncomingWebhookCall(r.PostFormValue("team_domain"), r.PostFormValue("channel_id"), ":point_left:")
if err != nil {
log.Fatal(err)
}
} else {
log.Print("Bump has already been completed")
}
} else {
log.Fatal(err)
}
}()
}
})
}
func StartServer(port int) {
log.Printf("Starting HTTP server on %d", port)
err := http.ListenAndServe(":"+strconv.Itoa(port), nil)
if err != nil {
log.Fatal("ListenAndServe: ", err)
}
}
func MakeHistoryCall(channel_id string, ts string) ([]ChannelMessage, error) {
var method string
if strings.HasPrefix(channel_id, "C") {
method = "channels.history"
} else if strings.HasPrefix(channel_id, "G") {
method = "groups.history"
} else if strings.HasPrefix(channel_id, "D") {
method = "im.history"
} else {
return nil, errors.New("Unknown channel type")
}
// Build our query
apiUrl := url.URL{
Scheme: "https",
Host: "slack.com",
Path: "/api/" + method,
}
apiParams := url.Values{}
apiParams.Set("token", apiKey)
apiParams.Set("channel", channel_id)
apiParams.Set("oldest", ts)
apiUrl.RawQuery = apiParams.Encode()
// Execute call
log.Print(apiUrl.String())
res, err := http.Get(apiUrl.String())
if err != nil {
return nil, err
}
// read response
body, _ := ioutil.ReadAll(res.Body)
// parse into json
var h HistoryResponse
err = json.Unmarshal(body, &h)
if err != nil {
return nil, err
}
if h.Ok != true {
return nil, errors.New("API Error: " + h.Error)
}
return h.Messages, nil
}
func MakeIncomingWebhookCall(domain string, channel_id string, text string) error {
// Build our query
webhookUrl := url.URL{
Scheme: "https",
Host: domain + ".slack.com",
Path: "/services/hooks/incoming-webhook",
}
// Construct response payload
var response WebhookResponse
response.Username = botUsername
response.Text = text
response.Channel = channel_id
payload, err := json.Marshal(response)
if err != nil {
return err
}
webhookParams := url.Values{}
webhookParams.Set("token", webhookToken)
webhookParams.Set("payload", string(payload))
webhookUrl.RawQuery = webhookParams.Encode()
// Execute call
_, err = http.PostForm(webhookUrl.String(), webhookParams)
if err != nil {
return err
}
return nil
}
|
The ecological and economic values of a 50 years old secondary forest in East Kalimantan, Indonesia Karmini, Karyati, Widiati KY. 2021. The ecological and economic values of a 50 years old secondary forest in East Kalimantan, Indonesia. Biodiversitas 22: 4597-4607. Secondary forests in the tropics are often ignored since they are assumed to have low ecological functions while on the other hand the economic values have been reduced. This study aimed to analyze the ecological and economic values of a 50-year secondary forest in East Kalimantan that experienced several various land-use changes. The ecological aspects analyzed were stand structure, floristic composition, and species diversity. Economic aspects include log prices, logging costs, profit margins, and stumpage values. A vegetation survey of woody trees with a diameter at breast height of more than 5 cm was carried out on ten plots measuring 20 m 20 m each. A total of 437 trees belonging to 38 species, 30 genera, and 19 families were recorded with Moraceae and Euphorbiaceae were the most dominant families with Family Important Value (FIV) of 86.79. The three most dominant species were Macaranga motleyana (IVi of 50.95), Artocarpus elasticus (IVi of 34.41), and Symplocos fasciculata (IVi of 31.46). The trees in the study plot have a diversity index of 1.33, dominance index of 0.07, evenness index of 0.37, and species richness of 6.09. The average logging cost, logs price, lumber price, profit margin, and stumpage value at secondary forest were USD69.43 m, USD44.63 m, USD100.03 m, USD10.30 m, and USD28.73 ha, respectively. The 50 years old secondary forests in East Kalimantan have biodiversity, especially trees that have economic value, therefore their existence needs to be preserved and their use is carried out by maintaining and increasing biodiversity. INTRODUCTION Tropical forest management at a local level requires site-specific information about the region (). It is needed information about the transformation process that occurs in the region. This information is important because according to Borges et al., historical variation of land use will affect the differences in biodiversity and biomass in urban forests and rural forests in the tropics. Furthermore, Naime et al. explained during the natural regeneration process in tropical secondary forests, there is a change in the magnitude of the trade-off and provision of ecosystem services. Other information that needed to be known relates to biophysical and social-economic variables. Biophysical and social variables are the basis for consideration in understanding the structure and biodiversity of tropical secondary forests (). The result of Chen et al. study showed although tree size and regeneration in the secondary forest are smaller than in the primary forest, woody plant species, species richness, and proportion of young bamboo are generally higher (). Secondary forest is undergoing succession to form tree canopy and palm species composition through the successful growth of seedlings, saplings, and young trees from mature forest species (). Tree diversity of abandoned land increased after 20 years, but remained 22% lower than natural forest (). In another study, sixty percent of the total basal area and volume were contributed by fast-growing species dominant in secondary forests. In this secondary forest, trees aged 5, 10, and 20 years were categorized as an intermediate diversity, low dominance, and high evenness (). Light competition and species characteristics greatly affect tree growth and survival which determine to stand architecture (). The surrounding environment affects the plant community at the edge of the forest which typically has a low basal area, tree density, large-diameter trees, and AGB. The distribution of tree species is uniform, but not evenly distributed (Jana and Jusoh 2021). The valuation of tropical forests potential could be done with integration between some indicators of ecosystem services (such as provision, regulating, supporting, and cultural services) and the concept of total economic value (such as use-value, indirect use-value, and no-use value) (). A study found that the total economic value of forest ecosystem services is estimated at RM 13 billion (). While the average value of stump on abandoned land after shifting cultivation and after traditional plantations are USD 83.05 ha -1 and USD 51.56 ha -1 respectively (a, b. Many studies report the ecological aspects (Karyati et 4598 al. 2013(Karyati et 4598 al., 2018;) and the economic aspects (;) of secondary forests separately. Several studies that simultaneously combine the ecological and economic aspects of several secondary forest types with different land-use histories have been reported (;aKarmini et al., 2020b. However, similar studies in 50-year-old secondary forest with several different land-use histories are rarely reported. The purpose of this study was to analyze the ecological and economic aspects of a 50year secondary forest in East Kalimantan that experienced several various land-use changes. Study site The study was conducted at a secondary forest aged 50 years old in Air Putih area, Samarinda Ulu Sub-district, Samarinda City, East Kalimantan Province, Indonesia. The research plot is located on the side of the Samarinda road to Kutai Kartanegara District at the coordinate point 117 o 6'29,7641"E; 0 o 26'56,5901"S ( Figure 1 and 2). Based on interviews with the landowners, the history of land use of the studied site was forest clearing for shifting cultivation in 1969. The shifting cultivation activity was stopped due to a forest fire in 1983 which burned all the vegetation in the research plot. The next land use is the cultivation of rubber and local fruits. The land was then left until the research took place, although it was known that there was considerable coal potential in the location. Procedures The study was carried out from March to July 2021. Vegetation survey was conducted at ten plots, each measuring 20 m 20 m. The measurements of diameter at breast height (DBH) and total tree height, and identification of tree species were performed to all woody trees with DBH>5 cm in the study plot. Ecological analysis The individual basal area (BA) and volume (V) were measured by using the following formula (): Where: DBH is the diameter at breast height (cm), 'H' is tree height (m), and 'f'' is form factor. The importance value index (IVi) was analyzed to determine the dominant species of community within the studied plots (Fachrul 2007): RF = (Frequency of a species/Total of frequencies of all species) 100 Rd = (The number of individuals of a species/Total number of individuals) 100 RD = (Total basal area for a species/Total basal area for all species) 100 IVi = RF + Rd + RD Where: RF is relative frequency, Rd is relative density, and RD is relative dominance. The four diversity indices were used to describe the species diversity of standing trees in the studied plots. These diversity indices were Shannon-Wiener's diversity index (H'), Simpson's dominance index (Ds), Pielou's evenness index (J'), and Margalef's richness index (R) (Odum 2005): Where: ni: number of individuals of the i-th species, N: total number of all the individuals in a unit area, and S: number of species in each plot. Economic analysis The estimation of the price of logs was carried out in several stages. The tree diameter data that has been collected will be analyzed and continued with the calculation of the number of logs produced from the felled trees. The cost of felling trees was USD69.43 m -3 at the study location at the time of the research. The data in Table 1 shows the number of logs that can be obtained from trees with a diameter of up to 75 cm and above. Based on the diameter class and the number of logs, it can be seen the equivalent merchantable height. The reduction factor in the price of logs was determined based on the Diameter at Breast Height (DBH) size class and the data can be seen in Table 2. The high number of trees with DBH size class < 15 cm on study location was the background of Karmini et al. (2020b) determine the assumption that the price reduction factor for logs with a DBH size class < 15 cm is 0.60. Ecological characteristics of 50-years secondary forest Diameter at breast height (DBH) and height distributions The diameter distribution is in the form of an inverted J curve with a high number of individuals in the low diameter class and a low number of individuals in the high 4600 diameter class. A similar pattern of diameter distribution in various types of tropical secondary forest was also found in many studies (e.g., ;;aKarmini et al., 2020b. Eighty percent of the diameters of the trees belong to the DBH class of 5.0-15.0 cm (350 trees), followed by the DBH class of 15.1-25.0 cm (63 trees or 14%), DBH class of 25.1-35 0.0 (19 trees or 4%), and DBH class >35.0 cm (5 trees or 1%) ( Figure 3). Based on the height class, the trees belonged to class 0-5.0 m (108 trees or 25%), class 5.1-10.0 m (203 trees or 46%), and class 10.1-15.0 m (110 trees or 25%). A very small portion of higher trees with a total of 11 and 5 trees was included in the 15.1-20.0 m (3%) and >20.0 m (1%) as shown in Figure 4. The distribution of height class shows a slightly skewed toward positive pattern (Ohtsuka 2002). As early successional pioneer species began to disappear and long-lived pioneer species emerged (), it was shown that intermediate-aged secondary forest between 30 and 50 years had lower structural complexity based on tree height and average stem diameter (). The light-demanding pioneer species have also disappeared in 20-year-old secondary forests (). During the succession process there was a rapid increase in height and the stand size increased rapidly where the tree canopy was taller, thicker, and the canopy larger (). Most late-successional species growing in old secondary forests can grow long enough to allow them to reach tree heights and average trunk DBH equal to or greater than trees in mature plantations (). Species richness, density, basal area, and volume The vegetation survey of woody trees with a DBH of more than 5 cm in the 50 years secondary forest recorded 437 trees, 38 species, 30 genera, and 19 families. Table 3 presents the species, density, basal area, and volume of species in the study plot. The trees had DBH ranging from 5.1 to 56.3 cm with an average DBH of 11.5 cm. Meanwhile, the tree height ranged between 2.0 and 25.0 m with an average height of 8.50 m. The total basal area (BA) and volume of trees in the 50 years secondary forest were 15.36 m 2 ha -1 and 122 m 3 ha -1, respectively. The smaller total BA (9.75 and 9.44 m 2 ha -1 ) and volume (91.97 and 76.86 m 3 ha -1 ) were reported in abandoned land after shifting cultivation and traditional garden (a;2020b). The three dominant species in terms of total BA and volume were Artocarpus elasticus (total BA=3.28 m 2 ha -1 and volume=35.68 m 3 ha -1 ), Mangifera motleyana (total BA=2.88 m 2 ha -1 and volume=19.77 m 3 ha -1 ), and Symplocos fasciculate (total BA=1.85 m 2 ha -1 and volume=12.25 m 3 ha -1 ). These three tree species contributed more than 50% of the total basal area and volume. The other four species of Vernonia arborea, Ficus septica, Talipariti simile, and Durio sp. had a total volume of more than 3%. The studied plots were dominated by fast-growing species such as Artocarpus dadah, Artocarpus tamaran, Artocarpus elasticus, Macaranga gigantea, Artocarpus heterophyllus, Macaranga motleyana, Macaranga sp., dan Macaranga tanarius. In other studies, similar common fast growing species were also found, including Macaranga spp and Artocarpus spp. in 5 and 10 years old abandoned lands (), abandoned land after shifting cultivation (a), and abandoned land after traditional garden (b) as well as seedlings and saplings in 3, 5, 10, and 20 years of fallow lands (). Hevea brasiliensis and Ceiba pentandra are remnants of plantation crops grown at this location. Meanwhile, Durio sp. is a native plant of Kalimantan. The three families of 19 families with the high basal area and volume at the study site were Moraceae, Euphorbiaceae, and Symplocaceae as shown in Table 4. The total basal area and volume of woody trees belonging to the three families is more than 70%. Other families that are also quite dominant are Malvaceae, Asteraceae, Fabaceae, and Phyllanthaceae. Total tree species belonging to Moraceae, Euphorbiaceae, and Symplocaceae were 7, 8, and 1 respectively. This shows the trees in these families play an important role in plant structure and composition at the study site. Three tree species belonged to Malvaceae and Phyllanthaceae. Meanwhile, Cannabaceae and Fabaceae had two tree species. The other 12 families are only consisting of 1 tree species. Another study found the family consisting of the highest number of species in secondary forest of uneven age is Moraceae, followed by Apocynaceae, Euphorbiaceae, Fabaceae, Rubiaceae, Sapindaceae, and Sterculiaceae (). Importance value index (IVi) Most of the dominant tree species in terms of basal area and volume are also dominant species based on the importance value index (IVi). The IVi of tree in the studied site is shown in (;;a;b). The floristic difference between forest fringes and the core of the forest is low tree diversity and distribution. The forest fringe plant community is dominated by Dipterocarpaceae and Euphorbiaceae (Jana and Jusoh 2021). Species diversity The result of the analysis indicates that the secondary forest studied had an intermediate diversity index in terms of trees (DBH>5 cm) with H' 1.33 (Table 7). That is, the number of trees that grow in the research location is quite a lot. A high-growing species diversity represents a very complex community (). The dominance index (Ds) of 0.07 in the study area included in the low criteria, indicates no dominant species in the area. The diversity index and dominance index are determined by the number of individuals of a species and the total number of individuals in an area. The 'high' evenness index category (J value' 0.84) indicated that the trees growing in the plot were evenly distributed. The evenness of plant species is determined by the diversity of species and the number of species in the area. The species richness index of 6.09 indicates that many tree species grow in this research location. Plant species richness is calculated based on the number of species in an area (Krebs 2001), the number of individuals of a species, and the density of existing plants. Species richness indicates the number of species in an area, while evenness is a relative measure of the abundance of different species that make up the wealth of an area (Supriatna 2018). The results showed that high diversity (H'), evenness (J'), and richness (R) tended to cause low dominance (Ds). Similar results were reported for the tree diversity index with DBH > 5 cm in plots with 5, 10, 20 years abandoned land (), abandoned land after shifting cultivation (a), and abandoned land after traditional gardening (b). In addition, due to the poor status of soil fertility in an area, a period of 50 years of abandoned land is not sufficient for lands to restore their vegetation conditions such as natural forests (). This is supported with the Brearley et al. study in Central Kalimantan Province, Indonesia that found Shannon-Wiener diversity index (H') at an old secondary forest and primary forest were 3.40 and 4.17, respectively, that meant species diversity indices at an old secondary forest was lower than at primary forest. Logging costs In this study, the logging costs were the same for all tree species, i.e. USD69.43 m -3 (Table 8). The total logging costs of 38 species in this study location were USD3,526.20 ha -1 or USD2,638.21 m -3 with an average of USD92.79 ha -1 or USD69.43 m -3 for each species. The total logging costs in this study were higher than that of other previous studies (a;b). According to Karyati et al., the factors that influence logging costs include topography, tree dominance and species, density, tree diameter, log volume, felling productivity, loggers' experience, work, and remuneration systems, management competence, and other factors. Prices of logs and lumber The results of this study (Table 9) show that the total logs price of 38 species was USD1,696.03 m -3 with an average of USD44.63 m -3 species -1. Meanwhile, the total lumber price of 38 tree species studied was USD3,801.11 m -3 with an average of USD100.03 m -3 species -1. The lumber price of 10 tree species differed from one another while the lumber price of 28 other tree species was the same in the study location. A total of 13 tree species has the same logs price, which was USD20.83 m -3. There were three tree species (Vernonia arborea, Macaranga sp., and Glochidion obscurum) which had a log price of USD28.64 m -3. The total logs and lumber prices in this study was lower than the results of other previous studies (a, b). According to Karyati et al., the factors that determine the difference and the price of logs and lumber include tree species, tree diameter, wood quality, total tree individuals, harvesting cycle, supply, demand, use, price competition, substitute products, and other factors. Profit margin The profit margin in this study was assumed based on the profits obtained from the sale of timber. The data in Table 10 shows the profit margins from the sale of lumber obtained from 38 tree species. The total profit margin from the lumber sale of 38 tree species was USD391.39 m -3 or USD978.48 ha -1 with an average of USD10.30 m -3 or USD25.75 ha -1 species -1. The highest profit margin was obtained from the trade-in lumber of the Alstonia scholaris species. According to Karyati et al., the profit margin obtained from the trade-in logs and lumber is influenced by several factors, including the number of requests, the number of sales, the price of logs and lumber, tree diameter, production costs, pricing strategies, business management, and other factors. Stumpage value Economic assessment of the land can be done by assessing the stumpage growing on the land. The results of this study showed that the total stumpage value (consisting of 38 species) at the study site was USD1,091.76 ha -1. The average stumpage value was USD28.73 ha -1 species -1. Figure 5 shows the stumpage value of each species at the study site. The stumpage value in this study was lower than the results of previous studies (a, b. The stumpage value is determined by the volume of timber for each species, the diameter of logs, the price of each species' logs at the sawmill, and the profit margin. Timber price is the dominant factor that determines the stumpage value. The more tree species that have a high selling value found on land, the higher the stumpage value. The results of this study can show that the stumpage at the study site has a very significant economic value. East Kalimantan has a lot of 50 years old secondary forests that is rich in biodiversity. The 50 years old secondary forests in East Kalimantan have ecological and economic characteristics. As many as 14% of trees in the 50 years old secondary forests have diameters at breast height between 15.1-25.0 cm and most trees (40%) in there have height in class 5.1-10.0 m. The 50 years old secondary forest has approximately 437 trees, 38 species, 30 genera, and 19 families with the total basal area and volume are around 15.36 m 2 ha -1 dan 122.07 m 3 ha -1. The most dominant families are Moraceae and Euphorbiaceace with an important value (FIV) of 86.79 and the three most dominant species were Macaranga motleyana (IVi of 50.95), Artocarpus elasticus (IVi of 34.41), and Symplocos fasciculata (IVi of 31.46). The trees in the 50 years old secondary forest have a diversity index of 1.33, the dominance index of 0.07, evenness index of 0.37, and species richness of 6.09. The economic values of 50 years old secondary forest could be seen from total and average values of logging costs (USD2,638.21 m -3 and USD69.43 m-3), logs price (USD1,696.03 m -3 and USD44.63 m -3 ), lumber price (USD3,801.11 m -3 and USD100.03 m -3 ), profit margin (391.39 m -3 and 10.30 m -3 ), stumpage value (usd1,091.76 ha -1 and usd28.73 ha -1 species -1 ). Because of its ecological and economic values, 50 years old secondary forest must be preserved so that its ecological and economic values will continue to increase. The use of 50 years old secondary forest can be done with give attention to maintain and increase biodiversity. |
import numpy as np
import tensorflow as tf
class TFDetector():
def __init__(self, classes, inference_graph="frozen_graph.pb"):
'''Initialize Detector Object'''
super().__init__()
self.label_arr = np.asarray(["NULL"]+classes)
path_to_ckpt = inference_graph
self.detection_graph = tf.Graph()
with self.detection_graph.as_default():
od_graph_def = tf.GraphDef()
with tf.gfile.GFile(path_to_ckpt, 'rb') as fid:
serialized_graph = fid.read()
od_graph_def.ParseFromString(serialized_graph)
tf.import_graph_def(od_graph_def, name='')
def predict(self, images_data, batch_size=10, min_confidence=.7):
'''Predict results from list of images to list of boxes'''
with self.detection_graph.as_default():
with tf.Session() as sess:
ops = tf.get_default_graph().get_operations()
all_tensor_names = {output.name for op in ops for output in op.outputs}
tensor_dict = {}
for key in ['detection_boxes','detection_scores','detection_classes']:
tensor_name = key + ':0'
if tensor_name in all_tensor_names:
tensor_dict[key] = tf.get_default_graph().get_tensor_by_name(
tensor_name)
image_tensor = tf.get_default_graph().get_tensor_by_name('image_tensor:0')
split_data = [images_data[i:i+batch_size] for i in range(0,images_data.shape[0],batch_size)]
split_data = [sess.run(tensor_dict, feed_dict={image_tensor: batch}) for batch in split_data]
split_data = [np.dstack((batch['detection_scores'],
self.label_arr[batch['detection_classes'].astype(np.uint8)],
batch['detection_boxes'])) for batch in split_data]
combined = np.concatenate(split_data)
non_zero = combined[:,:,0].astype(np.float)>min_confidence
return [sorted(cur_combined[cur_non_zero].tolist(), reverse=True) for cur_combined, cur_non_zero in zip(combined, non_zero)]
|
Computers and other electronic systems contains various components that may malfunction during the life of the system. In order to reduce and/or remedy such malfunctions, some systems include built-in features such as the ability to monitor and control the “health” or performance of the system hardware. Such features are sometimes referred to as system management, but also may be referred to by other names such as management, hardware management, platform management, etc. System management features may include, for example, the monitoring of elements such as temperatures, voltages, fans, power supplies, bus errors, system physical security, etc. In addition, system management features may also include determining information that helps identify a failed hardware component, and issuing an alert specifying that a component has failed.
One of the components that may be used to handle system management functions is a system management controller (also referred to herein as a “controller”). A system management controller may be a microprocessor, micro-controller, application specific integrated circuit (ASIC), or other type of processing unit that controls system management tasks. A system management controller may perform tasks such as receiving system management information, sending messages to control system performance, logging system management information, etc. For example, a system management controller may receive an indication from a temperature sensor that system temperature is rising, may send a command to increase fan speed, and may log the temperature reading.
One of the controllers in a system may perform the role of the central system management controller for that system, in which case it may perform central system management functions such as for example logging events, collecting field replaceable unit (FRU) inventory information, user interface, etc. The central management controller for a system may be referred to as the central management controller (CMC) or the baseboard management controller (BMC) for the system. It is common for a system to have only one active central management controller. Other non-central management controllers may be referred to as satellite management controllers (SMCs). An SMC may perform system management for a particular part or feature of a system. For example, a computer system may contain a number of circuit boards and other components that are connected by busses, with one board containing a central management controller for that system and other boards containing SMCs that performs other system management functions. In this example, the SMC's may send event information (e.g., a temperature reading) to the central management controller, while the central management controller may log event information and handle management requests (e.g., a request to change a temperature sensor threshold). |
Terry Hayes
Terry Hayes (born 8 October 1951) is an English-born Australian screenwriter, producer and author best known for his work with the Kennedy Miller film production house and his debut novel I Am Pilgrim.
Biography
Born in Sussex, England, Hayes moved to Australia at the age of 5. He began his career as a journalist, working as the US correspondent for the Australian newspaper The Sydney Morning Herald. After periods spent as an investigative reporter, columnist and radio show host, Hayes met director George Miller when he did the novelisation of the script to Mad Max (1979). He and Miller got on well and the director subsequently hired Hayes to help on the script for Mad Max 2 (1981). Hayes subsequently moved to Hollywood, becoming an in-house writer for Kennedy Miller, working on the scripts for all their subsequent mini-series. Further work included a script for Dead Calm in 1989 and an unused screenplay for Planet of the Apes, titled Return of the Apes in 1994.
In 2001, Hayes was nominated for the Bram Stoker Award for Best Screenplay for his work on From Hell.
Hayes' debut novel, I Am Pilgrim was published by Transworld Publishers on 18 July 2013. That same month, Metro-Goldwyn-Mayer acquired the film rights to the novel with Hayes attached to adapt it into a screenplay. His second novel entitled The Year of the Locust is planned for release in 2019. |
Predicting the dropout risk after treatment of obesity: Logistic regression analysis and deep neural network analysis Severely obese patients must follow strict regimens of diet, exercise, and medical therapy. However, such comprehensive weight-loss programs have high dropout rates. In this study, we developed a machine learning prediction model to aid in the early detection of high-risk-dropout patients. 102 severely obese patients were monitored for 3 years to assess their risk of dropout from a comprehensive weight-loss program. The program targeted a 5% weight loss. It consisted of three main components, which include behavioral modification (goal setting and charting weight four times daily), diet, and exercise. A machine learning model was developed to predict dropout risk based on a 1-year dropout event. To extend the prediction ability past 1 year, we plotted a 3-year Kaplan-Meier survival curve using a deep learning (DL) algorithm and logistic regression (LR) classifications. Introduction Obesity has rapidly become a worldwide epidemic and has nearly tripled since 1975. In 2016, more than 1.9 billion adults, 18 years and older, were overweight. Of these over 650 million were obese. Obesity and type 2 diabetes both increase the risk of cardiovascular disease and other comorbidities. A J-shaped relationship between body mass index (BMI) and the average life expectancy was demonstrated. Therefore, it is important to treat severe obesity, which significantly increases the risk of mortality. A slight weight loss (3%-5% of body weight) can result in clinically meaningful benefits of reducing triglycerides, blood glucose, glycated hemoglobin, and decreasing the risk of type 2 diabetes. An increased weight loss (> 5%) reduces blood pressure, further improves the lipid profile (both low-density and high-density lipoprotein cholesterol), and decreases the need for medications to control blood pressure, blood glucose, and lipids. Although many obese people successfully lose weight by dieting or behavioral therapy (using their preferred methods or one that is popular at the time), most of them subsequently regain the weight that they lost. Long-term adherence to treatment is essential for obese patients; however, it is not easy to predict the discontinuation of treatment. Therefore, it is vital to control the progress of the severe complications caused by treatment interruption. 5 In this study, we aimed at developing an accurate prediction model on the risk of subsequent dropout from treatment by patients with severe obesity. All these patients had already completed a comprehensive weight-loss education program without bariatric surgery. We also developed a machine learning model to predict dropout and compared it with standard logistic regression by ROC analysis. Subjects First, we screened 2,178 successive patients who were admitted to the University of Tokyo Hospital between 2009 and 2012. Among them, we selected patients with severe obesity who had a BMI of more than 35 kg/m 2 and enrolled them in a comprehensive weight loss program. We excluded patients with severe cardiovascular disease, heart failure, infectious diseases, stroke, or peripheral artery disease, as well as patients with type 1 diabetes, pregnant women, patients with dementia, patients who had orthopedic diseases that could interfere with exercise (walking), perioperative patients, patients taking anti-obesity medications, patients who had undergone bariatric surgery, patients without pertinent data, patients who were transferred to another hospital immediately after discharge, patients who were readmitted, and those under 18 or over 80 years old. The remaining patients were observed for 3 years after discharge to assess subsequent weight gain and dropout. The comprehensive inpatient obesity treatment program targeted a 5% weight loss; Its details have been reported previously. It consisted of three main components, which include behavioral modification (goal setting and charting weight four times daily), diet, and exercise (patients with diabetes received appropriate anti-diabetic therapy together with this weight loss 6 program, and the treatment of diabetes was decided by each attending physician). Behavioral modification (goal setting and charting weight four times daily) At admission, all patients were given the goal of achieving 5% weight loss while in the hospital. They also weighed themselves four times daily (immediately after waking, taking breakfast and dinner, and before going to bed) and recorded the data on a weekly graph. A daily record of weight fluctuations reveals irregular intake of food and fluid that reflects dysfunctional eating patterns and other behavioral abnormalities and assists in achieving weight loss. Patients were recommended to continue recording their weight after discharge. Patients were weighed by using AD-6107NWTM scales (A and D Co. Ltd., Tokyo, Japan). Diet A balanced low-calorie diet (20-24 kcal/day/kg of ideal body weight) was provided to the patients in the hospital, consisting of 50%-60% carbohydrate, 20% protein, and 20%-30% fat. Hospital dietitians used food samples and a food exchange table to educate patients about nutritional guidelines. The dietician initially gave each patient information for 1 hour, with subsequent 30-minutes sessions being held at least twice a week until discharge. Exercise All patients were given a pedometer and were instructed to walk more than 10,000 steps/daily (5-7 km) for approximately 1.5 hours. The exercise program was tailored to accommodate health problems (e.g., morbid obesity, hypoglycemia, joint pain, or diabetic retinopathy) and specific needs (e.g., exercise by walking or training on a bicycle ergometer). The target pulse rate and schedule for each exercise session 7 were set. Outcome measures The patients attended our hospital outpatient department every 2 months after discharge to continue their weight loss program and for treatment of other diseases (diabetes, dyslipidemia, and hypertension). The body weight of the patients was measured at each visit. The objective of this study was to assess the dropout from the weight loss program after discharge. Dropout from the program was defined as missing outpatient appointments. (If the patient presented again within 6 months of the specified appointment, this was not considered as dropout.) Patients were defined as having diabetes if their medical records listed a diagnosis of type 2 diabetes, and they were using an oral hypoglycemic agent or insulin. If a 75 g oral glucose tolerance test was performed, a diagnosis of diabetes, impaired glucose tolerance, or impaired fasting glucose was made according to the American Diabetes Association criteria. Antidepressant medications were classified as selective serotonin reuptake inhibitors, serotonin and norepinephrine reuptake inhibitors, tricyclic antidepressants, tetracyclic antidepressants, serotonin receptor antagonists and reuptake inhibitors, monoamine oxidase inhibitors, and noradrenergic and specific serotonergic antidepressants. All demographic and clinical data were collected from secure electric medical records. Nurses or physicians confirmed the accuracy of the bodyweight measurements of each subject Feature engineering We used binary variables and continuous variables as prediction features. The binary variables included gender, use of oral antidiabetic drugs, use of insulin, use 8 of Glucagon-like peptide-1 Receptor analogs (GLP1-Ras), diabetes, hypertension, psychiatric disease, depression, insomnia, and antipsychotic drug use. The continuous variable included sequential body weight data from baseline to day 14, discharge body weight, age, waist circumference, systolic blood pressure, and HbA1C. Data preparation Overall, 102 patients (82 non-dropout and 20 dropout) were enrolled in this study. Due to the original imbalance sample between the dropout and non-dropout population, we used the Adaptive Synthetic Sampling (ADASYN) method to deal with the imbalanced data. In the balanced sample generated by the ADASYN method, there were 79 dropout and 82 non-dropout events. We randomized 85% of this balanced sample to a training cohort (for model training) and the rest of 15% as a validation cohort (for hyperparameter optimization). Then, we applied the deep Model building process of deep learning A machine learning model to predict the dropout rate was developed with deep neural networks. The variables derived from feature engineering (Table 1) were used as predictors and were set as input layers. For better performance of deep learning, we performed batch normalization (to mean 0 or variance 1) for the selected variables (features) and set this as the input layer. Statistics The independent t test and 2 test were used to compare continuous and Figure 2A shows the area under the receiver operating characteristic curve (ROC) between LR and DL in the prediction of the 1-year dropout. DL showed a much better AUC than the LR method (0.97 vs. 0.77, p for difference < 0.001). During clinical practice, physicians tried to identify more people at high risk of dropout. Therefore, we tried to identify an optimal threshold to keep the sensitivity > 80% and yield the highest value of specificity. We used this concept of threshold selection rather than the traditional methods, such as the Yuden index. Finally, a predicted probability greater than 0.4 was used as the threshold to define a high risk of dropout after one year. The AUC using binary classification between LR and DL was plotted in Fig. 2B. The DL showed better AUC than the LR (0.86 vs. 0.68. p for difference = 0.001). Figure 3A shows the overall survival curve between the true dropout and nondropout subgroups. Figure 3B showed the 3-year survival curve of the subgroups classified by LR predicted the 1-year dropout and non-dropout. Similarly, Fig. 3C showed the predicted survival curve categorized by DL. Both LR and DL methods showed significant differences between the predicted dropout and non-dropout after the first year and continued estrangement for 3 years. Generally, the dropout rate was 0.9/100 patients per month. However, the dropout rate was 14.3, 4.1, and 1.9 /100 patients per month for subgroups with the truedropout, DL, and LR predicted dropout. The subgroup of DL predicted dropout showed a significantly higher dropout incidence rate than the subgroup predicted by LR (p = 0.03, data not shown). Meanwhile, the corresponding dropout rate was 0, 0.2, and 0.3/100 patients per month for subgroups of true non-dropout, DL, and LR predicted non-dropout. In comparison with the true non-dropout subgroup, the LR and DL predicted non-dropout did not show higher dropout incidence rates (p = 0.982 and 0.983, respectively). Discussion This study demonstrates the superiority of our neural network model over logistic regression for predicting the dropout from a comprehensive program of severe obesity after discharge from the hospital. There is notable clinical significance from these analyses. Firstly, dropout is a critical issue; however, it is challenging to predict it using a single parameter, especially in a small sample size study. Secondly, the deep Learning model showed higher AUC than logistic regression. The deep learning model showed a higher dropout prediction than logistic regression; however, it still had a lower prediction as compared with the true dropout (p = 0.01). Deep learning and logistic regression showed almost similar predicted non-dropout rates, compared with the true nondropout rate. There were some limitations to this study. Firstly, DL tends to model overfitting. We had used two methods (dropout and L1 Regularization) to reduce overfitting; however, external validation will be required in future studies. Secondly, the small sample size used will require external validation. Conclusions We demonstrated a higher precision with machine learning than with the standard logistic regression, based on limited sample size and information available during Consent for publication Not applicable Availability of data and materials The datasets used and/or analysed during the current study are available from the corresponding author on reasonable request. Competing interests The authors declare that they have no competing interests. Funding There was no funding in this study. Area under the receiver operating characteristic curve (ROC) between LR and DL in the predi Figure 3 Survival curves of true dropout and non-dropout subgroups. Supplementary Files This is a list of supplementary files associated with the primary manuscript. Click to download. STROBE_checklist_cohort.pdf |
Role of GSK-3 in Regulation of Canonical Wnt/-catenin Signaling and PI3-K/Akt Oncogenic Pathway in Colon Cancer ABSTRACT Non-steroidal anti-inflammatory drugs (NSAIDs) are emerging as novel chemopreventive agents because of their ability in blocking cellular proliferation, and thereby tumor development, and also by promoting apoptosis. GSK-3, a serine threonine kinase and a negative regulator of the oncogenic Wnt/-catenin signaling pathway, plays a critical role in the regulation of oncogenesis. Celecoxib and etoricoxib, the two cyclooxygenase-2 (COX-2) selective NSAIDs, and Diclofenac, a preferential COX-2 inhibitory NSAID, had shown uniformly the chemopreventive and anti-neoplastic effects in the early stage of colon cancer by promoting apoptosis as well as an over-expression of GSK-3 while down-regulating the PI3-K/Akt oncogenic pathway. |
Photophysical properties of tris(bipyridyl)ruthenium(II) thin films and devices Absorption and luminescence spectra as well as luminescence lifetimes have been measured for Ru(bpy)2+3 in solution and in thin films of varying thicknesses, and these properties have been correlated with the efficiency of organic light emitting devices (OLEDs) made of the films. The lifetimes decrease for films below about 50 nm in thickness but are relatively constant for thicknesses above about 100 nm. This behavior is consistent with a model in which quenching is caused both by intrinsic properties of the molecules and by Forster energy transfer between chromophores that carries the excitation to surface layers, where the excitation is more efficiently quenched. The external quantum efficiency of the OLEDs is also found to increase with thickness, approaching 1% for thicknesses near 200 nm. |
Use of mouthrinses for professional indications. In view of the relationship between supragingival and subgingival plaque, chemical agents which alter supragingival plaque may also alter subgingival plaque. As a result, a beneficial effect on gingival health may be anticipated. This article reviews the use of chemotherapeutic agents which reduce plaque and gingivitis. Indications for the use of these agents include patients with problems with mechanical plaque control, extensive splinting or fixed prostheses, intraoral fixation, orthodontic appliances, overdenture abutments and implants, and for patients in the immediate post-surgical period. Improvement of wound healing following periodontal surgery may represent one of the most valuable aspects of use of these agents. As mouthrinses, these agents cannot be expected to significantly alter subgingival plaque. However, for this purpose, their use in irrigation devices deserves further study. Since recent reports have suggested benefits of various mouthrinses when used as irrigants as compared to rinses may also reduce the bacterial back-spray associated with ultrasonic devices and high-speed handpieces, and thus provide a protective effect for dental personnel. The practitioner in the United States is encouraged to recommend products accepted by the American Dental Association's Council on Dental Therapeutics in order to insure both safety and efficacy. |
8This is ridiculous. It’s obviously ridiculous. It looks wrong, and was so absurd I at first assumed it was a joke image, or that someone had just jammed a lightning cable into the old version of the Magic Mouse. It’s obvious why Apple chose this design, and it’s not because it was the best possible one.
Now, I get the argument that says this doesn’t matter. The new mouse charges so fast that you’d only been staring at this lunacy for a minute or two before your mouse was charged. But Apple’s entire design brand is based on paying attention to details that logically don’t really matter.
If that’s too offensive for the purists, it’s easy to imagine a version where this end would lift up about half an inch, revealing a lightning port like this for one to plug a cable into.
A few people said, “But lightning cables are too stiff and too short to use as a mouse cord!” I have a solution for this problem, too: Fix that. And the end result would be that, while charging, the mouse would still be fully functional; indeed, this mode would still be so useful that a lot of folks (myself included!) would just use it as a corded mouse most of the time and only unplug when needed. |
// Package config provides the configuration.
package config
// Mandatory configuration options.
const (
SeenFileName = "/Users/Bob/check-youtube/seen-youtube.txt"
YouTubeKey = "AIza...Da8c"
)
// GetYouTubeChannelsToCheck returns the channel IDs.
func GetYouTubeChannelsToCheck() []string {
return []string{
"UCUORv_qpgmg8N5plVqlYjXg", // Medical Medium
}
}
|
Dim target detection based on multi-scale fractal feature A method to solve the problem of dim target detection under complex background based on their multi-scale fractal feature is presented in this paper. It is realized by calculating the difference of fractal features between natural background and man-made target in variation with scale to extract the MFFK parameters, a multi-scale fractal feature distribution image can be obtained. After that, self-adaptive threshold segmentation method is used on the calculated feature distribution image to detect the dim target. Experimental results show that the proposed method not only suppresses the interference of the complex background effectively, but also presents excellent detection property and environmental adaptability. |
<filename>tools/src/net/server/channel/handlers/BBSOperationHandler.java
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 <NAME> <<EMAIL>>
<NAME> <<EMAIL>>
<NAME> <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.server.channel.handlers;
import client.MapleCharacter;
import client.MapleClient;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import net.AbstractMaplePacketHandler;
import tools.DatabaseConnection;
import tools.MaplePacketCreator;
import tools.data.input.SeekableLittleEndianAccessor;
public final class BBSOperationHandler extends AbstractMaplePacketHandler {
private String correctLength(String in, int maxSize) {
return in.length() > maxSize ? in.substring(0, maxSize) : in;
}
@Override
public final void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
if (c.getPlayer().getGuildId() < 1) {
return;
}
byte mode = slea.readByte();
int localthreadid = 0;
switch (mode) {
case 0:
boolean bEdit = slea.readByte() == 1;
if (bEdit) {
localthreadid = slea.readInt();
}
boolean bNotice = slea.readByte() == 1;
String title = correctLength(slea.readMapleAsciiString(), 25);
String text = correctLength(slea.readMapleAsciiString(), 600);
int icon = slea.readInt();
if (icon >= 0x64 && icon <= 0x6a) {
if (c.getPlayer().getItemQuantity(5290000 + icon - 0x64, false) > 0) {
return;
}
} else if (icon < 0 || icon > 3) {
return;
}
if (!bEdit) {
newBBSThread(c, title, text, icon, bNotice);
} else {
editBBSThread(c, title, text, icon, localthreadid);
}
break;
case 1:
localthreadid = slea.readInt();
deleteBBSThread(c, localthreadid);
break;
case 2:
int start = slea.readInt();
listBBSThreads(c, start * 10);
break;
case 3: // list thread + reply, followed by id (int)
localthreadid = slea.readInt();
displayThread(c, localthreadid);
break;
case 4: // reply
localthreadid = slea.readInt();
text = correctLength(slea.readMapleAsciiString(), 25);
newBBSReply(c, localthreadid, text);
break;
case 5: // delete reply
slea.readInt(); // we don't use this
int replyid = slea.readInt();
deleteBBSReply(c, replyid);
break;
default:
//System.out.println("Unhandled BBS mode: " + slea.toString());
}
}
private static void listBBSThreads(MapleClient c, int start) {
try {
try (PreparedStatement ps = DatabaseConnection.getConnection().prepareStatement("SELECT * FROM bbs_threads WHERE guildid = ? ORDER BY localthreadid DESC")) {
ps.setInt(1, c.getPlayer().getGuildId());
try (ResultSet rs = ps.executeQuery()) {
c.announce(MaplePacketCreator.BBSThreadList(rs, start));
}
}
} catch (SQLException se) {
se.printStackTrace();
}
}
private static void newBBSReply(MapleClient c, int localthreadid, String text) {
if (c.getPlayer().getGuildId() <= 0) {
return;
}
Connection con = DatabaseConnection.getConnection();
try {
PreparedStatement ps = con.prepareStatement("SELECT threadid FROM bbs_threads WHERE guildid = ? AND localthreadid = ?");
ps.setInt(1, c.getPlayer().getGuildId());
ps.setInt(2, localthreadid);
ResultSet threadRS = ps.executeQuery();
if (!threadRS.next()) {
threadRS.close();
ps.close();
return;
}
int threadid = threadRS.getInt("threadid");
threadRS.close();
ps.close();
ps = con.prepareStatement("INSERT INTO bbs_replies " + "(`threadid`, `postercid`, `timestamp`, `content`) VALUES " + "(?, ?, ?, ?)");
ps.setInt(1, threadid);
ps.setInt(2, c.getPlayer().getId());
ps.setLong(3, System.currentTimeMillis());
ps.setString(4, text);
ps.execute();
ps.close();
ps = con.prepareStatement("UPDATE bbs_threads SET replycount = replycount + 1 WHERE threadid = ?");
ps.setInt(1, threadid);
ps.execute();
ps.close();
displayThread(c, localthreadid);
} catch (SQLException se) {
se.printStackTrace();
}
}
private static void editBBSThread(MapleClient client, String title, String text, int icon, int localthreadid) {
MapleCharacter c = client.getPlayer();
if (c.getGuildId() < 1) {
return;
}
try {
try (PreparedStatement ps = DatabaseConnection.getConnection().prepareStatement("UPDATE bbs_threads SET `name` = ?, `timestamp` = ?, " + "`icon` = ?, " + "`startpost` = ? WHERE guildid = ? AND localthreadid = ? AND (postercid = ? OR ?)")) {
ps.setString(1, title);
ps.setLong(2, System.currentTimeMillis());
ps.setInt(3, icon);
ps.setString(4, text);
ps.setInt(5, c.getGuildId());
ps.setInt(6, localthreadid);
ps.setInt(7, c.getId());
ps.setBoolean(8, c.getGuildRank() < 3);
ps.execute();
}
displayThread(client, localthreadid);
} catch (SQLException se) {
se.printStackTrace();
}
}
private static void newBBSThread(MapleClient client, String title, String text, int icon, boolean bNotice) {
MapleCharacter c = client.getPlayer();
if (c.getGuildId() <= 0) {
return;
}
int nextId = 0;
try {
Connection con = DatabaseConnection.getConnection();
PreparedStatement ps;
if (!bNotice) {
ps = con.prepareStatement("SELECT MAX(localthreadid) AS lastLocalId FROM bbs_threads WHERE guildid = ?");
ps.setInt(1, c.getGuildId());
try (ResultSet rs = ps.executeQuery()) {
rs.next();
nextId = rs.getInt("lastLocalId") + 1;
}
ps.close();
}
ps = con.prepareStatement("INSERT INTO bbs_threads " + "(`postercid`, `name`, `timestamp`, `icon`, `startpost`, " + "`guildid`, `localthreadid`) " + "VALUES(?, ?, ?, ?, ?, ?, ?)");
ps.setInt(1, c.getId());
ps.setString(2, title);
ps.setLong(3, System.currentTimeMillis());
ps.setInt(4, icon);
ps.setString(5, text);
ps.setInt(6, c.getGuildId());
ps.setInt(7, nextId);
ps.execute();
ps.close();
displayThread(client, nextId);
} catch (SQLException se) {
se.printStackTrace();
}
}
public static void deleteBBSThread(MapleClient client, int localthreadid) {
MapleCharacter mc = client.getPlayer();
if (mc.getGuildId() <= 0) {
return;
}
Connection con = DatabaseConnection.getConnection();
try {
PreparedStatement ps = con.prepareStatement("SELECT threadid, postercid FROM bbs_threads WHERE guildid = ? AND localthreadid = ?");
ps.setInt(1, mc.getGuildId());
ps.setInt(2, localthreadid);
ResultSet threadRS = ps.executeQuery();
if (!threadRS.next()) {
threadRS.close();
ps.close();
return;
}
if (mc.getId() != threadRS.getInt("postercid") && mc.getGuildRank() > 2) {
threadRS.close();
ps.close();
return;
}
int threadid = threadRS.getInt("threadid");
ps.close();
ps = con.prepareStatement("DELETE FROM bbs_replies WHERE threadid = ?");
ps.setInt(1, threadid);
ps.execute();
ps.close();
ps = con.prepareStatement("DELETE FROM bbs_threads WHERE threadid = ?");
ps.setInt(1, threadid);
ps.execute();
threadRS.close();
ps.close();
} catch (SQLException se) {
se.printStackTrace();
}
}
public static void deleteBBSReply(MapleClient client, int replyid) {
MapleCharacter mc = client.getPlayer();
if (mc.getGuildId() <= 0) {
return;
}
int threadid;
Connection con = DatabaseConnection.getConnection();
try {
PreparedStatement ps = con.prepareStatement("SELECT postercid, threadid FROM bbs_replies WHERE replyid = ?");
ps.setInt(1, replyid);
ResultSet rs = ps.executeQuery();
if (!rs.next()) {
rs.close();
ps.close();
return;
}
if (mc.getId() != rs.getInt("postercid") && mc.getGuildRank() > 2) {
rs.close();
ps.close();
return;
}
threadid = rs.getInt("threadid");
rs.close();
ps.close();
ps = con.prepareStatement("DELETE FROM bbs_replies WHERE replyid = ?");
ps.setInt(1, replyid);
ps.execute();
ps.close();
ps = con.prepareStatement("UPDATE bbs_threads SET replycount = replycount - 1 WHERE threadid = ?");
ps.setInt(1, threadid);
ps.execute();
ps.close();
displayThread(client, threadid, false);
} catch (SQLException se) {
se.printStackTrace();
}
}
public static void displayThread(MapleClient client, int threadid) {
displayThread(client, threadid, true);
}
public static void displayThread(MapleClient client, int threadid, boolean bIsThreadIdLocal) {
MapleCharacter mc = client.getPlayer();
if (mc.getGuildId() <= 0) {
return;
}
Connection con = DatabaseConnection.getConnection();
try {
PreparedStatement ps2;
try (PreparedStatement ps = con.prepareStatement("SELECT * FROM bbs_threads WHERE guildid = ? AND " + (bIsThreadIdLocal ? "local" : "") + "threadid = ?")) {
ps.setInt(1, mc.getGuildId());
ps.setInt(2, threadid);
ResultSet threadRS = ps.executeQuery();
if (!threadRS.next()) {
threadRS.close();
ps.close();
return;
}
ResultSet repliesRS = null;
ps2 = null;
if (threadRS.getInt("replycount") >= 0) {
ps2 = con.prepareStatement("SELECT * FROM bbs_replies WHERE threadid = ?");
ps2.setInt(1, !bIsThreadIdLocal ? threadid : threadRS.getInt("threadid"));
repliesRS = ps2.executeQuery();
}
client.announce(MaplePacketCreator.showThread(bIsThreadIdLocal ? threadid : threadRS.getInt("localthreadid"), threadRS, repliesRS));
repliesRS.close();
}
if (ps2 != null) {
ps2.close();
}
} catch (SQLException se) {
se.printStackTrace();
} catch (RuntimeException re) {//btw we get this everytime for some reason, but replies work!
re.printStackTrace();
System.out.println("The number of reply rows does not match the replycount in thread.");
}
}
}
|
package nablarch.fw.launcher;
import nablarch.core.repository.disposal.Disposable;
public class MockDisposable implements Disposable {
private boolean disposed;
@Override
public void dispose() throws Exception {
disposed = true;
}
public boolean isDisposed() {
return disposed;
}
}
|
West has taken it to an even more minimalist level now. His creative agency, DONDA, designs all their clients’ covers with a focus on iconic imagery, and typically no words.
By the way, they could be seeing the cover art anywhere. Make your cover art outstanding by keeping it consistent. Kanye West caught on to this a few years ago with his GOOD Friday series of free releases, where he went with a consistent black and red color scheme with bold fonts.
Collections are so large that even with filters, our eyes naturally wander to covers that catch our attention. (It’s similar to copywriter Neville Medhora’s idea of the Big Fucking Button .) Ironically, in order for people to discover your music on one of these stores, they have to see it first.
Cover art used to make certain products stand out in record stores. In today’s age, where nearly every song is accessible and sorted through interfaces like iTunes and Spotify, visuals play a huge role in discovery again.
Here are some things to look for when you’re creating your packaging.
Everyone is told not to judge books by their covers, only because we naturally, and inevitably, do . We use this symbol to gauge the potential quality of a piece of art. Beautiful packaging suggests to the consumer that the product underneath it is equally as stellar.
If you’ve put your life into your art, make sure you invest attention and resources in the way you package and present it. It only gets one chance to make a first impression.
More importantly, people connect over covers. Back in the day, when interviews and photos weren’t nearly as accessible as they are now, record and CD covers were the only medium through which artists could communicate their intentions and inspirations to their listeners. Even today, people connect with each other over album (and book ) covers. That type of serendipity could also influence the listening experience.
Much like a container, packaging primes people for whatever they’re about to consume. Packaging, much like all other forms of branding, serves as a mental shortcut. Cover art can change someone’s perception of what they’re about to listen to or read, for better or worse. Based on their opinion of your cover art, critics and potential listeners take it more (or less) seriously .
A 50-year-old man died because he drank dish detergent, which looked like a glass of white wine . You’d think either the waiter or the man would have caught this, but the waiter found the detergent in a wine glass in the refrigerator and served it. The man received it in a wine glass and drank it. The container made the liquid look harmless. It short-circuited both their common senses.
Whether it’s sized down to 250 x 250 or up to 1,000 x 1,000, the cover art scales beautifully. It’s important for the potential listener, because it might not be their first time seeing the cover art. Once they see it again, it prompts their curiosity. Maybe their friend posted your cover art on Instagram. Maybe they saw it on a curator like Hype Machine but didn’t get a chance to listen to it. Iconic imagery has a greater chance of staying in a viewer’s mind.
On a different medium, notice how Seth Godin’s book cover doesn’t have any words.
Notice how the A Book Apart series of paperbacks and ebooks have huge words and simple color schemes, so it’s easy to read no matter what size the cover is.
Let’s not forget Drake’s recent cover art for If You’re Reading This It’s Too Late, which you can read comfortably on your little iPod Nano screen or on an actual CD cover. Size matters! Make sure it’s easily consumed, and appreciated, across different media.
He even has the nice little “6 God” emblem at the bottom, which can be used for Twitter profiles or any other branding (e.g., concert tours, merch, etc.).
Better yet, once your music is published on a platform, you might gain control to update cover art as you see fit. Publisher Craig Mod writes about how he updated covers of existing books to promote new products.
Cover Art as Sensational Promotion
In an ideal world, reviewers, journalists, and bloggers would focus on the quality and merit of the actual music or book. Unfortunately, we live in an age where pageviews take priority, and controversy and sensationalism are rewarded with greater ad dollars. Even if you can’t get a journalist’s attention with your music, you might be able to get their attention with your cover art.
For example, here’s Future’s DS2 cover art.
The colors splashed on top of a white background makes a strong impression. Once again, iconic imagery was the priority. Interestingly enough, that the same graphic was published on a chemistry book cover.
Whether Future and his creative team were aware of it or not, blogs and publications exploited this piece of news. That’s not to say Future, one of the most relevant rappers at the time of writing, needed the extra coverage. Whether it was intentional or not, it extended his narrative. He appeared in the media cycle twice — first with the announcement of his album, and then second with the unusual story about his cover.
In a similar way, your cover art can serve as part of a press push. You can also do your graphic designer a favor, much like how the Slovenian artist who supplied part of Future’s cover art got covered when the press found out about the textbook.
Since Future’s graphic designer bought the image from the artist through stock photo company Shutterstock, it also was a part of Future’s cover art story. This could make for an interesting partnership between newer musicians (on tight visual budgets) and stock photography companies (some of them might like the exposure).
You could also take a more technology-heavy route and integrate your cover art into your social media strategy. For example, Common empowered fans to upload their own photos to the cover art for his album Nobody’s Smiling. This is also applicable beyond music — the site Straight Outta Somewhere serves as the film Straight Outta Compton’s meme-generator. Pretty simple stuff, yet a wide-reaching distribution for the film and for Beats by Dre.
Communicate Across Different Senses
Cover art used to be important for another reason. It would be the only way that artists could connect with their listeners outside of the music. Aubrey ‘Po’ Powell, one half of art design group Hipgnosis, says in an interview with London Grip:
In those days album covers were very important to the person who bought them, because there wasn’t MTV, there weren’t music videos, there wasn’t the saturation of Youtube or any other available source to learn about your favourite rock n roll star. So an album was very important. You’d buy an album and scour the cover while playing it, looking for clues as to what made those artists tick. We latched onto that early on, by including lyrics, by including postcards, posters and little clues.
Today, artists have way more mediums they can make use of. Obviously, there’s TV and radio interviews. But there’s also online video, text, websites, mobile apps, USB drives, and a ton of other mediums. There are so many other ways to occupy a listener’s or reader’s senses. The artists that explore (and exploit) this will gain more people’s attention.
Childish Gambino was on to something when he did a screenplay and short film for his album Because the Internet. For example, he released a short film entitled Clapping for the Wrong Reasons a few months prior to his album launch. (Here’s a comprehensive dive into the transmedia album launch. He eventually took the screenplay down, but here’s a PDF copy and video clips.)
Childish Gambino also buried some secret pages and songs in the code of his website, which takes his album’s whole “Internet” theme and message to a deeper level.
He even got creative with the lyric video for “3005,” featuring Abella Anderson who acted in his short film. (Let’s also not overlook when things are packaged in such an amateur, yet authentic, way they’re actually kind of endearing and remarkable, like Bangs’s entertaining music videos.)
Launching your work across different media provides your fans with a chance for total immersion. You communicate across visual and auditory senses. At a show or other live event, it could even be tactile. This is the next level of packaging. (Although you could potentially argue that the different forms of media are different aspects of the product, I’d still suggest that your music or book is the core product, and the rest are extensions at best. Unless you’re making something like Fantasia.)
The World is Hungry
One day when you get popular, your cover art could become so catchy that they’ll perpetuate into mainstream culture. For example, Drake’s handwriting-based font on If You’re Reading This It’s Too Late is everywhere now. Someone made a website based on his Nothing Was the Same cover art. Obviously, your music or writing has to be great too.
You spend your life creating art. Cheaping out on the packaging only ruins people’s perception of your art. Spend time, energy, and money on packaging. It’s an investment in your art, and it will be another way for you to talk to your fans, patrons, and consumers. Even from a pure marketing standpoint, your packaging is another chance to stand out. Don’t waste it. |
<filename>Engine/Source/Editor/EditorWidgets/Private/SAssetDropTarget.cpp<gh_stars>0
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "EditorWidgetsPrivatePCH.h"
#include "SAssetDropTarget.h"
#include "AssetDragDropOp.h"
#include "ActorDragDropOp.h"
#include "AssetSelection.h"
#include "SScaleBox.h"
#define LOCTEXT_NAMESPACE "EditorWidgets"
void SAssetDropTarget::Construct(const FArguments& InArgs )
{
OnAssetDropped = InArgs._OnAssetDropped;
OnIsAssetAcceptableForDrop = InArgs._OnIsAssetAcceptableForDrop;
SDropTarget::Construct(
SDropTarget::FArguments()
.OnDrop(this, &SAssetDropTarget::OnDropped)
[
InArgs._Content.Widget
]);
}
FReply SAssetDropTarget::OnDropped(TSharedPtr<FDragDropOperation> DragDropOperation)
{
bool bUnused;
UObject* Object = GetDroppedObject(DragDropOperation, bUnused);
if ( Object )
{
OnAssetDropped.ExecuteIfBound(Object);
}
return FReply::Handled();
}
bool SAssetDropTarget::OnAllowDrop(TSharedPtr<FDragDropOperation> DragDropOperation) const
{
bool bUnused = false;
UObject* Object = GetDroppedObject(DragDropOperation, bUnused);
if ( Object )
{
// Check and see if its valid to drop this object
if ( OnIsAssetAcceptableForDrop.IsBound() )
{
return OnIsAssetAcceptableForDrop.Execute(Object);
}
else
{
// If no delegate is bound assume its always valid to drop this object
return true;
}
}
return false;
}
bool SAssetDropTarget::OnIsRecognized(TSharedPtr<FDragDropOperation> DragDropOperation) const
{
bool bRecognizedEvent = false;
UObject* Object = GetDroppedObject(DragDropOperation, bRecognizedEvent);
return bRecognizedEvent;
}
UObject* SAssetDropTarget::GetDroppedObject(TSharedPtr<FDragDropOperation> DragDropOperation, bool& bOutRecognizedEvent) const
{
bOutRecognizedEvent = false;
UObject* DroppedObject = NULL;
// Asset being dragged from content browser
if ( DragDropOperation->IsOfType<FAssetDragDropOp>() )
{
bOutRecognizedEvent = true;
TSharedPtr<FAssetDragDropOp> DragDropOp = StaticCastSharedPtr<FAssetDragDropOp>(DragDropOperation);
bool bCanDrop = DragDropOp->AssetData.Num() == 1;
if( bCanDrop )
{
const FAssetData& AssetData = DragDropOp->AssetData[0];
// Make sure the asset is loaded
DroppedObject = AssetData.GetAsset();
}
}
// Asset being dragged from some external source
else if ( DragDropOperation->IsOfType<FExternalDragOperation>() )
{
TArray<FAssetData> DroppedAssetData = AssetUtil::ExtractAssetDataFromDrag(DragDropOperation);
if (DroppedAssetData.Num() == 1)
{
bOutRecognizedEvent = true;
DroppedObject = DroppedAssetData[0].GetAsset();
}
}
// Actor being dragged?
else if ( DragDropOperation->IsOfType<FActorDragDropOp>() )
{
bOutRecognizedEvent = true;
TSharedPtr<FActorDragDropOp> ActorDragDrop = StaticCastSharedPtr<FActorDragDropOp>(DragDropOperation);
if (ActorDragDrop->Actors.Num() == 1)
{
DroppedObject = ActorDragDrop->Actors[0].Get();
}
}
return DroppedObject;
}
#undef LOCTEXT_NAMESPACE
|
Molecular docking and multitudinous spectroscopic studies to elucidating proton-pump inhibitor a lansoprazole binding interaction with bovine serum albumin A carrier protein called bovine serum albumin (BSA) interaction with proton-pump inhibitor such as lansoprazole (LSE) has been investigated at 295, 303 and 311 K in pH 7.40 by docking and spectroscopic studies. Emission fluorescence has suggested LSE BSA complex formation by static quenching with strong binding. This interaction has proceeded by Vander Waals and hydrogen bonding. An observation from competitive site marker and docking experiments has resulted in binding of LSE with BSA transpired at site II, whereas from Frsters theory a binding distance ( ) was retrieved to be 0.19 from LSE to Trp of BSA. Change in conformation, secondary structure and microenvironment of BSA were noticed after LSE interaction. Diminished binding constant in Zn2+, Na+, Fe2+, Ca2+ and Co2+ ions presence on LSE-BSA interaction was also identified. |
import json
import urllib.parse
from unittest.mock import patch
from uuid import uuid4
from django.core.cache import cache
from rest_framework import status
from ee.clickhouse.models.event import create_event
from ee.clickhouse.util import ClickhouseTestMixin
from posthog.constants import FUNNEL_PATH_AFTER_STEP, INSIGHT_FUNNELS, INSIGHT_PATHS
from posthog.models.cohort import Cohort
from posthog.models.person import Person
from posthog.tasks.calculate_cohort import insert_cohort_from_insight_filter
from posthog.test.base import APIBaseTest
def _create_person(**kwargs):
person = Person.objects.create(**kwargs)
return person
def _create_event(**kwargs):
kwargs.update({"event_uuid": uuid4()})
create_event(**kwargs)
class TestPathPerson(ClickhouseTestMixin, APIBaseTest):
def _create_sample_data(self, num, delete=False):
for i in range(num):
person = _create_person(distinct_ids=[f"user_{i}"], team=self.team)
_create_event(
event="step one",
distinct_id=f"user_{i}",
team=self.team,
timestamp="2021-05-01 00:00:00",
properties={"$browser": "Chrome"},
)
if i % 2 == 0:
_create_event(
event="step two",
distinct_id=f"user_{i}",
team=self.team,
timestamp="2021-05-01 00:10:00",
properties={"$browser": "Chrome"},
)
_create_event(
event="step three",
distinct_id=f"user_{i}",
team=self.team,
timestamp="2021-05-01 00:20:00",
properties={"$browser": "Chrome"},
)
if delete:
person.delete()
def test_basic_format(self):
self._create_sample_data(5)
request_data = {
"insight": INSIGHT_PATHS,
"filter_test_accounts": "false",
"date_from": "2021-05-01",
"date_to": "2021-05-10",
}
response = self.client.get("/api/person/path/", data=request_data)
self.assertEqual(response.status_code, status.HTTP_200_OK)
j = response.json()
first_person = j["results"][0]["people"][0]
self.assertEqual(5, len(j["results"][0]["people"]))
self.assertTrue("id" in first_person and "name" in first_person and "distinct_ids" in first_person)
self.assertEqual(5, j["results"][0]["count"])
@patch("posthog.tasks.calculate_cohort.insert_cohort_from_insight_filter.delay")
def test_create_paths_cohort(self, _insert_cohort_from_insight_filter):
self._create_sample_data(5)
params = {
"insight": INSIGHT_PATHS,
"filter_test_accounts": "false",
"date_from": "2021-05-01",
"date_to": "2021-05-10",
}
response = self.client.post(
f"/api/projects/{self.team.id}/cohorts/?{urllib.parse.urlencode(params)}",
{"name": "test", "is_static": True},
).json()
cohort_id = response["id"]
_insert_cohort_from_insight_filter.assert_called_once_with(
cohort_id,
{"insight": "PATHS", "filter_test_accounts": "false", "date_from": "2021-05-01", "date_to": "2021-05-10"},
)
insert_cohort_from_insight_filter(
cohort_id, params,
)
cohort = Cohort.objects.get(pk=cohort_id)
people = Person.objects.filter(cohort__id=cohort.pk)
self.assertEqual(cohort.errors_calculating, 0)
self.assertEqual(people.count(), 5)
def test_basic_format_with_path_start_key_constraints(self):
self._create_sample_data(5)
request_data = {
"insight": INSIGHT_PATHS,
"filter_test_accounts": "false",
"date_from": "2021-05-01",
"date_to": "2021-05-10",
"path_start_key": "2_step two",
}
response = self.client.get("/api/person/path/", data=request_data)
self.assertEqual(response.status_code, status.HTTP_200_OK)
j = response.json()
first_person = j["results"][0]["people"][0]
self.assertEqual(3, len(j["results"][0]["people"]))
self.assertTrue("id" in first_person and "name" in first_person and "distinct_ids" in first_person)
self.assertEqual(3, j["results"][0]["count"])
def test_basic_format_with_start_point_constraints(self):
self._create_sample_data(7)
request_data = {
"insight": INSIGHT_PATHS,
"filter_test_accounts": "false",
"date_from": "2021-05-01",
"date_to": "2021-05-10",
"path_start_key": "1_step two",
"start_point": "step two",
}
response = self.client.get("/api/person/path/", data=request_data)
self.assertEqual(response.status_code, status.HTTP_200_OK)
j = response.json()
first_person = j["results"][0]["people"][0]
self.assertEqual(4, len(j["results"][0]["people"]))
self.assertTrue("id" in first_person and "name" in first_person and "distinct_ids" in first_person)
self.assertEqual(4, j["results"][0]["count"])
def test_basic_pagination(self):
self._create_sample_data(20)
request_data = {
"insight": INSIGHT_PATHS,
"filter_test_accounts": "false",
"date_from": "2021-05-01",
"date_to": "2021-05-10",
"limit": 15,
}
response = self.client.get("/api/person/path/", data=request_data)
self.assertEqual(response.status_code, status.HTTP_200_OK)
j = response.json()
people = j["results"][0]["people"]
next = j["next"]
self.assertEqual(15, len(people))
self.assertNotEqual(None, next)
response = self.client.get(next)
self.assertEqual(response.status_code, status.HTTP_200_OK)
j = response.json()
people = j["results"][0]["people"]
next = j["next"]
self.assertEqual(5, len(people))
self.assertEqual(None, j["next"])
@patch("ee.clickhouse.models.person.delete_person")
def test_basic_pagination_with_deleted(self, delete_person_patch):
cache.clear()
self._create_sample_data(110, delete=True)
request_data = {
"insight": INSIGHT_PATHS,
"filter_test_accounts": "false",
"date_from": "2021-05-01",
"date_to": "2021-05-10",
}
response = self.client.get("/api/person/path/", data=request_data)
self.assertEqual(response.status_code, status.HTTP_200_OK)
j = response.json()
people = j["results"][0]["people"]
next = j["next"]
self.assertEqual(0, len(people))
self.assertIsNone(next)
def test_basic_format_with_funnel_path_post(self):
self._create_sample_data(7)
request_data = {
"insight": INSIGHT_PATHS,
"funnel_paths": FUNNEL_PATH_AFTER_STEP,
"filter_test_accounts": "false",
"date_from": "2021-05-01",
"date_to": "2021-05-07",
"path_start_key": "1_step two",
"path_end_key": "2_step three",
}
funnel_filter = {
"insight": INSIGHT_FUNNELS,
"interval": "day",
"date_from": "2021-05-01 00:00:00",
"date_to": "2021-05-07 00:00:00",
"funnel_window_interval": 7,
"funnel_window_interval_unit": "day",
"funnel_step": 2,
"events": [
{"id": "step one", "order": 0},
{"id": "step two", "order": 1},
{"id": "step three", "order": 2},
],
}
post_response = self.client.post("/api/person/path/", data={**request_data, "funnel_filter": funnel_filter})
self.assertEqual(post_response.status_code, status.HTTP_200_OK)
post_j = post_response.json()
self.assertEqual(4, len(post_j["results"][0]["people"]))
def test_basic_format_with_funnel_path_get(self):
self._create_sample_data(7)
request_data = {
"insight": INSIGHT_PATHS,
"funnel_paths": FUNNEL_PATH_AFTER_STEP,
"filter_test_accounts": "false",
"date_from": "2021-05-01",
"date_to": "2021-05-07",
"path_start_key": "1_step two",
"path_end_key": "2_step three",
}
funnel_filter = {
"insight": INSIGHT_FUNNELS,
"interval": "day",
"date_from": "2021-05-01 00:00:00",
"date_to": "2021-05-07 00:00:00",
"funnel_window_interval": 7,
"funnel_window_interval_unit": "day",
"funnel_step": 2,
"events": [
{"id": "step one", "order": 0},
{"id": "step two", "order": 1},
{"id": "step three", "order": 2},
],
}
get_response = self.client.get(
"/api/person/path/", data={**request_data, "funnel_filter": json.dumps(funnel_filter)}
)
self.assertEqual(get_response.status_code, status.HTTP_200_OK)
get_j = get_response.json()
self.assertEqual(4, len(get_j["results"][0]["people"]))
|
import java.util.Scanner;
import java.util.Collections;
class Main{
static int[][] map;
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
int K = scan.nextInt();
map = new int[4*K+1][4*K+1];
for(int i=0;i<N;++i){
int x = scan.nextInt();
int y = scan.nextInt();
if(scan.next().equals("W"))x+=K;
y%=2*K;x%=2*K;
map[y+1][x+1]++;
}
for(int i=0;i<2*K;++i)for(int j=0;j<2*K;++j)map[i+1][j+2*K+1]=map[i+1][j+1];
for(int i=0;i<2*K;++i)for(int j=0;j<2*K;++j)map[i+2*K+1][j+1]=map[i+1][j+1];
for(int i=0;i<2*K;++i)for(int j=0;j<2*K;++j)map[i+2*K+1][j+2*K+1]=map[i+1][j+1];
for(int i=0;i<4*K;++i)for(int j=0;j<4*K;++j){
map[i+1][j+1]+=map[i][j+1]+map[i+1][j]-map[i][j];
}
int ans = 0;
for(int i=1;i<=2*K;++i)for(int j=1;j<=2*K;++j){
ans = Math.max(ans, map[i+2*K-1][j+2*K-1]-map[i+K-1][j+2*K-1]-map[i+2*K-1][j+K-1]+map[i+K-1][j+K-1]
+map[i+K-1][j+K-1] -map[i-1][j+K-1] -map[i+K-1][j-1] +map[i-1][j-1]);
}
System.out.println(ans);
}
} |
Risk Factors of Brain Metastasis and Prognosis in HER2-Positive Breast Cancer: A Single-Institution Retrospective Analysis from China Background Brain metastasis (BM) frequently occurs in HER2-positive breast cancer (BC) patients, but the risk factors of BM in this type of patients are still unknown. Our study aims to assess the risk factors of BM and prognostic analysis in HER2-positive BC patients. Methods Univariate analysis used t-test, chi-square test, and Fishers exact test to find out the risk factors for BM, and multivariable analysis was done with stepwise logistic regression analysis. Prognostic data analysis was estimated by the KaplanMeier method. Results A total of 228 HER2-positive BC patients were included, of whom 214 patients were postoperative metastatic patients and 14 patients were de novo stage IV patients. Through comparing the stratified variables between 51 postoperative metastatic patients with BM and 163 postoperative metastatic patients without BM, the multivariate analysis showed that age ≤40 years (OR 2.321, 95% CI: 1.089 to 4.948) and first metastatic site with lung metastasis (OR 2.168, 95% CI: 1.099 to 4.274) were independent risk factors for BM in HER2-positive BC patients. Prognostic data of all 65 HER2-positive BC patients with BM showed that the time from the diagnosis of BC to the development of breast cancer brain metastasis (BCBM) was 36.3 months (95% CI: 30.0 to 42.1 months). The time from the diagnosis of first recurrence and metastasis stage to the diagnosis of BCBM was 11.35 months (95% CI: 7.1 to 18.4 months). The time from the diagnosis of BCBM to the time of follow-up was 24.1 months (95% CI: 13.9 to 37.5 months). Up until the time of follow-up data, a total of 38 patients had died, and the time from the diagnosis of BM of these 38 patients to death was 11.0 months (95% CI: 9.0 to 20.4 months). Conclusion The prognosis of HER2-positive BC patients with BM was poor due to the lack of effective treatments for BM. Age ≤40 years and first metastatic site with lung metastasis were the independent risk factors for BM in HER2-positive BC patients. Future research about pre-emptive medical interventions may help to improve the prognosis of HER2-positive BC patients with high risk to develop BM. INTRODUCTION The latest Global Cancer Statistics 2020 shows that breast cancer (BC) has become the malignant tumor with the highest morbidity and the second highest mortality. The major mortality reason of BC is the recurrence and metastasis of distant organs. Normally, the progression of disease for most BC patients is slow. Brain metastasis (BM) is preceded by metastases to other organs like lung, liver, or bone. The incidence of clinically evident BM among stage IV BC patients is estimated to be 10% to 16%. These figures underestimate the true incidence, given that BMs are found in 36% of patients at autopsy. Since most antitumor drugs do not cross the blood-brain barrier, to exert their antitumor properties, the brain has become an important sanctuary site for tumor cells. Therefore, the clinical treatment of BM in BC patient is a difficult problem. Relevant data show that the median survival time of BCBM (breast cancer brain metastasis) patients is less than 6 months, and only 20%-40% of patients survive longer than 1 year. Besides triple-negative BC, HER2-positive BC, which accounted for approximately 10%-15% of BC, has the highest incidence of BM. With the development of new drugs and the continuous improvement of drug therapy, the systematic treatment of HER2-positive advanced BC patients has been greatly improved in recent years. Theoretically, better systemic treatment would lead to better control of disease. However, an increasing proportion of patients have been observed to be suffering from BM often at a time when their extracranial disease is apparently under control in clinical practice. The identification of HER2-positive BC patients with high risk factors to develop BM would enable pre-emptive intervention such as prophylactic treatment or diagnostic screening with the potential to improve the prognosis of these patients. Reported risk factors for BM in BC patients include young age at first diagnosis, presence of lung metastases, short disease-free survival, hormone receptor (HR)-negative tumors, triplenegative tumor subtype, HER2 overexpression, and BRCA1 phenotype (2,8,. However, most of the studies included unselected patients with BC, whereas less is known about risk factors for BM for cohorts of only HER2-positive BC. In this retrospective, single-institution analysis, we aim to identify the high-risk factors for HER2-positive BC patients who would be more likely to progress to BM. Maybe these patients may benefit from the pre-emptive medical intervention in the future. Moreover, we assess the prognostic survival of HER2-positive BC patients with BM in our study. Patients This retrospective analysis included 228 consecutive HER2positive (immunohistochemistry 3+ or FISH-positive) pathologically confirmed BC patients treated in Fujian Provincial Hospital from January 2004 to January 2021. Male patients, HR+HER2-patients, triple-negative patients, patients with a history of other malignant tumors, or de novo metastatic HR+HER2+ and HR-HER2+ patients without BM were excluded. Follow-up data were gathered until December 31, 2021. HER2 status was determined with immunohistochemistry (IHC) and in situ hybridization at the time of the first biopsy or breast surgery and classified according to the American Society of Clinical Oncology/College of American Pathologists clinical practice guidelines for HER2 testing of 2007 and 2013, respectively, and the Belgian Guidelines for HER2 testing. HR status was determined by IHC using the Allred scoring system. Metastatic lesions were grouped into the following categories: Lung, bone, liver, brain, chest wall or regional lymph nodes metastasis. Our follow-up treatment strategy is as follows: routine breast color ultrasound, liver color ultrasound, ECT, x-ray, chest, and cranium CT plain scan for every initial treatment patient to exclude the possibility of distant metastasis. In the first 3 years after surgery, we regularly reviewed breast color ultrasound, liver color ultrasound, x-ray, and chest CT plain scan every 3 months. Patients who survived 3-5 years after surgery were regularly reviewed with these examinations every 6 months. Patients who survived more than 5 years after surgery were regularly reviewed with these examinations every 1 year. ECT and cranial examination are not routine review items for postoperative patients, except when the patient has symptoms associated with bone metastasis or BM. Once distant metastasis was confirmed in follow-up patients, liver, lung, cranium CT, and ECT examinations were routinely performed at the same time, and MRI examinations were performed to help determine whether the patients were accompanied by multiple organ metastasis if necessary. Every advanced BC patient was evaluated by CT examination every 2 months. Patients with stable BMs underwent cranium CT/MRI examination every 2-3 months. BM patients with progression disease were evaluated with cranium CT/MRI examination every month if necessary. Statistical Analysis Statistical analyses were conducted using SPSS version 22.0. Univariate analysis used t-test, chi-square test, and Fisher's exact test. t-test was done for comparison of quantitative indicators between 2 groups, and chi-square test and Fisher's exact test were used for comparison of sample rates between 2 groups. Multivariate analysis used stepwise logistic regression, and all variables in the univariate analysis with a p-value <0.1 were included in multivariate analysis. The Kaplan-Meier method was used to estimate the time from metastatic disease diagnosis until the development of BM, and was also used to estimate the time from the development of BM to death or follow-up data. Comparing the stratified variables between 51 postoperative metastatic patients with BM and 163 postoperative metastatic patients without BM, the result of univariate analysis showed that age ≤ 40 years and first metastatic site with lung metastasis were significantly associated with the risk of BM in patients with HER2-positive BC ( Table 1). Variables with p < 0.1 in univariate analysis were included in multivariate analysis, and it was found that age ≤40 years and first metastatic site with lung metastasis were independent risk factors for BM in HER2-positive BC patients ( Table 2). RESULTS Local treatments after BMs in 65 patients were as follows: 38 patients received only craniocerebral radiotherapy, 9 patients received only surgical resection of BM, 5 patients received craniocerebral radiotherapy combined with surgical resection of BMs, and 13 patients did not receive local treatment. Medical treatment after BMs in 65 patients were as follows: 5 patients had no medical treatment, and 60 patients had medical treatment (11 of them had no local treatment and only received medical treatment). Prognostic data analysis was estimated by the DISCUSSION Over the past decades, the diagnosis and treatment of BC patients have achieved remarkable improvements. Due to the lack of effective treatments, BM is still associated with poor results. In this study, we described the prognostic data of 65 HER2-positive BC patients with BM. The time from the diagnosis of BC to the development of BCBM was 36.3 months (95% CI: 30.0 to 42.1 months). The time from the diagnosis of first recurrence and metastasis stage to diagnosis of BCBM was FIGURE 1 | Constitution of the study population. BC, breast cancer; BM, brain metastasis; HR, hormone receptor; HR+, HR positive; HR-, HR negative; Her2, human epidermal growth factor receptor 2; Her2+, Her2 positive; Her2-, Her2 negative; TNBC, triple negative breast cancer. diagnosis of recurrence and metastasis stage. Therefore, the prevention and management of BM still pose unique clinical challenges. Despite the short overall survival after the diagnosis of BCBM, the results in our study seem to be better compared to those reported previously in unselected series of BCBM patients (5,. This may be related to earlier diagnosis of HERpositive BC, and better standardized systematic treatment of HER-positive BC, particularly the use of trastuzumab, pertuzumab, and small-molecule tyrosine kinase inhibitors. Furthermore, more effective management of BM and more humane supportive treatment also play an important role. In this study, we also included a series of HER2-positive postoperative BC patients to assess the risk factors of BM. We included the clinical and pathological factors in predicting risk factors of BM in HER2-positive BC patients. Among these clinicopathological indicators, primary tumor size and lymph node metastatic status are the important indicators to reflect the characteristics of BC. Traditional perspectives consider the idea that BC patients with larger tumors and more lymph node metastases are more likely to have recurrence and metastasis. Some scholars' research has found that tumor size >2 cm and axillary lymph nodal involvement were the risk factors for the development of BM in HER2-positive BC patients. However, we did not find this statistical significance in our study. Besides the primary tumor size and lymph node metastatic status, HR status and tumor grade could also reflect the characteristics of BC. Related literature reported that HR status and tumor grade were considered an adverse prognostic factor in unselected BC patients, and also increased the risk of BM. Knowledge on the predictive value of HR status and tumor grade for BM in HER2-positive BC patients is scarce. However, we also did not find any association between these two factors and the risk of BM in our study. Additionally, univariate and multivariate analyses show that no statistical significance has been found among menopausal status at diagnosis, family history, type of surgery and pathological type, probably due to the small number of patients enrolled in our study and the selectivity bias in our retrospective study. However, age ≤40 years (OR 2.321, 95% CI 1.089 to 4.948) did increase the risk of BM in HER2-positive BC patients. The possible reason is that young patients may display an increased propensity for BM due to the longer expected survival. At present, no positive correlation has been found between different postoperative treatments and the occurrence of BM in HER2-positive BC patients due to lack sufficient studies. This is consistent with the results of our study. As for the postoperative anti-HER2 targeted therapy, two meta-analyses reported an increased incidence of BM. This may extend the survival time to such a degree as to display an increased propensity for BM due to a better control of extracranial disease with trastuzumab. However, our study did not find that anti-HER2-targeted therapy was associated with the occurrence of BM. In our study, we also analyzed the relationship between the relevant metastatic variables and BM in HER2-positive BC patients. Variables associated with the recurrence and metastasis included the time from initial diagnosis to distant relapse, lung metastasis as the first metastatic event, liver metastasis as the first metastatic event, bone metastasis as the first metastatic event, and chest wall or regional lymph node metastasis as the first metastatic event. Different from the Renata Duchnowska's study report, the time from initial diagnosis to distant relapse shorter than 2 years did not increase the risk of BM in our study. Similarly, liver metastasis as the first metastatic event, bone metastasis as the first metastatic event, and chest wall or regional lymph node metastasis as the first metastatic event also had no significant statistical significance. However, univariate and multivariate analysis showed that lung metastasis as the first metastatic event (OR 2.168, 95% CI: 1.099 to 4.274) was the independent risk factor for BM in HER2-positive BC patients in our study. The possible reasons are as follows: due to the fact that patients with liver metastasis generally have a more serious disease and fast progress, they may have died before the occurrence of BM; due to the slow progress and insufficient follow-up time, BM was not found in patients with bone metastasis and chest wall or regional lymph node metastasis; and correlative studies have reported that the expression of the epidermal growth factor receptor ligand and the cyclooxygenase COX2 is associated with brain and lung metastasis of BC, but not associated with liver and bone metastasis. In this study, lung metastasis as the first metastatic event is positively correlated with BM, which may be related to the above molecular mechanism. LIMITATION There are several limitations that need to be considered in our study: This is a retrospective study from a single center, which may result in selective bias. The patients enrolled in our study conveys a time period of 17 years. During these years, the postoperative diagnosis and treatments of HER2-positive BC patients have changed, and the management of BM has also changed. Even in the same medical center, patients' final medical options are different, because they depended on different medical teams' treatment plans, disease and economic factors of patients, and the availability and tolerance of drugs. Therefore, the potential bias caused by heterogeneity of patient populations and inconsistent therapeutic approaches cannot also be ignored. The total number of HER2-positive BC patients with or without BM in this study are still not large enough. We need to expand our sample size to analyze the risk factors of BMs and prognosis of HER2-positive BC patients in the future. The follow-up time is not long enough in this study. Until the follow-up time, nearly half of the patients are still being followed up, and we will continue to follow up so that we could obtain more information about the prognosis of HER2-positive BC with BM in the future. CONCLUSION Combined with the findings in our single-center study, we demonstrate that HER2-positive BC patients with BM have a poor prognosis. Risk factors for BM in HER2-positive BC patients are age ≤40 years and first metastatic site with lung metastasis. Considering the limitations in our study, we have the following considerations: We expect that multi-center and large sample size studies could continue to explore the risk factors of BM and prognosis in HER2-positive BC in the future, so that we could establish a prediction model to predict the likelihood of BM in HER2-positive BC. Moreover, we expect that correlational researchers will be able to explore the corresponding predictive markers to predict the BM in HER2-positive BC with the help of genetic detection in the future. Through these efforts, we can screen out the real high-risk population with BM in HER2-positive BC patients. It would provide important references for our clinical decision-making. In recent years, relevant studies have reported that small-molecule tyrosine kinase inhibitors could improve the progression and prognosis of BM in HER2-positive BC patients. We expect that there could be some clinical trials about pre-emptive medical interventions in the future. For example, randomized controlled trials are conducted in metastatic HER2positive BC patients who had high risk factors to develop BM to explore whether the regular head MRI screening would be good for the early diagnosis and treatment, or there could be clinical trials to explore whether small-molecule tyrosine kinase inhibitors used in adjuvant therapy or first-line advanced salvage treatment would decrease the occurrence of BM, and ultimately improve the prognosis of brain metastasis in HER2-positive BC patients. DATA AVAILABILITY STATEMENT The datasets presented in this study can be found in online repositories. The names of the repository/repositories and accession number(s) can be found in the article/ supplementary material. ETHICS STATEMENT This study was approved by the Ethics Committee of Fujian Provincial Hospital. Written informed consent was obtained from all patients included in the study. AUTHOR CONTRIBUTIONS S-LC and Z-HW contributed to the conception and design of the study. S-LC, Z-HW, X-GC, LH, G-XG and X-QL developed the methodology. X-GC, Y-PC, X-QL, G-XG, and MT took part in the acquisition, analysis, and interpretation of the data. S-LC, Z-HW, X-GC and H-DC,wrote, reviewed, and/or revised the manuscript. LH, X-GC and H-DC supervised the study. All authors contributed to the article and approved the submitted version. FUNDING This work was supported by joint funds for the innovation of science and technology, Fujian province (2020Y9027). |
Is Nail Fold Capillaroscopy Useful in Normotensive and Primary Open Angle Glaucoma? A Pilot Study Purpose: Vascular dysregulation is deemed a significant risk factor in glaucoma occurrence and progression. Capillaroscopy of the blood vessels on the finger nail-fold is a method that can provide information regarding the state of the vascular system at the capillary level. The aim of this pilot study was to determine whether there are significant differences in the morphological characteristics of the peripheral blood vessels in normotensive glaucoma and primary open angle glaucoma. Matherials and Methods: An ophthalmological and capillaroscopic examination was conducted on 30 normotensive glaucoma patients and 30 primary open angle glaucoma patients. The capillaroscopic characteristics described were as follows: capillary row density, capillary diameter, number of spirally formed capillaries, permeability of the loop, and loop resistance. Results: Statistically, significantly more intensively spiraled capillaries were found in normotensive glaucoma patients (2 test, p<0.05). Conclusions: Results confirm the thesis that vascular factors play a significant role in the pathogenesis of the glaucoma, especially in cases where the level of intraocular pressure cannot be deemed responsible for the present damage of the optical nerve. Despite the newer, technologically more developed methods for diagnostics and monitoring glaucoma, it is often not easy to establish the right diagnosis and determine further the course of the illness, since the role the intraocular pressure (IOP) plays compared to the role of vascular factors is unknown; hence, capillaroscopy as a complementary diagnostic procedure can be of help. |
def process_predictions_and_anchors(self, anchor_list, valid_flag_list,
cls_scores, bbox_preds, img_metas,
gt_bboxes_ignore_list):
num_imgs = len(img_metas)
assert len(anchor_list) == len(valid_flag_list) == num_imgs
num_level_anchors = [anchors.size(0) for anchors in anchor_list[0]]
num_level_anchors_list = [num_level_anchors] * num_imgs
anchor_list_ = []
valid_flag_list_ = []
for i in range(num_imgs):
assert len(anchor_list[i]) == len(valid_flag_list[i])
anchor_list_.append(torch.cat(anchor_list[i]))
valid_flag_list_.append(torch.cat(valid_flag_list[i]))
if gt_bboxes_ignore_list is None:
gt_bboxes_ignore_list = [None for _ in range(num_imgs)]
num_levels = len(cls_scores)
cls_score_list = []
bbox_pred_list = []
mlvl_cls_score_list = [
cls_score.permute(0, 2, 3, 1).reshape(
num_imgs, -1, self.num_base_priors * self.cls_out_channels)
for cls_score in cls_scores
]
mlvl_bbox_pred_list = [
bbox_pred.permute(0, 2, 3, 1).reshape(num_imgs, -1,
self.num_base_priors * 4)
for bbox_pred in bbox_preds
]
for i in range(num_imgs):
mlvl_cls_tensor_list = [
mlvl_cls_score_list[j][i] for j in range(num_levels)
]
mlvl_bbox_tensor_list = [
mlvl_bbox_pred_list[j][i] for j in range(num_levels)
]
cat_mlvl_cls_score = torch.cat(mlvl_cls_tensor_list, dim=0)
cat_mlvl_bbox_pred = torch.cat(mlvl_bbox_tensor_list, dim=0)
cls_score_list.append(cat_mlvl_cls_score)
bbox_pred_list.append(cat_mlvl_bbox_pred)
return (anchor_list_, valid_flag_list_, num_level_anchors_list,
cls_score_list, bbox_pred_list, gt_bboxes_ignore_list) |
def count_to_size(self, axis, cell_size):
return self.block.count_to_size(axis, cell_size) |
package at.porscheinformatik.tapestry.csrfprotection.internal;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import org.apache.tapestry5.services.ComponentEventRequestFilter;
import org.apache.tapestry5.services.ComponentEventRequestHandler;
import org.apache.tapestry5.services.ComponentEventRequestParameters;
import org.apache.tapestry5.http.services.Request;
/**
* This filter checks each component event request or page render request for cross-site request forgery attacks. If a
* page is marked as protected a request is checked. If the auto mode for the cross-stie request forgery protection is
* used, all pages are checked except those which are marked as unprotected.
*/
public class CsrfProtectionFilter implements ComponentEventRequestFilter
{
private final CsrfTokenManager csrfTokenManager;
private final ProtectedPagesService protectedPagesService;
private final Request request;
private final HttpServletRequest httpServletRequest;
/**
* Creates a new filter and injects the required services and configuration parameters.
*
* @param csrfTokenManager .
* @param protectedPagesService .
* @param request .
* @param httpServletRequest .
*/
public CsrfProtectionFilter(
CsrfTokenManager csrfTokenManager,
ProtectedPagesService protectedPagesService,
Request request, HttpServletRequest httpServletRequest)
{
super();
this.csrfTokenManager = csrfTokenManager;
this.protectedPagesService = protectedPagesService;
this.request = request;
this.httpServletRequest = httpServletRequest;
}
/**
* Handles a component event request and evaluates the cross-site request forgery protection.
*
* @param parameters .
* @param handler .
* @throws IOException when delegate throws
*/
@Override
public void handle(ComponentEventRequestParameters parameters, ComponentEventRequestHandler handler)
throws IOException
{
if (protectedPagesService.isPageProtected(parameters))
{
csrfTokenManager.checkToken(request, httpServletRequest);
}
handler.handle(parameters);
}
}
|
<reponame>chiradeepbanerjee1990/Learning-Data-Structures-Algorithms
package Array;
import java.util.Arrays;
import java.util.Random;
/**
* Created by <NAME>
* Email : <EMAIL>.
*
* Reservoir sampling problem overview
Our task is to design an algorithm that's capable of selecting k items from an array!
The problem is that the n size of the array is unknown (or infinitely large)!
*/
public class ReservoirSamplingProblem {
static void selectKItems(int stream[], int n, int howManyNumbers)
{
int i; // index for elements in stream[]
// reservoir[] is the output array. Initialize it with
// first howManyNumbers elements from stream[]. Basically its done to fill up the array from 0 to howManyNumbers position
// from Stream
int reservoir[] = new int[howManyNumbers];
for (i = 0; i < howManyNumbers; i++)
reservoir[i] = stream[i];
Random r = new Random();
System.out.println("Value of I:::"+i);
// Iterate from the (howManyNumbers+1)th element to nth element as we have already inserted first howManyNumbers elements.
// "i" will start from i+1 index. So need to reinitialize
for (; i < n; i++)
{
// Pick a random index from 0 to i to make variation.
int j = r.nextInt(i)+1;
System.out.print("\nRandom Number:::"+j);
// If the randomly picked index is smaller than howManyNumbers,
// then replace the element present at the index
// with new element from stream. So, that first added loop elements will be replaced
if(j < howManyNumbers) {
reservoir[j] = stream[i];
System.out.print(" Stored Number:::" + reservoir[j]+ " Value of i::"+i);
}
}
System.out.println("\nFollowing are k randomly selected items");
System.out.println(Arrays.toString(reservoir));
}
public static void main(String[] args) {
int stream[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
int n = stream.length;
int k = 4;
selectKItems(stream, n, k);
}
}
|
Implementing Relationship Marketing in the Luxury Sector Relationship marketing has been gaining momentum as business entities realize that short-term sales/transaction orientation has several pitfalls for building customer loyalty and continued patronage. Relationship marketing has the potential to improve marketing productivity. What is the previous research on relationship marketing in the luxury sector of China? Which are the various techniques of relationship marketing practiced in luxury companies? How do these practices correlate with the performance of such luxury companies? These and related issues are the focus of this empirical investigation. The methodology used in the study consisted of a survey among 98 luxury companies in the northeast of China and the findings of the survey conducted among the luxury companies are analyzed. Furthermore the paper provides a discussion on the nature and scope of relationship marketing and proposes some recommendations to assist luxury firms in China in the implementation of this new marketing concept. Finally the concluding note of this study suggests suitable techniques, which can be used to make the concept of relationship marketing successful among the luxury sector in China |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.